This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module TestRecovery | |
extend lang::pico::\syntax::Main; | |
import util::IDE; | |
import ParseTree; | |
import IO; | |
public map[Production robust, CharClass lookaheads] robust | |
= (p:[range(10,10),range(59,59)] | /p:prod(label(_,sort("Statement")),_,_) := #Statement) | |
+ (p:[range(10,10),range(59,59),range(44,44)] | /p:prod(label(_,sort("IdType")),_,_) := #IdType); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@doc{an alternative to Offside.rsc which directly uses * lists instead of manual recursion} | |
module ListOffside | |
import IO; | |
start syntax Program = program: Def*; | |
lexical Id = [a-z]+; | |
syntax Def |
NewerOlder