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

A

addMacro(Macro) - Method in class org.anarres.cpp.Preprocessor
 
addPaste(Token) - Method in class org.anarres.cpp.Macro
 
addToken(Token) - Method in class org.anarres.cpp.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.
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.
DefaultErrorHandler - Class in org.anarres.cpp
An ErrorHandler which records all ErrorMessages.
DefaultErrorHandler() - Constructor for class org.anarres.cpp.DefaultErrorHandler
 
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.
ERR_ERROR - Static variable in interface org.anarres.cpp.ErrorHandler
 
ERR_WARNING - Static variable in interface org.anarres.cpp.ErrorHandler
 
error(int, Token, String) - Method in class org.anarres.cpp.Preprocessor
Passes an error to the ErrorHandler.
error(ErrorMessage) - Method in class org.anarres.cpp.Source
 
ErrorHandler - Interface in org.anarres.cpp
 
ErrorMessage - Class in org.anarres.cpp
 
ErrorMessage(Source, int, int, boolean, String) - Constructor for class org.anarres.cpp.ErrorMessage
 
ErrorMessage(Source, Token, boolean, String) - Constructor for class org.anarres.cpp.ErrorMessage
 

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.

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.ErrorMessage
Returns the column number at which this error occurred.
getColumn() - Method in class org.anarres.cpp.Token
Returns the column at which this token started.
getErrorHandler() - Method in class org.anarres.cpp.Preprocessor
Returns the ErrorHandler used by this Preprocessor.
getErrorMessages() - Method in class org.anarres.cpp.DefaultErrorHandler
Returns the list of ErrorMessages recorded by this ErrorHandler.
getLine() - Method in class org.anarres.cpp.ErrorMessage
Returns the line number at which this error occurred.
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.
getMessage() - Method in class org.anarres.cpp.ErrorMessage
Returns the error message itself.
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.ErrorMessage
Returns a text description of the file or other location in which this error occurred.
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.

H

handle(ErrorMessage) - Method in class org.anarres.cpp.DefaultErrorHandler
 
handle(ErrorMessage) - Method in interface org.anarres.cpp.ErrorHandler
Handles an error.
HASH - Static variable in class org.anarres.cpp.Token
The token type HASH.
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
 
isVariadic() - Method in class org.anarres.cpp.Macro
 

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
 
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.
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) - Constructor for class org.anarres.cpp.Preprocessor
 
Preprocessor(File) - Constructor for class org.anarres.cpp.Preprocessor
Equivalent to 'new Preprocessor(new FileLexerSource(file))'
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
 
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.
setErrorHandler(ErrorHandler) - Method in class org.anarres.cpp.Preprocessor
Sets the ErrorHandler used by this Preprocessor.
setIncludePath(List<String>) - Method in class org.anarres.cpp.Preprocessor
Sets the include path used by this Preprocessor.
setVariadic(boolean) - Method in class org.anarres.cpp.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
 
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.ErrorMessage
Returns a user-readable version of this ErrorMessage.
toString() - Method in class org.anarres.cpp.FileLexerSource
 
toString() - Method in class org.anarres.cpp.Macro
 
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

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.