public final class LazyRatsParser
extends xtc.parser.ParserBase
org.sweble.wikitext.lazy.parser.Grammar.
This class has been generated by the Rats! parser
generator, version 1.15.0, (C) 2004-2009 Robert Grimm.| Modifier and Type | Class and Description |
|---|---|
class |
LazyRatsParser.ListNode |
static class |
LazyRatsParser.ListType |
class |
LazyRatsParser.ParserCharSequence |
protected static class |
LazyRatsParser.StateAwareResult |
| Modifier and Type | Field and Description |
|---|---|
protected LazyParserState |
yyState
The global state object.
|
| Constructor and Description |
|---|
LazyRatsParser(Reader reader,
String file)
Create a new packrat parser.
|
LazyRatsParser(Reader reader,
String file,
int size)
Create a new packrat parser.
|
| Modifier and Type | Method and Description |
|---|---|
protected static RtData |
addRtData(de.fau.cs.osr.ptk.common.ast.AstNode yyValue,
Object[]... rts) |
protected xtc.tree.Location |
columnToLocation(int index) |
protected String |
difference(int start,
xtc.parser.Result result) |
static void |
enableStats() |
de.fau.cs.osr.ptk.common.ast.AstNode |
getEntity(int id) |
LazyParserState |
getState() |
static ParserStats |
getStats() |
protected boolean |
isGatherRtData() |
static boolean |
isStatsEnabled() |
protected static Object[] |
joinRt(Object... objects) |
protected LooksLikeWarning |
makeLooksLikeWarning(de.fau.cs.osr.ptk.common.ast.Span range,
WarningSeverity severity,
String looksLikeWhat,
String message) |
protected OddSyntaxWarning |
makeOddSyntaxWarning(de.fau.cs.osr.ptk.common.ast.Span range,
WarningSeverity severity,
String message) |
protected de.fau.cs.osr.ptk.common.ast.Span |
makeSpan(int from,
int to) |
protected de.fau.cs.osr.ptk.common.ast.Span |
makeSpan(int from,
xtc.parser.Result to) |
protected xtc.parser.Column |
newColumn() |
xtc.parser.Result |
pArticle(int yyStart)
Parse nonterminal org.sweble.wikitext.lazy.parser.Grammar.Article.
|
xtc.parser.Result |
pgrmbl(int yyStart)
Parse nonterminal org.sweble.wikitext.lazy.parser.Grammar.grmbl.
|
protected static void |
prependRtData(de.fau.cs.osr.ptk.common.ast.AstNode n,
String data) |
protected final LazyParserState yyState
public LazyRatsParser(Reader reader, String file)
reader - The reader.file - The file name.protected xtc.parser.Column newColumn()
newColumn in class xtc.parser.ParserBasepublic xtc.parser.Result pArticle(int yyStart)
throws IOException
yyStart - The index.IOException - Signals an I/O error.public xtc.parser.Result pgrmbl(int yyStart)
throws IOException
yyStart - The index.IOException - Signals an I/O error.public LazyParserState getState()
public de.fau.cs.osr.ptk.common.ast.AstNode getEntity(int id)
protected String difference(int start, xtc.parser.Result result)
protected de.fau.cs.osr.ptk.common.ast.Span makeSpan(int from,
int to)
protected de.fau.cs.osr.ptk.common.ast.Span makeSpan(int from,
xtc.parser.Result to)
protected xtc.tree.Location columnToLocation(int index)
protected boolean isGatherRtData()
protected static RtData addRtData(de.fau.cs.osr.ptk.common.ast.AstNode yyValue, Object[]... rts)
protected static void prependRtData(de.fau.cs.osr.ptk.common.ast.AstNode n,
String data)
public static void enableStats()
public static boolean isStatsEnabled()
public static ParserStats getStats()
protected LooksLikeWarning makeLooksLikeWarning(de.fau.cs.osr.ptk.common.ast.Span range, WarningSeverity severity, String looksLikeWhat, String message)
protected OddSyntaxWarning makeOddSyntaxWarning(de.fau.cs.osr.ptk.common.ast.Span range, WarningSeverity severity, String message)
Copyright © 2010-2012 University of Erlangen-Nürnberg - Open Source Research Group. All Rights Reserved.