From 5100a37ff71bf5d216941f237549ea6aa6595d43 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Thu, 14 Jan 2016 14:14:25 -0500 Subject: Added sample grammar files --- .../bjc/RGens/parser/sample-grammars/.DS_Store | Bin 0 -> 6148 bytes .../RGens/parser/sample-grammars/4ed&d/.DS_Store | Bin 0 -> 6148 bytes .../RGens/parser/sample-grammars/ZadronsPouch.gram | 205 ++++++++++++++++++ .../parser/sample-grammars/diabloii/RGens.jar | Bin 0 -> 1668033 bytes .../parser/sample-grammars/diabloii/diabloii.gram | 238 +++++++++++++++++++++ .../parser/sample-grammars/diabloii/diabloii.res | 100 +++++++++ .../sample-grammars/diabloii/diabloiiperish.gram | 108 ++++++++++ .../sample-grammars/diabloii/diabloiiprefixes.gram | 170 +++++++++++++++ .../sample-grammars/diabloii/diabloiisuffixes.gram | 218 +++++++++++++++++++ .../RGens/parser/sample-grammars/tarotcard.gram | 44 ++++ .../RGens/parser/sample-grammars/technobabble.gram | 28 +++ 11 files changed, 1111 insertions(+) create mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/.DS_Store create mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/4ed&d/.DS_Store create mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/ZadronsPouch.gram create mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/RGens.jar create mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloii.gram create mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloii.res create mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloiiperish.gram create mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloiiprefixes.gram create mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/diabloiisuffixes.gram create mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/tarotcard.gram create mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/technobabble.gram (limited to 'RGens') 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 new file mode 100644 index 0000000..47dc88f Binary files /dev/null and b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/.DS_Store differ 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 new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/4ed&d/.DS_Store differ 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 @@ + + + + + + + + + + + + + + bag of + sack + purse + + holding + tricks + useful items + devouring + dwarf-kind + invisible cloth + monster summoning + + lunch + recursive + + everfull + + box + cube of + + limited-force + frost-resisting + morphing + self-destructing + pandora + panicking + + card of + card + + fate + teleporting + elusive treasure + spell-storing + many-thing + imprisoning + messaging + bounty + + spheres + sphere + lens of + sphere + crystal of + crystal ball + crystal ball of + + microphonic + seeing-eye + + detection + + prison + radar + + jumping + + egg + + copper + stone + golden + white + white/pink + glass + + + + golden + onyx + serpentine + ivory + marble + bronze + jade + limestone + + lion + dog + owl + goat + elephant + warrior + palace + leprechaun + + gauntlets of + gloves of + gloves + + dexterity + power + + pushing + choking + bigby + stunning + + minature + small + tiny + sling + + + boomerang + arrow + net + catapult + hammer + sword + club + + seeking + + pebble + stone of + stone + brick of + geode + + inscribed + elemental control + + good-luck + weight + blind-defense + metal-clinging + + flying + + ioun + + rope + rope of + ball of + + trick + entangling + climbing + dancing + tripping + snaring + levitating + self-entangling + + endless + + string + yarn + + vial of + vial + bottle + flask + + holding + trapping + experience + unnatural regeneration + + ever-smoking + wheezing + blank potion + + iron + + wand + wand of + canceling wand + + magic missile + + + gusting + life-detecting + zadron + + frost + fire + lightining + fear + illumination + polymorphing + conjuration + paralyzing + + detecting + + 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 new file mode 100644 index 0000000..ce6a299 Binary files /dev/null and b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diabloii/RGens.jar differ 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 diabloii/diabloiiperish.gram +pragma load-sub-grammar diabloii/diabloiiprefixes.gram +pragma load-sub-grammar diabloii/diabloiisuffixes.gram + +pragma import-rule +# This first segment adds things to the collection + + + + + + + nothing + + + + 1 + 10 + 100 + 1000 + + coins + + copper + silver + gold + platinum + + + + and + +pragma prefix-with +pragma prefix-with + + + + + + + + + + + + + + + + + + + + + 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 + + cap + helm + mask + crown + + full + great + bone + +pragma prefix-with + + gloves + sash + boots + bracers + belt + gauntlets + girdle + + leather + chain + plate + +pragma prefix-with + + buckler + shield + shield + shield + shield + + small + large + huge + + kite + spiked + bone + tower + gothic + + dagger + throwing knife + kris + + sword + sabre + blade + scimitar + falchion + claymore + + long + broad + short + bastard + two-handed + +pragma prefix-with + + club + spiked club + mace + morning star + flail + war hammer + maul + malus + + javelin + spear + pilum + glaive + trident + pike + brandistock + + bardiche + scythe + poleax + halberd + + axe + axe + axe + axe + + small + large + giant + + throwing + broad + battle + great + + arrow(s) + bow + bow + bow + bow + + short + long + + hunter’s + composite + battle + war + + bolt(s) + crossbow + crossbow + + light + repeating + heavy + + wand + wand + torch + scepter + scepter + + bone + yew + + staff + + short + long + gnarled + composite + battle + war + +pragma prefix-with + + charm + ring + flag + orb + amulet + + + + chipped + flawed + flawless + perfect + + amethyst + diamond + emerald + ruby + sapphire + topaz + +pragma prefix-with + + 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 @@ + of + + of + + heart + brain + jawbone + eye + ear + horn + tail + fang + quill + scalp + spleen + soul + + potion + oil + herb + elixir + resin + + + light + full + detox + restoration + flaming + explosive + fulminating + 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 + + healing + mana + rejuvenation + chi + + 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 @@ + + + + + + + + + + + + + + + sturdy + fine + strong + grand + valiant + glorious + blessed + awesome + saintly + holy + godly + + 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 + + subduing + wearying + phasing + depleting + howling + chaotic + subjugating + fatiguing + exhausting + overwhelming + + fletcher’s + slayer’s + summoner’s + monk’s + angel’s + archer’s + berserker’s + necromancer’s + priest’s + arch-angel’s + + rusted + vulnerable + glass + hyena’s + frog’s + pitch + brass + tin + crystalline + weak + bent + useless + dull + clumsy + + glowing + oracular + unseen + hidden + veiled + stalking + + lizard’s + spider’s + raven’s + snake’s + serpent’s + drake’s + dragon’s + worm’s + hydra’s + devious + fortified + vulpine + + extending + chrono + augmenting + catalyzing + + blue + red + orange + white + black + tough + swift + brilliant + mighty + vibrant + forceful + resilient + silver + muscular + healthy + + bronze + iron + silver + steel + gold + platinum + mithril + meteoric + weird + + jagged + deadly + vicious + heavy + brutal + massive + savage + ruthless + merciless + + sharp + fine + warrior’s + soldier’s + knight’s + master’s + doppelganger’s + lord’s + champion’s + king’s + + 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 @@ + of + + + + + + + + + + + + + + + + + + + + + + + + health + protection + absorption + life + deflection + + thorns + spikes + blocking + + sturdiness + structure + the ages + bonding + unity + + the + + jackal + fox + jaguar + wolf + eagle + tiger + lion + mammoth + whale + colossus + + 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 + + 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 + + regeneration + regrowth + + warding + the sentinel + guarding + negation + osmosis + + the apprentice + the magus + balance + stability + harmony + + greed + chance + wealth + fortune + + light + radiance + the sun + + the thief + warmth + remedy + amelioration + defiance + purging + + craftsmanship + quality + maiming + slaying + gore + devestation + the jester + carnage + slaughter + + measure + worth + excellence + performance + + readiness + alacrity + swiftness + quickness + speed + haste + + frost + flame + shock + blight + ice + fire + lightning + venom + the glacier + burning + thunder + pestilence + vileness + the crusaders + destruction + peril + the bear + the grizzly + + the leech + the claw + the bat + blood + the talon + the vampire + the lamprey + + piercing + breaking + puncturing + smashing + bashing + + ease + simplicity + + many + plenty + + magic + + 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 @@ + + <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 -- cgit v1.2.3