| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| | * | Do not parse negative integers, - will be treated as unary operator. | dibyendumajumdar | 2023-09-19 | 6 | -33/+32 | |
| | | | | | | | | | | | | | Update the comments for Return node. Sync comments with README. | |||||
| | * | Parse standalone 0 as integer | dibyendumajumdar | 2023-09-19 | 3 | -33/+30 | |
| | | | ||||||
| | * | Merge branch 'main' of https://github.com/dibyendumajumdar/Simple into pr/2 | Cliff Click | 2023-09-19 | 1 | -0/+11 | |
| | |\ | ||||||
| | | * | Enable preview feature | dibyendumajumdar | 2023-09-19 | 1 | -0/+3 | |
| | | | | ||||||
| | | * | Enable preview feature | dibyendumajumdar | 2023-09-19 | 1 | -0/+8 | |
| | | | | ||||||
| | * | | Overhaul Lexer | Cliff Click | 2023-09-19 | 3 | -278/+107 | |
| | |/ | | | | | | | | | | | | | | | | | | | | | | | Switched to bytes from chars, since we'll be parsing files eventually and typically compilers parse bytes from files (and not Java chars). Added a 'peek' to handle bad leading `--123` numbers. Used simpler number parsing; doesn't do doubles (yet). Added a filter for punctuation. Prior setup didn't handle multi-char punctuation like relation tests "<=". Switched the "EOF" marker char from 0 to Char.MAX_VALUE; harder to make mistakes, and simplifies the WS test. Switch javadoc comments to plain comments on private functions. Added tests for broken keyword, broken numbers, negative numbers. | |||||
| | * | Fix a comp error | Cliff Click | 2023-09-19 | 1 | -1/+1 | |
| | | | | | | | | | missed one in the merge | |||||
| | * | Merge branch 'main' of https://github.com/dibyendumajumdar/Simple into pr/2 | Cliff Click | 2023-09-18 | 3 | -3/+7 | |
| | |\ | ||||||
| | | * | Update based on feedback | dibyendumajumdar | 2023-09-18 | 1 | -11/+11 | |
| | | | | ||||||
| | | * | Remove opcodes | dibyendumajumdar | 2023-09-18 | 7 | -39/+20 | |
| | | | | | | | | | | | | | Make the IdGenerator an input to the Parser | |||||
| | * | | More edits to Chpt 1 | Cliff Click | 2023-09-18 | 8 | -125/+82 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | Add the Evil static global var, with appriopriate comments. Drop the singleton class, and every place it had to be passed. Much smaller code now, and will be a LOT smaller as the project grows. Drop the opcode; minor usages in prior implementations for performance, not needed here. Use the preview pattern match in test code to simplify. | |||||
| | * | | Make every effort to move the language level to 20 with preview | Cliff Click | 2023-09-18 | 3 | -6/+6 | |
| | |/ | | | | | | | | | For pattern-match switch statements. Much nicer looking code. Also IDEAJ gave me huge grief, so I might have hit this with a larger hammer than needed. | |||||
| | * | Chapter 01 implementation | dibyendumajumdar | 2023-09-18 | 6 | -105/+206 | |
| | | | ||||||
| | * | Start on parser | dibyendumajumdar | 2023-09-17 | 7 | -30/+278 | |
| | | | ||||||
| | * | Revise description of Return node. | dibyendumajumdar | 2023-09-17 | 1 | -0/+3 | |
| | | | ||||||
| | * | Revise text and update diagram. | dibyendumajumdar | 2023-09-17 | 4 | -78/+56 | |
| | | | | | | | | | Remove the detail re inputs to a node from the diagram. | |||||
| | * | Add diagram | dibyendumajumdar | 2023-09-17 | 1 | -0/+10 | |
| | | | ||||||
| | * | Add diagram | dibyendumajumdar | 2023-09-17 | 2 | -0/+80 | |
| | | | ||||||
| | * | Revised text | dibyendumajumdar | 2023-09-17 | 1 | -6/+5 | |
| | | | ||||||
| | * | Fix typos | dibyendumajumdar | 2023-09-17 | 2 | -2/+2 | |
| | | | ||||||
| | * | Revised based on feedback | dibyendumajumdar | 2023-09-17 | 2 | -15/+18 | |
| | | | | | | | | | Added descriptions of the nodes. | |||||
| | * | Initial definition of nodes that will be relevant for chapter 1. | dibyendumajumdar | 2023-09-17 | 1 | -6/+29 | |
| | | | ||||||
| | * | Initial definition of nodes that will be relevant for chapter 1. | dibyendumajumdar | 2023-09-17 | 8 | -0/+196 | |
| | | | ||||||
| | * | Revise description of Chapter 1. | dibyendumajumdar | 2023-09-17 | 1 | -1/+1 | |
| | | | ||||||
| | * | Revise grammar for chapter 1. | dibyendumajumdar | 2023-09-17 | 2 | -24/+50 | |
| | | | | | | | | | Start writing up Chapter 1. | |||||
| * | | Merge pull request #2 from dibyendumajumdar/main | Cliff Click | 2023-09-07 | 12 | -3/+648 | |
| |\| | | | | | Initial framework for the project | |||||
| | * | Drop AST and parser and lexer | dibyendumajumdar | 2023-09-07 | 6 | -776/+0 | |
| | | | ||||||
| | * | Corrected README | dibyendumajumdar | 2023-09-07 | 1 | -6/+1 | |
| | | | ||||||
| | * | Renamed Ast to AST. | dibyendumajumdar | 2023-09-07 | 2 | -42/+42 | |
| | | | ||||||
| | * | Removed all external code. | dibyendumajumdar | 2023-09-07 | 25 | -9513/+335 | |
| | | | | | | | | | | | | | Removed the common chapter. Reimplemented Lexer. Revised the list of chapters to something more accurate. | |||||
| | * | Avoid using Node as a type as the IR will need this | dibyendumajumdar | 2023-08-26 | 3 | -131/+130 | |
| | | | | | | | | | | | So just extends the top level Ast class in all the subtypes. Also avoid holding reference to lexer in parser. | |||||
| | * | Update the lexer, parser and AST to match the language definition. | dibyendumajumdar | 2023-08-26 | 14 | -347/+258 | |
| | | | | | | | | | | | | | Add toString() method on AST nodes so that we can easily check the results of parsing. Remove AA lexer Move the Ecstasy lexer classes to one package, except Handy | |||||
| | * | Added a grammar definition for chapter 01. | dibyendumajumdar | 2023-08-25 | 3 | -1/+50 | |
| | | | ||||||
| | * | Reorganized the project as multi-maven module | dibyendumajumdar | 2023-08-25 | 38 | -402/+8892 | |
| | | | | | | | | | | | | | | | | | Updated README Added language module with grammar Split the code into common and chapter01 modules. Removed a number of utility classes that were imported from AA. Added github workflow file. | |||||
| | * | Implement parser for a simple language that roughly corresponds to appendix ↵ | dibyendumajumdar | 2023-08-21 | 6 | -6/+480 | |
| | | | | | | | | | A in Aho's 2nd edition | |||||
| | * | Added JCtools dependency and removed classes that were copied from there | dibyendumajumdar | 2023-08-20 | 8 | -3162/+11 | |
| | | | | | | | | | Removed the hash quality checks in Util as these access internals of maps in JCTools | |||||
| | * | In this initial commit, following are included: | dibyendumajumdar | 2023-08-20 | 18 | -0/+4832 | |
| |/ | | | | | | | util classes from AA Lexer code extracted from the Parse class. This is all draft as likely to change as we start creating the AST parser. | |||||
| * | Update README.md | Cliff Click | 2023-08-19 | 1 | -0/+8 | |
| | | ||||||
| * | Initial commit | Cliff Click | 2023-08-19 | 3 | -0/+227 | |
