You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You mention numbers "may have a fractional part", do you want this to be implemented using a divide or is the number class suppose to have a function where it self-evaluates it after lexing?
The text was updated successfully, but these errors were encountered:
If you look in src/maths_lexer.flex you see that T_NUMBER can have a decimal followed by 0 or more numbers. If you then look in include/ast/ast_primitives.hpp that a "number" is basically a double with some extra wrapping.
My interpretation of all that is a a valid number will be of the form 234 or 234. or 234.5 etc, and that the lexer / parser is happy to handle non integer values. Ie "fractional part" is represented in decimal form, I think.
You mention numbers "may have a fractional part", do you want this to be implemented using a divide or is the number class suppose to have a function where it self-evaluates it after lexing?
The text was updated successfully, but these errors were encountered: