net.cscott.sdr.calls.parser
Class CallFileBuilder
java.lang.Object
org.antlr.runtime.BaseRecognizer
org.antlr.runtime.tree.TreeParser
net.cscott.sdr.calls.parser.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).getEvaluator(null, java.util.Arrays.asList()).simpleExpansion()
(Seq (Apply (Expr and 'bar '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).getEvaluator(null, java.util.Arrays.asList()).simpleExpansion()
(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]]
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)
|
Methods inherited from class org.antlr.runtime.tree.TreeParser |
getCurrentInputSymbol, getErrorHeader, getErrorMessage, getMissingSymbol, getSourceName, getTreeNodeStream, matchAny, recoverFromMismatchedToken, reset, setTreeNodeStream, traceIn, traceOut |
Methods inherited from class org.antlr.runtime.BaseRecognizer |
alreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, displayRecognitionError, emitErrorMessage, endResync, failed, getBacktrackingLevel, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, match, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, reportError, setBacktrackingLevel, toStrings, traceIn, traceOut |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
EQUALS
public static final int EQUALS
- See Also:
- Constant Field Values
DEDENT
public static final int DEDENT
- 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
EXPR
public static final int EXPR
- See Also:
- Constant Field Values
IN
public static final int IN
- See Also:
- Constant Field Values
ARG
public static final int ARG
- 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
PAR
public static final int PAR
- See Also:
- Constant Field Values
IDENT
public static final int IDENT
- 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
XPART
public static final int XPART
- 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_calllist62
public static final org.antlr.runtime.BitSet FOLLOW_CALLLIST_in_calllist62
FOLLOW_program_in_calllist65
public static final org.antlr.runtime.BitSet FOLLOW_program_in_calllist65
FOLLOW_grm_rule_in_grammar_start90
public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grammar_start90
FOLLOW_PROGRAM_in_program111
public static final org.antlr.runtime.BitSet FOLLOW_PROGRAM_in_program111
FOLLOW_IDENT_in_program115
public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_program115
FOLLOW_def_in_program120
public static final org.antlr.runtime.BitSet FOLLOW_def_in_program120
FOLLOW_DEF_in_def149
public static final org.antlr.runtime.BitSet FOLLOW_DEF_in_def149
FOLLOW_simple_words_in_def153
public static final org.antlr.runtime.BitSet FOLLOW_simple_words_in_def153
FOLLOW_decl_args_in_def157
public static final org.antlr.runtime.BitSet FOLLOW_decl_args_in_def157
FOLLOW_OPTIONAL_in_def175
public static final org.antlr.runtime.BitSet FOLLOW_OPTIONAL_in_def175
FOLLOW_IDENT_in_def180
public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_def180
FOLLOW_SPOKEN_in_def201
public static final org.antlr.runtime.BitSet FOLLOW_SPOKEN_in_def201
FOLLOW_number_in_def206
public static final org.antlr.runtime.BitSet FOLLOW_number_in_def206
FOLLOW_grm_rule_in_def212
public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_def212
FOLLOW_example_in_def226
public static final org.antlr.runtime.BitSet FOLLOW_example_in_def226
FOLLOW_pieces_in_def238
public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_def238
FOLLOW_decl_arg_in_decl_args274
public static final org.antlr.runtime.BitSet FOLLOW_decl_arg_in_decl_args274
FOLLOW_ARG_in_decl_arg301
public static final org.antlr.runtime.BitSet FOLLOW_ARG_in_decl_arg301
FOLLOW_simple_words_in_decl_arg305
public static final org.antlr.runtime.BitSet FOLLOW_simple_words_in_decl_arg305
FOLLOW_simple_words_in_decl_arg309
public static final org.antlr.runtime.BitSet FOLLOW_simple_words_in_decl_arg309
FOLLOW_EXAMPLE_in_example338
public static final org.antlr.runtime.BitSet FOLLOW_EXAMPLE_in_example338
FOLLOW_call_body_in_example340
public static final org.antlr.runtime.BitSet FOLLOW_call_body_in_example340
FOLLOW_BEFORE_in_example342
public static final org.antlr.runtime.BitSet FOLLOW_BEFORE_in_example342
FOLLOW_FIGURE_in_example344
public static final org.antlr.runtime.BitSet FOLLOW_FIGURE_in_example344
FOLLOW_AFTER_in_example346
public static final org.antlr.runtime.BitSet FOLLOW_AFTER_in_example346
FOLLOW_FIGURE_in_example348
public static final org.antlr.runtime.BitSet FOLLOW_FIGURE_in_example348
FOLLOW_opt_in_pieces388
public static final org.antlr.runtime.BitSet FOLLOW_opt_in_pieces388
FOLLOW_seq_in_pieces398
public static final org.antlr.runtime.BitSet FOLLOW_seq_in_pieces398
FOLLOW_par_in_pieces408
public static final org.antlr.runtime.BitSet FOLLOW_par_in_pieces408
FOLLOW_res_in_pieces418
public static final org.antlr.runtime.BitSet FOLLOW_res_in_pieces418
FOLLOW_OPT_in_opt442
public static final org.antlr.runtime.BitSet FOLLOW_OPT_in_opt442
FOLLOW_one_opt_in_opt447
public static final org.antlr.runtime.BitSet FOLLOW_one_opt_in_opt447
FOLLOW_FROM_in_one_opt479
public static final org.antlr.runtime.BitSet FOLLOW_FROM_in_one_opt479
FOLLOW_expr_body_in_one_opt483
public static final org.antlr.runtime.BitSet FOLLOW_expr_body_in_one_opt483
FOLLOW_pieces_in_one_opt487
public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_one_opt487
FOLLOW_SEQ_in_seq520
public static final org.antlr.runtime.BitSet FOLLOW_SEQ_in_seq520
FOLLOW_one_seq_in_seq525
public static final org.antlr.runtime.BitSet FOLLOW_one_seq_in_seq525
FOLLOW_PRIM_in_one_seq562
public static final org.antlr.runtime.BitSet FOLLOW_PRIM_in_one_seq562
FOLLOW_direction_in_one_seq567
public static final org.antlr.runtime.BitSet FOLLOW_direction_in_one_seq567
FOLLOW_number_in_one_seq573
public static final org.antlr.runtime.BitSet FOLLOW_number_in_one_seq573
FOLLOW_direction_in_one_seq578
public static final org.antlr.runtime.BitSet FOLLOW_direction_in_one_seq578
FOLLOW_number_in_one_seq584
public static final org.antlr.runtime.BitSet FOLLOW_number_in_one_seq584
FOLLOW_direction_in_one_seq589
public static final org.antlr.runtime.BitSet FOLLOW_direction_in_one_seq589
FOLLOW_rotation_in_one_seq595
public static final org.antlr.runtime.BitSet FOLLOW_rotation_in_one_seq595
FOLLOW_number_in_one_seq600
public static final org.antlr.runtime.BitSet FOLLOW_number_in_one_seq600
FOLLOW_ATTRIBS_in_one_seq603
public static final org.antlr.runtime.BitSet FOLLOW_ATTRIBS_in_one_seq603
FOLLOW_prim_flag_in_one_seq607
public static final org.antlr.runtime.BitSet FOLLOW_prim_flag_in_one_seq607
FOLLOW_CALL_in_one_seq630
public static final org.antlr.runtime.BitSet FOLLOW_CALL_in_one_seq630
FOLLOW_call_body_in_one_seq632
public static final org.antlr.runtime.BitSet FOLLOW_call_body_in_one_seq632
FOLLOW_PART_in_one_seq644
public static final org.antlr.runtime.BitSet FOLLOW_PART_in_one_seq644
FOLLOW_expr_body_in_one_seq648
public static final org.antlr.runtime.BitSet FOLLOW_expr_body_in_one_seq648
FOLLOW_pieces_in_one_seq652
public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_one_seq652
FOLLOW_IPART_in_one_seq668
public static final org.antlr.runtime.BitSet FOLLOW_IPART_in_one_seq668
FOLLOW_expr_body_in_one_seq672
public static final org.antlr.runtime.BitSet FOLLOW_expr_body_in_one_seq672
FOLLOW_pieces_in_one_seq676
public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_one_seq676
FOLLOW_XPART_in_one_seq692
public static final org.antlr.runtime.BitSet FOLLOW_XPART_in_one_seq692
FOLLOW_expr_body_in_one_seq696
public static final org.antlr.runtime.BitSet FOLLOW_expr_body_in_one_seq696
FOLLOW_pieces_in_one_seq700
public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_one_seq700
FOLLOW_IN_in_direction728
public static final org.antlr.runtime.BitSet FOLLOW_IN_in_direction728
FOLLOW_OUT_in_direction738
public static final org.antlr.runtime.BitSet FOLLOW_OUT_in_direction738
FOLLOW_RIGHT_in_rotation760
public static final org.antlr.runtime.BitSet FOLLOW_RIGHT_in_rotation760
FOLLOW_LEFT_in_rotation770
public static final org.antlr.runtime.BitSet FOLLOW_LEFT_in_rotation770
FOLLOW_NONE_in_rotation780
public static final org.antlr.runtime.BitSet FOLLOW_NONE_in_rotation780
FOLLOW_IDENT_in_prim_flag801
public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_prim_flag801
FOLLOW_PAR_in_par830
public static final org.antlr.runtime.BitSet FOLLOW_PAR_in_par830
FOLLOW_one_par_in_par835
public static final org.antlr.runtime.BitSet FOLLOW_one_par_in_par835
FOLLOW_SELECT_in_one_par868
public static final org.antlr.runtime.BitSet FOLLOW_SELECT_in_one_par868
FOLLOW_expr_body_in_one_par872
public static final org.antlr.runtime.BitSet FOLLOW_expr_body_in_one_par872
FOLLOW_pieces_in_one_par876
public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_one_par876
FOLLOW_IN_in_res905
public static final org.antlr.runtime.BitSet FOLLOW_IN_in_res905
FOLLOW_expr_body_in_res909
public static final org.antlr.runtime.BitSet FOLLOW_expr_body_in_res909
FOLLOW_pieces_in_res913
public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_res913
FOLLOW_IF_in_res929
public static final org.antlr.runtime.BitSet FOLLOW_IF_in_res929
FOLLOW_ifwhen_in_res933
public static final org.antlr.runtime.BitSet FOLLOW_ifwhen_in_res933
FOLLOW_expr_body_in_res937
public static final org.antlr.runtime.BitSet FOLLOW_expr_body_in_res937
FOLLOW_NUMBER_in_res942
public static final org.antlr.runtime.BitSet FOLLOW_NUMBER_in_res942
FOLLOW_simple_words_in_res946
public static final org.antlr.runtime.BitSet FOLLOW_simple_words_in_res946
FOLLOW_pieces_in_res952
public static final org.antlr.runtime.BitSet FOLLOW_pieces_in_res952
FOLLOW_BEFORE_in_ifwhen981
public static final org.antlr.runtime.BitSet FOLLOW_BEFORE_in_ifwhen981
FOLLOW_AFTER_in_ifwhen991
public static final org.antlr.runtime.BitSet FOLLOW_AFTER_in_ifwhen991
FOLLOW_ITEM_in_simple_words1021
public static final org.antlr.runtime.BitSet FOLLOW_ITEM_in_simple_words1021
FOLLOW_simple_word_in_simple_words1025
public static final org.antlr.runtime.BitSet FOLLOW_simple_word_in_simple_words1025
FOLLOW_simple_word_in_simple_words1044
public static final org.antlr.runtime.BitSet FOLLOW_simple_word_in_simple_words1044
FOLLOW_IDENT_in_simple_word1080
public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_simple_word1080
FOLLOW_number_in_simple_word1092
public static final org.antlr.runtime.BitSet FOLLOW_number_in_simple_word1092
FOLLOW_simple_words_in_words_or_ref1117
public static final org.antlr.runtime.BitSet FOLLOW_simple_words_in_words_or_ref1117
FOLLOW_ref_in_words_or_ref1133
public static final org.antlr.runtime.BitSet FOLLOW_ref_in_words_or_ref1133
FOLLOW_expr_body_in_call_body1162
public static final org.antlr.runtime.BitSet FOLLOW_expr_body_in_call_body1162
FOLLOW_REF_in_ref1186
public static final org.antlr.runtime.BitSet FOLLOW_REF_in_ref1186
FOLLOW_EXPR_in_expr_body1246
public static final org.antlr.runtime.BitSet FOLLOW_EXPR_in_expr_body1246
FOLLOW_ITEM_in_expr_body1249
public static final org.antlr.runtime.BitSet FOLLOW_ITEM_in_expr_body1249
FOLLOW_number_in_expr_body1253
public static final org.antlr.runtime.BitSet FOLLOW_number_in_expr_body1253
FOLLOW_expr_args_plus_in_expr_body1258
public static final org.antlr.runtime.BitSet FOLLOW_expr_args_plus_in_expr_body1258
FOLLOW_EXPR_in_expr_body1306
public static final org.antlr.runtime.BitSet FOLLOW_EXPR_in_expr_body1306
FOLLOW_ref_in_expr_body1310
public static final org.antlr.runtime.BitSet FOLLOW_ref_in_expr_body1310
FOLLOW_expr_args_in_expr_body1314
public static final org.antlr.runtime.BitSet FOLLOW_expr_args_in_expr_body1314
FOLLOW_EXPR_in_expr_body1331
public static final org.antlr.runtime.BitSet FOLLOW_EXPR_in_expr_body1331
FOLLOW_simple_words_in_expr_body1335
public static final org.antlr.runtime.BitSet FOLLOW_simple_words_in_expr_body1335
FOLLOW_expr_args_in_expr_body1339
public static final org.antlr.runtime.BitSet FOLLOW_expr_args_in_expr_body1339
FOLLOW_LPAREN_in_expr_args1367
public static final org.antlr.runtime.BitSet FOLLOW_LPAREN_in_expr_args1367
FOLLOW_expr_body_in_expr_args1372
public static final org.antlr.runtime.BitSet FOLLOW_expr_body_in_expr_args1372
FOLLOW_LPAREN_in_expr_args_plus1410
public static final org.antlr.runtime.BitSet FOLLOW_LPAREN_in_expr_args_plus1410
FOLLOW_expr_body_in_expr_args_plus1415
public static final org.antlr.runtime.BitSet FOLLOW_expr_body_in_expr_args_plus1415
FOLLOW_NUMBER_in_number1443
public static final org.antlr.runtime.BitSet FOLLOW_NUMBER_in_number1443
FOLLOW_VBAR_in_grm_rule1476
public static final org.antlr.runtime.BitSet FOLLOW_VBAR_in_grm_rule1476
FOLLOW_grm_rule_in_grm_rule1481
public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1481
FOLLOW_ADJ_in_grm_rule1502
public static final org.antlr.runtime.BitSet FOLLOW_ADJ_in_grm_rule1502
FOLLOW_grm_rule_in_grm_rule1507
public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1507
FOLLOW_PLUS_in_grm_rule1528
public static final org.antlr.runtime.BitSet FOLLOW_PLUS_in_grm_rule1528
FOLLOW_grm_rule_in_grm_rule1532
public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1532
FOLLOW_STAR_in_grm_rule1549
public static final org.antlr.runtime.BitSet FOLLOW_STAR_in_grm_rule1549
FOLLOW_grm_rule_in_grm_rule1553
public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1553
FOLLOW_QUESTION_in_grm_rule1570
public static final org.antlr.runtime.BitSet FOLLOW_QUESTION_in_grm_rule1570
FOLLOW_grm_rule_in_grm_rule1574
public static final org.antlr.runtime.BitSet FOLLOW_grm_rule_in_grm_rule1574
FOLLOW_IDENT_in_grm_rule1592
public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_grm_rule1592
FOLLOW_REF_in_grm_rule1607
public static final org.antlr.runtime.BitSet FOLLOW_REF_in_grm_rule1607
FOLLOW_IDENT_in_grm_rule1611
public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_grm_rule1611
FOLLOW_grm_ref_or_int_in_grm_rule1616
public static final org.antlr.runtime.BitSet FOLLOW_grm_ref_or_int_in_grm_rule1616
FOLLOW_IDENT_in_grm_ref_or_int1648
public static final org.antlr.runtime.BitSet FOLLOW_IDENT_in_grm_ref_or_int1648
FOLLOW_INTEGER_in_grm_ref_or_int1664
public static final org.antlr.runtime.BitSet FOLLOW_INTEGER_in_grm_ref_or_int1664
FOLLOW_EXPR_in_synpred1_CallFileBuilder1221
public static final org.antlr.runtime.BitSet FOLLOW_EXPR_in_synpred1_CallFileBuilder1221
FOLLOW_ITEM_in_synpred1_CallFileBuilder1224
public static final org.antlr.runtime.BitSet FOLLOW_ITEM_in_synpred1_CallFileBuilder1224
FOLLOW_number_in_synpred1_CallFileBuilder1226
public static final org.antlr.runtime.BitSet FOLLOW_number_in_synpred1_CallFileBuilder1226
FOLLOW_expr_args_plus_in_synpred1_CallFileBuilder1229
public static final org.antlr.runtime.BitSet FOLLOW_expr_args_plus_in_synpred1_CallFileBuilder1229
FOLLOW_EXPR_in_synpred2_CallFileBuilder1282
public static final org.antlr.runtime.BitSet FOLLOW_EXPR_in_synpred2_CallFileBuilder1282
FOLLOW_REF_in_synpred2_CallFileBuilder1284
public static final org.antlr.runtime.BitSet FOLLOW_REF_in_synpred2_CallFileBuilder1284
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)
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.parser.BuilderHelper.BDirection d(net.cscott.sdr.calls.parser.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
decl_args
public final List<net.cscott.sdr.calls.parser.BuilderHelper.ArgAndDefault> decl_args()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
decl_arg
public final net.cscott.sdr.calls.parser.BuilderHelper.ArgAndDefault decl_arg()
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.parser.BuilderHelper.B<? extends Comp> pieces()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
opt
public final net.cscott.sdr.calls.parser.BuilderHelper.B<Opt> opt()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
one_opt
public final net.cscott.sdr.calls.parser.BuilderHelper.B<OptCall> one_opt()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
seq
public final net.cscott.sdr.calls.parser.BuilderHelper.B<Seq> seq()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
one_seq
public final net.cscott.sdr.calls.parser.BuilderHelper.B<? extends SeqCall> one_seq()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
direction
public final net.cscott.sdr.calls.parser.BuilderHelper.BDirection direction()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
rotation
public final Fraction 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.parser.BuilderHelper.B<Par> par()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
one_par
public final net.cscott.sdr.calls.parser.BuilderHelper.B<ParCall> one_par()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
res
public final net.cscott.sdr.calls.parser.BuilderHelper.B<? extends Comp> res()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
ifwhen
public final If.When ifwhen()
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
words_or_ref
public final net.cscott.sdr.calls.parser.BuilderHelper.B<String> words_or_ref()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
call_body
public final net.cscott.sdr.calls.parser.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
expr_body
public final net.cscott.sdr.calls.parser.BuilderHelper.B<Expr> expr_body()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
expr_args
public final List<net.cscott.sdr.calls.parser.BuilderHelper.B<Expr>> expr_args()
throws org.antlr.runtime.RecognitionException
- Throws:
org.antlr.runtime.RecognitionException
expr_args_plus
public final List<net.cscott.sdr.calls.parser.BuilderHelper.B<Expr>> expr_args_plus()
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
synpred1_CallFileBuilder
public final boolean synpred1_CallFileBuilder()
synpred2_CallFileBuilder
public final boolean synpred2_CallFileBuilder()
Copyright © 2006-2009 C. Scott Ananian