From 3b07acb43c5f865c65094ae891f5a2dc791c8088 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Tue, 7 Feb 2017 10:32:57 -0500 Subject: Update --- RGens/src/main/java/bjc/RGens/parser/.DS_Store | Bin 6148 -> 6148 bytes .../java/bjc/RGens/parser/GrammarReaderApp.java | 1 - .../bjc/RGens/parser/sample-grammars/.DS_Store | Bin 6148 -> 0 bytes .../bjc/RGens/parser/sample-grammars/24hr-rpg.gram | 204 -------- .../bjc/RGens/parser/sample-grammars/anime.gram | 97 ---- .../RGens/parser/sample-grammars/art-objects.gram | 93 ---- .../RGens/parser/sample-grammars/awe-names.gram | 39 -- .../bjc/RGens/parser/sample-grammars/college.gram | 515 --------------------- .../parser/sample-grammars/diablo-ii/.DS_Store | Bin 6148 -> 0 bytes .../parser/sample-grammars/diablo-ii/diabloii.gram | 46 -- .../sample-grammars/diablo-ii/diabloiiitems.gram | 202 -------- .../sample-grammars/diablo-ii/diabloiiperish.gram | 108 ----- .../diablo-ii/diabloiiprefixes.gram | 171 ------- .../diablo-ii/diabloiisuffixes.gram | 216 --------- .../parser/sample-grammars/dungeon-enviroment.gram | 140 ------ .../parser/sample-grammars/fantasy-locations.gram | 231 --------- .../parser/sample-grammars/genre-fiction.gram | 164 ------- .../bjc/RGens/parser/sample-grammars/horror.gram | 33 -- .../bjc/RGens/parser/sample-grammars/insults.gram | 156 ------- .../RGens/parser/sample-grammars/martial-arts.gram | 39 -- .../bjc/RGens/parser/sample-grammars/mary-sue.gram | 494 -------------------- .../bjc/RGens/parser/sample-grammars/mission.gram | 461 ------------------ .../parser/sample-grammars/part-creature.gram | 77 --- .../RGens/parser/sample-grammars/pokeattacks.gram | 70 --- .../bjc/RGens/parser/sample-grammars/rune.gram | 109 ----- .../RGens/parser/sample-grammars/superhero.gram | 142 ------ .../RGens/parser/sample-grammars/tarotcard.gram | 49 -- .../RGens/parser/sample-grammars/technobabble.gram | 32 -- .../parser/sample-grammars/zadrons-pouch.gram | 213 --------- .../main/java/bjc/RGens/server/GrammarServer.java | 239 ++++++++-- .../main/java/bjc/RGens/server/ReaderState.java | 3 - .../java/bjc/RGens/server/ServerGrammarReader.java | 1 - 32 files changed, 192 insertions(+), 4153 deletions(-) delete mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/.DS_Store delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/24hr-rpg.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/anime.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/art-objects.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/awe-names.gram delete mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/college.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/.DS_Store delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloii.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiiitems.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiiperish.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiiprefixes.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiisuffixes.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/dungeon-enviroment.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/fantasy-locations.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/genre-fiction.gram delete mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/horror.gram delete mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/insults.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/martial-arts.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/mary-sue.gram delete mode 100644 RGens/src/main/java/bjc/RGens/parser/sample-grammars/mission.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/part-creature.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/pokeattacks.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/rune.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/superhero.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/tarotcard.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/technobabble.gram delete mode 100755 RGens/src/main/java/bjc/RGens/parser/sample-grammars/zadrons-pouch.gram (limited to 'RGens/src/main/java') diff --git a/RGens/src/main/java/bjc/RGens/parser/.DS_Store b/RGens/src/main/java/bjc/RGens/parser/.DS_Store index 0f90c6a..5008ddf 100644 Binary files a/RGens/src/main/java/bjc/RGens/parser/.DS_Store and b/RGens/src/main/java/bjc/RGens/parser/.DS_Store differ diff --git a/RGens/src/main/java/bjc/RGens/parser/GrammarReaderApp.java b/RGens/src/main/java/bjc/RGens/parser/GrammarReaderApp.java index 1939c5e..6a7eb26 100644 --- a/RGens/src/main/java/bjc/RGens/parser/GrammarReaderApp.java +++ b/RGens/src/main/java/bjc/RGens/parser/GrammarReaderApp.java @@ -40,7 +40,6 @@ public class GrammarReaderApp { doSingleFile(); } - @SuppressWarnings("null") private static void doSingleFile() { File gramFile = SimpleFileDialog.getOpenFile(null, "Choose Grammar File", ".gram"); 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 deleted file mode 100644 index db7be62..0000000 Binary files a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/.DS_Store and /dev/null differ diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/24hr-rpg.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/24hr-rpg.gram deleted file mode 100755 index 344d9a8..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/24hr-rpg.gram +++ /dev/null @@ -1,204 +0,0 @@ -[rpg] [rpg-part] , [rpg-part] and [rpg-part] - [rpg-part] and [rpg-part] - [rpg-part] the [rpg-part] - -pragma initial-rule [rpg] - -[rpg-part] tits - teeth - claws - fluff - crunch - tools - guns - treachery - post-apocalyptic - underwater - terror - fast food - military - fortress - pirates - metalhead - genies - insects - environmentalism - voodoo - pitchforks - inventors - bomb technicians - zombies - vampires - the 70s - ninjas - cards - rebellion - cannibals - beast men - dancing - monty python - energy crisis - orchestra - summer - trolls - medical - time manipulation - hitchhiking - meteors - the meaning of life - literary figures - wrestlers - tournament - imaginary friends - world leaders - exploration - fish - gods - trading - rap battles - creation - blurring boundaries - animals - bounty hunters - organized crime - high school - cybernetics - aliens - contemporary world - urban fantasy - nazis - robots - surfers - gentlemen - haberdashery - zeppelins - demons - rapscallions - memory loss - repetition - martial arts - conquistadors - winter - mummies - orcs - reinterpreted myths - machinery - harmony - motorcycles - horses - limited time - ancient - sleepovers - submarines - ambition - colors - marshmallows - the 90s - neckbeards - unicorns - clothing - hunting - world war I - trees - magical girls - gameshow - dragons - recursion - musicians - construction - plants - cats - drugs - surgery - politics - cartoons - athletics - disease - computers - cowboys - cars - cooking - samurai - spaceships - dinosaurs - candy - krakens - chainsaws - fists - crowbars - lava - elf - emperor - loch ness monster - knights - celebrities - video games - elves - the 2000s - rush hour traffic - spandex - stand-up comedy - nano-machines - mutation - dice - soft drinks - labyrinth - totalitarianism - prostitutes - cell phones - death - the line at the DMV - office - mars - the sun - survival - autumn - portals - world war II - the internet - brewing - alternate universe - tanks - jewelry - marketplace - dungeon building - business - coins - crustaceans - plumbing - parasites - rockets - electricity - speed - reincarnation - theatrics - storm chasers - curiosity - horror - tragedy - big damn heroes - SCIENCE! - transhumanism - spring - scandal - desert - laboratory - hipsters - obscure - dwarves - outer space - trains - religion - espionage - small scale - unicycles - airplanes - werewolves - fashion - JUSTICE! - suburbs - art - skies - madness - economy - the 60s diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/anime.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/anime.gram deleted file mode 100755 index 0cc21d8..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/anime.gram +++ /dev/null @@ -1,97 +0,0 @@ -[anime-name] [anime-two-name] - [anime-three-name] - -pragma initial-rule [anime-name] -pragma export-rule [anime-name] - -[anime-two-name] [anime-first-name] [anime-third-name] - [anime-second-name] [anime-third-name] - -[anime-three-name] [anime-first-name] [anime-first-name] - [anime-first-name] [anime-second-name] - [anime-second-name] [anime-first-name] - [anime-second-name] [anime-second-name] - -pragma suffix-with [anime-name] [anime-third-name] - -[anime-first-name] Vampire - Cat - Death - Mermaid - Infinite - Quantum - Endless - Bravo - Magical - Neon - Omega - Robo - Gothic - Peach - Ghost - Rhinestone - Mini - Blood - Bubblegum - Tokyo - Lucky - Soul - Cowboy - Awkward - Lucid - Space - -[anime-second-name] Princess - Planet - Blade - Bride - Squad - Soldier - Waitress - Handkerchief - Goddess - Sushi - Star - Moon - Zombie - Banana - Dragon - Rocket - Fist - Chef - Robot - Psychic - Boogie - Power - Hamster - Tennis - Ballerina - Blackout - Phantom - -[anime-third-name] Forever - Detectives - Memories - Outlaw - Chaos - Go! - Overture - 9000 - Super! - Zero - Genesis - Eternal - X - Revolution - Cowboy - Academy - Jellyfish - Club - Girl - Hunter - Arcade - Fantasy - Ultimate - Sudoku - Alchemy - Champion diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/art-objects.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/art-objects.gram deleted file mode 100755 index 0a97edb..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/art-objects.gram +++ /dev/null @@ -1,93 +0,0 @@ -[treasure] [gemstones] - [art-object] - [art-object] as well as [gemstones] - [gemstones] as well as [art-object] - -pragma initial-rule [treasure] - -[art-object] [common-art] - [uncommon-art] - [rare-art] - [legendary-art] - [epic-art] - [mythic-art] - -[gemstones] [common-gem] - [rare-gem] - [legendary-gem] - [epic-gem] - -[common-gem] amber - amethyst - garnet - moonstone - jade - pearl - peridot - turquoise - -[rare-gem] alexandrite - aquamarine - black pearl - topaz - -[legendary-gem] emerald - fire opal - sapphire - -[epic-gem] diamond - jacinth - ruby - -[common-art] gold ring with [common-gem] - bone/ivory statuette - gold bracelet - silver necklace - bronze crown - silver-plated sword - silk robe - -[uncommon-art] gold ring with [legendary-gem] - gold/silver necklace - gold bracelet studded with [rare-gem] - gold necklace adorned with [common-gem] - silver tiara/crown decorated with [common-gem] - ivory comb with embedded [rare-gem] - gold vestments - -[rare-art] gold/platinum ring with [legendary-gem] - gold/silver statuette adorned with [rare-gem] - gold necklace adorned with [rare-gem] - gold crown with [rare-gem] - gold chalice dusted with [common-gem] - ceremonial gold chest-plate - enormous [common-gem] - -[legendary-art] platinum ring with [epic-gem] - gold statuette with [legendary-gem] - mithral necklace with [legendary-gem] - adamantine crown with many [legendary-gem] - adamantine box containing [art-element] - black tunic woven of pure [art-element] - enormous [rare-gem] - -[epic-art] mithral ring with an astral diamond - gold statuette with eyes of [epic-gem] - gold necklace adorned with [epic-gem] - mithral tiara studded with [epic-gem] - cup of celestial cold that glows with inner light - silvery cloak of astral thread - enormous [legendary-gem] - -[mythic-art] bracelet formed of cold elemental [art-element] - gown woven of elemental [art-element] - brass ring with bound elemental [art-element] - celestial gold statuette with astral diamonds - royal attire of astral thread loaded with [epic-gem] - enormous [epic-gem] - -[art-element] shadow - lightning - flame - fire - water diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/awe-names.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/awe-names.gram deleted file mode 100755 index 5ecc898..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/awe-names.gram +++ /dev/null @@ -1,39 +0,0 @@ -[name] [part] - [part] [part] - -pragma initial-rule [name] - -[part] battle - blade - blast - blood - claw - cold - cyber - dark - death - far - fire - force - hammer - hunt - ice - max - over - pain - shard - shot - siege - spike - star - storm - strike - stroke - sun - sword - ultra - war - wave - whip - wild - wolf diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/college.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/college.gram deleted file mode 100644 index f1bee8e..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/college.gram +++ /dev/null @@ -1,515 +0,0 @@ -[college-announcement] next [course-time] , [university] will offer ' [college-course] ' - the [university] class ' [college-course] ' has been cancelled due to lack of interest - starting next year, incoming freshmen at [university] will be required to take ' [college-course] ' - ' [college-course] ' will no longer be offered at [university] due to lack of interest - ' [college-course] ' is the most popular [course-level] class at [university] - due to overwhelming popularity, an additional section of ' [college-course] ' will be offered at [university] next semester - not one single student signed up for [university] 's ' [college-course ' last semester - a [poll] of students at [university] revealed ' [college-course] ' is the [popular] popular [class-type] offered - -pragma initial-rule [college-announcement] - -[course-time] fall - year - semester - -[course-level] graduate - undergraduate - freshmen - liberal arts - -[poll] poll - survey - -[popular] least - most - -[class-type] class - course - -pragma range-rule [past-years] 1800 1970 - -[college-course] [course-adj] [course-noun] [course-suffix] - [course-adj] [course-noun] : [course-ending] - [course-adj] [course-noun] and [course-adj] [course-noun] [course-suffix] - [course-noun] and [course-noun] [course-suffix] - [course-group1] [course-group2] [course-life] [course-suffix] - [course-group2] [course-noun] [course-life] [course-suffix] - [course-group1] [course-group2] [course-life] since [past-years] - [course-group2] [course-life] : [course-ending] - contemporary [course-group2] [course-life] and [course-life] - contemporary [course-group2] [course-life] : [course-ending] - transforming the [course-group1] [course-group2] experience - [course-prefix] [course-group1] [course-group2] [course-life] - [course-prefix] [course-group2] [course-life] [course-suffix] - [course-prefix] [course-adj] [course-noun] [course-suffix] - [course-prefix] the [course-group1] [course-group2] [course-movement] [course-suffix] - [course-adj] [course-life] : [course-ending] - [course-adj] [course-noun] in modern [course-medium] - [course-noun] [course-suffix] : [course-ending] - [course-prefix] [course-noun] and [course-noun] [course-suffix] - the [course-adj] dimension of [course-group1] [course-group2] [course-medium] - [course-prefix] [course-topic] in [course-group2] [course-medium] : [course-ending] - [course-topic] and [course-topic] [course-suffix] - [course-group2] [course-medium] interpretation: [course-ending] - [course-group2] [course-medium] as a [course-adj] genre - [course-prefix] [course-group1] [course-group2] [course-medium] - [course-life] of [course-group2] [course-noun] : [course-ending] - [course-prefix] [course-popculture] : [course-ending] - [course-popculture] [course-suffix] : [course-ending] - [course-prefix] [course-adj] [course-noun] and [theory] - [course-prefix] [course-action] : [course-ending] - [course-action] [course-suffix] : [course-ending] - [course-prefix] [course-nounprefix] [course-ancient] [course-medium] : [course-ending] - ethnicity [course-suffix] : the [course-group1] [course-group2] [condition] - masterpieces of [course-group1] [course-group2] [course-medium] - [course-buzzword2] , [course-buzzword2] and [course-buzzword2] [course-suffix] : [course-ending] - [course-buzzword2] , [course-buzzword2] and [course-buzzword2] in [course-group2] [course-medium] : [course-ending] - [course-prefix] [course-event] : [course-ending] - [course-event] as [course-explored] in [course-group1] [course-group2] [course-medium] - [university-subject] as [course-explored] in [course-group1] [course-group2] [course-medium] - [course-impactof] : [course-ending] - [course-static] - [course-static] - -[condition] condition - experience - -[course-static] [course-env1] : [course-prefix] [course-env2] - [course-prefix] [course-env3] : policy [course-suffix] - the meaning of life as [course-explored] in [course-group1] [course-group2] [course-medium] - the [course-impact] of [course-group2] [thinker-type] on [course-contemporary] [university-subject] : [course-ending] - the [rise] of [course-group2] [thinker-type] in [course-contemporary] [university-subject] : [course-ending] - [course-ancient] [course-medium] as the [roots] of [course-contemporary] [university-subject]] - [course-buzzword2] , [course-buzzword2] and [course-buzzword2] as [course-explored] in [course-contemporary] [films] : [course-ending] - the history of [course-group2] [course-life] : [course-ending] - the [archetype] of the [quest] in [course-group1] [course-group2] [course-medium] - [cross-cultural] [studies] [course-group2] [course-life] - -[course-event] the african diaspora - the harlem renaissance - the civil rights movement - the italian renaissance - westward expansion - manifest destiny - women's suffrage - world war I - world war II - the war of 1812 - the american revolution - the french revolution - the russian revolution - the american civil war - the franco-prussian war - the jfk assasination - -[thinker-type] researchers - thinkers - scientists - -[rise] rise - emergence - success - empowerment - -[roots] roots - foundations - -[films] film - fiction - television - cinema - theater - -[archetype] archetype - symbolism - -[quest] quest paradigm - journey - awakening - rite of passage - -[cross-cultural] cross-cultural - multi-ethnic - -[studies] studies in - perspectives on -[course-env1] saving the world - the end of the word - the sky is falling - here come the mass extinctions - -[course-env2] modern enviromentalism - enviromental biology - enviromental activism - -[course-env3] the greenhouse effect - planetwide climatic change - global warning - -[course-action] basketweaving - aquatic ballet - synchronized swimming - professional sports - the [course-adj] pottery experience - home economics - cardplaying - [sportship] - the culinary [experience] - -[sportship] sportspersonship - sportsmanship - -[experience] arts - experience - -[course-noun] diversity - globalism - equality - feminism - sexuality - self-actualization - political correctness - enviromentalism - marxism - socialsm - communism - darwinism - activism - queer theory - [course-nounprefix] romanticism - [course-nounprefix] dadaism - [course-nounprefix] cubism - [course-nounprefix] realism - paganism - homosexuality - sexuality - evolution - poverty - fundamentalism - intellectualism - multiculturalism - -[course-nounprefix] post- - pre- - early - classical - -[course-adj] progressive - liberal - liberal - aesthetic - postmodern - feminist - radical - populist - humanist - reformist - liberated - -[course-prefix] ad-hoc investigation of - ad-hoc investigation of - the potential of - foundations of - literature of - the history of - principles of - exploration of - philosophy of - psychology of - meta-physics of - dynamic exploration of - symbolism of - topics in - advanced topics in - selected topics in - special topics in - survey of - the universe of - the meaning of - theories of - perspectives in - topics in - special studies in - introduction to - research capstone in - quantitative methods in - colloquium in - senior seminar in - critical perspectives in - brief survey of - concepts in - the highlights of - -[course-suffix] in the postmodern era - in the postmodern world - in the modern adge - in modern society - in modern america - in today's society - in the american landscape - in the united states - in the 21st century - in recent times - in the real world - in the [college-adj] world - -[course-ending] ideas in conflict - ideas in transition - critical issues facing the [course-contemporary] [course-person] - a process approach - [course-buzzword] , [course-buzzword] and [course-buzzword] - a [course-metaphor] of [course-noun] [course-suffix] - a [course-metaphor] of [course-ancient] [course-suffix] - a [course-metaphor] [course-explored] in american [course-medium] - a [course-metaphor] [course-explored] in [course-contemporary] [course-medium] - what is to be learned from it? - an interdisciplinary [study] - from [last-name] to [last-name] - [theory] at work - policy [course-suffix] - different points of view - [course-buzzword] and [course-buzzword] - the big picture - a paradigm shift - [modern] [theories] - myth and reality - the untold story - [journey] [discovery] - -[modern] modern - contemporary - -[theories] ideas - theories - -[journey] a journey of - a quest for - an odyssey of - -[discovery] discovery - exploration - thought - self-actualization - -[study] study - approach - -[course-group1] gay and lesbian - homosexual - bisexual - transgender - inner city - rural - suburban - urban - southern - western - eastern - liberated - upper class - middle class - [course-adj] - -[course-group2] african-american - hispanic - european - latino - native american - pacific islander - australian - latvian - elbonian - italian - african - american - asian - chinese - japanese - french - german - russian - middle eastern - scandinavian - mexican - female - female - female - neo-pagan - atheist - polytheistic - minority - multi-ethnic - -[course-ancient] roman - etruscan - greek - byzantine - mayan - incan - aztec - viking - bablyonian - egyptian - sumerian - hittite - renaissance - chinese - native american - -[course-life] life - literature - music - art - issues - perspectives - lifestyles - thought - ethics - values - landscapes - culture - society - images - ideas - endeavors - expression - affairs - morals - retrospectives - symbols - religion - traditions - civilization - -[course-metaphor] metaphor - study - presentation - collage - figure - symbol - -[course-explored] explored - expressed - analyzed - interpreted - seen - -[course-person] individual - american - person - citizen - student - well-rounded person - woman - minority - liberal - -[course-buzzword] understanding - understanding - analysis - synthesis - synergy - practice - the human condition - development - cross-cultural awareness - cross-cultural perspectives - evaluation - interpretation - abstraction - decision-making - perspectives - context - paradigms - critical thinking - relationships - discovery - empowerment - -[course-buzzword2] race - class - status - gender - age - sex - work - family - community - culture - politics - struggle - conflict - -[course-movement] movement - revolution - evolution - transformation - metamorphosis - campaign - -[course-medium] art - paintings - literature - folklore - mythology - poetry - sculptures - music - architecture - dance - drama - -[course-topic] sex - death - suicide - trauma - drama - life - mythology - crime - love - hate - anger - passion - infidelity - horror - -[course-popculture] 'star wars' - 'star trek' - cyberpunk literature - harlequin romances - 'the simpsons' - 'the x-files' - daytime soap operas - radio talk shows - shakespeare's [comedy] - 'the scarlet letter; - 'seinfeld' - classic american literature - classic [course-ancient] [literature] - political cartoons - pornography - 'the jerry springer show' - -[comedy] comedies - tragedies - -[literature] literature - art - -[course-contemporary] contemporary - modern - 21st century - 20th century - -[course-impactof] the [course-impact] of [course-ancient] [course-medium] on [course-group1] [course-group2] [course-medium] [course-suffix] - the [course-impact] of [course-ancient] [course-medium] on [course-contemporary] [university-subject] - the [course-impact] of [course-ancient] [course-medium] on [course-contemporary] [course-adj] [course-noun] - the [course-impact] of [course-group1] [course-group2] [course-medium] on [course-contemporary] [course-adj] [course-noun] - the [course-impact] of [course-group1] [course-group2] [course-medim] on [university-subject] - -[course-impact] impact - effect - consequences - influence diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/.DS_Store b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/.DS_Store deleted file mode 100755 index 5008ddf..0000000 Binary files a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/.DS_Store and /dev/null differ diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloii.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloii.gram deleted file mode 100755 index d16b4f9..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloii.gram +++ /dev/null @@ -1,46 +0,0 @@ -# Load other files -pragma load-sub-grammar [item-act] diabloiiitems.gram -pragma load-sub-grammar [perishables] diabloiiperish.gram -pragma load-sub-grammar [prefix] diabloiiprefixes.gram -pragma load-sub-grammar [suffix] diabloiisuffixes.gram - -[base-treasures] [base-treasure] - [base-treasure] as well as [base-treasure] - [base-treasure] or [base-treasure] - [base-treasure] , and [base-treasure] as well as [base-treasure] - [base-treasure] , [base-treasure] or [base-treasure] - -pragma initial-rule [base-treasures] - -[base-treasure] a(n) [item] - [non-item] - -[non-item] [money] - [money] - nothing - -[money] [amount] [money-type] - -[amount] 1 - 5 - 10 - 20 - 50 - 100 - 200 - 500 - 1000 - -[money-type] [metal-type] coin(s) - -[metal-type] copper - silver - gold - platinum - -[item] [item-act] - [item-act] of [suffix] - [item-act] of [suffix] and [suffix] - -pragma prefix-with [item] [prefix] -pragma prefix-with [item] [prefix] diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiiitems.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiiitems.gram deleted file mode 100755 index c6abc09..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiiitems.gram +++ /dev/null @@ -1,202 +0,0 @@ -[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] arrow ( [amount] count) - bow - [bow-size] bow - [bow-type] bow - [bow-size] [bow-type] bow - -[bow-size] short - long - -[bow-type] hunter’s - composite - battle - war - -[crossbows] bolt ( [amount] count) - 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 diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiiperish.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiiperish.gram deleted file mode 100755 index 26117d6..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiiperish.gram +++ /dev/null @@ -1,108 +0,0 @@ -[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 diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiiprefixes.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiiprefixes.gram deleted file mode 100755 index e9f2072..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiiprefixes.gram +++ /dev/null @@ -1,171 +0,0 @@ -[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 - bond - -[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 - diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiisuffixes.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiisuffixes.gram deleted file mode 100755 index 66e264e..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/diablo-ii/diabloiisuffixes.gram +++ /dev/null @@ -1,216 +0,0 @@ -[suffix] [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 diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/dungeon-enviroment.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/dungeon-enviroment.gram deleted file mode 100755 index f521125..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/dungeon-enviroment.gram +++ /dev/null @@ -1,140 +0,0 @@ -[enviroment] [man-made] - [cave] - [natural] - [aquatic] - [aerial] - [supernatural] - -pragma initial-rule [enviroment] - -[man-made] a stone room - a spiral staircase surrounding a giant pit - an old dusty library - an aging unadorned altar - a power plant full of gears and pistons - a giant stone staircase - a room made of large timbers - a factory with neglected machines - an ancient battlefield littered with skeletons and rusted weapons - a stone bathroom - a kitchen with a tall ceiling - a room whose walls are covered with drawings - an abandoned theatre - a garbage dump filled with trash - a colossal statue that was abandoned before it was completed - a great hall decorated with murals and tapestries - a metro khan railway - a gallery displaying paintings and busts - a tomb lined with stone sarcophagi - a gate whose door is covered in rust - an abandoned prison - -[cave] a cave with nothing but bare rock - a cave filled with bats and flying bugs - an abandoned mineshaft - somebodys campsite - a cave filled with so many boulders they obscure vision - a cave that belches smoke - a limestone grotto echoing with the sound of running water - a cavern filled with faint, eerie starlight - a cave full of quicksand - smooth tunnels dug out by some kind of animal - a cave filled with cold water - a crack between giant boulders - a cave whose walls are covered with paintings of animals and hunters - a natural bridge spanning a vast chasm - a cave that has been filled in almost to the ceiling - a precipice overlooking a bottomless pit - a cavern whose walls are obscured by swarms of crawling bugs - a cave with numerous fossils buried in it - a cave filled with hot, flowing lava - a cavern made of crystal - the lair of some creature, scattered with skeletons - -[natural] a room covered in moss - a secret forest reverberating with the calls of animals - a corridor made of vines - a field of flowers filled with hollows - a room with tree branches growing through the walls - farmland stretching across an entire cave - a forest overgrown with weeds - a tall cavern with a giant tree whose trunk twists and turns - a cave with a seal breeding ground spread through it - a room whose walls are covered in mold - a room dotted in cacti - a patch of giant mushrooms - a cave with a giant tree growing in the middle of it - corridors filled with roaming herds of horse lizards - a room with piles of fallen leaves - a hedge maze - an overgrown bamboo grove - a room with suddenly falling pine trees - a room filled with tall, overgrown grass - a withered forest - rooms and corridors that feel like the inside of a giant tree - -[aquatic] a bridge crossing a roaring river - the inside of a rainbow colored coral reef - a room filled with waist high water - a water fountain and watering hole - a boiling lake - a room whose floor has turned into a tidal flat - a cistern thats filling with water - a room obscured by hot steam - a swamp that spreads throughout a cave - a ship whose rigging and hull have been neglected - an aquarium filled with tanks - a foul smelling sewer - a submerged cavern with ruins at the bottom - a pier and harbor - a lake with rafts and barges - a gient pit and waterfall - an incomplete aqueduct - a frozen lake swarming with penguins - a steamy hot spring - an old well covered with strange engravings - a room whose walls are covered with shellfish and barnacles - -[aerial] a room where its raining - a cave made of cheese - gardens piled up towards the sky - clotheslines covered in pristine white clothing that stretch forever - a giant beanstalk stretching towards the ceiling - a giant pit with dangling rope ladders and chains - a room where a fierce wind blows - on top of a cloud - a cave obscured by thick mist - a room with zero gravity - a room where snowfall is quickly accumulating - a skyway where space-time is warped - a corridor where you can hear the sounds of a windmill for keeping monsters away - a cave with ruins on its ceiling - a massive, roaring ventilation shaft - a room with occasional lightning flashes - a room where bird feathers flutter to the ground - a cave whose walls are painted to look like the sky - a room where one wall is a mirror - a cave with a shimmering aurora - a room with variable gravity - -[supernatural] an old six tatami mat room - a cramped karaoke box - a town where time has stopped - a gymnasium with a single ball rolling around - a room covered in hair - some sort of waiting room - the inside of a living creature - a small park with swings and a slide - a cheap-looking prefabricated bathroom - a room with a noisy upstairs neighbor - a room made of human bones - a room that breathes - a room built on an angle - a room in a love hotel - a room where someone is spying on you - a room where you can hear voices talking loudly - a room growing tentacles - an interrogatin room with a table and chair - an empty classroom - a room whose ceiling is a giant human - a room that is constantly swaying diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/fantasy-locations.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/fantasy-locations.gram deleted file mode 100755 index 63a7dca..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/fantasy-locations.gram +++ /dev/null @@ -1,231 +0,0 @@ -pragma uniform - -[location-name] 4 [name1] [name2] - 2 [name1] [name1] [name2] - -pragma uniform - -pragma initial-rule [location-name] - -[name1] amber - angry - ardent - azure - bittersweet - black - blasted - brass - brilliant - broken - bronze - burnt - cornsilk - crimson - cold - dagger - dark - diamond - dreaming - drowsy - dry - dusty - [black-color] - emerald - fleet - fire - [gold-color] - good - grace - grand - gray - great - green - hammer - hasty - hazy - helm - high - holy - honey - hot - [ice-type] - iron - ivory - lilac - little - kings - maple - mighty - night - [oak-type] - onyx - peaceful - pearl - prancing - quartz - queens - [rain-type] - red - [rose-type] - royal - ruby - sable - sacred - sage - sand - sapphire - screaming - shale - shininh - short - [silk-type] - silver - sleeping - small - snow - solid - steel - sterling - storm - strong - summer - swift - sword - tawny - thunder - topaz - tranquil - vast - verdant - vile - violet - virgin - whisper - white - wicked - wild - wind - winter - xanthous - -[name2] beach - bear - boar - bluff - brook - butte - castle - cave - circle - cliff - crag - creek - crescent - crevasse - crow - crown - coast - dale - dark - dragon - dunes - eagle - elk - field - fist - ford - forest - fountain - fox - gale - gauntlet - glade - goose - griffin - grove - gulf - hall - hedge - hill - hold - hole - isle - keep - lake - light - lion - lord - maiden - march - marsh - mare - maze - meet - mark - mine - mirror - oasis - orchard - owl - path - peak - plain - point - pony - pool - prison - quest - reach - reef - ridge - ring - river - road - rock - rush - sea - serpent - shell - shield - shore - sky - square - stag - star - steed - stone - stream - sun - tear - tiger - tower - unicorn - vale - valley - wall - wash - water - way - wolf - wood - -[silk-type] silk - silken - -[rose-type] rose - rosy - -[rain-type] rain - rainy - -[oak-type] oak - oaken - -[ice-type] ice - icy - -[black-color] ebon - ebony - -[gold-color] gold - golden diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/genre-fiction.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/genre-fiction.gram deleted file mode 100755 index 09b0850..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/genre-fiction.gram +++ /dev/null @@ -1,164 +0,0 @@ -[genre-fict] in a [setting] a young [person] stumbles across a(n) [place] [genre-fict2] - -pragma initial-rule [genre-fict] - -[genre-fict2] which spurs him into conflict with [antagonist] [genre-fict3] - -[genre-fict3] with the help of a [female] and her [gear] culminating in [genre-fict4] - -[genre-fict4] culminating in [climax] . This is [title] - -[setting] [setting-adj] [setting-dest] - -[setting-adj] néo-noir - alternate-history - ancient - dystopian - metaphorical - anachronistic - leather-clad - coal-powered - dragon-filled - shrill - -[setting-dest] america - japan - soviet russia - victorian Britain - medieval Europe - aztec empire - atlantis - terraformed mars - antartica - one-way spaceflight - outer rim world - set from road warrior - -[person] flying message courier - student of metaphysics - milquetoast office drone - schlub with mild OCD - farm boy with dreams - techno-obsessed geek - brooding loner - wisecracking mercenary - idealistic revolutionary - journeyman inventor - collector of oddities - author self-insert - -[place] [place-pref] [place-suff] - -[place-pref] magic - arcane - dusty - crazy - alien - enchanted - otherworldly - dream-inducing - encrypted - time-traveling - exiled - talking - -[place-suff] diadem - prophecy - tome - old man - artifact - sword - portal - drug - data feed - soldier - angel - fish - -[antagonist] a megalomaniacal dictator - a government conspiracy - a profit-obsessed corporation - a sneering wizard - supernatural monsters - computer viruses made real - murderous robots - an army led by a sadist - forces that encourage conformity - a charismatic politician on the rise - humanity’s selfish nature - his own insecurity vis-a-vis girls - -[female] [female] - [female] [fem-suffix] - [fem-prefix] [female] - [fem-prefix] [female] [fem-suffix] - -[fem-prefix] sarcastic - tomboyish - shape-shifting - leather-clad - bookish - cherubic - -[female] female - girl - -[fem-suffix] techno-geek - mechanic - assassin - in shades - who’s always loved him - scholar with mousy brown hair - with pigtails and spunk - who inexplicably becomes attracted to the damaged protagonist for unstated reasons - -[gear] wacky pet - welding gear - closet full of assault rifles - reference book - cleavage - facility with magic - condescending tone - discomfort in formal wear - propensity for being captured - -[climax] a fistfight atop a tower - a daring rescue preceding a giant explosion - a heroic sacrifice that no one will ever remember - a philosophical argument punctuated by violence - a false victory with the promise of future danger - the invocation of a spell at the last possible moment - eternal love professed without irony - the land restored to health - authorial preaching through the mouths of the characters - convoluted nonsense that squanders the reader’s goodwill - wish-fulfillment solutions to real-world problems - a cliffhanger for the sake of prompting a series - -[title] [tit-1] [tit-2] - -[tit-1] chrono - neuro - aero - cosmo - reve - necro - cyber - astro - psycho - steam - meta - black - -[tit-2] punk - mech - noiac - (o)poli - naut - phage - droid - bot - blade - tron - cancer - War diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/horror.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/horror.gram deleted file mode 100644 index 1e73911..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/horror.gram +++ /dev/null @@ -1,33 +0,0 @@ -[horror] [first] [second] [third] - -pragma initial-rule [horror] - -[first] attack of the - invasion of the - day of the - beware! The - terror of the - death by - curse of the - earth vs. the - return of the - -[second] disco - massive - worrying - flying - flesh eating - windy - mutant - hairy - overly keen - -[third] vampires - swamp beasts - boy bands - muffins - werewolves - zombies - sock puppets - death bots - snuggle badgers \ No newline at end of file diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/insults.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/insults.gram deleted file mode 100644 index 1b3881b..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/insults.gram +++ /dev/null @@ -1,156 +0,0 @@ -[insult] Thou [insult-1] [insult2] [insult3]! - -pragma initial-rule [insult] - -[insult-1] artless - bawdy - beslubbering - bootless - churlish - cockered - clouted - craven - currish - dankish - dissembling - droning - errant - fawning - fobbing - froward - frothy - gleeking - goatish - gorbellied - impertinent - infectious - jarring - loggerheaded - lumpish - mammering - mangled - mewling - paunchy - pribbling - puking - puny - qualling - rank - reeky - roguish - ruttish - saucy - spleeny - spongy - surly - tottering - unmuzzled - vain - venomed - villainous - warped - wayward - weedy - yeasty - -[insult-2] base-court - bat-fowling - beef-witted - beetle-headed - boil-brained - clapper-clawed - clay-brained - common-kissing - crook-pated - dismal-dreaming - dizzy-eyed - doghearted - dread-bolted - earth-vexing - elf-skinned - fat-kidneyed - fen-sucked - flap-mouthed - fly-bitten - folly-fallen - fool-born - full-gorged - guts-griping - half-faced - hasty-witted - hedge-born - hell-hated - idle-headed - ill-breeding - ill-nurtured - knotty-pated - milk-livered - motley-minded - onion-eyed - plume-plucked - pottle-deep - pox-marked - reeling-ripe - rough-hewn - rude-growing - rump-fed - shard-borne - sheep-biting - spur-galled - swag-bellied - tardy-gaited - tickle-brained - toad-spotted - unchin-snouted - weather-bitten - -[insults-3] apple-john - baggage - barnacle - bladder - boar-pig - bugbear - bum-bailey - canker-blossom - clack-dish - clotpole - coxcomb - codpiece - death-token - dewberry - flap-dragon - flax-wench - flirt-gill - foot-licker - fustilarian - giglet - gudgeon - haggard - harpy - hedge-pig - horn-beast - hugger-mugger - joithead - lewdster - lout - maggot-pie - malt-worm - mammet - measle - minnow - miscreant - moldwarp - mumble-news - nut-hook - pigeon-egg - pignut - puttock - pumpion - ratsbane - scut - skainsmate - strumpet - varlet - vassal - whey-face - wagtail diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/martial-arts.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/martial-arts.gram deleted file mode 100755 index ac22306..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/martial-arts.gram +++ /dev/null @@ -1,39 +0,0 @@ -[art-name] [art-1] [art-2] - [art-1] [art-3] - [art-2] [art-3] - [art-1] [art-2] [art-3] - -pragma initial-rule [art-name] - -[art-1] running - hungry - angry - naked - drunken - fortunate - lazy - swift - powerful - enlightened - -[art-2] ox - tiger - dragon - crane - monkey - turtle - manticore - serpent - hummingbird - demon - -[art-3] fist - stance - spinning kick - attack - technique - style - dance - movement - touch - fu diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/mary-sue.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/mary-sue.gram deleted file mode 100755 index b01a3ca..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/mary-sue.gram +++ /dev/null @@ -1,494 +0,0 @@ -[mary-sue] she appears to be a normal [normal-desc] . [mary-sue2] - she appears to be a normal [normal-desc] [opt-dress] [mary-sue2] - -pragma initial-rule [mary-sue] - -[normal-desc] schoolgirl - soldier - pirate - nun - nurse - teacher - teenager - martial artist - scientist - singer - artist - student - model - lawyer - journalist - mechanic - raver - woman - girl - cheerleader - sumo wrestler - cook - marine biologist - single mother - -[opt-dress] [except-dress] - [half-dress] - [except-dress] [half-dress] - -[except-dress] except she dress like a [exdress-1] [exdress-2] - except she dress like a [exdress-1] - except she dress like a [exdress-2] - -[exdress-1] gothic lolita - bloody nurse - vampire - raver - gangsta - ninja - princess - pirate - mad scientist - gestapo officer - elf - sorceress - witch - commando soldier - cat-girl - fox-girl - druidess - schoolgirl - j-pop star - skateboarder - skinhead - punk roc - pole dancing - biker - innuit - -[exdress-2] gangsta - raver - princess - gothic lolita - pirate - sorceress - witch - druidess - vampire - cat-girl - mad scientist - skateboarder - bloody nurse - fox-girl - j-pop star - schoolgirl - commando soldier - ninja - gestapo officer - elf - construction worker - shaman - monk - dominatrix - businesswoman - -[half-dress] but this is just to take away attention from the fact that she is a half [hdress] - -[hdress] Vampire. - Unicorn. - Dragon. - Elf. - Orc. - Xenomorph. - Batgirl. - Japanese. - Werewolf. - Android. - Ghost. - Fox-girl. - Slime-girl. - Pixie. - Angel. - Demon. - Fire-elemental. - Stone-elemental. - Dwarf. - Zergling. - Illithid. - Lizard-woman. - Giant. - Zombie. - Na’vi. - -[mary-sue2] She is [desc] and she will fight her enemies with her power to [power-desc] [mary-sue3] - -[desc] [desc-req] - [desc-req] [desc-opt] - -[desc-req] a megalomaniac - a secret super-soldier - an interdimensional traveler - a space traveler - a scientific experiment gone wrong - the last of her kind - chosen by destiny - a rumored demo-goddess - a misunderstood genius - created to be the next step in mankind’s evolution - unknowingly the queen of her kind - an amnesiac - a secret agent - the leader of a ninja clan - wanted in another galaxy - a fortune teller - the daughter of the president - a living time-bomb - a holographic projection - a chaos cultist - one of a hundred nearly identical clones - a mysterious orphan - the living key to open up hell - a goddess cast down to earth to become mortal - -[desc-opt] who is the last of her kind - born from a scientific experiment gone wrong - who reincarnates in a new body every 666 years - with a mysterious past - from another dimension - worshipped by a small cult - raised by wild animals - from another planet - working for the church - destined to save the world - falsely accused of murdering her father - created by nazi scientists by world war II - devoted to the gods of chaos - who is part of a secret organization - megalomaniac - with no memory of her childhood - created to be the next step in mankind’s evolution - foretold in ancient prophesies - who is also rumored to be a demo-goddess - who has lived for over 1000 years - in search of true love - and her blood is the cure for cancer - in search of her kidnapped sister - cursed by god - traveling through time - -[power-desc] [power-1] - [power-1] and [power-1] - -[power-1] [power-p1] [power-p2] - -[power-p1] summon - transform others into - incinerate - talk to - absorb the power of - shape-shift into - destroy - corrupt - seduce - befriend - heal - construct - banish - disintegrate - devour - control - frighten - ride - freeze - shrink - become invisible to - command - follow the scent of - magically imprison - -[power-p2] demons - gods - blood - angels - robots - dinosaurs - ghosts - wild animals - xenomorphs - mechas - vampires - werewolves - unicorns - adamantium - weapons - slime - elementals - retards - pedophiles - clones of herself - computers - centaurs - dragons - regular humans - plants - -[mary-sue3] . Her friends and enemies call her [name] [mary-sue4] - -[name] [name1] - [name1] [name2] - -[name1] star - angel - demon - sparkle - magic - mecha - power - peace - soul - blood - awesome - raven - unicorn - light - dark - summer - dragon - fire - night - day - shadow - thunder - mystery - love - cancer - -[name2] hair - eyes - face - claw - fur - fang - flower - lover - beast - girl - woman - princess - murderer - bringer - mistress - caller - singer - creator - lips - tits - thighs - hammer - dream - ender - stealer - -[mary-sue4] . Her constant companion is a [comp] . - -[comp] [comp-name] - -pragma suffix-with [comp] [comp-also] -pragma suffix-with [comp] [comp-weapon] - -[comp-also] who is also [compal-desc] - -[comp-weapon] . His/her favored weapon is a(n) [comp-weapon1] - -[comp-name] [comp-name1] - [comp-prefix] [comp-name1] - -[comp-prefix] [comp-prefix1] - [comp-prefix2] - [comp-prefix1] [comp-prefix2] - [comp-prefix2] [comp-prefix1] - -[comp-name1] dragon - mecha - vampire - doll - white wolf - fox - zombie - space-marine - werewolf - robot - cat - dog - spaceship - faerie - vietnam veteran - unicorn - demon - angel - xenomorph - super saiyan - miniature elder god - fertility goddess - neck bearded man - wizard - giant - -[comp-prefix1] psychic - mexican - over-analytical - enslaved - mysterious - catatonic - angsty - depressed - spirit - friendly - young - ancient - flying - living - talking - intelligent - hyperactive - befriended - magical - sparkling - brain-washed - special needs - huge - murderous - amorous - -[comp-prefix2] young - talking - sparkling - living - intelligent - spirit - friendly - brain-washed - befriended - angsty - special needs - magical - psychic - enslaved - murderous - over-analytical - flying - catatonic - amorous - mysterious - ancient - invisible - mexican - huge - depressed - -[compal-desc] her lover - secretly her nemesis - her legal guardian - a projection of her evil self - secretly in love with her - her means of transport - her guardian angel - her best friend forever - destined to die by her hand - the reason she lives - herself from the future - her mentor - part of her soul - one of her failed experiments - a figment of her imagination - her father - her superior officer - her stalker - her mother - both her mother and father - soulmate - personal trainer - economic consultant - the phylactery of her soul - her bondage slave - -[comp-weapon1] [compweap-prefix] [compweap-type] - -[compweap-type] chainsaw - spear - katana - magnum - throwing star - dagger - mallet - machine gun - minion - axe - club - razor - whip - guitar-axe - knuckle iron - sword - staff - bow - javelin - charm - poleax - sniper rifle - flamethrower - rapier - scissors - -[compweap-prefix] [compweap-1] - [compweap-2] - [compweap-1] [compweap-2] - [compweap-2] [compweap-1] - -[compweap-1] poisoned - blessed - holy - legendary - burning - glowing - golden - silver - steam-powered - demonic - conscious - magical - huge - two-handed - dragonbone - adamantium - bio-mechanical - ancient - acidic - self-replicating - dark steel - freezing - spirit - shining - unbreakable - -[compweap-2] glowing - magical - legendary - acidic - silver - huge - demonic - blessed - bio-mechanical - poisoned - dragonbone - spirit - cursed - self-replicating - burning - darksteel - shining - conscious - unbreakable - freezing - steam-powered - ancient - holy - adamantium - two-handed diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/mission.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/mission.gram deleted file mode 100644 index 9dce28a..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/mission.gram +++ /dev/null @@ -1,461 +0,0 @@ -[mission-statement] [opening] [work-phrase] [verb-part] [noun-part] - [opening] [work-phrase2] [verb-part2] [noun-part] - [opening] [verb-part] [noun-part] - [opening] [work-phrase] [verb-part] [noun-part] and [verb-part] [noun-part] - [opening] [work-phrase2] [verb-part2] [noun-part] and [verb-part2] [noun-part] - [opening] [verb-part] [noun-part] and [noun-part] - [opening] [work-phrase] [verb-part] [noun-part] [connector] [goal] - [opening] [work-phrase2] [verb-part2] [noun-part] [connector] [goal] - [opening] [verb-part] [noun-part] [connector] [goal] - [opening] [work-phrase] [verb-part] [noun-part] [connector] [goal] and [goal] - [opening] [work-phrase2] [verb-part2] [noun-part] [connector] [goal] and [goal] - [opening] [verb-part] [noun-part] [connector] [goal] and [goal] - [opening] [work-phrase] [verb-part] [noun-part] and [verb-part] [noun-part] [connector] [goal] - [opening] [work-phrase2] [verb-part2] [noun-part] and [verb-part2] [noun-part] [connector] [goal] - [opening] [verb-part] [noun-part] and [noun-part] [connector] [goal] - [opening] [verb-part] [noun-part], [noun-part] and [noun-part] [connector] [goal] - [opening] [work-phrase] [verb-part] [noun-part] [connector] [verb-part] [noun-part] [connector] [goal] - [opening] [work-phrase2] [verb-part2] [noun-part] [connector] [verb-part] [noun-part] [connector] [goal] - [opening] [verb-part] [noun-part] [connector] [verb-part] [noun-part] [connector] [goal] - -pragma initial-rule [mission-statement] - -[verb-part] [verb-how] [verb] - [verb] - -[verb-part2] [verb-how] [verb-gerund] - [verb-gerund] - -[noun-part] our [adjective] [noun] - our [noun] - our [noun-prefix] [noun] - [adjective] [noun-prefix] [noun] - [adjective] [noun] - [noun] - -[opening] it's our [duty] to - it is our [duty] to - it is our [mission] to - it's our [mission] to - our [mission] is to - our [duty] is - we are committed to - we have committed to - we - we resolve to - -[duty] duty - responsibility - obligation - -[mission] mission - task - goal - job - business - function - -[verb] aggregate - deliver - deploy - embrace - empower - enable - engage - engineer - enhance - envision - extend - facilitate - generate - harness - implement - innovate - integrate - leverage - maximize - optimize - reinvent - revolutionize - simplify - spearhead - strategize - streamline - syndicate - synergize - synthesize - transform - unleash - utilize - visualize - -[verb-gerund] aggregating - delivering - deploying - embracing - empowering - enabling - engaging - engineering - enhancing - envisioning - extending - facilitating - generating - harnessing - implementing - innovating - integrating - leveraging - maximizing - optimizing - reinventing - revolutionizing - simplifying - spearheading - strategizing - streamlining - syndicating - synergizing - synthesizing - transforming - unleashing - utilizing - visualizing - -[verb-how] dramatically - practically - conveniently - efficiently - productively - rapidly - enthusiastically - completely - competently - assertively - quickly - intelligently - endlessly - tirelessly - effectively - skillfully - proficiently - professionally - swiftly - energetically - vigorously - zealously - briskly - speedily - shrewdly - cleverly - sharply - astutely - successfully - expertly - -[work-phrase] strive to - work to - endeavor to - continue to - execute a strategic plan to - -[work-phrase2] strive towards - work towards - endeavor towards - continue towards - make progress towards - make strides towards - take steps towards - achieve progress in - engage in - execute a strategic plan involving - -[noun] action items - architectures - assets - bandwidth - channels - communities - content - deliverables - eyeballs - face time - functionalities - infomediaries - infrastructures - initiatives - interfaces - key players - leadership skills - markets - metrics - middleware - mindshare - perspectives - networks - niches - paradigms - partnerships - platforms - portals - relationship corridors - relationships - synergies - schemas - skill sets - solutions - strategic alliances - supply-chains - synergies - technologies - total quality management - version control - vision - catalysts for [noun] - -[noun-prefix] sub- - meta- - mega- - e- - E- - cyber- - Net- - -[adjective] best-of-breed - bilateral - bleeding-edge - client-centered - cross-platform - cross-media - customer-centric - cutting-edge - distributed - dot-com - dynamic - effective - efficient - effort-intensive - enterprise - evolutionary - extensible - forward-thinking - frictionless - future-proof - global - granular - hyperlinked - idiot-proof - innovative - integrated - interactive - intuitive - killer - leading-edge - legacy - massively-parallel - mission-critical - multilevel - next-generation - object-oriented - open-source - proactive - progressive - real-time - revolutionary - robust - scalable - seamless - strategic - synergistic - transparent - turn-key - two-tier - ubiquitous - user-centric - value-added - vertical - viral - virtual - visionary - wireless - world-class - -[connector] so that we may - in order to - as part of our master plan to - as part of a larger strategy to - to - to - in order that we may - to allow us to - to enable us to - to permit us to - so that hopefully we may - as part of our five-year plan to - as part of our business plan to - as a component of our plan to - as the first step in our scheme to - -[goal] [make] a lot of [money] - produce [profit] for our [shareholders] - produce more [profit] for our [shareholders] - [increase] [profit] for our [shareholders] - better serve our customers - better serve our [shareholders] - better serve the [world] - [increase] our [bottom-line] - get out of debt - prevent bankruptcy - stay competitive for [todays] [world] - remain profitable in [todays] [world] - [set-us-apart] [competition] - [defeat] [competition] - [increase] customer satisfaction - create a [better] [product] - market a [lesser] [product] - produce a [better] [product] that kicks [competition] 's [butt] - market a [lesser] [product] that [make] s us a lot of [money] - exceed customer [demands] - meet the [demands] of our valued customers - meet the [demands] of the [world] - successfully market an overhyped [lesser] [product] - take over the [world] - dominate the [world] - waste a lot of time in meetings - make our founder enough [money] to exceed the net worth of the world's richest man - -[demands] demands - expectations - wants - needs - requirements - -[product] product - product line - line of products - line of services - brand - -[better] better - superior - finer - more affordable - quality - higher quality - popular - robust - -[lesser] lesser - highly inferior - subpar - worse - more expensive - weak - lower quality - poor - -[make] make - earn - produce - create - yield - -[defeat] defeat - counter - challenge - beat - strike back at - conquer - crush - shellac - rout - vanquish - reign victorious over - overwhelm - beat the snot out of - -[competition] the competition - our competitors - the rest of the industry - our evil competitors - the market - the industry - our enemies - -[set-us-apart] set us apart from - pull ahead from - distance us from - take us ahead of - -[todays] today's - tomorrow's - the future - -[shareholders] shareholders - employees - executive officers - head honchos - workers - serfs - investors - venture capitalists - sponsors - -[increase] increase - shore up - inflate - enlarge - enrich - add to - augment - advance - expand - burgeon - grow - multiply - make greater - -[profit] profit - dividends - cash - money - revenue - income - earnings - proceeds - rewards - benefits - -[money] money - cash - currency - moola - greenbacks - dough - bread - scratch - bucks - simoleons - -[world] world - industry - globe - universe - nation - country - market - economy - -[butt] butt - ass - rear end - posterior - behind - -[bottom-line] bottom line - stock price - net worth - earnings - revenue - sales diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/part-creature.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/part-creature.gram deleted file mode 100755 index d729e44..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/part-creature.gram +++ /dev/null @@ -1,77 +0,0 @@ -[full-creature] [creature-choice] - -[creature-choice] [creature] - [characteristic] [creature] - [ability] [creature] - [ability] [characteristic] [creature] - -pragma initial-rule [full-creature] - -[ability] flying - invisible - silent - ethereal - telepathic - eye beams - swallow whole - poisonous - regenerating - fire breathing - anti-magic - petrifying - soul-eating - frightful presence - confusing - flesh grinding - radioactive - rust - acidic - nauseating - [ability] and [ability] - -[characteristic] zombie - vampire - swarm - samurai - barbarian - wizard - ninja - were [characteristic] - robot - rabid - demonic - awakened - feral - pirate - half-dragon - gelatinous - dire - shadow - rich - [characteristic] and [characteristic] - -[creature] shark - bear - lion - badger - wolf - ape - squid - snake - weasel - tyrannosaurus - crocodile - bee - spider - [elemental] - mimic - dire penguin - giant mini space hamster - camel - little girl - classy kobold - -[elemental] fire - earth - water - air diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/pokeattacks.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/pokeattacks.gram deleted file mode 100755 index 7f943ba..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/pokeattacks.gram +++ /dev/null @@ -1,70 +0,0 @@ -[attack] [word-1] [word-1] - [word-2] [word-2] - [word-1] [word-2] - [word-2] [word-1] - -pragma initial-rule [attack] - -pragma prefix-with [attack] [word-1] -# pragma prefix-with [attack] [word-2] - -# pragma suffix-with [attack] [word-1] -pragma suffix-with [attack] [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 diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/rune.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/rune.gram deleted file mode 100755 index 05332e9..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/rune.gram +++ /dev/null @@ -1,109 +0,0 @@ -[rune-string] [rune-2] - [rune-1] [rune-2] - [rune-1] [rune-2] [rune-3] - [rune-2] [rune-3] - -pragma initial-rule [rune-string] - -pragma prefix-with [rune-string] [rune-1] -pragma suffix-with [rune-string] [rune-3] - -[rune-1] a dagger plunged into - vines growing out of - a crown perched atop - crossed swords over - a pair of hands surrounding - demonic eyes peering out of - blue lightning arcing out of - an axe thrust into - a hand bursting from - a tentacle reaching out of - a spear thrust through - a trumpet thrust through - tiny stars surrounding - a jewel within - a hand inside - a sword inside - a hand within - an arrow piercing - a hand clutching - -[rune-2] a skull - a treasure chest - a circle cut into three parts - a pyramid - a triangle - a mushroom - a grinning mask - a clenched fist - a giant human eye - a shield - a circle - a pentagram - a pentacle - a flagon - a circle cut in half - a semicircle - a heart - a large star - a wave - a diamond - an octagon - a scroll - a spiral - a tree - a rose - a helmet - a book - a staff - a hammer - a bone - a cat’s face - a wolf’s head - a large mouth - an upward-pointing arrow - a downward-pointing arrow - an arrow pointing two directions - a circle cut into four parts - a ship - a six-pointed star - a seven-pointed star - a pentagon - -[rune-3] girded by laurels - sheathed in flames - glowing like the sun - emblazoned with a demonic face - flanked by catlike wings - in the coils of a serpent - swaddled in tentacles - flanked by feathered wings - inscribed within a red circle - inscribed within a magic circle - inscribed within a long rectangle - covered with spikes and spines - haloed in light - half in shadow - with coins all around it - with curved knives all around it - wrapped in a pair of rings - atop a tower - next to a writhing snake - atop a mountain - next to a crescent moon - made of thin red lines - made of thin blue lines - made of thin green lines - made of thin black lines - all done as a silhouette - wrapped in a cloud - dripping with blood - flanked by swords - flanked by skulls - flanked by arrows - within a ring made by a whip - within a ring made by a snake, eating its own tail - atop crossed bones - above a trident - below two spears - covered in insects diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/superhero.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/superhero.gram deleted file mode 100755 index c4f6e15..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/superhero.gram +++ /dev/null @@ -1,142 +0,0 @@ -[superhero] [first-part] [second-part] - [second-part] [first-part] - -pragma initial-rule [superhero] - -pragma suffix-with [superhero] [third-part] -pragma suffix-with [superhero] [fourth-part] - -[first-part] Captain - Yellow - Star - Incredible - Lightning - Silver - Phoenix - Wonder - Super - Green - Courageous - Iron - Black - Invisible - Professor - Night - Silent - Red - Thunder - General - Time - Scarlet - Grand - Arcane - White - [gender-title] - -[gender-title] Mr - Ms - Mister - Miss - Dr - Doctor - Professor - Lord - Lady - King - Queen - Prince - Princess - -[second-part] Hawk - Phantom - Fist - Hex - Soldier - Raven - Patriot - Hope - Stallion - Chimera - Archer - Raptor - Lord - Ninja - Eagle - Bolt - Boulder - Knight - Brain - Fusion - Crusader - Shepherd - Flame - Orchid - Rider - Torch - -[third-part] The [third-part-act] - -[third-part-act] Champion - Protector - Wielder - Marksman - Fated - Lover - Celebrated - Prodigy - Guardian - Inquisitor - Legend - Returned - Light - Warrior - Sacred - Victor - Triumphant - Mystic - Amazing - Incomparable - Lord - Mysterious - Face - Divine - Magnificent - Virtuous - Survivor - Courageous - Steward - Keeper - Squire - -[fourth-part] of [fourth-part-act] - -[fourth-part-act] the [fourth-part-the] - Destiny - Justice - Humanity - Men - Women - Freedom - Knowledge - Earth - Eternal Fire - -[fourth-part-the] Realm - Chalice - Law - Future - Tides - Poor - Trees - Universe - Seven - Past - Isles - Gauntlet - Dominion - Living - Galaxy - Ancients - Archive - - 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 deleted file mode 100755 index 9fd68a8..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/tarotcard.gram +++ /dev/null @@ -1,49 +0,0 @@ -[card] [adjective-of] [title] - [adjective-of] [noun] [title] - [noun] - [noun] [adjective] - [noun] [title] - [noun] [adjective] [noun] - [title] [adjective] - [title] [adjective] [noun] - -pragma initial-rule [card] - -[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 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 deleted file mode 100755 index 451f1f8..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/technobabble.gram +++ /dev/null @@ -1,32 +0,0 @@ -[main] [part-prefix] [part-suffix] [part-problem] - [part-prefix] [part-problem] - [part-suffix] [part-problem] - -pragma initial-rule [main] - -[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 diff --git a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/zadrons-pouch.gram b/RGens/src/main/java/bjc/RGens/parser/sample-grammars/zadrons-pouch.gram deleted file mode 100755 index 48b6e07..0000000 --- a/RGens/src/main/java/bjc/RGens/parser/sample-grammars/zadrons-pouch.gram +++ /dev/null @@ -1,213 +0,0 @@ -[items] [item] - [item] and a [item] - [item] and a [item] as well as a [item] - [item] or [item] - [item] or [item] or maybe [item] - -pragma initial-rule [items] - -[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 - -[spell-2] [spell2-type] detecting - -[spell2-type] magic - enemy - secret door/trap - diff --git a/RGens/src/main/java/bjc/RGens/server/GrammarServer.java b/RGens/src/main/java/bjc/RGens/server/GrammarServer.java index 180ee98..afeb120 100644 --- a/RGens/src/main/java/bjc/RGens/server/GrammarServer.java +++ b/RGens/src/main/java/bjc/RGens/server/GrammarServer.java @@ -11,7 +11,6 @@ import java.io.IOException; import java.io.FileInputStream; import java.util.Scanner; -import java.util.function.Supplier; public class GrammarServer { private Scanner scn; @@ -46,25 +45,18 @@ public class GrammarServer { System.out.println("GrammarServer Commands:"); System.out.println("\tm: Print command help"); System.out.println("\te: Exit GrammarServer"); - System.out.println("\tl: Load grammar from file"); - System.out.println("\ts: Show loaded grammars"); + System.out.println("\tl: Load from file"); + System.out.println("\ts: Show information"); System.out.println("\tg: Generate text"); break; case 'g': serv.generateText(); break; case 's': - // @TODO expand to general show stuff method - System.out.printf("Currently loaded grammars (%d total):\n", - serv.loadedGrammars.getSize()); - - serv.loadedGrammars.forEachKey(key -> { - System.out.println("\t" + key); - }); - + serv.showMode(); break; case 'l': - serv.loadGrammar(); + serv.loadMode(); break; default: System.out.println("? Unrecognized Command"); @@ -78,59 +70,165 @@ public class GrammarServer { System.out.println("GrammarServer exiting"); } - private void generateText() { - System.out.println("Entering Generate Mode"); - - System.out.print("(Generate Mode) Enter a command (m for help): "); + private void loadMode() { + System.out.println("Entering Load Mode"); + System.out.print("(Load Mode) Enter a command (m for help):"); char comm = scn.nextLine().charAt(0); while(comm != 'e') { switch(comm) { case 'm': - System.out.println("GrammarServer Generate Mode Commands: "); + System.out.println("GrammarServer Load Mode Commands"); System.out.println("\tm: Show command help"); - System.out.println("\tx: Generate from exported rules"); System.out.println("\te: Exit Generate Mode"); + System.out.println("\tg: Load grammar from a file"); + System.out.println("\tc: Load configuration from a file"); + break; + case 'g': + loadGrammar(); + break; + case 'c': + loadConfig(); + break; + default: + System.out.println("? Unrecognized Command"); + } + + System.out.print("(Load Mode) Enter a command (m for help):"); + comm = scn.nextLine().charAt(0); + } + + System.out.println("Exiting Load Mode"); + } + + private void loadConfig() { + System.out.print("Enter the file to load configuration from: "); + + String fileName = scn.nextLine().trim(); + + File inputFile = new File(fileName); + + try(FileInputStream inputStream = new FileInputStream(inputFile)) { + try(Scanner fle = new Scanner(inputStream)) { + while(fle.hasNextLine()) { + String line = fle.nextLine().trim(); + + String gramName = line.substring(0, line.indexOf(' ')); + String gramPath = line.substring(line.indexOf(' ') + 1, line.length()); + + loadGrammar(gramName, gramPath); + } + } + } catch(IOException ioex) { + System.out.printf("? Error reading configuration from file" + + " (reason: %s)", ioex.getMessage()); + } + } + + private void showMode() { + System.out.println("Entering Show Mode"); + + System.out.print("(Show Mode) Enter a command (m for help): "); + + char comm = scn.nextLine().charAt(0); + + while(comm != 'e') { + switch(comm) { + case 'm': + System.out.println("GrammarServer Show Mode Commands: "); + System.out.println("\tm: Show command help"); + System.out.println("\tl: Show loaded grammars"); + System.out.println("\tr: Show rules from a grammar"); + System.out.println("\tx: Show exported rules"); + System.out.println("\te: Exit Show Mode"); + break; + case 'r': + showGrammarRules(); break; case 'x': - System.out.print("Enter the name of the rule to generate" - + " (l to list, enter to cancel): "); + System.out.printf("Currently exported rules (%d total):\n", + exportedRules.getSize()); - String ruleName = scn.nextLine().trim(); + exportedRules.forEachKey(key -> { + System.out.println("\t" + key); + }); + break; + case 'l': + System.out.printf("Currently loaded grammars (%d total):\n", + loadedGrammars.getSize()); - while(true) { - if(ruleName.equals("")) break; + loadedGrammars.forEachKey(key -> { + System.out.println("\t" + key); + }); + break; + default: + System.out.println("? Unrecognized command"); + break; + } - if(ruleName.equals("l")) { - System.out.println("Current exported rules: "); - exportedRules.forEachKey(key -> { - System.out.println("\t" + key); - }); - } else if (exportedRules.containsKey(ruleName)) { - String ruleResult = ListUtils.collapseTokens( - exportedRules.get(ruleName) - .generateListValues(ruleName, " ")); + System.out.print("(Show Mode) Enter a command (m for help): "); - System.out.println("Generated Result: "); - System.out.println("\t" + ruleResult.replaceAll("\\s+", " ")); + comm = scn.nextLine().charAt(0); + } - System.out.print("Generate again from this rule? (yes/no)"); - String resp = scn.nextLine().trim(); - if(resp.equalsIgnoreCase("yes")) { - continue; - } - } else { - System.out.println("? Unrecognized external rule"); - } + System.out.println("Exiting Show Mode"); + } - System.out.print("Enter the name of the rule to generate" - + " (l to list, enter to cancel): "); + private void showGrammarRules() { + System.out.print("Enter the name of the grammar (l to list): "); + String gramName = scn.nextLine().trim(); - ruleName = scn.nextLine().trim(); - } + do { + if(gramName.equals("")) break; + + if(gramName.equals("l")) { + System.out.printf("Currently loaded grammars (%d total):\n", + loadedGrammars.getSize()); + + loadedGrammars.forEachKey(key -> { + System.out.println("\t" + key); + }); + } else if (loadedGrammars.containsKey(gramName)) { + WeightedGrammar gram = loadedGrammars.get(gramName); + + IList ruleNames = gram.getRuleNames(); + + System.out.printf("Rules for grammar %s (%d total)\n", + gramName, ruleNames.getSize()); + + ruleNames.forEach(rule -> { + System.out.println("\t" + rule); + }); + break; + } else { + System.out.println("? Unrecognized grammar name"); + } + + System.out.print("Enter the name of the grammar (l to list): "); + gramName = scn.nextLine().trim(); + } while(true); + } + + private void generateText() { + System.out.println("Entering Generate Mode"); + + System.out.print("(Generate Mode) Enter a command (m for help): "); + + char comm = scn.nextLine().charAt(0); + + while(comm != 'e') { + switch(comm) { + case 'm': + System.out.println("GrammarServer Generate Mode Commands: "); + System.out.println("\tm: Show command help"); + System.out.println("\tx: Generate from exported rules"); + System.out.println("\te: Exit Generate Mode"); + break; + case 'x': + generateExportedRule(); break; default: System.out.println("? Unrecognized command"); @@ -144,6 +242,46 @@ public class GrammarServer { System.out.println("Exiting Generate Mode"); } + private void generateExportedRule() { + System.out.print("Enter the name of the rule to generate" + + " (l to list, enter to cancel): "); + + String ruleName = scn.nextLine().trim(); + + while(true) { + if(ruleName.equals("")) break; + + if(ruleName.equals("l")) { + System.out.println("Current exported rules: "); + exportedRules.forEachKey(key -> { + System.out.println("\t" + key); + }); + } else if (exportedRules.containsKey(ruleName)) { + String ruleResult = ListUtils.collapseTokens( + exportedRules.get(ruleName) + .generateListValues(ruleName, " ")); + + System.out.println("Generated Result: "); + System.out.println("\t" + ruleResult.replaceAll("\\s+", " ")); + + System.out.print("Generate again from this rule? (yes/no) (yes by default): "); + + String resp = scn.nextLine().trim(); + + if(resp.equalsIgnoreCase("yes") || resp.equals("")) { + continue; + } + } else { + System.out.println("? Unrecognized external rule"); + } + + System.out.print("Enter the name of the rule to generate" + + " (l to list, enter to cancel): "); + + ruleName = scn.nextLine().trim(); + } + } + private void loadGrammar() { System.out.print("Enter path to load grammar from: "); @@ -164,6 +302,12 @@ public class GrammarServer { grammarName = inputName; } + doLoadGrammar(grammarName, grammarPath); + + return; + } + + private void doLoadGrammar(String grammarName, String grammarPath) { System.out.printf("Loading grammar (named %s) from path %s\n", grammarName, grammarPath); @@ -183,6 +327,7 @@ public class GrammarServer { + " (reason: %s)", ioex.getMessage()); } - return; + System.out.printf("Loaded grammar (named %s) from path %s\n", + grammarName, grammarPath); } } diff --git a/RGens/src/main/java/bjc/RGens/server/ReaderState.java b/RGens/src/main/java/bjc/RGens/server/ReaderState.java index 9285f7b..3a12ed6 100644 --- a/RGens/src/main/java/bjc/RGens/server/ReaderState.java +++ b/RGens/src/main/java/bjc/RGens/server/ReaderState.java @@ -1,8 +1,5 @@ package bjc.RGens.server; -import java.io.IOException; -import java.nio.file.Path; -import java.util.Stack; import java.util.function.Supplier; import bjc.utils.funcdata.FunctionalList; diff --git a/RGens/src/main/java/bjc/RGens/server/ServerGrammarReader.java b/RGens/src/main/java/bjc/RGens/server/ServerGrammarReader.java index cdd07ee..9314c0c 100644 --- a/RGens/src/main/java/bjc/RGens/server/ServerGrammarReader.java +++ b/RGens/src/main/java/bjc/RGens/server/ServerGrammarReader.java @@ -6,7 +6,6 @@ import java.io.InputStream; import java.util.Random; import java.util.function.BiFunction; import java.util.function.Predicate; -import java.util.function.Supplier; import bjc.utils.data.IPair; import bjc.utils.data.Pair; -- cgit v1.2.3