diff options
Diffstat (limited to 'src/parser.h')
-rw-r--r-- | src/parser.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/parser.h b/src/parser.h index 05fab0b..1caa229 100644 --- a/src/parser.h +++ b/src/parser.h | |||
@@ -49,14 +49,13 @@ public: | |||
49 | virtual ~Parser(); | 49 | virtual ~Parser(); |
50 | 50 | ||
51 | void parse(); | 51 | void parse(); |
52 | Number getVariable( const Bu::String &sName ); | ||
53 | void setVariable( const Bu::String &sName, const Number &rValue ); | ||
54 | 52 | ||
55 | private: | 53 | private: |
56 | void expr(); | 54 | void expr(); |
57 | void exprP(); | 55 | void exprP(); |
58 | 56 | ||
59 | private: | 57 | private: |
58 | void shift( const Token &t ); | ||
60 | void reduce(); | 59 | void reduce(); |
61 | int reqTokens( Token::Type eType ); | 60 | int reqTokens( Token::Type eType ); |
62 | int getPriority( Token::Type eType ); | 61 | int getPriority( Token::Type eType ); |
@@ -66,11 +65,8 @@ private: | |||
66 | Lexer &lex; | 65 | Lexer &lex; |
67 | Bu::Stream &rOut; | 66 | Bu::Stream &rOut; |
68 | typedef Bu::List<Token> TokenStack; | 67 | typedef Bu::List<Token> TokenStack; |
69 | typedef Bu::Hash<Bu::String, Number> VarHash; | 68 | TokenStack tsParse; |
70 | TokenStack tsStack; | 69 | TokenStack tsScript; |
71 | // TokenStack tsNonTerminal; | ||
72 | Number nZero; | ||
73 | VarHash hVars; | ||
74 | }; | 70 | }; |
75 | 71 | ||
76 | #endif | 72 | #endif |