diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-01-14 14:14:25 -0500 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-01-14 14:14:25 -0500 |
| commit | 5100a37ff71bf5d216941f237549ea6aa6595d43 (patch) | |
| tree | aefbe1625504e2f39baff004099f60b47929cebe /RGens | |
| parent | 90708215a1b85f90738628260e822aa5eade3f56 (diff) | |
Added sample grammar files
Diffstat (limited to 'RGens')
11 files changed, 1111 insertions, 0 deletions
diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/.DS_Store b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/.DS_Store Binary files differnew file mode 100644 index 0000000..47dc88f --- /dev/null +++ b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/.DS_Store diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/4ed&d/.DS_Store b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/4ed&d/.DS_Store Binary files differnew file mode 100644 index 0000000..5008ddf --- /dev/null +++ b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/4ed&d/.DS_Store diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/ZadronsPouch.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/ZadronsPouch.gram new file mode 100644 index 0000000..2e19182 --- /dev/null +++ b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/ZadronsPouch.gram @@ -0,0 +1,205 @@ +<item> <egg> + <glove> + <crys-sphere> + <rock> + <figurine> + <vial> + <mini-weapon> + <bag> + <card> + <rope> + <box> + <wand> + +<bag> bag of <bag-type> + <sack-type> sack + <purse-type> purse + +<bag-type> holding + tricks + useful items + devouring + dwarf-kind + invisible cloth + monster summoning + +<sack-type> lunch + recursive + +<purse-type> everfull + +<box> <box-type> box + cube of <box-type> + +<box-type> limited-force + frost-resisting + morphing + self-destructing + pandora + panicking + +<card> card of <card-type> + <card-type> card + +<card-type> fate + teleporting + elusive treasure + spell-storing + many-thing + imprisoning + messaging + bounty + +<crys-sphere> <sphere-type> spheres + <sphere-type> sphere + lens of <lens-type> + <crystal-type> sphere + crystal of <crystal-type> + crystal ball + crystal ball of <crys-suffix> + +<sphere-type> microphonic + seeing-eye + +<lens-type> detection + +<crystal-type> prison + radar + +<crys-suffix> jumping + +<egg> <egg-type> egg + +<egg-type> copper + stone + golden + white + white/pink + glass + +<figurine> <fig-material> <fig-animal> + +<fig-material> golden + onyx + serpentine + ivory + marble + bronze + jade + limestone + +<fig-animal> lion + dog + owl + goat + elephant + warrior + palace + leprechaun + +<glove> gauntlets of <gauntlet-type> + gloves of <glove-type> + <glove-type> gloves + +<gauntlet-type> dexterity + power + +<glove-type> pushing + choking + bigby + stunning + +<mini-weapon> minature <weapon-type> + small <weapon-type> + tiny <weapon-type> + <sling-type> sling + <weapon-type> + +<weapon-type> boomerang + arrow + net + catapult + hammer + sword + club + +<sling-type> seeking + +<rock> <pebble-type> pebble + stone of <stone-type> + <stone-type> stone + brick of <brick-type> + <geode-type> geode + +<pebble-type> inscribed + elemental control + +<stone-type> good-luck + weight + blind-defense + metal-clinging + +<brick-type> flying + +<geode-type> ioun + +<rope> <rope-type> rope + rope of <rope-type> + ball of <string-type> <string-kind> + +<rope-type> trick + entangling + climbing + dancing + tripping + snaring + levitating + self-entangling + +<string-type> endless + +<string-kind> string + yarn + +<vial> vial of <vial-type> + <vial-type> vial + <bottle-type> bottle + <flask-type> flask + +<vial-type> holding + trapping + experience + unnatural regeneration + +<bottle-type> ever-smoking + wheezing + blank potion + +<flask-type> iron + +<wand> <wand-type> wand + wand of <wand-type> + canceling <wand-type> wand + +<wand-type> magic missile + <spell-1> + <spell-2> + gusting + life-detecting + zadron + +<spell-1> frost + fire + lightining + fear + illumination + polymorphing + conjuration + paralyzing + +<spell2> <spell2-type> detecting + +<spell2-type> magic + enemy + secret door/trap + diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/RGens.jar b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/RGens.jar Binary files differnew file mode 100644 index 0000000..ce6a299 --- /dev/null +++ b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/RGens.jar diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloii.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloii.gram new file mode 100644 index 0000000..5018377 --- /dev/null +++ b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloii.gram @@ -0,0 +1,238 @@ +# Load other files +pragma load-sub-grammar <perishables> diabloii/diabloiiperish.gram +pragma load-sub-grammar <prefix> diabloii/diabloiiprefixes.gram +pragma load-sub-grammar <suffix> diabloii/diabloiisuffixes.gram + +pragma import-rule <suffix-act> <suffix> +# This first segment adds things to the collection + +<base-treasure> <item> + <non-item> + +<non-item> <money> + <money> + nothing + +<money> <amount> <money-type> + +<amount> 1 + 10 + 100 + 1000 + +<money-type> <metal-type> coins + +<metal-type> copper + silver + gold + platinum + +<item> <item-act> + <item-act> <suffix> + <item-act> <suffix> and <suffix-act> + +pragma prefix-with <item> <prefix> +pragma prefix-with <item> <prefix> + +<item-act> <armor> + <headgear> + <accoutrements> + <shields> + <knives> + <swords> + <clubs> + <spears> + <polearms> + <axes> + <bows> + <crossbows> + <wands> + <staves> + <accessories> + <gems> + <inscriptions> + <perishables> + +<armor> cape + rags + cloak + robe + quilted armor + leather armor + hard leather armor + studded leather armor + ring mail + scale mail + chainmail + breast plate + light plate + splint mail + plate mail + field plate + ancient armor + gothic plate + full plate mail + +<headgear> cap + helm + mask + crown + +<headgear-kind> full + great + bone + +pragma prefix-with <headgear> <headgear-kind> + +<accoutrements> gloves + sash + boots + bracers + belt + gauntlets + girdle + +<acc-kind> leather + chain + plate + +pragma prefix-with <accoutrements> <acc-kind> + +<shields> buckler + shield + <shield-size> shield + <shield-type> shield + <shield-size> <shield-type> shield + +<shield-size> small + large + huge + +<shield-type> kite + spiked + bone + tower + gothic + +<knives> dagger + throwing knife + kris + +<swords> sword + sabre + blade + scimitar + falchion + claymore + +<sword-kind> long + broad + short + bastard + two-handed + +pragma prefix-with <swords> <sword-kind> + +<clubs> club + spiked club + mace + morning star + flail + war hammer + maul + malus + +<spears> javelin + spear + pilum + glaive + trident + pike + brandistock + +<polearms> bardiche + scythe + poleax + halberd + +<axes> axe + <axe-size> axe + <axe-type> axe + <axe-size> <axe-type> axe + +<axe-size> small + large + giant + +<axe-type> throwing + broad + battle + great + +<bows> <amount> arrow(s) + bow + <bow-size> bow + <bow-type> bow + <bow-size> <bow-type> bow + +<bow-size> short + long + +<bow-type> hunter’s + composite + battle + war + +<crossbows> <amount> bolt(s) + crossbow + <crossbow-type> crossbow + +<crossbow-type> light + repeating + heavy + +<wands> wand + <wand-type> wand + torch + scepter + <wand-type> scepter + +<wand-type> bone + yew + +<staves> staff + +<staff-type> short + long + gnarled + composite + battle + war + +pragma prefix-with <staves> <staff-type> + +<accessories> charm + ring + flag + orb + amulet + +<gems> <gem-type> + +<gem-quality> chipped + flawed + flawless + perfect + +<gem-type> amethyst + diamond + emerald + ruby + sapphire + topaz + +pragma prefix-with <gems> <gem-quality> + +<inscriptions> scroll + rune + book
\ No newline at end of file diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloii.res b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloii.res new file mode 100644 index 0000000..06a69ee --- /dev/null +++ b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloii.res @@ -0,0 +1,100 @@ +nothing +1 copper coins +100 gold coins +knight’s heavy tower shield +1 silver coins +kite shield +nothing +1 platinum coins +nothing +nothing +augmenting bountiful small axe of of the mind and of puncturing +vulpine scroll of of the sun +nothing +1000 platinum coins +vulpine brandistock of of breaking +nothing +nothing +1 gold coins +1000 copper coins +nothing +fine long war bow of of slaying and of guarding +nothing +soldier’s bountiful staff of of spikes and of the jaguar +useless crysolite crown +10 copper coins +1000 silver coins +jester’s buckler +nothing +mighty massive spleen of omniscient +girdle of of ease +overwhelming tail of rejuvenation of of thorns and of deflection +100 copper coins +tough crossbow +1000 copper coins +drake’s long bow of of the bat +100 platinum coins +10 silver coins +10 platinum coins +1000 platinum coins +10 platinum coins +bronze buckler of of protection +nothing +vulnerable mask +nothing +nothing +plentiful bountiful bone mask +10 gold coins +1000 copper coins +1 copper coins +hidden slayer’s throwing knife of of simplicity +javelin of of regeneration +nothing +fine light crossbow of of thorns and of the leech +jasmine helm of of spikes +devious red mace +cloak of of the bat +10 copper coins +10 copper coins +iron jester’s staff of of smashing and of bashing +jester’s extending chipped emerald of of the lion and of absorption +10 gold coins +100 copper coins +10 silver coins +nothing +king’s cap of of the wolf +burgundy heavy crossbow +dagger of of the talon and of craftsmanship +veiled emerald of of structure +10 gold coins +1 gold coins +fletcher’s gold long staff +extending heavy crossbow of of blight and of the thief +10 platinum coins +gold vicious repeating crossbow of of the night +nothing +100 silver coins +10 silver coins +1 silver coins +spider’s buckler of of slaughter +100 copper coins +large spiked shield of of the sun and of haste +nothing +nothing +nothing +1000 bolt(s) of of measure +veiled 100 bolt(s) +fletcher’s howling sharpness oil +1 gold coins +10 gold coins +composite bow +drake’s flawless diamond of of fortune and of thorns +rusted bracers +subjugating scroll +ebony great crown of of plenty and of fortune +necromancer’s bracers of of fortune +1000 gold coins +nothing +oracular 100 bolt(s) of of health +snake’s great crown of of the eagle +archer’s jawbone of arcane of of the jester diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloiiperish.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloiiperish.gram new file mode 100644 index 0000000..6f641d3 --- /dev/null +++ b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloiiperish.gram @@ -0,0 +1,108 @@ +<perishables> <perishable-type> of <perishable-effect> + <perishable-effect> <perishable-type> + <bodypart> of <perishable-effect> + +<bodypart> heart + brain + jawbone + eye + ear + horn + tail + fang + quill + scalp + spleen + soul + +<perishable-type> potion + oil + herb + elixir + resin + +<perishable-effect> <restore-effect> + light <restore-effect> + full <restore-effect> + detox + restoration + flaming + explosive + fulminating + <gas-type> gas + acidic + energizing + strengthening + empowering + artful + skillful + adroit + sturdy + hardy + robust + sage + shrewd + vivid + indigo + cerulean + russet + vermillion + crackling + forked + swart + atramentous + vital + enduring + urgent + fleet + brisk + swift + dazzling + fascinating + bright + solar + omniscient + mystical + arcane + strength + dexterity + vitality + intelligence + chi + spectral + fire + ice + lightning + magic + psionic + poison + energy + accuracy + damage + defense + life + power + accuracy + precision + mastery + sharpness + pain + savagery + death + hardening + imperviousness + immunity + skill + fortitude + blacksmith’s + permanence + enchantment + +<restore-effect> healing + mana + rejuvenation + chi + +<gas-type> rancid + choking + strangling
\ No newline at end of file diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloiiprefixes.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloiiprefixes.gram new file mode 100644 index 0000000..d551af2 --- /dev/null +++ b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloiiprefixes.gram @@ -0,0 +1,170 @@ +<prefix> <armor-class> + <saving-throw> + <foe-reaction> + <skill-improve> + <cursed> + <visibility> + <castability> + <magical-effect> + <personal-stat> + <to-hit> + <extra-damage> + <to-hit+damage> + <item-charges> + +<armor-class> sturdy + fine + strong + grand + valiant + glorious + blessed + awesome + saintly + holy + godly + +<saving-throw> tawny + azure + crimson + ocher + pearl + beryl + coal + jasmine + lapis + burgundy + tangerine + ivory + jade + jet + pyrite + cobalt + garnet + coral + crystal + viridian + ebony + crysolite + sapphire + ruby + amber + diamond + emerald + obsidian + topaz + prismatic + +<foe-reaction> subduing + wearying + phasing + depleting + howling + chaotic + subjugating + fatiguing + exhausting + overwhelming + +<skill-improve> fletcher’s + slayer’s + summoner’s + monk’s + angel’s + archer’s + berserker’s + necromancer’s + priest’s + arch-angel’s + +<cursed> rusted + vulnerable + glass + hyena’s + frog’s + pitch + brass + tin + crystalline + weak + bent + useless + dull + clumsy + +<visibility> glowing + oracular + unseen + hidden + veiled + stalking + +<castability> lizard’s + spider’s + raven’s + snake’s + serpent’s + drake’s + dragon’s + worm’s + hydra’s + devious + fortified + vulpine + +<magical-effect> extending + chrono + augmenting + catalyzing + +<personal-stat> blue + red + orange + white + black + tough + swift + brilliant + mighty + vibrant + forceful + resilient + silver + muscular + healthy + +<to-hit> bronze + iron + silver + steel + gold + platinum + mithril + meteoric + weird + +<extra-damage> jagged + deadly + vicious + heavy + brutal + massive + savage + ruthless + merciless + +<to-hit+damage> sharp + fine + warrior’s + soldier’s + knight’s + master’s + doppelganger’s + lord’s + champion’s + king’s + +<item-charges> plentiful + jester’s + bountiful +
\ No newline at end of file diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloiisuffixes.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloiisuffixes.gram new file mode 100644 index 0000000..2d051fc --- /dev/null +++ b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloiisuffixes.gram @@ -0,0 +1,218 @@ +<suffix> of <suffix-act> + +<suffix-act> <damage-reduction> + <defense-effect> + <durability> + <hitpoints> + <ability-scores> + <cursed> + <recovery> + <memorization> + <combat-action> + <treasure-finder> + <light-source> + <hazard-reduction> + <damage-increase> + <min-damage> + <attack-speed> + <attack-effect> + <attack-restore> + <item-damage> + <weapon-proficency> + <weapon-use> + <spell-casting> + +<damage-reduction> health + protection + absorption + life + deflection + +<defense-effect> thorns + spikes + blocking + +<durability> sturdiness + structure + the ages + bonding + unity + +<hitpoints> the <hitpoints-act> + +<hitpoints-act> jackal + fox + jaguar + wolf + eagle + tiger + lion + mammoth + whale + colossus + +<ability-scores> vitality + dexterity + magic + strength + the lynx + zest + skill + the mind + might + the leopard + vim + accuracy + brilliance + power + the jaguar + vigor + precision + sorcery + the giant + the tiger + life + perfection + wizardry + the titan + the lion + the sky + the moon + the stars + the heavens + the zodiac + +<cursed> tears + pain + brittleness + decay + fragility + the vulture + disease + atrophy + dyslexia + weakness + the cat + the pit + illness + paralysis + draining + frailty + the rat + trouble + pox + corruption + infection + ruin + the exposed + discord + the night + the dark + the void + passivity + snail + fool + +<recovery> regeneration + regrowth + +<memorization> warding + the sentinel + guarding + negation + osmosis + +<combat-action> the apprentice + the magus + balance + stability + harmony + +<treasure-finder> greed + chance + wealth + fortune + +<light-source> light + radiance + the sun + +<hazard-reduction> the thief + warmth + remedy + amelioration + defiance + purging + +<damage-increase> craftsmanship + quality + maiming + slaying + gore + devestation + the jester + carnage + slaughter + +<min-damage> measure + worth + excellence + performance + +<attack-speed> readiness + alacrity + swiftness + quickness + speed + haste + +<attack-effect> frost + flame + shock + blight + ice + fire + lightning + venom + the glacier + burning + thunder + pestilence + vileness + the crusaders + destruction + peril + the bear + the grizzly + +<attack-restore> the leech + the claw + the bat + blood + the talon + the vampire + the lamprey + +<item-damage> piercing + breaking + puncturing + smashing + bashing + +<weapon-proficency> ease + simplicity + +<weapon-use> many + plenty + +<spell-casting> <spell-number> magic + +<spell-number> 1st + 2nd + 3rd + 4th + 5th + 6th + 7th + 8th + 9th
\ No newline at end of file diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/tarotcard.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/tarotcard.gram new file mode 100644 index 0000000..4a203fc --- /dev/null +++ b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/tarotcard.gram @@ -0,0 +1,44 @@ +<card> <title> + <noun> + <title> <adjective> + <noun> <adjective> + <title> <adjective> <noun> + +<title> <male-title> + <female-title> + +<male-title> emperor + king + knight + priest + +<female-title> empress + queen + princess + priestess + +<adjective> of <adjective-of> + +<adjective-of> shimmering + blazing + infinite + whispering + frozen + hidden + magical + quiet + dancing + lost + +<noun> darkness + light + waters + stars + hills + rainbows + forests + fire + moons + winds + hearts + spirits
\ No newline at end of file diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/technobabble.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/technobabble.gram new file mode 100644 index 0000000..28c6697 --- /dev/null +++ b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/technobabble.gram @@ -0,0 +1,28 @@ +<main> <part-prefix> <part-suffix> <part-problem> + +<part-prefix> primary + compression + grav + hydraulic + reg + power + +<part-suffix> boot + coupling + housing + stabilizer + vent + lines + converter + feed + +<part-problem> cracked + wedged + collapsed + bent + fell off + shattered + seized + jammed + burnt + exploded
\ No newline at end of file |
