zyxw59 / rssc

Rust rewrite of zyxw59/soundchanger and zyxw59/conlang
MIT License
0 stars 0 forks source link

Define grammar for rule files #4

Closed zyxw59 closed 6 years ago

zyxw59 commented 6 years ago

Currently, src/rssc.lalrpop just defines the syntax for regular expressions, but not syntax for:

zyxw59 commented 6 years ago

The syntax for the first two items should stay mostly the same as in previous versions to make transferring old files over as easy as possible:

That said, there's still some room for extensions to this syntax, such as rules with multiple environments joined with arbitrary logical operators, as well as new syntaxes that need to be defined, such as token declarations (a new feature for this version) and possibly features like macros.

zyxw59 commented 6 years ago

Also, I'd like to move away from using LALRPOP (see #3), but the syntax it provides can be useful for defining the grammar.