index
:
cup
master
Unnamed repository; edit this file 'description' to name the repository.
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
src
/
generator.c
Commit message (
Expand
)
Author
Age
Files
Lines
*
[cup] Self-hosting is now possible! Make some tweaks to match C output
Mustafa Quraish
2022-02-07
1
-1
/
+0
*
Allow empty return statements for void functions
Mustafa Quraish
2022-02-05
1
-1
/
+4
*
Fix label counts during code generation for `||` and `&&`
Mustafa Quraish
2022-02-05
1
-10
/
+10
*
Allow function declarations without a definition
Mustafa Quraish
2022-02-05
1
-0
/
+3
*
Handle command-line arguments properly on linux
Mustafa Quraish
2022-02-05
1
-4
/
+13
*
Add support for some more binary ops: |, &, ^
Mustafa Quraish
2022-02-05
1
-1
/
+22
*
Add ability to initialize global variables
Mustafa Quraish
2022-02-05
1
-0
/
+13
*
Allow `builtins.c` to inject constants into program, use for syscalls
Mustafa Quraish
2022-02-05
1
-4
/
+2
*
Add support for basic structs
Mustafa Quraish
2022-02-03
1
-1
/
+9
*
Push `argc` and `argv` to the `main()` function
Mustafa Quraish
2022-02-03
1
-0
/
+10
*
Add helper to create builtins for syscalls + implement `read()`
Mustafa Quraish
2022-02-03
1
-56
/
+2
*
Remove `putc` intrinsic and replace with `write(fd, buf, size)`
Mustafa Quraish
2022-02-03
1
-6
/
+14
*
Add support for `char` type + string/char literals
Mustafa Quraish
2022-02-02
1
-6
/
+48
*
Remove default initialization to 0 for variable declarations
Mustafa Quraish
2022-02-02
1
-5
/
+0
*
Type checking of expressions / functions!
Mustafa Quraish
2022-02-02
1
-1
/
+11
*
Add support for pointers! (tests missing)
Mustafa Quraish
2022-02-02
1
-13
/
+16
*
Refactor variable access+assignment in terms of `generate_lvalue()`
Mustafa Quraish
2022-02-02
1
-20
/
+21
*
Modify how types are stored.
Mustafa Quraish
2022-02-02
1
-2
/
+2
*
Defer: Pop elements off the defer-stack when returning
Mustafa Quraish
2022-02-01
1
-2
/
+4
*
Add basic `defer` implementation.
Mustafa Quraish
2022-02-01
1
-0
/
+21
*
Global variables now supported! + some fixes to OP_ASSIGN
Mustafa Quraish
2022-01-31
1
-27
/
+29
*
Minor fixes to code generation
Mustafa Quraish
2022-01-31
1
-11
/
+11
*
Add basic builtin-function support
Mustafa Quraish
2022-01-31
1
-6
/
+95
*
Rename `cup` directory to `src`
Mustafa Quraish
2022-01-30
1
-0
/
+355