12 lines
355 B
Plaintext
12 lines
355 B
Plaintext
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;
|