-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I think the following grammar will produce a right-leaning syntax tree.
EXPR = START, END
START = GROUP | LIT
END = "-", EXPR | NOTHINGe.g., in your example in Main, 1-1-1-1 is parsed into Success (Sub (Lit 1) (Sub (Lit 1) (Sub (Lit 1) (Lit 1)))), but it should be Success (Sub (Sub (Sub (Lit 1) (Lit 1)) (Lit 1)) (Lit 1))
glebec and brianberns
Metadata
Metadata
Assignees
Labels
No labels