Package de.jplag.scheme
Class SchemeParser
java.lang.Object
de.jplag.scheme.SchemeParser
- All Implemented Interfaces:
SchemeParserConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.Current token.Generated Token Manager.Fields inherited from interface de.jplag.scheme.SchemeParserConstants
AND, ARROW, BEGIN, BOOLEAN, CASE, CHARACTER, CHARACTER_NAME, COMMENT, COMPLEX_10, COMPLEX_16, COMPLEX_2, COMPLEX_8, COND, DECIMAL_10, DEFAULT, DEFINE, DELAY, DIGIT, DIGIT_10, DIGIT_16, DIGIT_2, DIGIT_8, DO, ELSE, EOF, EXACTNESS, EXPONENT_MARKER, IF, INITIAL, LAMBDA, LET, LETREC, LETSTAR, LETTER, NUM_10, NUM_16, NUM_2, NUM_8, NUMBER, OR, PECULIAR_IDENTIFIER, PREFIX_10, PREFIX_16, PREFIX_2, PREFIX_8, QUASIQUOTE, QUOTE, RADIX_10, RADIX_16, RADIX_2, RADIX_8, REAL_10, REAL_16, REAL_2, REAL_8, SET, SIGN, SPECIAL_INITIAL, SPECIAL_SUBSEQUENT, STRING, STRING_ELEMENT, SUBSEQUENT, SUFFIX, tokenImage, UINTEGER_10, UINTEGER_16, UINTEGER_2, UINTEGER_8, UNQUOTE, UNQUOTE_SPLICING, UREAL_10, UREAL_16, UREAL_2, UREAL_8, VARIABLE -
Constructor Summary
ConstructorsConstructorDescriptionConstructor with generated Token Manager.SchemeParser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingSchemeParser(Reader stream) Constructor with InputStream. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidBody()final voidfinal voidCommand()final voidfinal voidfinal voidfinal voidfinal voidfinal voidDatum()final voidfinal voidfinal voidfinal voidDisable tracing.final voidEnable tracing.final voidfinal voidFormals()Generate ParseException.final Tokenfinal TokengetToken(int index) final voidfinal voidInit()final voidfinal voidfinal voidList()final voidListTemplate(int d) final voidLiteral()final voidOperand()final voidOperator()static voidparseFile(File file, SchemeParser parser, Parser parserX) final voidfinal voidProgram()final voidfinal voidQuasiquotationD(int d) final voidfinal voidvoidReinitialisevoidReInit(InputStream stream, String encoding) ReinitialisevoidReinitialisefinal voidfinal voidSequence()final voidfinal voidSplicingUnquotation(int d) final voidStep()final voidSymbol()final voidfinal voidTemplate(int d) final voidTemplateOrSplice(int d) final voidTest()final booleanfinal voidUnquotation(int d) final voidVector()final voidVectorTemplate(int d)
-
Field Details
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
SchemeParser
Constructor with InputStream and supplied encoding- Parameters:
stream- input streamencoding- charset to be used. May not benull.
-
SchemeParser
Constructor with InputStream.- Parameters:
stream- char stream
-
SchemeParser
Constructor with generated Token Manager.- Parameters:
tm- Token manager to use
-
-
Method Details
-
parseFile
public static void parseFile(File file, SchemeParser parser, Parser parserX) throws ParsingException - Throws:
ParsingException
-
Identifier
- Throws:
ParseException
-
SyntacticKeyword
- Throws:
ParseException
-
Datum
- Throws:
ParseException
-
SimpleDatum
- Throws:
ParseException
-
Symbol
- Throws:
ParseException
-
CompoundDatum
- Throws:
ParseException
-
List
- Throws:
ParseException
-
Abbreviation
- Throws:
ParseException
-
AbbrevPrefix
- Throws:
ParseException
-
Vector
- Throws:
ParseException
-
Expression
- Throws:
ParseException
-
Literal
- Throws:
ParseException
-
SelfEvaluating
- Throws:
ParseException
-
Quotation
- Throws:
ParseException
-
ProcedureCall
- Throws:
ParseException
-
Operator
- Throws:
ParseException
-
Operand
- Throws:
ParseException
-
LambdaExpression
- Throws:
ParseException
-
Formals
- Throws:
ParseException
-
Body
- Throws:
ParseException
-
Sequence
- Throws:
ParseException
-
Command
- Throws:
ParseException
-
Conditional
- Throws:
ParseException
-
Test
- Throws:
ParseException
-
Consequent
- Throws:
ParseException
-
Alternate
- Throws:
ParseException
-
Assignment
- Throws:
ParseException
-
DerivedExpression
- Throws:
ParseException
-
CondClause
- Throws:
ParseException
-
Recipient
- Throws:
ParseException
-
CaseClause
- Throws:
ParseException
-
BindingSpec
- Throws:
ParseException
-
IterationSpec
- Throws:
ParseException
-
Init
- Throws:
ParseException
-
Step
- Throws:
ParseException
-
Quasiquotation
- Throws:
ParseException
-
Template
- Throws:
ParseException
-
QuasiquotationD
- Throws:
ParseException
-
ListTemplate
- Throws:
ParseException
-
VectorTemplate
- Throws:
ParseException
-
Unquotation
- Throws:
ParseException
-
TemplateOrSplice
- Throws:
ParseException
-
SplicingUnquotation
- Throws:
ParseException
-
Program
- Throws:
ParseException
-
CommandOrDefinition
- Throws:
ParseException
-
Definition
- Throws:
ParseException
-
DefFormals
- Throws:
ParseException
-
ReInit
Reinitialise- Parameters:
stream- input streamencoding- charset to be used. May not benull.
-
ReInit
Reinitialise- Parameters:
stream- char stream
-
ReInit
Reinitialise- Parameters:
tm- Token manager to use
-
getNextToken
- Returns:
- the next Token.
-
getToken
- Parameters:
index- index to be retrieved- Returns:
- the specific Token.
-
generateParseException
Generate ParseException.- Returns:
- new Exception object. Never
null
-
trace_enabled
public final boolean trace_enabled()- Returns:
- Always
false.
-
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-