6 lines
285 B
Plaintext
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")+) | "" }
|