From 0a2ce93a19db9774db916e7e9711b16d4ef135d7 Mon Sep 17 00:00:00 2001 From: "Benjamin J. Culkin" Date: Fri, 27 Oct 2017 23:30:14 -0300 Subject: Update grammars --- RGens/data/sample-grammars/pokeattacks.gram | 55 ++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) (limited to 'RGens/data/sample-grammars/pokeattacks.gram') diff --git a/RGens/data/sample-grammars/pokeattacks.gram b/RGens/data/sample-grammars/pokeattacks.gram index b667cc7..ad23186 100755 --- a/RGens/data/sample-grammars/pokeattacks.gram +++ b/RGens/data/sample-grammars/pokeattacks.gram @@ -1,9 +1,62 @@ -[pokeattack] [word-1] [word-1] +[pokeattack] [pokeattack-name] + +[attack-type] ( [poke-type] type) + ( [poke-type] / [poke-type] type) + +[attack-pp] [5..40] type + +pragma suffix-with [pokeattack] [move-kind] +pragma suffix-with [pokeattack] [attack-type] + +[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] [word-1] pragma suffix-with [pokeattack] [word-2] -- cgit v1.2.3