wtaysom
01/21/2021, 6:55 AMwtaysom
01/21/2021, 7:04 AMEmmanuel Oga
01/21/2021, 7:29 AMgrammar {
start = element house { room*}
room = element room { box & ((red & blue?) | (blue & red?)) }
box = elem box { "box" }
red = elem ball { "red"}
blue = elem ball { "blue" }
}
Emmanuel Oga
01/21/2021, 7:30 AMgrammar = "house" room*
room = "box" ("red ball" "blue ball"? | "blue ball" "red ball"?)
Emmanuel Oga
01/21/2021, 7:30 AMEmmanuel Oga
01/21/2021, 7:31 AMEmmanuel Oga
01/21/2021, 7:37 AMJack Rusher
01/21/2021, 8:32 AMDon Abrams
01/21/2021, 11:58 AMGarth Goldwater
01/21/2021, 2:40 PMJack Rusher
01/21/2021, 3:54 PMVijay Chakravarthy
01/21/2021, 8:41 PMwtaysom
01/22/2021, 2:22 AMRoom = "box" ("blue ball" "red ball" | Color " ball")
Then the tool would propose invalid sequences for which we have to generate error description productions. That would be neat. I suppose other perennial parsing problems are tokenizing nicely so that you can operate on higher-level constructs, and I mean once you are acting on tree-ish data rather than streams, it begins to feel like regular functional programming...bmitc
01/28/2021, 11:08 PMwtaysom
01/29/2021, 9:27 AM