dancing_droids/conf.pest
Volodymyr Patuta 4414478771 working 0.3.0
2020-11-08 20:54:59 +01:00

6 lines
285 B
Plaintext

World = { HeaderWorld ~ NEWLINE+ ~ Robot+ }
HeaderWorld = { ASCII_DIGIT+ ~ " " ~ ASCII_DIGIT+ }
Robot = { HeaderRobot ~ NEWLINE ~ Instructions ~ NEWLINE+ }
HeaderRobot = { ASCII_DIGIT+ ~ " " ~ ASCII_DIGIT+ ~ " " ~ ("S" | "N" | "W" | "E") }
Instructions = { (("F" | "L" | "R")+) | "" }