net.cscott.sdr.calls.transform
Class CallFileBuilder
java.lang.Object
antlr.TreeParser
net.cscott.sdr.calls.transform.CallFileBuilder
- All Implemented Interfaces:
- CallFileBuilderTokenTypes
public class CallFileBuilder
- extends TreeParser
- implements CallFileBuilderTokenTypes
CallFileBuilder builds a proper AST from the parse tree.
Fields inherited from interface net.cscott.sdr.calls.transform.CallFileBuilderTokenTypes |
ADJ, APPLY, ARC, ATTRIBS, BODY, CALL, CALLLIST, COLON, COMMA, COMMENT, CONDITION, DEDENT, DEF, EOF, EQUALS, FROM, IDENT, IF, IN, INDENT, INITIAL_WS, INTEGER, IPART, ITEM, LANGLE, LBRACK, LEFT, LPAREN, MINUS, NONE, NULL_TREE_LOOKAHEAD, NUMBER, OPT, OPTIONAL, OUT, PAR, PART, PLUS, PRIM, PROGRAM, QUESTION, RANGLE, RBRACK, REF, RIGHT, RPAREN, SELECT, SEQ, SLASH, SPOKEN, STAR, STUFF_INCL_NEWLINES, VBAR, WARP, WS, WSNL |
Methods inherited from class antlr.TreeParser |
getAST, getASTFactory, getTokenName, getTokenNames, match, match, matchNot, panic, reportError, reportError, reportWarning, setASTFactory, setASTNodeClass, setASTNodeType, traceIn, traceIndent, 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
_tokenSet_0
public static final BitSet _tokenSet_0
_tokenSet_1
public static final BitSet _tokenSet_1
CallFileBuilder
public CallFileBuilder()
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)
calllist
public final void calllist(AST _t)
throws RecognitionException
- Throws:
RecognitionException
program
public final void program(AST _t)
throws RecognitionException
- Throws:
RecognitionException
grammar_start
public final Grm grammar_start(AST _t)
throws RecognitionException
- Throws:
RecognitionException
grm_rule
public final Grm grm_rule(AST _t)
throws RecognitionException
- Throws:
RecognitionException
def
public final void def(AST _t)
throws RecognitionException
- Throws:
RecognitionException
call_body
public final net.cscott.sdr.calls.transform.BuilderHelper.B<Apply> call_body(AST _t)
throws RecognitionException
- Throws:
RecognitionException
number
public final Fraction number(AST _t)
throws RecognitionException
- Throws:
RecognitionException
pieces
public final net.cscott.sdr.calls.transform.BuilderHelper.B<? extends Comp> pieces(AST _t)
throws RecognitionException
- Throws:
RecognitionException
opt
public final net.cscott.sdr.calls.transform.BuilderHelper.B<Opt> opt(AST _t)
throws RecognitionException
- Throws:
RecognitionException
seq
public final net.cscott.sdr.calls.transform.BuilderHelper.B<Seq> seq(AST _t)
throws RecognitionException
- Throws:
RecognitionException
par
public final net.cscott.sdr.calls.transform.BuilderHelper.B<Par> par(AST _t)
throws RecognitionException
- Throws:
RecognitionException
res
public final net.cscott.sdr.calls.transform.BuilderHelper.B<? extends Comp> res(AST _t)
throws RecognitionException
- Throws:
RecognitionException
one_opt
public final net.cscott.sdr.calls.transform.BuilderHelper.B<OptCall> one_opt(AST _t)
throws RecognitionException
- Throws:
RecognitionException
simple_body
public final List<String> simple_body(AST _t)
throws RecognitionException
- Throws:
RecognitionException
one_seq
public final net.cscott.sdr.calls.transform.BuilderHelper.B<? extends SeqCall> one_seq(AST _t)
throws RecognitionException
- Throws:
RecognitionException
direction
public final net.cscott.sdr.calls.transform.BuilderHelper.BDirection direction(AST _t)
throws RecognitionException
- Throws:
RecognitionException
rotation
public final ExactRotation rotation(AST _t)
throws RecognitionException
- Throws:
RecognitionException
attribs
public final void attribs(AST _t,
EnumSet<net.cscott.sdr.calls.transform.BuilderHelper.BPrimAttrib> s)
throws RecognitionException
- Throws:
RecognitionException
one_par
public final net.cscott.sdr.calls.transform.BuilderHelper.B<ParCall> one_par(AST _t)
throws RecognitionException
- Throws:
RecognitionException
simple_ref_body
public final List<net.cscott.sdr.calls.transform.BuilderHelper.B<String>> simple_ref_body(AST _t)
throws RecognitionException
- Throws:
RecognitionException
cond_body
public final net.cscott.sdr.calls.transform.BuilderHelper.B<Condition> cond_body(AST _t)
throws RecognitionException
- Throws:
RecognitionException
simple_words
public final String simple_words(AST _t)
throws RecognitionException
- Throws:
RecognitionException
simple_word
public final String simple_word(AST _t)
throws RecognitionException
- Throws:
RecognitionException
words_or_ref
public final net.cscott.sdr.calls.transform.BuilderHelper.B<String> words_or_ref(AST _t)
throws RecognitionException
- Throws:
RecognitionException
ref
public final int ref(AST _t)
throws RecognitionException
- Throws:
RecognitionException
call_args
public final List<net.cscott.sdr.calls.transform.BuilderHelper.B<Apply>> call_args(AST _t)
throws RecognitionException
- Throws:
RecognitionException
cond_args
public final List<net.cscott.sdr.calls.transform.BuilderHelper.B<Condition>> cond_args(AST _t)
throws RecognitionException
- Throws:
RecognitionException
grm_ref_or_int
public final Integer grm_ref_or_int(AST _t)
throws RecognitionException
- Throws:
RecognitionException
Copyright (c) 2006 C. Scott Ananian