Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | nqasm: allow spaces around operators in expressions | Bobby Bingham | 2017-01-19 | 1 | -8/+8 |
| | |||||
* | nqasm: don't echo unknown tokens | Bobby Bingham | 2017-01-19 | 1 | -0/+2 |
| | |||||
* | nqasm: support binary arithmetic operators in immediate operands | Bobby Bingham | 2017-01-18 | 1 | -0/+4 |
| | |||||
* | nqasm: support unary operators in immediate expressions | Bobby Bingham | 2017-01-18 | 1 | -1/+5 |
| | |||||
* | nqasm: allow "." to refer to current pc in immediate operand | Bobby Bingham | 2017-01-18 | 1 | -0/+1 |
| | |||||
* | nqasm: lex registers as if they were labels | Bobby Bingham | 2017-01-18 | 1 | -4/+2 |
| | | | | | This makes parsing registers trickier, but allows a label to have a name 'r0'-'r7', which would otherwise conflict with the registers. | ||||
* | nqasm: allow specifying labels for operands | Bobby Bingham | 2017-01-18 | 1 | -0/+1 |
| | |||||
* | nqasm: parse labels | Bobby Bingham | 2017-01-17 | 1 | -0/+5 |
| | |||||
* | nqasm: Handle immediate arguments | Bobby Bingham | 2017-01-15 | 1 | -0/+14 |
| | |||||
* | nqasm: Handle register and register indirect arguments | Bobby Bingham | 2017-01-15 | 1 | -0/+7 |
| | |||||
* | nqasm: Improve parsing at end of file | Bobby Bingham | 2017-01-15 | 1 | -1/+4 |
| | | | | | | | | | Bison's implicit $accept rule ends with the END token. The fact that input could also end with END (via the line non-terminal) resulted in a shift reduce conflict. We resolve the conflict by modifying the lexer so that if it encounters end of file partway through a line, it produces a final EOL token before EOF. | ||||
* | nqasm: Initial stab at a lexer and parser | Bobby Bingham | 2017-01-15 | 1 | -0/+61 |
So far, this only understands instructions, but no operands or labels. It doesn't handle bad input gracefully. It's just enough to test the basics. |