From 0faa5175b6f0de8835ed514615ac64135f406b29 Mon Sep 17 00:00:00 2001 From: "Benjamin J. Culkin" Date: Tue, 29 May 2018 15:35:02 -0300 Subject: Move files out of folder --- data/sample-grammars/pokeattacks.gram | 124 ++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100755 data/sample-grammars/pokeattacks.gram (limited to 'data/sample-grammars/pokeattacks.gram') diff --git a/data/sample-grammars/pokeattacks.gram b/data/sample-grammars/pokeattacks.gram new file mode 100755 index 0000000..649f42c --- /dev/null +++ b/data/sample-grammars/pokeattacks.gram @@ -0,0 +1,124 @@ +[pokeattack] [pokeattack-name] + +[attack-type] ( [poke-type] type) + ( [poke-type] / [poke-type] type) + +[attack-pp] ( [5..40] pp ) + +pragma despace-rule [attack-type] +pragma despace-rule [attack-pp] + +pragma suffix-with [pokeattack] [move-kind] +pragma suffix-with [pokeattack] [attack-type] +pragma suffix-with [pokeattack] [attack-pp] + +[pokeattack-name] [word-1] [word-1] + [word-2] [word-2] + [word-1] [word-2] + [word-2] [word-1] + [word-1] [seperator] [word-1] + [word-2] [seperator] [word-2] + [word-1] [seperator] [word-2] + [word-2] [seperator] [word-1] + [word-1] [seperator] [word-1] + [word-2] [seperator] [word-2] + [word-1] [seperator] [word-2] + [word-2] [seperator] [word-1] + +[seperator] - + / + and + +[move-kind] (special move) + (physical move) + +[poke-type] normal + fire + fighting + water + flying + grass + poison + electric + ground + psychic + rock + ice + bug + dragon + ghost + dark + steel + fairy + +pragma initial-rule [pokeattack] +pragma export-rule [pokeattack-name] + +[word-11] [word-1] + +pragma suffix-with [word-11] [seperator] + +[word-21] [word-2] + +pragma prefix-with [word-21] [seperator] + +pragma prefix-with [pokeattack-name] [word-1] +pragma suffix-with [pokeattack-name] [word-2] + +[word-1] acid + aerial + air + ancient + aqua + aura + aurora + baton + beat + belly + blast + blaze + body + bone + comet + confuse + cotton + cross + dark + destiny + diamond + dizzy + doom + dragon + dream + dynamic + earth + egg + electric + energy + +[word-2] terrain + ball + impulse + bomb + speed + lock + wind + stinger + dance + gambit + blast + fang + punch + spin + burst + charge + wheel + blitz + cannon + drink + eye + shot + sun + slap + wrath + blade -- cgit v1.2.3