summaryrefslogtreecommitdiffstats
path: root/src/front (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cleanupBenedikt Böhm2009-07-042-20/+0
|
* adapt parser for backend changesBenedikt Böhm2009-07-043-34/+69
| | | | | | | | - emit a prologue/epilogue for functions - emit a "JMP main" instruction in the beginning - track the last function label across genrate calls - split scope in params and local variables (they have a different layout on the stack)
* cleanup astBenedikt Böhm2009-07-031-57/+30
|
* implement three-address-code objects instead of printfAndreas Nüßlein2009-07-024-44/+86
|
* implemented scope and most of astAndreas Nüßlein2009-06-304-153/+233
|
* fix function_callBenedikt Böhm2009-06-294-69/+38
| | | | | - function_call is now an expression and a statement - call keyword is required to make lookahead = 1 work
* Merge branch 'master' of git@git.animux.de:swppyBenedikt Böhm2009-06-295-92/+222
|\ | | | | | | | | Conflicts: src/front/__init__.py
| * fixed error with not newline at file endAlexander Sulfrian2009-06-283-40/+5
| | | | | | | | | | | | moved __init__.py with testcode from src/front to src/ added in lexer "\n\n" at source end to have a newline at file end added unexpected end of file message, if matched token is None
| * added parserAlexander Sulfrian2009-06-234-69/+232
| | | | | | | | | | - commited parser (Michael Popov) - changed encoding of parser.py to utf8
* | simplify scope, symbol and typesBenedikt Böhm2009-06-093-48/+20
| |
* | fix __init__.pyBenedikt Böhm2009-05-261-3/+1
|/
* tac and ast updates - added eval to ast-elemsAndreas Nüßlein2009-05-261-17/+117
| | | | | | every ast-element now has a .eval-method that creates the ThreeAddressCode for said element. Also: tac-elements are stored linear in a list (, duh)
* add scope, and symbol class, obsoletes SymbolTableBenedikt Böhm2009-05-253-30/+54
|
* implement AST interfaces, which also superseeds parser tokensBenedikt Böhm2009-05-213-59/+111
|
* remove symbol table from lexerBenedikt Böhm2009-05-204-33/+40
|
* convert tags to a typesafe enum so we can print strings instead of intsBenedikt Böhm2009-05-201-42/+50
|
* beautify symbol tableBenedikt Böhm2009-05-202-17/+20
|
* implemented lexer (with tokens and symbolTable)Alexander Sulfrian2009-05-204-61/+215
| | | | | | todo: beautify code, implement token classes for parser implemented test function with testcode moved token class to single file (token.py)
* parse tree not needed anymoreBenedikt Böhm2009-05-191-3/+0
|
* define interfacesBenedikt Böhm2009-05-198-0/+174
|
* move stuff around and create initial source structureBenedikt Böhm2009-05-185-0/+0