diff options
author | Mike Buland <eichlan@xagasoft.com> | 2016-11-30 14:52:39 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2016-11-30 14:52:39 -0700 |
commit | 2297488eae424197dce4ed6b1dc50ae67c093074 (patch) | |
tree | c28956f193f9ee8bdde083f780984736d48a5e41 /src/parser.h | |
parent | 0321e6e39b8cf24718cf853c28f0f35443753264 (diff) | |
download | clic-2297488eae424197dce4ed6b1dc50ae67c093074.tar.gz clic-2297488eae424197dce4ed6b1dc50ae67c093074.tar.bz2 clic-2297488eae424197dce4ed6b1dc50ae67c093074.tar.xz clic-2297488eae424197dce4ed6b1dc50ae67c093074.zip |
I managed to confuse myself pretty well.
I'm doing some reading up on LR(n) parsers, I just sort of started without
thinking about it this time, not a great approach. I feel like it can't hurt
to have an update on how this works anyway. I think the idea was solid, but
I was trying to do too much at once.
One question is what my goal should be for this. I could just solve the
equation as we go, or I could generate code that will let us solve the equation.
The later is obviously attractive in that it will let us run an expression
more than once, and maybe even define functions. I like that.
Diffstat (limited to '')
-rw-r--r-- | src/parser.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.h b/src/parser.h index d50951b..05fab0b 100644 --- a/src/parser.h +++ b/src/parser.h | |||
@@ -57,7 +57,7 @@ private: | |||
57 | void exprP(); | 57 | void exprP(); |
58 | 58 | ||
59 | private: | 59 | private: |
60 | void unwind(); | 60 | void reduce(); |
61 | int reqTokens( Token::Type eType ); | 61 | int reqTokens( Token::Type eType ); |
62 | int getPriority( Token::Type eType ); | 62 | int getPriority( Token::Type eType ); |
63 | Number &deref( Token &t ); | 63 | Number &deref( Token &t ); |