diff options
author | Mike Buland <eichlan@xagasoft.com> | 2016-12-01 09:31:45 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2016-12-01 09:31:45 -0700 |
commit | 3015ea4677201060777435cf76815e898d221f8c (patch) | |
tree | 8415fcef57ed5456ec03b2ea115ebd3789fd8c10 /src/parser.h | |
parent | 5b8df4e1ab3faffe5c010222ff3f8ce3a4ff810c (diff) | |
download | clic-3015ea4677201060777435cf76815e898d221f8c.tar.gz clic-3015ea4677201060777435cf76815e898d221f8c.tar.bz2 clic-3015ea4677201060777435cf76815e898d221f8c.tar.xz clic-3015ea4677201060777435cf76815e898d221f8c.zip |
The parser works.
There's still more to do, however. It doesn't do math anymore, it produces
a script that can then be executed. Now we have to capture that script and
execute it.
Diffstat (limited to '')
-rw-r--r-- | src/parser.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser.h b/src/parser.h index 1caa229..b0a1231 100644 --- a/src/parser.h +++ b/src/parser.h | |||
@@ -53,13 +53,15 @@ public: | |||
53 | private: | 53 | private: |
54 | void expr(); | 54 | void expr(); |
55 | void exprP(); | 55 | void exprP(); |
56 | void exprR(); | ||
56 | 57 | ||
57 | private: | 58 | private: |
58 | void shift( const Token &t ); | 59 | void shift( const Token &t ); |
59 | void reduce(); | 60 | void reduce(); |
60 | int reqTokens( Token::Type eType ); | 61 | int reqTokens( Token::Type eType ); |
61 | int getPriority( Token::Type eType ); | 62 | int getPriority( Token::Type eType ); |
62 | Number &deref( Token &t ); | 63 | |
64 | void printState( const Bu::String &sTag ); | ||
63 | 65 | ||
64 | private: | 66 | private: |
65 | Lexer &lex; | 67 | Lexer &lex; |