|
|
993a1cbd74
|
src/as/parser.c: fix typos.
|
2018-12-18 09:17:18 +01:00 |
|
|
|
960d6f2e0d
|
src/as/lexer.c: use error.c
|
2018-12-17 23:27:13 +01:00 |
|
|
|
2e66ffb9a5
|
src/as/parser.c: check that numbers are in the allowed range.
|
2018-12-17 23:19:52 +01:00 |
|
|
|
74ecdfc2ab
|
src/as/lexer.c: guard against integer overflow (emitting a warning)
|
2018-12-17 21:34:57 +01:00 |
|
|
|
e75349e7f9
|
src/as/lexer.h: in struct token: integer value can max be 8 bits wide.
|
2018-12-17 07:27:52 +01:00 |
|
|
|
de29a981bd
|
src/as/lexer.c: implement hexadecimal numbers.
|
2018-12-14 00:35:09 +01:00 |
|
|
|
1a29b39663
|
src/as/ast.c: bug in ast_free(). we should advance i by sizeof(char**).
|
2018-12-14 00:17:42 +01:00 |
|
|
|
3513662ad8
|
asm: lexer.c: read_string() move all strings into a table
|
2018-12-11 17:53:55 +01:00 |
|
|
|
1146b925f5
|
src/as/codegen.c: use symtab to get the address for J-Type instruction.
|
2018-12-10 23:13:39 +01:00 |
|
|
|
0f10c9fd38
|
src/as/parser.c: on parsing error. skip doing semantics checks and code gen.
|
2018-12-10 23:13:38 +01:00 |
|
|
|
0916f8bcdc
|
src/as/parser.c: do semantics checks.
|
2018-12-10 23:13:38 +01:00 |
|
|
|
aa171ac46c
|
src/as/parser.c: in match_operand() store strings in the AST.
|
2018-12-10 23:13:38 +01:00 |
|
|
|
7ec84ad2a1
|
src/as/parser.c: J-Type should now accept a label as argument.
|
2018-12-10 23:13:38 +01:00 |
|
|
|
2b80662967
|
src/as/parser.c: store address for label declaration in the symbol table.
|
2018-12-10 23:13:38 +01:00 |
|
|
|
86293537eb
|
src/as/lexer.c: make sure we store the string if it's a label.
|
2018-12-10 23:13:38 +01:00 |
|
|
|
7646d63736
|
asm: build AST in parser.
|
2018-12-10 23:13:38 +01:00 |
|
|
|
96220537de
|
asm: rename instr_encode to codegen and do code generation from AST.
|
2018-12-10 23:13:37 +01:00 |
|
|
|
aca8d7937e
|
asm: adding AST
|
2018-12-10 23:13:37 +01:00 |
|
|
|
adbe0006f5
|
asm: adding symbol table datastructure.
|
2018-12-09 19:52:29 +01:00 |
|
|
|
3528c467ac
|
asm: adding the parser
|
2018-12-09 19:52:29 +01:00 |
|
|
|
16501e40be
|
asm: adding instr_encode module
|
2018-12-09 19:52:29 +01:00 |
|
|
|
95f2e38c2d
|
asm: adding error module
|
2018-11-27 10:52:40 +01:00 |
|
|
|
377c008ebe
|
asm: lexer implementation.
|
2018-11-27 10:52:39 +01:00 |
|