I forgot how to ride a bike
-
I'm crylaughing at myself. I forgot how to enforce operator precedence in parsing code. I've written it countless times. I have no idea how I forgot. It should be practically muscle memory at this point. Next I will forget my birthday. :~
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
-
I'm crylaughing at myself. I forgot how to enforce operator precedence in parsing code. I've written it countless times. I have no idea how I forgot. It should be practically muscle memory at this point. Next I will forget my birthday. :~
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
-
I'm crylaughing at myself. I forgot how to enforce operator precedence in parsing code. I've written it countless times. I have no idea how I forgot. It should be practically muscle memory at this point. Next I will forget my birthday. :~
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
honey the codewitch wrote:
Next I will forget my birthday.
Just don't forget your SO's birthday... :)
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.
-
I'm crylaughing at myself. I forgot how to enforce operator precedence in parsing code. I've written it countless times. I have no idea how I forgot. It should be practically muscle memory at this point. Next I will forget my birthday. :~
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
Any operator who slips you a twenty gets precedence.
-
I'm crylaughing at myself. I forgot how to enforce operator precedence in parsing code. I've written it countless times. I have no idea how I forgot. It should be practically muscle memory at this point. Next I will forget my birthday. :~
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
Pretty sure you already got it back. Anyway my 30 years old notes, based on a Modula2 publication from Niklaus Wirth ;)
Expression
\
SimpleExpression {Relation SimpleExpression}
\ \
\ "=="¦"!="¦"<"¦"<="¦">"¦">="
\
["+"¦"-"] Term {AddOperator Term}
\ \
\ "+"¦"-"¦"||"
\
Factor {MulOperator Factor}
\ \
\ "*" ¦ "/" ¦ "&&"
\
Number
|
Variable
|\
| Designator
|
|
String
|\
| """ {Aplha¦Digit} """
|
|
FunctionCall
|\
| Designator [ParameterList]
|
|
"(" Expression ")"
|
Negation
\
"!" -
I'm crylaughing at myself. I forgot how to enforce operator precedence in parsing code. I've written it countless times. I have no idea how I forgot. It should be practically muscle memory at this point. Next I will forget my birthday. :~
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
Not clear on what happened. Did you forget to put operator precedence enforcement into the program, or did you forget how to implement operator precedence enforcement?
The difficult we do right away... ...the impossible takes slightly longer.
-
Pretty sure you already got it back. Anyway my 30 years old notes, based on a Modula2 publication from Niklaus Wirth ;)
Expression
\
SimpleExpression {Relation SimpleExpression}
\ \
\ "=="¦"!="¦"<"¦"<="¦">"¦">="
\
["+"¦"-"] Term {AddOperator Term}
\ \
\ "+"¦"-"¦"||"
\
Factor {MulOperator Factor}
\ \
\ "*" ¦ "/" ¦ "&&"
\
Number
|
Variable
|\
| Designator
|
|
String
|\
| """ {Aplha¦Digit} """
|
|
FunctionCall
|\
| Designator [ParameterList]
|
|
"(" Expression ")"
|
Negation
\
"!"Thanks, but I can write a grammar for it. I just forgot how to write the code. :P
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
-
I'm crylaughing at myself. I forgot how to enforce operator precedence in parsing code. I've written it countless times. I have no idea how I forgot. It should be practically muscle memory at this point. Next I will forget my birthday. :~
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
Sadly, I came to this thread to read about bicycles :( I recently acquired a Circus Bike and that will make you feel like you truly can't ride a bike! Now back to your regularly scheduled programming.
Hogan
-
I'm crylaughing at myself. I forgot how to enforce operator precedence in parsing code. I've written it countless times. I have no idea how I forgot. It should be practically muscle memory at this point. Next I will forget my birthday. :~
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix
-
honey the codewitch wrote:
how to enforce operator precedence in parsing code.
You forgot what parentheses are for?
No. This isn't about constructing an expression that overrides precedence, but rather properly evaluating an expression with proper precedence.
Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix