A D H L M N P R S T

A

add() - Method in interface pldi3.Rp
pop the top two elements, add them and push the result

D

divide() - Method in interface pldi3.Rp
pop the top two elements, divide the former second from top by the former top and push the result

H

have(int) - Method in interface pldi3.Lexical
The function returns true if the current symbol is one of the lexical tokens indicated by the integer parameter.
have(String) - Method in interface pldi3.Lexical
The function returns true if the current symbol is the same as the string.

L

Lexical - interface pldi3.Lexical.
Abstract interface to a lexical analyser for use in recursive descent parsers.
load(int) - Method in interface pldi3.Rp
Push the numbered register onto the stack

M

max() - Method in interface pldi3.Rp
replace the top two elements by their maximum
min() - Method in interface pldi3.Rp
replace the top two stack elements by their minimum
multiply() - Method in interface pldi3.Rp
pop the top two elements, multiply them and push the result
mustbe(int) - Method in interface pldi3.Lexical
This throws an exception if the current symbol is not the token.
mustbe(String) - Method in interface pldi3.Lexical
Equivalent to mustbe(tokenise(token))

N

nextSymbol() - Method in interface pldi3.Lexical
Advance to the next symbol

P

parse() - Method in interface pldi3.SyntaxAnalyser
Returns true if the input matches the grammar
pldi3 - package pldi3
 
popf() - Method in interface pldi3.Rp
Pop the stack as a float
popi() - Method in interface pldi3.Rp
Pop the stack as an integer
push(float) - Method in interface pldi3.Rp
Push a float onto the stack
push(int) - Method in interface pldi3.Rp
Push an integer onto the stack

R

Rp - interface pldi3.Rp.
Simple reverse polish interpreter.

S

setLexicalAnalyser(Lexical) - Method in interface pldi3.SyntaxAnalyser
Set l to be the lexical analyser used in the parser
sqrt() - Method in interface pldi3.Rp
replace the top of stack by its square root
store(int) - Method in interface pldi3.Rp
Pop the stack and store the result in the numbered register
subtract() - Method in interface pldi3.Rp
pop the top two elements, subtract the former top from the former second from top and push the result
SyntaxAnalyser - interface pldi3.SyntaxAnalyser.
 

T

tokenise(String) - Method in interface pldi3.Lexical
Convert a string to the equivalent integer token

A D H L M N P R S T


View My Stats