public final class RatsWikitextPreprocessor
extends xtc.parser.ParserBase
org.sweble.wikitext.parser.preprocessor.RatsWikitextPreprocessor.
This class has been generated by the Rats! parser
generator, version 1.15.0, (C) 2004-2009 Robert Grimm.| Modifier and Type | Field and Description |
|---|---|
protected WikitextPreprocessorState |
yyState
The global state object.
|
| Constructor and Description |
|---|
RatsWikitextPreprocessor(Reader reader,
String file)
Create a new packrat parser.
|
RatsWikitextPreprocessor(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) |
WtNode |
getEntity(int id) |
WikitextPreprocessorState |
getState() |
boolean |
hasAtLeastTemplateBraces(int count) |
protected boolean |
isGatherRtData() |
boolean |
isIgnoredElement(String name) |
boolean |
isIgnoredTag(String name) |
boolean |
isRedirectKeyword(String keyword) |
boolean |
isValidClosingTag(String name) |
boolean |
isValidExtensionTagName(String name) |
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.preprocessor.RatsWikitextPreprocessor.Article.
|
void |
setNodeFactory(WikitextNodeFactory nodeFactory) |
protected final WikitextPreprocessorState yyState
public RatsWikitextPreprocessor(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.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)
public WikitextPreprocessorState getState()
public boolean isValidExtensionTagName(String name)
public boolean isIgnoredTag(String name)
public boolean isIgnoredElement(String name)
public boolean isValidClosingTag(String name)
public boolean hasAtLeastTemplateBraces(int count)
public boolean isRedirectKeyword(String keyword)
public WtNode getEntity(int id) throws IOException
IOExceptionprotected 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()
Copyright © 2010–2017 University of Erlangen-Nürnberg - Open Source Research Group. All rights reserved.