This repository has been archived on 2026-05-22. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pythue/sample.ret
2018-10-28 02:28:22 -04:00

23 lines
375 B
Plaintext

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