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
Many of the context-sensitive rules of the Julia grammar need to know whether a rule starts with an identifier.
For example, juxtaposition (implicit multiplication) work if the LHS is a number or if the RHS starts with an identifier:
2x # Ok2(x +1) # Ok. LHS is numberf()g() # Ok. RHS starts with identifier
(n -1) n # Err. there's a space between the parenthesis and `n`f(x).+(y) # Ok. Not a juxtaposition of function calls, but a binary expression
Another example are quotations:
:foo# Ok
: bar # Err
Currently, the scanner implements rules to check if there's an immediate opening brace/bracket/parenthesis. There's should be an similar rule for identifers and operators.
This requires being able to check unicode categories in the scanner.
The text was updated successfully, but these errors were encountered:
Many of the context-sensitive rules of the Julia grammar need to know whether a rule starts with an identifier.
For example, juxtaposition (implicit multiplication) work if the LHS is a number or if the RHS starts with an identifier:
Another example are quotations:
Currently, the scanner implements rules to check if there's an immediate opening brace/bracket/parenthesis. There's should be an similar rule for identifers and operators.
This requires being able to check unicode categories in the scanner.
The text was updated successfully, but these errors were encountered: