public final class RatsWikitextParser
extends xtc.parser.ParserBase
org.sweble.wikitext.parser.parser.RatsWikitextParser.
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 |
|---|---|
static class |
RatsWikitextParser.ListNode |
class |
RatsWikitextParser.ParserCharSequence |
protected static class |
RatsWikitextParser.StateAwareResult |
| Modifier and Type | Field and Description |
|---|---|
protected WikitextParserState |
yyState
The global state object.
|
| Constructor and Description |
|---|
RatsWikitextParser(Reader reader,
String file)
Create a new packrat parser.
|
RatsWikitextParser(Reader reader,
String file,
int size)
Create a new packrat parser.
|
| Modifier and Type | Method and Description |
|---|---|
protected de.fau.cs.osr.ptk.common.ast.AstLocation |
columnToLocation(int index) |
protected String |
difference(int start,
xtc.parser.Result result) |
static void |
enableStats() |
WtNode |
getEntity(int id) |
WikitextParserState |
getState() |
static ParserStats |
getStats() |
protected boolean |
isGatherRtData() |
static boolean |
isStatsEnabled() |
protected LooksLikeWarning |
makeLooksLikeWarning(de.fau.cs.osr.ptk.common.ast.Span range,
WikitextWarning.WarningSeverity severity,
String looksLikeWhat,
String message) |
protected OddSyntaxWarning |
makeOddSyntaxWarning(de.fau.cs.osr.ptk.common.ast.Span range,
WikitextWarning.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.parser.parser.RatsWikitextParser.Article.
|
xtc.parser.Result |
pgrmbl(int yyStart)
Parse nonterminal
org.sweble.wikitext.parser.parser.RatsWikitextParser.grmbl.
|
void |
setNodeFactory(WikitextNodeFactory nodeFactory) |
protected final WikitextParserState yyState
public RatsWikitextParser(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 WikitextParserState getState()
public WtNode 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 de.fau.cs.osr.ptk.common.ast.AstLocation columnToLocation(int index)
public void setNodeFactory(WikitextNodeFactory nodeFactory)
protected boolean isGatherRtData()
public static void enableStats()
public static boolean isStatsEnabled()
public static ParserStats getStats()
protected LooksLikeWarning makeLooksLikeWarning(de.fau.cs.osr.ptk.common.ast.Span range, WikitextWarning.WarningSeverity severity, String looksLikeWhat, String message)
protected OddSyntaxWarning makeOddSyntaxWarning(de.fau.cs.osr.ptk.common.ast.Span range, WikitextWarning.WarningSeverity severity, String message)
Copyright © 2010–2017 University of Erlangen-Nürnberg - Open Source Research Group. All rights reserved.