diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-10-17 05:50:57 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-10-17 05:50:57 +0000 |
commit | 00ecd458ced768b3b8752cdd421a22244b7adc01 (patch) | |
tree | a0b2ad00db46b61b269be6090a386cb88e6bf7f2 /src/parser.h | |
parent | 9031e2af7dd4e65ec70890ee78a7cf600d1b2cc5 (diff) | |
download | libbu++-00ecd458ced768b3b8752cdd421a22244b7adc01.tar.gz libbu++-00ecd458ced768b3b8752cdd421a22244b7adc01.tar.bz2 libbu++-00ecd458ced768b3b8752cdd421a22244b7adc01.tar.xz libbu++-00ecd458ced768b3b8752cdd421a22244b7adc01.zip |
Hey! The parser parses now! It's actually a little stupid, I didn't implement
lookahead or precedence, but I should be able to do that easily with the next
version. I'm treating this more as a proof of concept than a real working
model. Although it can handle +, -, (), and = :)
Diffstat (limited to '')
-rw-r--r-- | src/parser.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parser.h b/src/parser.h index 5b5d4a8..1679c7f 100644 --- a/src/parser.h +++ b/src/parser.h | |||
@@ -34,6 +34,9 @@ namespace Bu | |||
34 | */ | 34 | */ |
35 | void popLexer(); | 35 | void popLexer(); |
36 | 36 | ||
37 | Lexer::Token *popToken(); | ||
38 | void pushToken( Lexer::Token *pTok ); | ||
39 | |||
37 | /** | 40 | /** |
38 | * Execute a parse. | 41 | * Execute a parse. |
39 | */ | 42 | */ |