Last active
December 26, 2016 10:46
-
-
Save joker314/f1eddcb66e52f7ba2cc1356aa5099332 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" This is a grammar file for the ATC #3 challenge by @MegaApuTurkUltra """ | |
if => "IF" condition result result | |
condition => result "EQUALS" result | |
| result "LESSTHAN" result | |
| result "GREATERTHAN" result | |
protect => "PROTECT" reference | |
set => "SET" reference result | |
number => -?[0-9]+ | |
reference => "@" result | |
| "*" result | |
| "EXECUTION_POINTER" | |
| "DIRECTION" | |
| "DATA1" | |
| "DATA2" | |
result => result [+-*/%] result | |
| reference | |
| number | |
| "RANDOM" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment