Package | Description |
---|---|
gnu.ecmascript | |
gnu.expr |
Supports
Expression ,
and various related classes need to compile programming languages. |
gnu.kawa.brl | |
gnu.kawa.lispexpr |
Support classes for compiling and running Lisp languages.
|
gnu.kawa.xslt | |
gnu.q2.lang |
Support for the experimental Q2 language.
|
gnu.text |
Supports various utility classes
for formatting, parsing, and manipulating text (strings).
|
gnu.xquery.lang | |
kawa.lang |
Core Kawa classes for Scheme and Lisp compile-time.
|
kawa.standard |
Primitive Scheme syntax and functions.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
Parser.getIdentifier() |
void |
Parser.getSemicolon()
Skip an explicit or implicit semicolon.
|
java.lang.String |
Lexer.getStringLiteral(char quote) |
java.lang.Object |
Lexer.getToken()
Returns the next token.
|
java.lang.Object |
Parser.getToken() |
static java.lang.Object |
Lexer.getToken(gnu.kawa.io.InPort inp) |
java.lang.Object |
Lexer.maybeAssignment(java.lang.Object token) |
Expression[] |
Parser.parseArguments() |
Expression |
Parser.parseAssignmentExpression() |
Expression |
Parser.parseBinaryExpression(int prio) |
Expression |
Parser.parseBlock() |
Expression |
Parser.parseConditionalExpression() |
Expression |
Parser.parseExpression() |
Expression |
Parser.parseFunctionDefinition() |
Expression |
Parser.parseIfStatement() |
Expression |
Parser.parseLeftHandSideExpression() |
Expression |
Parser.parsePostfixExpression() |
Expression |
Parser.parsePrimaryExpression() |
Expression |
Parser.parseStatement() |
Expression |
Parser.parseUnaryExpression() |
Expression |
Parser.parseWhileStatement() |
java.lang.Object |
Parser.peekToken()
Return the next non-whitespace token from the lexer.
|
java.lang.Object |
Parser.peekTokenOrLine()
Return the next token from the lexer.
|
Modifier and Type | Method and Description |
---|---|
gnu.expr.KawaCompiledScript |
KawaScriptEngine.compile(gnu.kawa.io.InPort port,
javax.script.ScriptContext context,
SourceMessages messages) |
static java.lang.Object |
ModuleExp.evalModule1(Environment env,
Compilation comp,
java.net.URL url,
gnu.kawa.io.OutPort msg)
Parse and compile a module.
|
static java.lang.Class |
ModuleExp.evalToClass(Compilation comp,
java.net.URL url)
Compile to a class for immediate evaluation.
|
boolean |
Language.parse(Compilation tr) |
abstract boolean |
Language.parse(Compilation comp,
int options) |
Compilation |
Language.parse(gnu.kawa.io.InPort port,
SourceMessages messages,
int options)
Parse one or more expressions.
|
Compilation |
Language.parse(gnu.kawa.io.InPort port,
SourceMessages messages,
int options,
ModuleInfo info) |
Compilation |
Language.parse(Lexer lexer,
int options,
ModuleInfo info) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
BRLRead.readCommand() |
java.lang.Object |
BRLRead.readObject() |
static java.lang.Object |
BRLRead.readObject(gnu.kawa.io.InPort port) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
ReaderExtendedLiteral.checkDelim(LispReader reader,
int next,
int delimiter) |
protected java.lang.Object |
ReaderXmlElement.checkDelim(LispReader reader,
int next,
int delimiter) |
protected java.lang.Object |
LispReader.handlePostfix(java.lang.Object value,
ReadTable rtable,
int line,
int column)
After reading a value check for following
'[' or ':' . |
protected java.lang.Object |
LispReader.handleToken(int startPos,
ReadTable rtable) |
protected boolean |
LispReader.isTerminatingChar(int ch,
ReadTable rtable) |
boolean |
LispLanguage.parse(Compilation comp,
int options) |
java.lang.Object |
ReaderExtendedLiteral.read(Lexer in,
int ch,
int count) |
java.lang.Object |
ReaderDispatchSyntaxQuote.read(Lexer in,
int ch,
int count) |
protected java.lang.Object |
ReadTableEntry.read(Lexer in,
int ch,
int count) |
java.lang.Object |
ReaderNestedComment.read(Lexer in,
int ch,
int count) |
java.lang.Object |
ReaderXmlElement.read(Lexer in,
int ch,
int count) |
java.lang.Object |
ReaderConstituent.read(Lexer in,
int ch,
int count) |
java.lang.Object |
ReaderQuote.read(Lexer in,
int ch,
int count) |
java.lang.Object |
ReaderColon.read(Lexer in,
int ch,
int count) |
java.lang.Object |
ReaderDispatchMisc.read(Lexer in,
int ch,
int count) |
java.lang.Object |
ReaderMisc.read(Lexer in,
int ch,
int count) |
java.lang.Object |
ReaderMacro.read(Lexer in,
int ch,
int count) |
java.lang.Object |
ReaderIgnoreRestOfLine.read(Lexer in,
int ch,
int count) |
java.lang.Object |
ReaderString.read(Lexer in,
int ch,
int count) |
java.lang.Object |
ReaderDispatchMacro.read(Lexer in,
int ch,
int count) |
java.lang.Object |
ReaderTypespec.read(Lexer in,
int ch,
int count) |
java.lang.Object |
ReadTableEntry.read(Lexer in,
int ch,
int count,
int sharingIndex) |
java.lang.Object |
ReaderVector.read(Lexer in,
int ch,
int count,
int sharingIndex) |
java.lang.Object |
ReaderDispatch.read(Lexer in,
int ch,
int count,
int sharingIndex) |
java.lang.Object |
ReaderParens.read(Lexer in,
int ch,
int count,
int sharingIndex)
Read a list (possibly improper) of zero or more Scheme forms.
|
static java.lang.Object |
ReaderQuote.read(LispReader reader,
java.lang.Object magicSymbol,
char next,
java.lang.Object magicSymbol2) |
protected java.lang.Object |
LispReader.readAndHandleToken(int ch,
int startPos,
ReadTable rtable) |
static java.lang.Object |
LispReader.readCharacter(LispReader reader) |
java.lang.Object |
LispReader.readCommand()
Read a "command" - a top-level expression or declaration.
|
Pair |
ReaderExtendedLiteral.readContent(LispReader reader,
char delimiter,
Pair head) |
java.lang.Object |
ReaderXmlElement.readElementConstructor(LispReader reader,
int ch)
Parse ElementConstructor.
|
protected Pair |
ReaderExtendedLiteral.readEnclosed(LispReader reader,
ReadTable readTable,
Pair last,
int startDelimiter,
int endDelimiter) |
protected Pair |
ReaderExtendedLiteral.readEnclosedExpressions(LispReader reader,
ReadTable readTable,
Pair last,
int endDelimiter)
Read expressions enclosed by '[' and ']'.
|
protected java.lang.Object |
ReaderExtendedLiteral.readEnclosedSingleExpression(LispReader reader,
ReadTable readTable,
int ch) |
int |
LispReader.readEscape()
Reads a C-style String escape sequence.
|
int |
LispReader.readEscape(int c) |
static java.lang.Object |
LispReader.readGeneralArray(LispReader in,
int rank,
PrimType elementType) |
int |
LispReader.readHexEscape() |
static java.lang.Object |
ReaderParens.readList(LispReader lexer,
java.lang.Object last,
int ch,
int count,
int close,
int sharingIndex) |
static java.lang.Object |
ReaderDispatchSyntaxQuote.readNamedConstructor(LispReader reader) |
java.lang.Object |
ReaderExtendedLiteral.readNamedLiteral(LispReader reader,
ReadTable rtable,
java.lang.String tag,
int next,
int startLine,
int startColumn) |
void |
LispReader.readNestedComment(char start1,
char start2,
char end1,
char end2)
Read a #|...|#-style comment (which may contain other nested comments).
|
void |
ReaderNestedComment.readNestedComment(LispReader reader) |
static java.lang.Object |
LispReader.readNumberWithRadix(int previous,
LispReader reader,
int radix)
Read a number from a LispReader
|
java.lang.Object |
LispReader.readObject() |
java.lang.Object |
LispReader.readObject(int c) |
java.lang.Object |
LispReader.readObject(int sharingIndex,
boolean topLevel) |
java.lang.Object |
ReaderXmlElement.readQNameExpression(LispReader reader,
int ch,
boolean forElement)
Read either a QName literal or an enclosed QName-producing form.
|
static java.util.regex.Pattern |
ReaderDispatchMisc.readRegex(Lexer in,
int ch,
int count) |
static java.lang.Object |
LispReader.readSpecial(LispReader reader) |
static java.lang.String |
ReaderString.readString(Lexer in,
int ch,
int count) |
java.lang.String |
LispReader.readTokenString(int ch,
ReadTable rtable) |
java.lang.Object |
LispReader.readValues(int ch,
ReadTableEntry entry,
ReadTable rtable,
int sharingIndex)
May return zero or multiple values.
|
java.lang.Object |
LispReader.readValues(int ch,
ReadTable rtable,
int sharingIndex) |
Pair |
LispReader.readValuesAndAppend(int ch,
ReadTable rtable,
Pair last) |
static FVector |
ReaderVector.readVector(LispReader lexer,
gnu.kawa.io.InPort port,
int count,
char close,
int sharingIndex) |
static int |
ReaderXmlElement.skipSpace(LispReader reader,
int ch) |
Modifier and Type | Method and Description |
---|---|
boolean |
XSLT.parse(Compilation comp,
int options) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
Q2Read.handlePostfix(java.lang.Object value,
ReadTable rtable,
int line,
int column) |
protected boolean |
Q2Read.isTerminatingChar(int ch,
ReadTable rtable) |
java.lang.Object |
Q2Read.readCommand() |
static java.lang.Object |
Q2Read.readObject(gnu.kawa.io.InPort port) |
Pair |
Q2Read.readValuesAndAppend(int ch,
ReadTable rtable,
Pair last) |
Modifier and Type | Method and Description |
---|---|
void |
Lexer.eofError(java.lang.String msg) |
void |
Lexer.eofError(java.lang.String message,
int startLine,
int startColumn) |
void |
Lexer.fatal(java.lang.String message) |
boolean |
Lexer.readDelimited(java.lang.String delimiter)
Scan until a given delimiter.
|
Modifier and Type | Method and Description |
---|---|
Expression |
XQParser.declError(java.lang.String message) |
void |
XQParser.eofError(java.lang.String msg) |
void |
XQParser.fatal(java.lang.String msg,
java.lang.String code) |
void |
XQParser.getDelimited(java.lang.String delimiter)
Scan until a given delimiter.
|
Expression |
XQParser.parse(Compilation comp)
Parse an expression.
|
boolean |
XQuery.parse(Compilation tr,
int options) |
Expression |
XQParser.parseDataType() |
Expression |
XQParser.parseFLWRExpression(boolean isFor) |
Expression |
XQParser.parseFLWRInner(boolean isFor)
Parse a let- or a for-expression.
|
Expression |
XQParser.parseFunctionDefinition(int declLine,
int declColumn) |
Expression |
XQParser.parseIfExpr() |
Expression |
XQParser.parseItemType() |
Expression |
XQParser.parseMaybeKindTest() |
Expression |
XQParser.parseNamedNodeType(boolean attribute) |
Expression |
XQParser.parseOptionalTypeDeclaration()
Parse: ["as" SequenceType]
|
Expression |
XQParser.parseQuantifiedExpr(boolean isEvery)
Parse a some- or an every-expression.
|
java.lang.Object |
XQParser.parseVariable()
Parse a Variable.
|
Declaration |
XQParser.parseVariableDeclaration() |
java.lang.Object |
XQParser.readObject() |
Expression |
XQParser.syntaxError(java.lang.String message) |
Expression |
XQParser.syntaxError(java.lang.String message,
java.lang.String code)
Handle syntax errors (at rewrite time).
|
Modifier and Type | Method and Description |
---|---|
static Compilation |
CompileFile.read(gnu.kawa.io.InPort port,
SourceMessages messages) |
static Compilation |
CompileFile.read(java.lang.String name,
SourceMessages messages) |
Modifier and Type | Method and Description |
---|---|
static void |
define_autoload.findAutoloadComments(LispReader in,
java.lang.String filename,
ScopeExp defs,
Translator tr) |