This commit is contained in:
2018-10-27 01:56:42 -04:00
commit 78e38cbca6
352 changed files with 106022 additions and 0 deletions

22
sample.ret Normal file
View File

@@ -0,0 +1,22 @@
UNARY = ';1;\0' => {
~ 'Conversion step: \0'
/(.*);(.*);(.*)0/ ::= '\1;\2\2;\3'
/(.*);(.*);(.*)1/ ::= '\1\2;\2\2;\3'
/(.*);(.*);$/ ::= '\1'
}
FIZZ = UNARY => /(.{3})*/ ::= ~ 'fizz'
BUZZ = UNARY => /(.{5})*/ ::= ~ 'buzz'
FIZZBUZZ = UNARY => /(.{15})*/ ::= ~ 'fizzbuzz'
FIZZ_BUZZ = [
FIZZBUZZ
FIZZ
BUZZ
~ '\0'
]
':::' => FIZZ_BUZZ