3
0
This repository has been archived on 2022-01-17. You can view files and clone it, but cannot push or open issues or pull requests.
recipes-parser/test-grammars/tokens

12 lines
355 B
Plaintext
Raw Normal View History

token cr = /\n/;
token eq = /=/;
token space = /[ \t]+/;
token recipiename = /@[a-zA-Z0-9\.\-]+/;
token actionname = /(build|version|depends)/;
token actionvalue = /"[a-zA-Z0-9 \-_]+"/;
rule document = recipe cr document | recipe | cr;
rule recipe = recipiename cr myrules;
rule myrules = myrule cr myrules | cr;
rule myrule = actionname eq actionvalue;