sdr 0.5

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> cl=CallFileBuilder.parseCalllist("program:basic\ndef: foo\n call: bar,bat")
[foo[basic]]
js> cl.get(0).apply(net.cscott.sdr.calls.ast.Apply.makeApply('foo'))
(Seq (Apply and (Apply bar) (Apply bat)))
Parsing Prims:
js> cl=CallFileBuilder.parseCalllist("program:basic\ndef: foo\n prim: 1 1/2, 1/2, left, force-arc pass-left force-roll-right")
[foo[basic]]
js> cl.get(0).apply(net.cscott.sdr.calls.ast.Apply.makeApply('foo'))
(Seq (Prim 1 1/2, 1/2, left, 1, PASS_LEFT, FORCE_ARC, FORCE_ROLL_RIGHT))
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 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_rule1249
           
static org.antlr.runtime.BitSet FOLLOW_AFTER_in_example239
           
static org.antlr.runtime.BitSet FOLLOW_APPLY_in_call_body1004
           
static org.antlr.runtime.BitSet FOLLOW_APPLY_in_call_body937
           
static org.antlr.runtime.BitSet FOLLOW_APPLY_in_call_body983
           
static org.antlr.runtime.BitSet FOLLOW_APPLY_in_synpred1_CallFileBuilder917
           
static org.antlr.runtime.BitSet FOLLOW_APPLY_in_synpred2_CallFileBuilder964
           
static org.antlr.runtime.BitSet FOLLOW_ATTRIBS_in_one_seq448
           
static org.antlr.runtime.BitSet FOLLOW_BEFORE_in_example235
           
static org.antlr.runtime.BitSet FOLLOW_BODY_in_simple_body818
           
static org.antlr.runtime.BitSet FOLLOW_BODY_in_simple_ref_body883
           
static org.antlr.runtime.BitSet FOLLOW_call_args_in_call_body1012
           
static org.antlr.runtime.BitSet FOLLOW_call_args_in_call_body991
           
static org.antlr.runtime.BitSet FOLLOW_call_args_plus_in_call_body949
           
static org.antlr.runtime.BitSet FOLLOW_call_args_plus_in_synpred1_CallFileBuilder925
           
static org.antlr.runtime.BitSet FOLLOW_call_body_in_call_args_plus1085
           
static org.antlr.runtime.BitSet FOLLOW_call_body_in_call_args1058
           
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_body1136
           
static org.antlr.runtime.BitSet FOLLOW_cond_args_in_cond_body1155
           
static org.antlr.runtime.BitSet FOLLOW_cond_body_in_cond_args1182
           
static org.antlr.runtime.BitSet FOLLOW_cond_body_in_res692
           
static org.antlr.runtime.BitSet FOLLOW_CONDITION_in_cond_body1128
           
static org.antlr.runtime.BitSet FOLLOW_CONDITION_in_cond_body1147
           
static org.antlr.runtime.BitSet FOLLOW_CONDITION_in_synpred3_CallFileBuilder1109
           
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_rule1333
           
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_rule1234
           
static org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1254
           
static org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1273
           
static org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1288
           
static org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1303
           
static org.antlr.runtime.BitSet FOLLOW_IDENT_in_def159
           
static org.antlr.runtime.BitSet FOLLOW_IDENT_in_grm_ref_or_int1356
           
static org.antlr.runtime.BitSet FOLLOW_IDENT_in_grm_rule1315
           
static org.antlr.runtime.BitSet FOLLOW_IDENT_in_grm_rule1328
           
static org.antlr.runtime.BitSet FOLLOW_IDENT_in_prim_flag572
           
static org.antlr.runtime.BitSet FOLLOW_IDENT_in_program104
           
static org.antlr.runtime.BitSet FOLLOW_IDENT_in_simple_word786
           
static org.antlr.runtime.BitSet FOLLOW_IF_in_res688
           
static org.antlr.runtime.BitSet FOLLOW_IN_in_direction517
           
static org.antlr.runtime.BitSet FOLLOW_IN_in_res667
           
static org.antlr.runtime.BitSet FOLLOW_INTEGER_in_grm_ref_or_int1366
           
static org.antlr.runtime.BitSet FOLLOW_IPART_in_one_seq494
           
static org.antlr.runtime.BitSet FOLLOW_ITEM_in_call_body940
           
static org.antlr.runtime.BitSet FOLLOW_ITEM_in_simple_words736
           
static org.antlr.runtime.BitSet FOLLOW_ITEM_in_synpred1_CallFileBuilder920
           
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_body944
           
static org.antlr.runtime.BitSet FOLLOW_number_in_def185
           
static org.antlr.runtime.BitSet FOLLOW_NUMBER_in_number1204
           
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_res671
           
static org.antlr.runtime.BitSet FOLLOW_NUMBER_in_res697
           
static org.antlr.runtime.BitSet FOLLOW_number_in_simple_word795
           
static org.antlr.runtime.BitSet FOLLOW_number_in_synpred1_CallFileBuilder922
           
static org.antlr.runtime.BitSet FOLLOW_one_opt_in_opt323
           
static org.antlr.runtime.BitSet FOLLOW_one_par_in_par606
           
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_par601
           
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_par644
           
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_res675
           
static org.antlr.runtime.BitSet FOLLOW_pieces_in_res707
           
static org.antlr.runtime.BitSet FOLLOW_PLUS_in_grm_rule1269
           
static org.antlr.runtime.BitSet FOLLOW_prim_flag_in_one_seq452
           
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_rule1299
           
static org.antlr.runtime.BitSet FOLLOW_QUOTED_STR_in_res701
           
static org.antlr.runtime.BitSet FOLLOW_ref_in_call_body987
           
static org.antlr.runtime.BitSet FOLLOW_ref_in_cond_body1132
           
static org.antlr.runtime.BitSet FOLLOW_REF_in_grm_rule1324
           
static org.antlr.runtime.BitSet FOLLOW_REF_in_ref1033
           
static org.antlr.runtime.BitSet FOLLOW_REF_in_synpred2_CallFileBuilder966
           
static org.antlr.runtime.BitSet FOLLOW_REF_in_synpred3_CallFileBuilder1111
           
static org.antlr.runtime.BitSet FOLLOW_ref_in_words_or_ref856
           
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_par636
           
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_par640
           
static org.antlr.runtime.BitSet FOLLOW_simple_word_in_simple_words740
           
static org.antlr.runtime.BitSet FOLLOW_simple_word_in_simple_words756
           
static org.antlr.runtime.BitSet FOLLOW_simple_words_in_call_body1008
           
static org.antlr.runtime.BitSet FOLLOW_simple_words_in_cond_body1151
           
static org.antlr.runtime.BitSet FOLLOW_simple_words_in_simple_body823
           
static org.antlr.runtime.BitSet FOLLOW_simple_words_in_words_or_ref846
           
static org.antlr.runtime.BitSet FOLLOW_SPOKEN_in_def180
           
static org.antlr.runtime.BitSet FOLLOW_STAR_in_grm_rule1284
           
static org.antlr.runtime.BitSet FOLLOW_VBAR_in_grm_rule1229
           
static org.antlr.runtime.BitSet FOLLOW_words_or_ref_in_simple_ref_body888
           
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 QUOTED_STR
           
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
 List<net.cscott.sdr.calls.transform.BuilderHelper.B<Apply>> call_args_plus()
           
 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 prim_flag(Set<Prim.Flag> s)
           
 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

QUOTED_STR

public static final int QUOTED_STR
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

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_prim_flag_in_one_seq452

public static final org.antlr.runtime.BitSet FOLLOW_prim_flag_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_IDENT_in_prim_flag572

public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_prim_flag572

FOLLOW_PAR_in_par601

public static final org.antlr.runtime.BitSet FOLLOW_PAR_in_par601

FOLLOW_one_par_in_par606

public static final org.antlr.runtime.BitSet FOLLOW_one_par_in_par606

FOLLOW_SELECT_in_one_par636

public static final org.antlr.runtime.BitSet FOLLOW_SELECT_in_one_par636

FOLLOW_simple_ref_body_in_one_par640

public static final org.antlr.runtime.BitSet FOLLOW_simple_ref_body_in_one_par640

FOLLOW_pieces_in_one_par644

public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_one_par644

FOLLOW_IN_in_res667

public static final org.antlr.runtime.BitSet FOLLOW_IN_in_res667

FOLLOW_number_in_res671

public static final org.antlr.runtime.BitSet FOLLOW_number_in_res671

FOLLOW_pieces_in_res675

public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_res675

FOLLOW_IF_in_res688

public static final org.antlr.runtime.BitSet FOLLOW_IF_in_res688

FOLLOW_cond_body_in_res692

public static final org.antlr.runtime.BitSet FOLLOW_cond_body_in_res692

FOLLOW_NUMBER_in_res697

public static final org.antlr.runtime.BitSet FOLLOW_NUMBER_in_res697

FOLLOW_QUOTED_STR_in_res701

public static final org.antlr.runtime.BitSet FOLLOW_QUOTED_STR_in_res701

FOLLOW_pieces_in_res707

public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_res707

FOLLOW_ITEM_in_simple_words736

public static final org.antlr.runtime.BitSet FOLLOW_ITEM_in_simple_words736

FOLLOW_simple_word_in_simple_words740

public static final org.antlr.runtime.BitSet FOLLOW_simple_word_in_simple_words740

FOLLOW_simple_word_in_simple_words756

public static final org.antlr.runtime.BitSet FOLLOW_simple_word_in_simple_words756

FOLLOW_IDENT_in_simple_word786

public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_simple_word786

FOLLOW_number_in_simple_word795

public static final org.antlr.runtime.BitSet FOLLOW_number_in_simple_word795

FOLLOW_BODY_in_simple_body818

public static final org.antlr.runtime.BitSet FOLLOW_BODY_in_simple_body818

FOLLOW_simple_words_in_simple_body823

public static final org.antlr.runtime.BitSet FOLLOW_simple_words_in_simple_body823

FOLLOW_simple_words_in_words_or_ref846

public static final org.antlr.runtime.BitSet FOLLOW_simple_words_in_words_or_ref846

FOLLOW_ref_in_words_or_ref856

public static final org.antlr.runtime.BitSet FOLLOW_ref_in_words_or_ref856

FOLLOW_BODY_in_simple_ref_body883

public static final org.antlr.runtime.BitSet FOLLOW_BODY_in_simple_ref_body883

FOLLOW_words_or_ref_in_simple_ref_body888

public static final org.antlr.runtime.BitSet FOLLOW_words_or_ref_in_simple_ref_body888

FOLLOW_APPLY_in_call_body937

public static final org.antlr.runtime.BitSet FOLLOW_APPLY_in_call_body937

FOLLOW_ITEM_in_call_body940

public static final org.antlr.runtime.BitSet FOLLOW_ITEM_in_call_body940

FOLLOW_number_in_call_body944

public static final org.antlr.runtime.BitSet FOLLOW_number_in_call_body944

FOLLOW_call_args_plus_in_call_body949

public static final org.antlr.runtime.BitSet FOLLOW_call_args_plus_in_call_body949

FOLLOW_APPLY_in_call_body983

public static final org.antlr.runtime.BitSet FOLLOW_APPLY_in_call_body983

FOLLOW_ref_in_call_body987

public static final org.antlr.runtime.BitSet FOLLOW_ref_in_call_body987

FOLLOW_call_args_in_call_body991

public static final org.antlr.runtime.BitSet FOLLOW_call_args_in_call_body991

FOLLOW_APPLY_in_call_body1004

public static final org.antlr.runtime.BitSet FOLLOW_APPLY_in_call_body1004

FOLLOW_simple_words_in_call_body1008

public static final org.antlr.runtime.BitSet FOLLOW_simple_words_in_call_body1008

FOLLOW_call_args_in_call_body1012

public static final org.antlr.runtime.BitSet FOLLOW_call_args_in_call_body1012

FOLLOW_REF_in_ref1033

public static final org.antlr.runtime.BitSet FOLLOW_REF_in_ref1033

FOLLOW_call_body_in_call_args1058

public static final org.antlr.runtime.BitSet FOLLOW_call_body_in_call_args1058

FOLLOW_call_body_in_call_args_plus1085

public static final org.antlr.runtime.BitSet FOLLOW_call_body_in_call_args_plus1085

FOLLOW_CONDITION_in_cond_body1128

public static final org.antlr.runtime.BitSet FOLLOW_CONDITION_in_cond_body1128

FOLLOW_ref_in_cond_body1132

public static final org.antlr.runtime.BitSet FOLLOW_ref_in_cond_body1132

FOLLOW_cond_args_in_cond_body1136

public static final org.antlr.runtime.BitSet FOLLOW_cond_args_in_cond_body1136

FOLLOW_CONDITION_in_cond_body1147

public static final org.antlr.runtime.BitSet FOLLOW_CONDITION_in_cond_body1147

FOLLOW_simple_words_in_cond_body1151

public static final org.antlr.runtime.BitSet FOLLOW_simple_words_in_cond_body1151

FOLLOW_cond_args_in_cond_body1155

public static final org.antlr.runtime.BitSet FOLLOW_cond_args_in_cond_body1155

FOLLOW_cond_body_in_cond_args1182

public static final org.antlr.runtime.BitSet FOLLOW_cond_body_in_cond_args1182

FOLLOW_NUMBER_in_number1204

public static final org.antlr.runtime.BitSet FOLLOW_NUMBER_in_number1204

FOLLOW_VBAR_in_grm_rule1229

public static final org.antlr.runtime.BitSet FOLLOW_VBAR_in_grm_rule1229

FOLLOW_grm_rule_in_grm_rule1234

public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1234

FOLLOW_ADJ_in_grm_rule1249

public static final org.antlr.runtime.BitSet FOLLOW_ADJ_in_grm_rule1249

FOLLOW_grm_rule_in_grm_rule1254

public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1254

FOLLOW_PLUS_in_grm_rule1269

public static final org.antlr.runtime.BitSet FOLLOW_PLUS_in_grm_rule1269

FOLLOW_grm_rule_in_grm_rule1273

public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1273

FOLLOW_STAR_in_grm_rule1284

public static final org.antlr.runtime.BitSet FOLLOW_STAR_in_grm_rule1284

FOLLOW_grm_rule_in_grm_rule1288

public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1288

FOLLOW_QUESTION_in_grm_rule1299

public static final org.antlr.runtime.BitSet FOLLOW_QUESTION_in_grm_rule1299

FOLLOW_grm_rule_in_grm_rule1303

public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1303

FOLLOW_IDENT_in_grm_rule1315

public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_grm_rule1315

FOLLOW_REF_in_grm_rule1324

public static final org.antlr.runtime.BitSet FOLLOW_REF_in_grm_rule1324

FOLLOW_IDENT_in_grm_rule1328

public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_grm_rule1328

FOLLOW_grm_ref_or_int_in_grm_rule1333

public static final org.antlr.runtime.BitSet FOLLOW_grm_ref_or_int_in_grm_rule1333

FOLLOW_IDENT_in_grm_ref_or_int1356

public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_grm_ref_or_int1356

FOLLOW_INTEGER_in_grm_ref_or_int1366

public static final org.antlr.runtime.BitSet FOLLOW_INTEGER_in_grm_ref_or_int1366

FOLLOW_APPLY_in_synpred1_CallFileBuilder917

public static final org.antlr.runtime.BitSet FOLLOW_APPLY_in_synpred1_CallFileBuilder917

FOLLOW_ITEM_in_synpred1_CallFileBuilder920

public static final org.antlr.runtime.BitSet FOLLOW_ITEM_in_synpred1_CallFileBuilder920

FOLLOW_number_in_synpred1_CallFileBuilder922

public static final org.antlr.runtime.BitSet FOLLOW_number_in_synpred1_CallFileBuilder922

FOLLOW_call_args_plus_in_synpred1_CallFileBuilder925

public static final org.antlr.runtime.BitSet FOLLOW_call_args_plus_in_synpred1_CallFileBuilder925

FOLLOW_APPLY_in_synpred2_CallFileBuilder964

public static final org.antlr.runtime.BitSet FOLLOW_APPLY_in_synpred2_CallFileBuilder964

FOLLOW_REF_in_synpred2_CallFileBuilder966

public static final org.antlr.runtime.BitSet FOLLOW_REF_in_synpred2_CallFileBuilder966

FOLLOW_CONDITION_in_synpred3_CallFileBuilder1109

public static final org.antlr.runtime.BitSet FOLLOW_CONDITION_in_synpred3_CallFileBuilder1109

FOLLOW_REF_in_synpred3_CallFileBuilder1111

public static final org.antlr.runtime.BitSet FOLLOW_REF_in_synpred3_CallFileBuilder1111
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

prim_flag

public final void prim_flag(Set<Prim.Flag> 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

call_args_plus

public final List<net.cscott.sdr.calls.transform.BuilderHelper.B<Apply>> call_args_plus()
                                                                                 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.5

Copyright © 2006-2009 C. Scott Ananian