summaryrefslogtreecommitdiff
path: root/src/parser.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2016-12-01 09:31:45 -0700
committerMike Buland <eichlan@xagasoft.com>2016-12-01 09:31:45 -0700
commit3015ea4677201060777435cf76815e898d221f8c (patch)
tree8415fcef57ed5456ec03b2ea115ebd3789fd8c10 /src/parser.h
parent5b8df4e1ab3faffe5c010222ff3f8ce3a4ff810c (diff)
downloadclic-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.h4
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:
53private: 53private:
54 void expr(); 54 void expr();
55 void exprP(); 55 void exprP();
56 void exprR();
56 57
57private: 58private:
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
64private: 66private:
65 Lexer &lex; 67 Lexer &lex;