New answers tagged

1

"foo" [foo] (a + b) <a>...</a> { stuff; } /* comments and stuff */ - these tend not to have a well known name as a group. Each has its own well known name though, often used as an adjective (quoted foo, bracketed foo, tagged foo, etc). # // -- - these are simply single line comments or rarely line modifiers. The token doesn't need to be at the ...


1

Most combinators allow some exclusion sort of parser: "accept all characters except \" It then becomes pretty straight-forward to make something where your start/end are one parser and "everything else" is another, combined within zero-or-more(either()) sort of construct. Where it might fall down is if you require the start/end symbols to be nested. Once ...


Top 50 recent answers are included