public class PstricksParser extends RootExpression implements ExpressionConstants
This class consists of grammar rules, wrapped in a RootExpression which can itself be directly added to the main tree (for instance, using DefaultParser.addGrammar()).
Note : the current parser used across the JPicEdt application can be retrieved using jpicedt.JPicEdt.getParser().
[TODO] : \psgrid, \psaxes, \pscustom, arrow size, dot style.
Modifier and Type | Field and Description |
---|---|
static Pool.Key |
KEY_ATTRIBUTES
key associated with the attribute set which stores PsTricks default graphical parameters (PicAttributeSet)
|
static Pool.Key |
KEY_NEWPSOBJECTS
\\newpsobject : key associated with the HashMap that associates pairs "macroName -> param_string",
e.g.
|
static Pool.Key |
KEY_R_UNIT
key associated with \\psrunit register (double)
|
static Pool.Key |
KEY_USER_COLOURS
user-defined colours (a HashMap which gets filled by UserDefinedColorsExpression, see \\newgray, \\newrgbcolor,...
|
static Pool.Key |
KEY_X_UNIT
key associated with \\psxunit register (double)
|
static Pool.Key |
KEY_Y_UNIT
key associated with \\psyunit register (double)
|
ANY_CHAR, ANY_CHAR_EOL, ANY_SIGN, AT_LEAST, AT_MOST, DEBUG, DOUBLE, EOL, EXACTLY, INTEGER, NEGATIVE, NON_NULL, POSITIVE, STRICTLY_NEGATIVE, STRICTLY_POSITIVE, WHITE_SPACES, WHITE_SPACES_OR_EOL
Constructor and Description |
---|
PstricksParser(Pool pool)
Creates a new PstricksParser, and build grammar rules
|
Modifier and Type | Method and Description |
---|---|
void |
reinit()
reinit shared parameters belonging to the Pool
|
add, getExpressionList, interpret, toString
action
public static final Pool.Key KEY_X_UNIT
public static final Pool.Key KEY_Y_UNIT
public static final Pool.Key KEY_R_UNIT
public static final Pool.Key KEY_ATTRIBUTES
public static final Pool.Key KEY_USER_COLOURS
public static final Pool.Key KEY_NEWPSOBJECTS
public PstricksParser(Pool pool)
public void reinit()
reinit
in class RootExpression
Submit a bug : syd@jpicedt.org