https://github.com/luispadron/decaf-lang
Decaf a "language" developed @ University of Michigan
https://github.com/luispadron/decaf-lang
Last synced: about 1 year ago
JSON representation
Decaf a "language" developed @ University of Michigan
- Host: GitHub
- URL: https://github.com/luispadron/decaf-lang
- Owner: luispadron
- License: mit
- Created: 2019-01-17T02:06:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-24T18:08:16.000Z (over 5 years ago)
- Last Synced: 2025-05-09T11:05:44.862Z (about 1 year ago)
- Language: Assembly
- Size: 31.6 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Decaf-Lang
Decaf a "language" developed @ University of Michigan.
## Example Decaf program
```c
int factorial(int n) {
if (n <=1 ) return 1;
return n*factorial(n-1);
}
void main() {
int n;
for (n = 1; n <= 15; n = n + 1)
Print("Factorial(", n , ") = ", factorial(n), "\n");
}
```
## Caveats
*If you are a current student at UM and are taking the compiler course in which you need to develop this language, do not break the rules and look at the source code for this. ❤️*