sdr 0.3

net.cscott.sdr.calls.transform
Class CallFileBuilder

java.lang.Object
  extended by org.antlr.runtime.BaseRecognizer
      extended by org.antlr.runtime.tree.TreeParser
          extended by net.cscott.sdr.calls.transform.CallFileBuilder

public class CallFileBuilder
extends org.antlr.runtime.tree.TreeParser

Post-process the ANTLR AST generated by CallFileParser to create a proper parse tree of AstNode.

Tests:
Trivial example:
js> CallFileBuilder.parseCalllist("program:basic")
[]
An actual call definition:
js> CallFileBuilder.parseCalllist("program:basic\ndef: foo\n call: bar,bat")
[foo[basic]]
Parsing spoken-language grammar rules:
js> CallFileBuilder.parseGrm("foo bar|bat? baz")
foo bar|bat? baz
js> CallFileBuilder.parseGrm("square thru <number> (hands (around|round)?)?")  
square thru <number> (hands (around|round)?)?
Call with long example clause:
js> CallFileBuilder.parseCalllist('program: basic\n'+
  >    'def: ferris wheel\n'+
  >    '  call: stretch(wheel and deal)\n'+
  >    '  example: ferris wheel\n'+
  >    '    before:\n'+
  >    '    !  ^ ^\n'+
  >    '    !  A a c C\n'+
  >    '    !  ^ ^ v v\n'+
  >    '    !  B b d D\n'+
  >    '    !      v v\n'+
  >    '    after:\n'+
  >    '    !  a A\n'+
  >    '    !  v v\n'+
  >    '    !  b B\n'+
  >    '    !  v v\n'+
  >    '    !  ^ ^\n'+
  >    '    !  C c\n'+
  >    '    !  ^ ^\n'+
  >    '    !  D d\n')
[ferris wheel[basic]]

Field Summary
static int ADJ
           
static int AFTER
           
static int APPLY
           
static int ARC
           
static int ASSERT
           
static int ATTRIBS
           
static int BEFORE
           
static int BODY
           
static int CALL
           
static int CALLLIST
           
static int COLON
           
static int COMMA
           
static int COMMENT
           
static int CONDITION
           
static int DEDENT
           
static int DEF
           
static int ENDS
           
static int EOF
           
static int EQUALS
           
static int EXAMPLE
           
static int FIGURE
           
static org.antlr.runtime.BitSet FOLLOW_ADJ_in_grm_rule1213
           
static org.antlr.runtime.BitSet FOLLOW_AFTER_in_example239
           
static org.antlr.runtime.BitSet FOLLOW_APPLY_in_call_body928
           
static org.antlr.runtime.BitSet FOLLOW_APPLY_in_call_body974
           
static org.antlr.runtime.BitSet FOLLOW_APPLY_in_call_body995
           
static org.antlr.runtime.BitSet FOLLOW_APPLY_in_synpred1_CallFileBuilder905
           
static org.antlr.runtime.BitSet FOLLOW_APPLY_in_synpred2_CallFileBuilder955
           
static org.antlr.runtime.BitSet FOLLOW_ARC_in_attribs567
           
static org.antlr.runtime.BitSet FOLLOW_ATTRIBS_in_one_seq448
           
static org.antlr.runtime.BitSet FOLLOW_attribs_in_one_seq452
           
static org.antlr.runtime.BitSet FOLLOW_BEFORE_in_example235
           
static org.antlr.runtime.BitSet FOLLOW_BODY_in_simple_body806
           
static org.antlr.runtime.BitSet FOLLOW_BODY_in_simple_ref_body871
           
static org.antlr.runtime.BitSet FOLLOW_call_args_in_call_body1003
           
static org.antlr.runtime.BitSet FOLLOW_call_args_in_call_body940
           
static org.antlr.runtime.BitSet FOLLOW_call_args_in_call_body982
           
static org.antlr.runtime.BitSet FOLLOW_call_body_in_call_args1049
           
static org.antlr.runtime.BitSet FOLLOW_call_body_in_def136
           
static org.antlr.runtime.BitSet FOLLOW_call_body_in_example233
           
static org.antlr.runtime.BitSet FOLLOW_call_body_in_one_seq471
           
static org.antlr.runtime.BitSet FOLLOW_CALL_in_one_seq469
           
static org.antlr.runtime.BitSet FOLLOW_CALLLIST_in_calllist63
           
static org.antlr.runtime.BitSet FOLLOW_cond_args_in_cond_body1100
           
static org.antlr.runtime.BitSet FOLLOW_cond_args_in_cond_body1119
           
static org.antlr.runtime.BitSet FOLLOW_cond_body_in_cond_args1146
           
static org.antlr.runtime.BitSet FOLLOW_cond_body_in_res691
           
static org.antlr.runtime.BitSet FOLLOW_CONDITION_in_cond_body1092
           
static org.antlr.runtime.BitSet FOLLOW_CONDITION_in_cond_body1111
           
static org.antlr.runtime.BitSet FOLLOW_CONDITION_in_synpred3_CallFileBuilder1073
           
static org.antlr.runtime.BitSet FOLLOW_DEF_in_def132
           
static org.antlr.runtime.BitSet FOLLOW_def_in_program109
           
static org.antlr.runtime.BitSet FOLLOW_direction_in_one_seq416
           
static org.antlr.runtime.BitSet FOLLOW_direction_in_one_seq427
           
static org.antlr.runtime.BitSet FOLLOW_direction_in_one_seq438
           
static org.antlr.runtime.BitSet FOLLOW_example_in_def205
           
static org.antlr.runtime.BitSet FOLLOW_EXAMPLE_in_example231
           
static org.antlr.runtime.BitSet FOLLOW_FIGURE_in_example237
           
static org.antlr.runtime.BitSet FOLLOW_FIGURE_in_example241
           
static org.antlr.runtime.BitSet FOLLOW_FROM_in_one_opt346
           
static org.antlr.runtime.BitSet FOLLOW_grm_ref_or_int_in_grm_rule1297
           
static org.antlr.runtime.BitSet FOLLOW_grm_rule_in_def191
           
static org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grammar_start85
           
static org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1198
           
static org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1218
           
static org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1237
           
static org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1252
           
static org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1267
           
static org.antlr.runtime.BitSet FOLLOW_IDENT_in_def159
           
static org.antlr.runtime.BitSet FOLLOW_IDENT_in_grm_ref_or_int1320
           
static org.antlr.runtime.BitSet FOLLOW_IDENT_in_grm_rule1279
           
static org.antlr.runtime.BitSet FOLLOW_IDENT_in_grm_rule1292
           
static org.antlr.runtime.BitSet FOLLOW_IDENT_in_program104
           
static org.antlr.runtime.BitSet FOLLOW_IDENT_in_simple_word774
           
static org.antlr.runtime.BitSet FOLLOW_IF_in_res687
           
static org.antlr.runtime.BitSet FOLLOW_IN_in_direction517
           
static org.antlr.runtime.BitSet FOLLOW_IN_in_res666
           
static org.antlr.runtime.BitSet FOLLOW_INTEGER_in_grm_ref_or_int1330
           
static org.antlr.runtime.BitSet FOLLOW_IPART_in_one_seq494
           
static org.antlr.runtime.BitSet FOLLOW_ITEM_in_call_body931
           
static org.antlr.runtime.BitSet FOLLOW_ITEM_in_simple_words724
           
static org.antlr.runtime.BitSet FOLLOW_ITEM_in_synpred1_CallFileBuilder908
           
static org.antlr.runtime.BitSet FOLLOW_LEFT_in_attribs574
           
static org.antlr.runtime.BitSet FOLLOW_LEFT_in_rotation547
           
static org.antlr.runtime.BitSet FOLLOW_NONE_in_rotation554
           
static org.antlr.runtime.BitSet FOLLOW_number_in_call_body935
           
static org.antlr.runtime.BitSet FOLLOW_number_in_def185
           
static org.antlr.runtime.BitSet FOLLOW_NUMBER_in_number1168
           
static org.antlr.runtime.BitSet FOLLOW_number_in_one_seq422
           
static org.antlr.runtime.BitSet FOLLOW_number_in_one_seq433
           
static org.antlr.runtime.BitSet FOLLOW_number_in_res670
           
static org.antlr.runtime.BitSet FOLLOW_number_in_simple_word783
           
static org.antlr.runtime.BitSet FOLLOW_number_in_synpred1_CallFileBuilder910
           
static org.antlr.runtime.BitSet FOLLOW_one_opt_in_opt323
           
static org.antlr.runtime.BitSet FOLLOW_one_par_in_par605
           
static org.antlr.runtime.BitSet FOLLOW_one_seq_in_seq383
           
static org.antlr.runtime.BitSet FOLLOW_OPT_in_opt318
           
static org.antlr.runtime.BitSet FOLLOW_opt_in_pieces275
           
static org.antlr.runtime.BitSet FOLLOW_OPTIONAL_in_def154
           
static org.antlr.runtime.BitSet FOLLOW_OUT_in_direction524
           
static org.antlr.runtime.BitSet FOLLOW_PAR_in_par600
           
static org.antlr.runtime.BitSet FOLLOW_par_in_pieces289
           
static org.antlr.runtime.BitSet FOLLOW_PART_in_one_seq480
           
static org.antlr.runtime.BitSet FOLLOW_pieces_in_def214
           
static org.antlr.runtime.BitSet FOLLOW_pieces_in_one_opt354
           
static org.antlr.runtime.BitSet FOLLOW_pieces_in_one_par643
           
static org.antlr.runtime.BitSet FOLLOW_pieces_in_one_seq484
           
static org.antlr.runtime.BitSet FOLLOW_pieces_in_one_seq498
           
static org.antlr.runtime.BitSet FOLLOW_pieces_in_res674
           
static org.antlr.runtime.BitSet FOLLOW_pieces_in_res695
           
static org.antlr.runtime.BitSet FOLLOW_PLUS_in_grm_rule1233
           
static org.antlr.runtime.BitSet FOLLOW_PRIM_in_one_seq411
           
static org.antlr.runtime.BitSet FOLLOW_program_in_calllist66
           
static org.antlr.runtime.BitSet FOLLOW_PROGRAM_in_program100
           
static org.antlr.runtime.BitSet FOLLOW_QUESTION_in_grm_rule1263
           
static org.antlr.runtime.BitSet FOLLOW_ref_in_call_body978
           
static org.antlr.runtime.BitSet FOLLOW_ref_in_cond_body1096
           
static org.antlr.runtime.BitSet FOLLOW_REF_in_grm_rule1288
           
static org.antlr.runtime.BitSet FOLLOW_REF_in_ref1024
           
static org.antlr.runtime.BitSet FOLLOW_REF_in_synpred2_CallFileBuilder957
           
static org.antlr.runtime.BitSet FOLLOW_REF_in_synpred3_CallFileBuilder1075
           
static org.antlr.runtime.BitSet FOLLOW_ref_in_words_or_ref844
           
static org.antlr.runtime.BitSet FOLLOW_res_in_pieces296
           
static org.antlr.runtime.BitSet FOLLOW_RIGHT_in_rotation540
           
static org.antlr.runtime.BitSet FOLLOW_rotation_in_one_seq444
           
static org.antlr.runtime.BitSet FOLLOW_SELECT_in_one_par635
           
static org.antlr.runtime.BitSet FOLLOW_seq_in_pieces282
           
static org.antlr.runtime.BitSet FOLLOW_SEQ_in_seq378
           
static org.antlr.runtime.BitSet FOLLOW_simple_body_in_one_opt350
           
static org.antlr.runtime.BitSet FOLLOW_simple_ref_body_in_one_par639
           
static org.antlr.runtime.BitSet FOLLOW_simple_word_in_simple_words728
           
static org.antlr.runtime.BitSet FOLLOW_simple_word_in_simple_words744
           
static org.antlr.runtime.BitSet FOLLOW_simple_words_in_call_body999
           
static org.antlr.runtime.BitSet FOLLOW_simple_words_in_cond_body1115
           
static org.antlr.runtime.BitSet FOLLOW_simple_words_in_simple_body811
           
static org.antlr.runtime.BitSet FOLLOW_simple_words_in_words_or_ref834
           
static org.antlr.runtime.BitSet FOLLOW_SPOKEN_in_def180
           
static org.antlr.runtime.BitSet FOLLOW_STAR_in_grm_rule1248
           
static org.antlr.runtime.BitSet FOLLOW_VBAR_in_grm_rule1193
           
static org.antlr.runtime.BitSet FOLLOW_words_or_ref_in_simple_ref_body876
           
static int FROM
           
static int IDENT
           
static int IF
           
static int IN
           
static int INDENT
           
static int INITIAL_WS
           
static int INTEGER
           
static int IPART
           
static int ITEM
           
static int LANGLE
           
static int LBRACK
           
static int LEFT
           
static int LPAREN
           
static int MINUS
           
static int NL
           
static int NONE
           
static int NUMBER
           
static int OPT
           
static int OPTIONAL
           
static int OUT
           
static int PAR
           
static int PART
           
static int PLUS
           
static int PRIM
           
static int PROGRAM
           
static int QUESTION
           
static int RANGLE
           
static int RBRACK
           
static int REF
           
static int RIGHT
           
static int RPAREN
           
static int SELECT
           
static int SEQ
           
static int SLASH
           
static int SPOKEN
           
static int STAR
           
static String[] tokenNames
           
static int VBAR
           
static int WS
           
static int WSNL
           
 
Fields inherited from class org.antlr.runtime.tree.TreeParser
DOWN, input, UP
 
Fields inherited from class org.antlr.runtime.BaseRecognizer
DEFAULT_TOKEN_CHANNEL, HIDDEN, INITIAL_FOLLOW_STACK_SIZE, MEMO_RULE_FAILED, MEMO_RULE_UNKNOWN, NEXT_TOKEN_RULE_NAME, state
 
Constructor Summary
CallFileBuilder(org.antlr.runtime.tree.Tree t)
           
CallFileBuilder(org.antlr.runtime.tree.TreeNodeStream input)
           
CallFileBuilder(org.antlr.runtime.tree.TreeNodeStream input, org.antlr.runtime.RecognizerSharedState state)
           
 
Method Summary
 void attribs(EnumSet<net.cscott.sdr.calls.transform.BuilderHelper.BPrimAttrib> s)
           
 List<net.cscott.sdr.calls.transform.BuilderHelper.B<Apply>> call_args()
           
 net.cscott.sdr.calls.transform.BuilderHelper.B<Apply> call_body()
           
 void calllist()
           
 List<net.cscott.sdr.calls.transform.BuilderHelper.B<Condition>> cond_args()
           
 net.cscott.sdr.calls.transform.BuilderHelper.B<Condition> cond_body()
           
 net.cscott.sdr.calls.transform.BuilderHelper.BDirection d(net.cscott.sdr.calls.transform.BuilderHelper.BDirection d)
           
 void def()
           
 net.cscott.sdr.calls.transform.BuilderHelper.BDirection direction()
           
 void example()
           
 String getGrammarFileName()
           
 List<Call> getList()
           
 String[] getTokenNames()
           
 Grm grammar_start()
           
 Integer grm_ref_or_int()
           
 Grm grm_rule()
           
<T> T
ifNull(T t, T otherwise)
           
 Fraction number()
           
 net.cscott.sdr.calls.transform.BuilderHelper.B<OptCall> one_opt()
           
 net.cscott.sdr.calls.transform.BuilderHelper.B<ParCall> one_par()
           
 net.cscott.sdr.calls.transform.BuilderHelper.B<? extends SeqCall> one_seq()
           
 net.cscott.sdr.calls.transform.BuilderHelper.B<Opt> opt()
           
 net.cscott.sdr.calls.transform.BuilderHelper.B<Par> par()
           
static List<Call> parseCalllist(Reader r)
           
static List<Call> parseCalllist(String input)
           
static Grm parseGrm(String rule)
           
 net.cscott.sdr.calls.transform.BuilderHelper.B<? extends Comp> pieces()
           
 void program()
           
 int ref()
           
 net.cscott.sdr.calls.transform.BuilderHelper.B<? extends Comp> res()
           
 ExactRotation rotation()
           
 net.cscott.sdr.calls.transform.BuilderHelper.B<Seq> seq()
           
 List<String> simple_body()
           
 List<net.cscott.sdr.calls.transform.BuilderHelper.B<String>> simple_ref_body()
           
 String simple_word()
           
 String simple_words()
           
 void synpred1_CallFileBuilder_fragment()
           
 boolean synpred1_CallFileBuilder()
           
 void synpred2_CallFileBuilder_fragment()
           
 boolean synpred2_CallFileBuilder()
           
 void synpred3_CallFileBuilder_fragment()
           
 boolean synpred3_CallFileBuilder()
           
 net.cscott.sdr.calls.transform.BuilderHelper.B<String> words_or_ref()
           
 
Methods inherited from class org.antlr.runtime.tree.TreeParser
getCurrentInputSymbol, getErrorHeader, getErrorMessage, getMissingSymbol, getSourceName, getTreeNodeStream, matchAny, mismatch, reset, setTreeNodeStream, traceIn, traceOut
 
Methods inherited from class org.antlr.runtime.BaseRecognizer
alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, emitErrorMessage, endResync, getBacktrackingLevel, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, match, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, recoverFromMismatchedToken, reportError, toStrings, traceIn, traceOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tokenNames

public static final String[] tokenNames

ATTRIBS

public static final int ATTRIBS
See Also:
Constant Field Values

APPLY

public static final int APPLY
See Also:
Constant Field Values

STAR

public static final int STAR
See Also:
Constant Field Values

LBRACK

public static final int LBRACK
See Also:
Constant Field Values

DEF

public static final int DEF
See Also:
Constant Field Values

SPOKEN

public static final int SPOKEN
See Also:
Constant Field Values

LANGLE

public static final int LANGLE
See Also:
Constant Field Values

PART

public static final int PART
See Also:
Constant Field Values

IPART

public static final int IPART
See Also:
Constant Field Values

CONDITION

public static final int CONDITION
See Also:
Constant Field Values

DEDENT

public static final int DEDENT
See Also:
Constant Field Values

EQUALS

public static final int EQUALS
See Also:
Constant Field Values

EOF

public static final int EOF
See Also:
Constant Field Values

LPAREN

public static final int LPAREN
See Also:
Constant Field Values

INDENT

public static final int INDENT
See Also:
Constant Field Values

IF

public static final int IF
See Also:
Constant Field Values

VBAR

public static final int VBAR
See Also:
Constant Field Values

INITIAL_WS

public static final int INITIAL_WS
See Also:
Constant Field Values

ARC

public static final int ARC
See Also:
Constant Field Values

RPAREN

public static final int RPAREN
See Also:
Constant Field Values

SLASH

public static final int SLASH
See Also:
Constant Field Values

IN

public static final int IN
See Also:
Constant Field Values

SEQ

public static final int SEQ
See Also:
Constant Field Values

COMMA

public static final int COMMA
See Also:
Constant Field Values

LEFT

public static final int LEFT
See Also:
Constant Field Values

IDENT

public static final int IDENT
See Also:
Constant Field Values

PAR

public static final int PAR
See Also:
Constant Field Values

PLUS

public static final int PLUS
See Also:
Constant Field Values

BODY

public static final int BODY
See Also:
Constant Field Values

NL

public static final int NL
See Also:
Constant Field Values

RANGLE

public static final int RANGLE
See Also:
Constant Field Values

COMMENT

public static final int COMMENT
See Also:
Constant Field Values

ADJ

public static final int ADJ
See Also:
Constant Field Values

SELECT

public static final int SELECT
See Also:
Constant Field Values

INTEGER

public static final int INTEGER
See Also:
Constant Field Values

RBRACK

public static final int RBRACK
See Also:
Constant Field Values

PRIM

public static final int PRIM
See Also:
Constant Field Values

ITEM

public static final int ITEM
See Also:
Constant Field Values

FIGURE

public static final int FIGURE
See Also:
Constant Field Values

OPT

public static final int OPT
See Also:
Constant Field Values

NUMBER

public static final int NUMBER
See Also:
Constant Field Values

BEFORE

public static final int BEFORE
See Also:
Constant Field Values

CALLLIST

public static final int CALLLIST
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

AFTER

public static final int AFTER
See Also:
Constant Field Values

MINUS

public static final int MINUS
See Also:
Constant Field Values

ASSERT

public static final int ASSERT
See Also:
Constant Field Values

EXAMPLE

public static final int EXAMPLE
See Also:
Constant Field Values

OPTIONAL

public static final int OPTIONAL
See Also:
Constant Field Values

REF

public static final int REF
See Also:
Constant Field Values

COLON

public static final int COLON
See Also:
Constant Field Values

WS

public static final int WS
See Also:
Constant Field Values

QUESTION

public static final int QUESTION
See Also:
Constant Field Values

OUT

public static final int OUT
See Also:
Constant Field Values

ENDS

public static final int ENDS
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values

PROGRAM

public static final int PROGRAM
See Also:
Constant Field Values

CALL

public static final int CALL
See Also:
Constant Field Values

FROM

public static final int FROM
See Also:
Constant Field Values

WSNL

public static final int WSNL
See Also:
Constant Field Values

FOLLOW_CALLLIST_in_calllist63

public static final org.antlr.runtime.BitSet FOLLOW_CALLLIST_in_calllist63

FOLLOW_program_in_calllist66

public static final org.antlr.runtime.BitSet FOLLOW_program_in_calllist66

FOLLOW_grm_rule_in_grammar_start85

public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grammar_start85

FOLLOW_PROGRAM_in_program100

public static final org.antlr.runtime.BitSet FOLLOW_PROGRAM_in_program100

FOLLOW_IDENT_in_program104

public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_program104

FOLLOW_def_in_program109

public static final org.antlr.runtime.BitSet FOLLOW_def_in_program109

FOLLOW_DEF_in_def132

public static final org.antlr.runtime.BitSet FOLLOW_DEF_in_def132

FOLLOW_call_body_in_def136

public static final org.antlr.runtime.BitSet FOLLOW_call_body_in_def136

FOLLOW_OPTIONAL_in_def154

public static final org.antlr.runtime.BitSet FOLLOW_OPTIONAL_in_def154

FOLLOW_IDENT_in_def159

public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_def159

FOLLOW_SPOKEN_in_def180

public static final org.antlr.runtime.BitSet FOLLOW_SPOKEN_in_def180

FOLLOW_number_in_def185

public static final org.antlr.runtime.BitSet FOLLOW_number_in_def185

FOLLOW_grm_rule_in_def191

public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_def191

FOLLOW_example_in_def205

public static final org.antlr.runtime.BitSet FOLLOW_example_in_def205

FOLLOW_pieces_in_def214

public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_def214

FOLLOW_EXAMPLE_in_example231

public static final org.antlr.runtime.BitSet FOLLOW_EXAMPLE_in_example231

FOLLOW_call_body_in_example233

public static final org.antlr.runtime.BitSet FOLLOW_call_body_in_example233

FOLLOW_BEFORE_in_example235

public static final org.antlr.runtime.BitSet FOLLOW_BEFORE_in_example235

FOLLOW_FIGURE_in_example237

public static final org.antlr.runtime.BitSet FOLLOW_FIGURE_in_example237

FOLLOW_AFTER_in_example239

public static final org.antlr.runtime.BitSet FOLLOW_AFTER_in_example239

FOLLOW_FIGURE_in_example241

public static final org.antlr.runtime.BitSet FOLLOW_FIGURE_in_example241

FOLLOW_opt_in_pieces275

public static final org.antlr.runtime.BitSet FOLLOW_opt_in_pieces275

FOLLOW_seq_in_pieces282

public static final org.antlr.runtime.BitSet FOLLOW_seq_in_pieces282

FOLLOW_par_in_pieces289

public static final org.antlr.runtime.BitSet FOLLOW_par_in_pieces289

FOLLOW_res_in_pieces296

public static final org.antlr.runtime.BitSet FOLLOW_res_in_pieces296

FOLLOW_OPT_in_opt318

public static final org.antlr.runtime.BitSet FOLLOW_OPT_in_opt318

FOLLOW_one_opt_in_opt323

public static final org.antlr.runtime.BitSet FOLLOW_one_opt_in_opt323

FOLLOW_FROM_in_one_opt346

public static final org.antlr.runtime.BitSet FOLLOW_FROM_in_one_opt346

FOLLOW_simple_body_in_one_opt350

public static final org.antlr.runtime.BitSet FOLLOW_simple_body_in_one_opt350

FOLLOW_pieces_in_one_opt354

public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_one_opt354

FOLLOW_SEQ_in_seq378

public static final org.antlr.runtime.BitSet FOLLOW_SEQ_in_seq378

FOLLOW_one_seq_in_seq383

public static final org.antlr.runtime.BitSet FOLLOW_one_seq_in_seq383

FOLLOW_PRIM_in_one_seq411

public static final org.antlr.runtime.BitSet FOLLOW_PRIM_in_one_seq411

FOLLOW_direction_in_one_seq416

public static final org.antlr.runtime.BitSet FOLLOW_direction_in_one_seq416

FOLLOW_number_in_one_seq422

public static final org.antlr.runtime.BitSet FOLLOW_number_in_one_seq422

FOLLOW_direction_in_one_seq427

public static final org.antlr.runtime.BitSet FOLLOW_direction_in_one_seq427

FOLLOW_number_in_one_seq433

public static final org.antlr.runtime.BitSet FOLLOW_number_in_one_seq433

FOLLOW_direction_in_one_seq438

public static final org.antlr.runtime.BitSet FOLLOW_direction_in_one_seq438

FOLLOW_rotation_in_one_seq444

public static final org.antlr.runtime.BitSet FOLLOW_rotation_in_one_seq444

FOLLOW_ATTRIBS_in_one_seq448

public static final org.antlr.runtime.BitSet FOLLOW_ATTRIBS_in_one_seq448

FOLLOW_attribs_in_one_seq452

public static final org.antlr.runtime.BitSet FOLLOW_attribs_in_one_seq452

FOLLOW_CALL_in_one_seq469

public static final org.antlr.runtime.BitSet FOLLOW_CALL_in_one_seq469

FOLLOW_call_body_in_one_seq471

public static final org.antlr.runtime.BitSet FOLLOW_call_body_in_one_seq471

FOLLOW_PART_in_one_seq480

public static final org.antlr.runtime.BitSet FOLLOW_PART_in_one_seq480

FOLLOW_pieces_in_one_seq484

public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_one_seq484

FOLLOW_IPART_in_one_seq494

public static final org.antlr.runtime.BitSet FOLLOW_IPART_in_one_seq494

FOLLOW_pieces_in_one_seq498

public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_one_seq498

FOLLOW_IN_in_direction517

public static final org.antlr.runtime.BitSet FOLLOW_IN_in_direction517

FOLLOW_OUT_in_direction524

public static final org.antlr.runtime.BitSet FOLLOW_OUT_in_direction524

FOLLOW_RIGHT_in_rotation540

public static final org.antlr.runtime.BitSet FOLLOW_RIGHT_in_rotation540

FOLLOW_LEFT_in_rotation547

public static final org.antlr.runtime.BitSet FOLLOW_LEFT_in_rotation547

FOLLOW_NONE_in_rotation554

public static final org.antlr.runtime.BitSet FOLLOW_NONE_in_rotation554

FOLLOW_ARC_in_attribs567

public static final org.antlr.runtime.BitSet FOLLOW_ARC_in_attribs567

FOLLOW_LEFT_in_attribs574

public static final org.antlr.runtime.BitSet FOLLOW_LEFT_in_attribs574

FOLLOW_PAR_in_par600

public static final org.antlr.runtime.BitSet FOLLOW_PAR_in_par600

FOLLOW_one_par_in_par605

public static final org.antlr.runtime.BitSet FOLLOW_one_par_in_par605

FOLLOW_SELECT_in_one_par635

public static final org.antlr.runtime.BitSet FOLLOW_SELECT_in_one_par635

FOLLOW_simple_ref_body_in_one_par639

public static final org.antlr.runtime.BitSet FOLLOW_simple_ref_body_in_one_par639

FOLLOW_pieces_in_one_par643

public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_one_par643

FOLLOW_IN_in_res666

public static final org.antlr.runtime.BitSet FOLLOW_IN_in_res666

FOLLOW_number_in_res670

public static final org.antlr.runtime.BitSet FOLLOW_number_in_res670

FOLLOW_pieces_in_res674

public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_res674

FOLLOW_IF_in_res687

public static final org.antlr.runtime.BitSet FOLLOW_IF_in_res687

FOLLOW_cond_body_in_res691

public static final org.antlr.runtime.BitSet FOLLOW_cond_body_in_res691

FOLLOW_pieces_in_res695

public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_res695

FOLLOW_ITEM_in_simple_words724

public static final org.antlr.runtime.BitSet FOLLOW_ITEM_in_simple_words724

FOLLOW_simple_word_in_simple_words728

public static final org.antlr.runtime.BitSet FOLLOW_simple_word_in_simple_words728

FOLLOW_simple_word_in_simple_words744

public static final org.antlr.runtime.BitSet FOLLOW_simple_word_in_simple_words744

FOLLOW_IDENT_in_simple_word774

public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_simple_word774

FOLLOW_number_in_simple_word783

public static final org.antlr.runtime.BitSet FOLLOW_number_in_simple_word783

FOLLOW_BODY_in_simple_body806

public static final org.antlr.runtime.BitSet FOLLOW_BODY_in_simple_body806

FOLLOW_simple_words_in_simple_body811

public static final org.antlr.runtime.BitSet FOLLOW_simple_words_in_simple_body811

FOLLOW_simple_words_in_words_or_ref834

public static final org.antlr.runtime.BitSet FOLLOW_simple_words_in_words_or_ref834

FOLLOW_ref_in_words_or_ref844

public static final org.antlr.runtime.BitSet FOLLOW_ref_in_words_or_ref844

FOLLOW_BODY_in_simple_ref_body871

public static final org.antlr.runtime.BitSet FOLLOW_BODY_in_simple_ref_body871

FOLLOW_words_or_ref_in_simple_ref_body876

public static final org.antlr.runtime.BitSet FOLLOW_words_or_ref_in_simple_ref_body876

FOLLOW_APPLY_in_call_body928

public static final org.antlr.runtime.BitSet FOLLOW_APPLY_in_call_body928

FOLLOW_ITEM_in_call_body931

public static final org.antlr.runtime.BitSet FOLLOW_ITEM_in_call_body931

FOLLOW_number_in_call_body935

public static final org.antlr.runtime.BitSet FOLLOW_number_in_call_body935

FOLLOW_call_args_in_call_body940

public static final org.antlr.runtime.BitSet FOLLOW_call_args_in_call_body940

FOLLOW_APPLY_in_call_body974

public static final org.antlr.runtime.BitSet FOLLOW_APPLY_in_call_body974

FOLLOW_ref_in_call_body978

public static final org.antlr.runtime.BitSet FOLLOW_ref_in_call_body978

FOLLOW_call_args_in_call_body982

public static final org.antlr.runtime.BitSet FOLLOW_call_args_in_call_body982

FOLLOW_APPLY_in_call_body995

public static final org.antlr.runtime.BitSet FOLLOW_APPLY_in_call_body995

FOLLOW_simple_words_in_call_body999

public static final org.antlr.runtime.BitSet FOLLOW_simple_words_in_call_body999

FOLLOW_call_args_in_call_body1003

public static final org.antlr.runtime.BitSet FOLLOW_call_args_in_call_body1003

FOLLOW_REF_in_ref1024

public static final org.antlr.runtime.BitSet FOLLOW_REF_in_ref1024

FOLLOW_call_body_in_call_args1049

public static final org.antlr.runtime.BitSet FOLLOW_call_body_in_call_args1049

FOLLOW_CONDITION_in_cond_body1092

public static final org.antlr.runtime.BitSet FOLLOW_CONDITION_in_cond_body1092

FOLLOW_ref_in_cond_body1096

public static final org.antlr.runtime.BitSet FOLLOW_ref_in_cond_body1096

FOLLOW_cond_args_in_cond_body1100

public static final org.antlr.runtime.BitSet FOLLOW_cond_args_in_cond_body1100

FOLLOW_CONDITION_in_cond_body1111

public static final org.antlr.runtime.BitSet FOLLOW_CONDITION_in_cond_body1111

FOLLOW_simple_words_in_cond_body1115

public static final org.antlr.runtime.BitSet FOLLOW_simple_words_in_cond_body1115

FOLLOW_cond_args_in_cond_body1119

public static final org.antlr.runtime.BitSet FOLLOW_cond_args_in_cond_body1119

FOLLOW_cond_body_in_cond_args1146

public static final org.antlr.runtime.BitSet FOLLOW_cond_body_in_cond_args1146

FOLLOW_NUMBER_in_number1168

public static final org.antlr.runtime.BitSet FOLLOW_NUMBER_in_number1168

FOLLOW_VBAR_in_grm_rule1193

public static final org.antlr.runtime.BitSet FOLLOW_VBAR_in_grm_rule1193

FOLLOW_grm_rule_in_grm_rule1198

public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1198

FOLLOW_ADJ_in_grm_rule1213

public static final org.antlr.runtime.BitSet FOLLOW_ADJ_in_grm_rule1213

FOLLOW_grm_rule_in_grm_rule1218

public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1218

FOLLOW_PLUS_in_grm_rule1233

public static final org.antlr.runtime.BitSet FOLLOW_PLUS_in_grm_rule1233

FOLLOW_grm_rule_in_grm_rule1237

public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1237

FOLLOW_STAR_in_grm_rule1248

public static final org.antlr.runtime.BitSet FOLLOW_STAR_in_grm_rule1248

FOLLOW_grm_rule_in_grm_rule1252

public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1252

FOLLOW_QUESTION_in_grm_rule1263

public static final org.antlr.runtime.BitSet FOLLOW_QUESTION_in_grm_rule1263

FOLLOW_grm_rule_in_grm_rule1267

public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1267

FOLLOW_IDENT_in_grm_rule1279

public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_grm_rule1279

FOLLOW_REF_in_grm_rule1288

public static final org.antlr.runtime.BitSet FOLLOW_REF_in_grm_rule1288

FOLLOW_IDENT_in_grm_rule1292

public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_grm_rule1292

FOLLOW_grm_ref_or_int_in_grm_rule1297

public static final org.antlr.runtime.BitSet FOLLOW_grm_ref_or_int_in_grm_rule1297

FOLLOW_IDENT_in_grm_ref_or_int1320

public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_grm_ref_or_int1320

FOLLOW_INTEGER_in_grm_ref_or_int1330

public static final org.antlr.runtime.BitSet FOLLOW_INTEGER_in_grm_ref_or_int1330

FOLLOW_APPLY_in_synpred1_CallFileBuilder905

public static final org.antlr.runtime.BitSet FOLLOW_APPLY_in_synpred1_CallFileBuilder905

FOLLOW_ITEM_in_synpred1_CallFileBuilder908

public static final org.antlr.runtime.BitSet FOLLOW_ITEM_in_synpred1_CallFileBuilder908

FOLLOW_number_in_synpred1_CallFileBuilder910

public static final org.antlr.runtime.BitSet FOLLOW_number_in_synpred1_CallFileBuilder910

FOLLOW_APPLY_in_synpred2_CallFileBuilder955

public static final org.antlr.runtime.BitSet FOLLOW_APPLY_in_synpred2_CallFileBuilder955

FOLLOW_REF_in_synpred2_CallFileBuilder957

public static final org.antlr.runtime.BitSet FOLLOW_REF_in_synpred2_CallFileBuilder957

FOLLOW_CONDITION_in_synpred3_CallFileBuilder1073

public static final org.antlr.runtime.BitSet FOLLOW_CONDITION_in_synpred3_CallFileBuilder1073

FOLLOW_REF_in_synpred3_CallFileBuilder1075

public static final org.antlr.runtime.BitSet FOLLOW_REF_in_synpred3_CallFileBuilder1075
Constructor Detail

CallFileBuilder

public CallFileBuilder(org.antlr.runtime.tree.TreeNodeStream input)

CallFileBuilder

public CallFileBuilder(org.antlr.runtime.tree.TreeNodeStream input,
                       org.antlr.runtime.RecognizerSharedState state)

CallFileBuilder

public CallFileBuilder(org.antlr.runtime.tree.Tree t)
Method Detail

getTokenNames

public String[] getTokenNames()
Overrides:
getTokenNames in class org.antlr.runtime.BaseRecognizer

getGrammarFileName

public String getGrammarFileName()
Overrides:
getGrammarFileName in class org.antlr.runtime.BaseRecognizer

getList

public List<Call> getList()

ifNull

public <T> T ifNull(T t,
                    T otherwise)

d

public net.cscott.sdr.calls.transform.BuilderHelper.BDirection d(net.cscott.sdr.calls.transform.BuilderHelper.BDirection d)

parseCalllist

public static List<Call> parseCalllist(Reader r)
                                throws IOException,
                                       org.antlr.runtime.RecognitionException
Throws:
IOException
org.antlr.runtime.RecognitionException

parseCalllist

public static List<Call> parseCalllist(String input)
                                throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

parseGrm

public static Grm parseGrm(String rule)
                    throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

calllist

public final void calllist()
                    throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

grammar_start

public final Grm grammar_start()
                        throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

program

public final void program()
                   throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

def

public final void def()
               throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

example

public final void example()
                   throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

pieces

public final net.cscott.sdr.calls.transform.BuilderHelper.B<? extends Comp> pieces()
                                                                            throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

opt

public final net.cscott.sdr.calls.transform.BuilderHelper.B<Opt> opt()
                                                              throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

one_opt

public final net.cscott.sdr.calls.transform.BuilderHelper.B<OptCall> one_opt()
                                                                      throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

seq

public final net.cscott.sdr.calls.transform.BuilderHelper.B<Seq> seq()
                                                              throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

one_seq

public final net.cscott.sdr.calls.transform.BuilderHelper.B<? extends SeqCall> one_seq()
                                                                                throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

direction

public final net.cscott.sdr.calls.transform.BuilderHelper.BDirection direction()
                                                                        throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

rotation

public final ExactRotation rotation()
                             throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

attribs

public final void attribs(EnumSet<net.cscott.sdr.calls.transform.BuilderHelper.BPrimAttrib> s)
                   throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

par

public final net.cscott.sdr.calls.transform.BuilderHelper.B<Par> par()
                                                              throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

one_par

public final net.cscott.sdr.calls.transform.BuilderHelper.B<ParCall> one_par()
                                                                      throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

res

public final net.cscott.sdr.calls.transform.BuilderHelper.B<? extends Comp> res()
                                                                         throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

simple_words

public final String simple_words()
                          throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

simple_word

public final String simple_word()
                         throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

simple_body

public final List<String> simple_body()
                               throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

words_or_ref

public final net.cscott.sdr.calls.transform.BuilderHelper.B<String> words_or_ref()
                                                                          throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

simple_ref_body

public final List<net.cscott.sdr.calls.transform.BuilderHelper.B<String>> simple_ref_body()
                                                                                   throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

call_body

public final net.cscott.sdr.calls.transform.BuilderHelper.B<Apply> call_body()
                                                                      throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

ref

public final int ref()
              throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

call_args

public final List<net.cscott.sdr.calls.transform.BuilderHelper.B<Apply>> call_args()
                                                                            throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

cond_body

public final net.cscott.sdr.calls.transform.BuilderHelper.B<Condition> cond_body()
                                                                          throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

cond_args

public final List<net.cscott.sdr.calls.transform.BuilderHelper.B<Condition>> cond_args()
                                                                                throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

number

public final Fraction number()
                      throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

grm_rule

public final Grm grm_rule()
                   throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

grm_ref_or_int

public final Integer grm_ref_or_int()
                             throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

synpred1_CallFileBuilder_fragment

public final void synpred1_CallFileBuilder_fragment()
                                             throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

synpred2_CallFileBuilder_fragment

public final void synpred2_CallFileBuilder_fragment()
                                             throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

synpred3_CallFileBuilder_fragment

public final void synpred3_CallFileBuilder_fragment()
                                             throws org.antlr.runtime.RecognitionException
Throws:
org.antlr.runtime.RecognitionException

synpred1_CallFileBuilder

public final boolean synpred1_CallFileBuilder()

synpred3_CallFileBuilder

public final boolean synpred3_CallFileBuilder()

synpred2_CallFileBuilder

public final boolean synpred2_CallFileBuilder()

sdr 0.3

Copyright © 2006-2009 C. Scott Ananian