| java.lang.Object xtc.parser.ParserBase xtc.lang.c4.C4Parser
C4Parser | final public class C4Parser extends ParserBase (Code) | | Packrat parser for grammar xtc.lang.c4.C4 .
This class has been generated by the Rats! parser
generator, version 1.13.2, (C) 2004-2007 Robert Grimm.
|
Inner Class :final static class Chunk1 | |
Inner Class :final static class Chunk2 | |
Inner Class :final static class Chunk3 | |
Inner Class :final static class Chunk4 | |
Inner Class :final static class Chunk5 | |
Inner Class :final static class C4ParserColumn extends Column | |
Field Summary | |
final public static boolean | ASPECT The ASPECT flag. | final public static boolean | C99 The C99 flag. | final public static Set<String> | C_KEYWORDS The C_KEYWORDS set. | final public static boolean | GCC The GCC flag. | final public static boolean | RELOCATE The RELOCATE flag. | final protected C4ParserState | yyState The global state object. |
Method Summary | |
final protected static void | add(Set<T> set, T[] values) Add the specified values to the specified set. | final protected static boolean | contains(Set<T> set, T value) Check whether the specified set contains the specified value.
Parameters: set - The set. Parameters: value - The value. | public static void | main(String[] args) Parse the specified files. | protected Column | newColumn() | public Result | pAnnotations(int yyStart) Parse nonterminal xtc.lang.c4.C4.Annotations.
Parameters: yyStart - The index. | public Result | pAspectDefinition(int yyStart) Parse nonterminal xtc.lang.c4.C4.AspectDefinition.
Parameters: yyStart - The index. | public Result | pExternalDeclaration(int yyStart) Parse nonterminal xtc.lang.c4.C4.ExternalDeclaration.
Parameters: yyStart - The index. | public Result | pPrelude(int yyStart) Parse nonterminal xtc.lang.c4.C4.Prelude.
Parameters: yyStart - The index. | public Result | pTranslationUnit(int yyStart) Parse nonterminal xtc.lang.c4.C4.TranslationUnit.
Parameters: yyStart - The index. | final protected static String | toText(String s) Get the specified text.
Parameters: s - The text. |
ASPECT | final public static boolean ASPECT(Code) | | The ASPECT flag.
|
C99 | final public static boolean C99(Code) | | The C99 flag.
|
C_KEYWORDS | final public static Set<String> C_KEYWORDS(Code) | | The C_KEYWORDS set.
|
GCC | final public static boolean GCC(Code) | | The GCC flag.
|
RELOCATE | final public static boolean RELOCATE(Code) | | The RELOCATE flag.
|
C4Parser | public C4Parser(Reader reader, String file)(Code) | | Create a new packrat parser.
Parameters: reader - The reader. Parameters: file - The file name. |
C4Parser | public C4Parser(Reader reader, String file, int size)(Code) | | Create a new packrat parser.
Parameters: reader - The file reader. Parameters: file - The file name. Parameters: size - The file size. |
add | final protected static void add(Set<T> set, T[] values)(Code) | | Add the specified values to the specified set.
Parameters: set - The set. Parameters: values - The new values. |
contains | final protected static boolean contains(Set<T> set, T value)(Code) | | Check whether the specified set contains the specified value.
Parameters: set - The set. Parameters: value - The value. true if the set contains the value. |
main | public static void main(String[] args)(Code) | | Parse the specified files.
Parameters: args - The file names. |
pAnnotations | public Result pAnnotations(int yyStart) throws IOException(Code) | | Parse nonterminal xtc.lang.c4.C4.Annotations.
Parameters: yyStart - The index. The result. throws: IOException - Signals an I/O error. |
pAspectDefinition | public Result pAspectDefinition(int yyStart) throws IOException(Code) | | Parse nonterminal xtc.lang.c4.C4.AspectDefinition.
Parameters: yyStart - The index. The result. throws: IOException - Signals an I/O error. |
pExternalDeclaration | public Result pExternalDeclaration(int yyStart) throws IOException(Code) | | Parse nonterminal xtc.lang.c4.C4.ExternalDeclaration.
Parameters: yyStart - The index. The result. throws: IOException - Signals an I/O error. |
pPrelude | public Result pPrelude(int yyStart) throws IOException(Code) | | Parse nonterminal xtc.lang.c4.C4.Prelude.
Parameters: yyStart - The index. The result. throws: IOException - Signals an I/O error. |
pTranslationUnit | public Result pTranslationUnit(int yyStart) throws IOException(Code) | | Parse nonterminal xtc.lang.c4.C4.TranslationUnit.
Parameters: yyStart - The index. The result. throws: IOException - Signals an I/O error. |
toText | final protected static String toText(String s)(Code) | | Get the specified text.
Parameters: s - The text. The text. |
Methods inherited from xtc.parser.ParserBase | final protected T apply(Pair<Action<T>> actions, T seed)(Code)(Java Doc) final protected T apply(Pair<Action<T>> actions, T seed, int index)(Code)(Java Doc) final protected static T cast(Object o)(Code)(Java Doc) final protected static Pair<T> cast(Pair> p)(Code)(Java Doc) final protected int character(int index) throws IOException(Code)(Java Doc) final protected Column column(int index)(Code)(Java Doc) final protected String difference(int start, int end)(Code)(Java Doc) final public String format(ParseError error) throws IOException(Code)(Java Doc) final public boolean isEOF(int index)(Code)(Java Doc) final public String lineAt(int index) throws IOException(Code)(Java Doc) final public Location location(int index)(Code)(Java Doc) abstract protected Column newColumn()(Code)(Java Doc) final protected String peek(int index)(Code)(Java Doc) final public void resetTo(int index)(Code)(Java Doc) final protected void setLocation(int index, String file, int line, int column)(Code)(Java Doc) final public void setLocation(Locatable locatable, int index)(Code)(Java Doc) final public void signal(ParseError error) throws ParseException, IOException(Code)(Java Doc) final public Object value(Result r) throws ParseException, IOException(Code)(Java Doc)
|
|
|