A C D E F G H I L M N O P R S T W X _

A

addMacro(String) - Method in class org.anarres.cpp.CppReader
Defines the given name as a macro.
addMacro(String, String) - Method in class org.anarres.cpp.CppReader
Defines the given name as a macro.
addMacro(Macro) - Method in class org.anarres.cpp.Preprocessor
 
addMacro(String, String) - Method in class org.anarres.cpp.Preprocessor
Defines the given name as a macro.
addMacro(String) - Method in class org.anarres.cpp.Preprocessor
Defines the given name as a macro.
addPaste(Token) - Method in class org.anarres.cpp.Macro
Adds a "paste" operator to the expansion of this macro.
addToken(Token) - Method in class org.anarres.cpp.Macro
Adds a token to the expansion of this macro.
AND_EQ - Static variable in class org.anarres.cpp.Token
The token type AND_EQ.
ARROW - Static variable in class org.anarres.cpp.Token
The token type ARROW.

C

CHARACTER - Static variable in class org.anarres.cpp.Token
The token type CHARACTER.
clear() - Method in class org.anarres.cpp.PreprocessorListener
 
close() - Method in class org.anarres.cpp.CppReader
 
COMMENT - Static variable in class org.anarres.cpp.Token
The token type COMMENT.
CppReader - Class in org.anarres.cpp
A Reader wrapper around the Preprocessor.
CppReader(Reader) - Constructor for class org.anarres.cpp.CppReader
 
CppReader(Preprocessor) - Constructor for class org.anarres.cpp.CppReader
 

D

DEC - Static variable in class org.anarres.cpp.Token
The token type DEC.
DIV_EQ - Static variable in class org.anarres.cpp.Token
The token type DIV_EQ.

E

ELLIPSIS - Static variable in class org.anarres.cpp.Token
The token type ELLIPSIS.
EOF - Static variable in class org.anarres.cpp.Token
The token type EOF.
EQ - Static variable in class org.anarres.cpp.Token
The token type EQ.
error(Token, String) - Method in class org.anarres.cpp.Preprocessor
Handles an error.
error(int, int, String) - Method in class org.anarres.cpp.Source
 
ERROR - Static variable in class org.anarres.cpp.Token
The token type ERROR.

F

FileLexerSource - Class in org.anarres.cpp
A Source which lexes a file.
FileLexerSource(File) - Constructor for class org.anarres.cpp.FileLexerSource
Creates a new Source for lexing the given File.
FL_LINEMARKER - Static variable in class org.anarres.cpp.Preprocessor
 

G

GE - Static variable in class org.anarres.cpp.Token
The token type GE.
getArgs() - Method in class org.anarres.cpp.Macro
Returns the number of arguments to this macro.
getColumn() - Method in class org.anarres.cpp.LexerSource
 
getColumn() - Method in class org.anarres.cpp.Token
Returns the column at which this token started.
getErrors() - Method in class org.anarres.cpp.PreprocessorListener
 
getLine() - Method in class org.anarres.cpp.LexerSource
 
getLine() - Method in class org.anarres.cpp.Source
 
getLine() - Method in class org.anarres.cpp.Token
Returns the line at which this token started.
getMacros() - Method in class org.anarres.cpp.Preprocessor
Returns the Map of Macros parsed during the run of this Preprocessor.
getName() - Method in class org.anarres.cpp.Macro
Returns the name of this macro.
getPreprocessor() - Method in class org.anarres.cpp.CppReader
Returns the Preprocessor used by this CppReader.
getSource() - Method in class org.anarres.cpp.Preprocessor
Returns the top Source on the input stack.
getText() - Method in class org.anarres.cpp.Token
Returns the original or generated text of this token.
getTokenName(int) - Static method in class org.anarres.cpp.Token
Returns the descriptive name of the given token type.
getType() - Method in class org.anarres.cpp.Token
Returns the semantic type of this token.
getValue() - Method in class org.anarres.cpp.Token
Returns the semantic value of this token.
getWarnings() - Method in class org.anarres.cpp.PreprocessorListener
 

H

handleError(Source, int, int, String) - Method in class org.anarres.cpp.PreprocessorListener
Handles an error.
handleSourceChange(Source, String) - Method in class org.anarres.cpp.PreprocessorListener
 
handleWarning(Source, int, int, String) - Method in class org.anarres.cpp.PreprocessorListener
Handles a warning.
HASH - Static variable in class org.anarres.cpp.Token
The token type HASH.
hasNext() - Method in class org.anarres.cpp.SourceIterator
Returns true if the enclosed Source has more tokens.
HEADER - Static variable in class org.anarres.cpp.Token
The token type HEADER.

I

IDENTIFIER - Static variable in class org.anarres.cpp.Token
The token type IDENTIFIER.
INC - Static variable in class org.anarres.cpp.Token
The token type INC.
include(File, int, String, boolean) - Method in class org.anarres.cpp.Preprocessor
Handles a include directive.
INTEGER - Static variable in class org.anarres.cpp.Token
The token type INTEGER.
InternalException - Exception in org.anarres.cpp
An internal exception.
InternalException(String) - Constructor for exception org.anarres.cpp.InternalException
 
isFunctionLike() - Method in class org.anarres.cpp.Macro
Returns true if this is a function-like macro.
isVariadic() - Method in class org.anarres.cpp.Macro
Returns true if this is a variadic function-like macro.
iterator() - Method in class org.anarres.cpp.Source
 

L

LAND - Static variable in class org.anarres.cpp.Token
The token type LAND.
LAND_EQ - Static variable in class org.anarres.cpp.Token
The token type LAND_EQ.
LE - Static variable in class org.anarres.cpp.Token
The token type LE.
LexerException - Exception in org.anarres.cpp
A preprocessor exception.
LexerException(String) - Constructor for exception org.anarres.cpp.LexerException
 
LexerException(Throwable) - Constructor for exception org.anarres.cpp.LexerException
 
LexerSource - Class in org.anarres.cpp
Does not handle digraphs.
LexerSource(Reader, boolean) - Constructor for class org.anarres.cpp.LexerSource
 
LITERAL - Static variable in class org.anarres.cpp.Token
The token type LITERAL.
LOR - Static variable in class org.anarres.cpp.Token
The token type LOR.
LOR_EQ - Static variable in class org.anarres.cpp.Token
The token type LOR_EQ.
LSH - Static variable in class org.anarres.cpp.Token
The token type LSH.
LSH_EQ - Static variable in class org.anarres.cpp.Token
The token type LSH_EQ.

M

M_ARG - Static variable in class org.anarres.cpp.Token
The token type M_ARG.
M_PASTE - Static variable in class org.anarres.cpp.Token
The token type M_PASTE.
M_STRING - Static variable in class org.anarres.cpp.Token
The token type M_STRING.
Macro - Class in org.anarres.cpp
A macro object.
Macro(String) - Constructor for class org.anarres.cpp.Macro
 
Main - Class in org.anarres.cpp
(Currently a simple test class).
Main() - Constructor for class org.anarres.cpp.Main
 
main(String[]) - Static method in class org.anarres.cpp.Main
 
MOD_EQ - Static variable in class org.anarres.cpp.Token
The token type MOD_EQ.
MULT_EQ - Static variable in class org.anarres.cpp.Token
The token type MULT_EQ.

N

NE - Static variable in class org.anarres.cpp.Token
The token type NE.
next() - Method in class org.anarres.cpp.SourceIterator
Returns the next token from the enclosed Source.
NL - Static variable in class org.anarres.cpp.Token
The token type NL.

O

OR_EQ - Static variable in class org.anarres.cpp.Token
The token type OR_EQ.
org.anarres.cpp - package org.anarres.cpp
 

P

P_LINE - Static variable in class org.anarres.cpp.Token
The token type P_LINE.
PASTE - Static variable in class org.anarres.cpp.Token
The token type PASTE.
PLUS_EQ - Static variable in class org.anarres.cpp.Token
The token type PLUS_EQ.
pop_source() - Method in class org.anarres.cpp.Preprocessor
Pops a Source from the input stack.
Preprocessor - Class in org.anarres.cpp
A C Preprocessor.
Preprocessor(Source, int) - Constructor for class org.anarres.cpp.Preprocessor
 
Preprocessor(Source) - Constructor for class org.anarres.cpp.Preprocessor
 
Preprocessor(File) - Constructor for class org.anarres.cpp.Preprocessor
Equivalent to 'new Preprocessor(new FileLexerSource(file))'
PreprocessorListener - Class in org.anarres.cpp
 
PreprocessorListener() - Constructor for class org.anarres.cpp.PreprocessorListener
 
print(String) - Method in class org.anarres.cpp.PreprocessorListener
 
push_source(Source, boolean) - Method in class org.anarres.cpp.Preprocessor
Pushes a Source onto the input stack.

R

RANGE - Static variable in class org.anarres.cpp.Token
The token type RANGE.
read() - Method in class org.anarres.cpp.CppReader
 
read(char[], int, int) - Method in class org.anarres.cpp.CppReader
 
remove() - Method in class org.anarres.cpp.SourceIterator
Not supported.
RSH - Static variable in class org.anarres.cpp.Token
The token type RSH.
RSH_EQ - Static variable in class org.anarres.cpp.Token
The token type RSH_EQ.

S

setArgs(List<String>) - Method in class org.anarres.cpp.Macro
Sets the arguments to this macro.
setFlags(int) - Method in class org.anarres.cpp.Preprocessor
 
setIncludePath(List<String>) - Method in class org.anarres.cpp.Preprocessor
Sets the include path used by this Preprocessor.
setListener(PreprocessorListener) - Method in class org.anarres.cpp.Preprocessor
 
setVariadic(boolean) - Method in class org.anarres.cpp.Macro
Sets the variadic flag on this Macro.
skipline(boolean) - Method in class org.anarres.cpp.Source
Skips tokens until the end of line.
Source - Class in org.anarres.cpp
An input to the Preprocessor.
Source() - Constructor for class org.anarres.cpp.Source
 
SourceIterator - Class in org.anarres.cpp
An Iterator for Sources, returning Tokens.
SourceIterator(Source) - Constructor for class org.anarres.cpp.SourceIterator
 
STRING - Static variable in class org.anarres.cpp.Token
The token type STRING.
StringLexerSource - Class in org.anarres.cpp
A Source for lexing a String.
StringLexerSource(String, boolean) - Constructor for class org.anarres.cpp.StringLexerSource
Creates a new Source for lexing the given String.
StringLexerSource(String) - Constructor for class org.anarres.cpp.StringLexerSource
Creates a new Source for lexing the given String.
SUB_EQ - Static variable in class org.anarres.cpp.Token
The token type SUB_EQ.

T

token() - Method in class org.anarres.cpp.LexerSource
 
token() - Method in class org.anarres.cpp.Preprocessor
Returns the next preprocessor token.
token() - Method in class org.anarres.cpp.Source
Returns the next Token parsed from this input stream.
Token - Class in org.anarres.cpp
A Preprocessor token.
Token(int, int, int, String, Object) - Constructor for class org.anarres.cpp.Token
 
Token(int, int, int, String) - Constructor for class org.anarres.cpp.Token
 
toString() - Method in class org.anarres.cpp.FileLexerSource
 
toString() - Method in class org.anarres.cpp.Macro
 
toString() - Method in class org.anarres.cpp.Preprocessor
 
toString() - Method in class org.anarres.cpp.StringLexerSource
 
toString() - Method in class org.anarres.cpp.Token
Returns a description of this token, for debugging purposes.

W

warning(Token, String) - Method in class org.anarres.cpp.Preprocessor
Handles a warning.
warning(int, int, String) - Method in class org.anarres.cpp.Source
 
WHITESPACE - Static variable in class org.anarres.cpp.Token
The token type WHITESPACE.

X

XOR_EQ - Static variable in class org.anarres.cpp.Token
The token type XOR_EQ.

_

_TOKENS - Static variable in class org.anarres.cpp.Token
The number of possible semantic token types.

A C D E F G H I L M N O P R S T W X _

Copyright © 2007 Shevek, Anarres. All Rights Reserved.