Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabryon99/mucomp-lang
μcomp-lang is a didactic language implemented for Language, Compilers and Interpreters course at UniPi.
https://github.com/gabryon99/mucomp-lang
compilers languages lexer llvm menhir ocaml ocamllex parser programming
Last synced: 13 days ago
JSON representation
μcomp-lang is a didactic language implemented for Language, Compilers and Interpreters course at UniPi.
- Host: GitHub
- URL: https://github.com/gabryon99/mucomp-lang
- Owner: gabryon99
- License: isc
- Created: 2021-11-04T16:11:04.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-20T10:03:35.000Z (almost 3 years ago)
- Last Synced: 2024-11-07T14:32:22.371Z (2 months ago)
- Topics: compilers, languages, lexer, llvm, menhir, ocaml, ocamllex, parser, programming
- Language: OCaml
- Homepage:
- Size: 1 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## μcomp-lang
μcomp-lang is a didactic language implemented for *Language, Compilers and Iterpreters* course at **UniPi**.
### Report
Read the report `mucomp-report.pdf` inside `asset` folder if you are interested to how mucomp-lang is implemented
### Example
The snippet below shows a simple program written in μcomp.
```
component EntryPoint provides App {
def fib(n: int): int {
if (n == 0) {
return 0;
}if (n == 1) {
return 1;
}return fib(n - 1) + fib(n - 2);
}def main() : int {
print(fib(10)); // prints 10
return 0;
}
}```
#### Trivia
The mascotte's name is "*Comu*" = "🐄" + "μ" (like: "muuuh") (I know, it's a bad pun).