|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.scheherazade.grammars.SCHGrammarTools
public class SCHGrammarTools
Back-end functions for the Scheherazade grammar.
Constructor Summary | |
---|---|
SCHGrammarTools()
|
Method Summary | |
---|---|
static Action |
action(ReturnValue actionType,
ReturnValue truthDegree,
ReturnValue modeReturn,
SCHArguments args)
Parse in an Action. |
static StoryAssertionParameter |
assertionParameter(ReturnValue paramType,
ReturnValue roleRV,
SCHArguments args)
Handles a complete StoryAssertion parameter, with type and arguments (e.g., node[role](arg)) |
static AssignedActionAddress |
assignedActionAddress(Action action,
ReturnValue time)
Parse in an AssignedActionAddress. |
static AssignedConditionAddress |
assignedConditionAddress(Condition condition,
ReturnValue time)
Parse in an AssignedConditionAddress. |
static AssignedModifierAddress |
assignedModifierAddress(Modifier modifier,
ReturnValue modified)
Parse in an AssignedModifierAddress |
static ReturnValue |
atomicID(SCHSymbolTable symbols,
java.lang.String id)
Handle an atomic identifier |
static Condition |
condition(ReturnValue conditionType,
ReturnValue truthDegree,
ReturnValue modeReturn,
SCHArguments args)
Parse in a Condition. |
static StoryPoint |
makePoint(ReturnValue pointType,
SCHArguments args)
Roll up a StoryPoint out of a parsed out ID (presumably a StoryPointType) and a series of arguments |
static Modifier |
modifier(ReturnValue modifierType,
SCHArguments args)
Parse in a Modifier. |
static java.lang.Object |
noun(ReturnValue nounType,
SCHArguments args,
ReturnValue nounName,
NounFlavor flavor)
Parse in a Noun. |
static java.lang.Object |
parseID(java.lang.String id,
SCHSymbolTable symbols)
Given a string identifier, determine what kind of identifier it is, and upgrade it to a more specific object if possible. |
static java.lang.Object |
stripArg(ReturnValue returnValue,
SCHSymbolTable symbols)
Given a ReturnValue, return the value itself, stripping away the encapsulation of ReturnVector. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SCHGrammarTools()
Method Detail |
---|
public static java.lang.Object parseID(java.lang.String id, SCHSymbolTable symbols) throws Scheherexception
id
- String identifier.
Scheherexception
public static ReturnValue atomicID(SCHSymbolTable symbols, java.lang.String id) throws Scheherexception
Scheherexception
public static StoryAssertionParameter assertionParameter(ReturnValue paramType, ReturnValue roleRV, SCHArguments args) throws Scheherexception
Scheherexception
public static java.lang.Object stripArg(ReturnValue returnValue, SCHSymbolTable symbols) throws Scheherexception
Scheherexception
public static StoryPoint makePoint(ReturnValue pointType, SCHArguments args) throws Scheherexception
Scheherexception
public static Condition condition(ReturnValue conditionType, ReturnValue truthDegree, ReturnValue modeReturn, SCHArguments args) throws Scheherexception
Scheherexception
public static java.lang.Object noun(ReturnValue nounType, SCHArguments args, ReturnValue nounName, NounFlavor flavor) throws Scheherexception
Scheherexception
public static Action action(ReturnValue actionType, ReturnValue truthDegree, ReturnValue modeReturn, SCHArguments args) throws Scheherexception
Scheherexception
public static AssignedConditionAddress assignedConditionAddress(Condition condition, ReturnValue time) throws Scheherexception
Scheherexception
public static AssignedActionAddress assignedActionAddress(Action action, ReturnValue time) throws Scheherexception
Scheherexception
public static Modifier modifier(ReturnValue modifierType, SCHArguments args) throws Scheherexception
Scheherexception
public static AssignedModifierAddress assignedModifierAddress(Modifier modifier, ReturnValue modified) throws Scheherexception
Scheherexception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |