srhickma / padd

Fast and Automatic Formatting of Context-Free Languages
Apache License 2.0
2 stars 2 forks source link

Reverse Lexer #182

Closed srhickma closed 5 years ago

srhickma commented 5 years ago

Allow the lexing direction to be specified for a CDFA region, which will determine the direction that the input is scanned. This will be particularly useful for #180. The syntax could look something like:

cdfa::forward {
 // Scan these rules forward
}

cdfa::reverse {
 // Scan these rules backward
}

cdfa {
 // Default direction is forward
}
srhickma commented 5 years ago

This could be implemented using #183

srhickma commented 5 years ago

This is no longer needed for #180, as there are simpler ways to achieve a similar lexing style, so closing for now.