org.quenta.tedir.hadrian
Class HadrianReader
java.lang.Object
org.quenta.tedir.hadrian.HadrianReader
public class HadrianReader
- extends Object
HadrianReader
public HadrianReader(ITokenType[] tokenTypes)
readGrammar
public GrammarModule readGrammar(File file)
throws FileNotFoundException
- Throws:
FileNotFoundException
readGrammar
public GrammarModule readGrammar(org.quenta.tedir.antonius.doc.ITextDocument doc,
IMessageMonitor monitor)
readGrammar
public GrammarModule readGrammar(org.quenta.tedir.antonius.doc.ITextDocument doc)
readGrammar
public LiteralGrammarModule readGrammar(InputStream in,
ITokenType[] tokens,
IMessageMonitor monitor)
throws IOException
- Throws:
IOException
readParser
public HadrianParser readParser(org.quenta.tedir.antonius.doc.ICharBuffer in,
IMessageMonitor monitor)
readParser
public HadrianParser readParser(Reader in,
IMessageMonitor monitor)
throws IOException
- Throws:
IOException
readParser
public HadrianParser readParser(Reader in)
throws IOException
- Throws:
IOException
readParser
public HadrianParser readParser(org.quenta.tedir.antonius.doc.ITextDocument doc)
readParser
public HadrianParser readParser(org.quenta.tedir.antonius.doc.ITextDocument doc,
IMessageMonitor monitor)
readTokens
public List<ITokenizerConfigurator> readTokens(org.quenta.tedir.antonius.doc.ICharBuffer buf,
IMessageMonitor monitor)
readTokens
public List<ITokenizerConfigurator> readTokens(org.quenta.tedir.antonius.doc.ICharBuffer buf)
readTokens
public List<ITokenizerConfigurator> readTokens(org.quenta.tedir.antonius.doc.ITextDocument doc)
getDefault
public static HadrianReader getDefault()
isIdentifierStart
public static final boolean isIdentifierStart(char c)
- Returns true if the specified character is a legal hadrian
specification identifier start character. This can be used by
plugins if they want to be sure they're consistent with the
surrounding language.
isIdentifierPart
public static final boolean isIdentifierPart(char c)
- Returns true if the specified character can occur as part of a
hadrian specification identifier. This can be used by
plugins if they want to be sure they're consistent with the
surrounding language.