public class Syntax
extends java.lang.Object
Lexical
and Expression
.Modifier and Type | Field and Description |
---|---|
static int |
applicPriority |
static long |
arithOprs |
static long |
binOprs |
static long |
comparisonOprs |
static long |
logicOprs |
static int[] |
oprPriority |
static long |
rightAssoc |
static long |
startsExp |
static long |
unOprs |
Constructor and Description |
---|
Syntax(Lexical lex)
Construct a Syntax analyser of a given
Lexical source. |
Modifier and Type | Method and Description |
---|---|
void |
error(java.lang.String msg)
Print an error message, msg, and stop.
|
Expression |
exp() |
static void |
main(java.lang.String[] argv)
'main' allows Syntax to be tested on its own, for example,
|
public static final int applicPriority
public static final long arithOprs
public static final long logicOprs
public static final long comparisonOprs
public static final long unOprs
public static final long binOprs
public static final long rightAssoc
public static final long startsExp
public static final int[] oprPriority
public Expression exp()
public void error(java.lang.String msg)
public static void main(java.lang.String[] argv)