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
Commit message (
Expand
)
Author
Age
Files
Lines
...
*
Push `argc` and `argv` to the `main()` function
Mustafa Quraish
2022-02-03
2
-1
/
+11
*
Add helper to create builtins for syscalls + implement `read()`
Mustafa Quraish
2022-02-03
6
-75
/
+126
*
Check for integer-like types in type-checking instead of exact ones
Mustafa Quraish
2022-02-03
1
-7
/
+7
*
Remove `putc` intrinsic and replace with `write(fd, buf, size)`
Mustafa Quraish
2022-02-03
6
-50
/
+47
*
Move builtins to a separate file
Mustafa Quraish
2022-02-03
3
-28
/
+54
*
Allow implicitly converting between integer-like-types
Mustafa Quraish
2022-02-03
4
-5
/
+33
*
Move all common utilities to `std/common.cup`
Mustafa Quraish
2022-02-03
2
-22
/
+73
*
Avoid pointer-arithmetic multiplications if we have `char*`
Mustafa Quraish
2022-02-03
1
-24
/
+34
*
Add support for `char` type + string/char literals
Mustafa Quraish
2022-02-02
8
-21
/
+153
*
Remove default initialization to 0 for variable declarations
Mustafa Quraish
2022-02-02
3
-6
/
+9
*
Handle OP_ASSIGN in `print_ast()`
Mustafa Quraish
2022-02-02
1
-0
/
+6
*
Add initial support for arrays (also no testing)
Mustafa Quraish
2022-02-02
6
-10
/
+95
*
Move type-related stuff to a separate file
Mustafa Quraish
2022-02-02
5
-194
/
+217
*
Fix examples to include return type on main function
Mustafa Quraish
2022-02-02
6
-6
/
+6
*
Type checking of expressions / functions!
Mustafa Quraish
2022-02-02
11
-131
/
+327
*
Use `type*` instead of `type&` to denote a pointer type (for now)
Mustafa Quraish
2022-02-02
1
-1
/
+1
*
Add support for pointers! (tests missing)
Mustafa Quraish
2022-02-02
4
-17
/
+30
*
Refactor variable access+assignment in terms of `generate_lvalue()`
Mustafa Quraish
2022-02-02
1
-20
/
+21
*
Add `size_for_type()` helper instead of hard-coding variable sizes
Mustafa Quraish
2022-02-02
3
-5
/
+16
*
Modify how types are stored.
Mustafa Quraish
2022-02-02
4
-99
/
+143
*
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
7
-1
/
+104
*
Testing: Add support for testing stdout results, check builtins
Mustafa Quraish
2022-02-01
2
-0
/
+103
*
Global variables now supported! + some fixes to OP_ASSIGN
Mustafa Quraish
2022-01-31
5
-63
/
+157
*
Add .gitattributes to try to highlight code as Rust
Mustafa Quraish
2022-01-31
2
-1
/
+2
*
Add workflow to run tests on push
Mustafa Quraish
2022-01-31
1
-0
/
+17
*
Move around tests in the categories; Add missing tests
Mustafa Quraish
2022-01-31
4
-179
/
+197
*
Add `std/math.cup` with some common math functions
Mustafa Quraish
2022-01-31
1
-0
/
+22
*
Add ability to import other files
Mustafa Quraish
2022-01-31
4
-3
/
+62
*
Minor fixes to code generation
Mustafa Quraish
2022-01-31
1
-11
/
+11
*
Fix offset for local variables
Mustafa Quraish
2022-01-31
1
-1
/
+1
*
Make `Lexer_new` return a pointer instead of the object.
Mustafa Quraish
2022-01-31
3
-8
/
+8
*
Add basic builtin-function support
Mustafa Quraish
2022-01-31
6
-38
/
+192
*
Put tokens in their own macro to allow looping over them
Mustafa Quraish
2022-01-30
4
-30
/
+36
*
Update build system to use Makefile
Mustafa Quraish
2022-01-30
7
-73
/
+75
*
Rename `cup` directory to `src`
Mustafa Quraish
2022-01-30
15
-1
/
+1
*
Remove return-0 example
Mustafa Quraish
2022-01-30
1
-3
/
+0
*
Functions, yay!
Mustafa Quraish
2022-01-30
7
-19
/
+259
*
Make the compiler / scripts work on Linux too (yay!)
Mustafa Quraish
2022-01-29
3
-6
/
+40
*
Add for and while loop support (w/o declarations in `for`)
Mustafa Quraish
2022-01-29
7
-14
/
+230
*
Implement blocks (lexically scoped) and conditionals
Mustafa Quraish
2022-01-29
10
-39
/
+487
*
Add i64{max,min} helper functions
Mustafa Quraish
2022-01-29
2
-1
/
+7
*
Allow uninitialized variable declarations
Mustafa Quraish
2022-01-29
8
-37
/
+88
*
Add some tests for local variables
Mustafa Quraish
2022-01-29
3
-0
/
+54
*
Now supporting local variables! :^)
Mustafa Quraish
2022-01-29
6
-29
/
+92
*
Restore line/col count in Lexer_peek to get correct locations
Mustafa Quraish
2022-01-29
1
-0
/
+4
*
Add separator in `die_location()`
Mustafa Quraish
2022-01-29
1
-0
/
+1
*
Stop tests if compilation fails
Mustafa Quraish
2022-01-29
1
-0
/
+2
*
Add parsing + storing offsets for locals / move around headers
Mustafa Quraish
2022-01-29
8
-24
/
+114
*
Add relational and logical operators + refactor binop parser
Mustafa Quraish
2022-01-29
6
-51
/
+198
[prev]
[next]