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
While using multiple conditions, the lexer does not notice the error.
Broken code: (cpu > max_cpu | cpu < min_cpu)
Working code: ((cpu > max_cpu) | (cpu < min_cpu))
The text was updated successfully, but these errors were encountered:
for reference: Lexer splits raw text into a list of tokens Token((), ID(cpu), Token(>), ID(max_cpu), Token(|), ID(cpu), Token(<), ID(min_cpu), Token())
Here issue related to Parser (which transforms list of tokens into AST (asbtract syntax tree)).
As i understand, expected parser behavior is:
@andreypfau
andreypfau on Aug 7, 2023
Member
for reference: Lexer splits raw text into a list of tokens Token((), ID(cpu), Token(>), ID(max_cpu), Token(|), ID(cpu), Token(<), ID(min_cpu), Token())
Here issue related to Parser (which transforms list of tokens into AST (asbtract syntax tree)).
As i understand, expected parser behavior is:
While using multiple conditions, the lexer does not notice the error.
Broken code:
(cpu > max_cpu | cpu < min_cpu)
Working code:
((cpu > max_cpu) | (cpu < min_cpu))
The text was updated successfully, but these errors were encountered: