Uses of Interface
jpicedt.format.input.util.ExpressionConstants
-
Packages that use ExpressionConstants Package Description jpicedt.format.input jpicedt.format.input.eepic Parser grammar for the eepic format.jpicedt.format.input.latex Parser grammar for the LaTeX picture environment format.jpicedt.format.input.pstricks Pstricks grammar tree.jpicedt.format.input.util This package contains helper classes for building a parser based on the well-known RegExp scheme, yet with a strong object-oriented approach in mind. -
-
Uses of ExpressionConstants in jpicedt.format.input
Classes in jpicedt.format.input that implement ExpressionConstants Modifier and Type Class Description classDefaultParserDefault implementation of the Parser interface. -
Uses of ExpressionConstants in jpicedt.format.input.eepic
Classes in jpicedt.format.input.eepic that implement ExpressionConstants Modifier and Type Class Description classEepicDrawlineCommandEepic open polygon, possibly dashed : \\drawline[stretch](x1,y1)...(xN,yN)classEepicLineThicknessExpression\thinlines or \thicklines or (eepic) \ThicklinesclassEepicParserGrammar tree for the epic/eepic parser.classEepicPathCommandEepic "fast" (solid) polygon : \\path(x1,y1)...(xN,yN) -
Uses of ExpressionConstants in jpicedt.format.input.latex
Classes in jpicedt.format.input.latex that implement ExpressionConstants Modifier and Type Class Description classBeginPictureExpressionLaTeX or eepic : \begin{picture}(w,h) \begin{picture}(w,h)(x,y)classEndPictureExpression\end{picture}classLaTeXBoxParses LaTeX boxes, i.e.classLaTeXCircleParses LaTeX circles, i.e.classLaTeXInstanciationExpressioninstanciates a new Element by cloning the given object, when it finds the given tag, then adds it to the current PicGroup ; makes use of the PicAttributeSet associated with the ATTRIBUTES key in LaTeXParser.classLaTeXLineParses LaTeX lines, with or without arrows, i.e.classLaTeXOvalParses LaTeX \\oval command.classLaTeXParserGrammar rules for the LaTeX's picture environment parserclassLaTeXPicPointExpressionan expression that parses "(x,y)" string (LaTeX-like PicPoint) and gives the corresponding numerical values to the point number "ptNumber" of the current Element using itssetPoint(), using the given constraint.classLaTeXPutExpression\\put(x,y){argument}classLineThicknessExpressionLegal syntax : \\linethickness{0.4pt} \\linethickness{0.4mm} \\linethickness{0.4cm} \\linethickness{0.4} // default to mm note : 1pt = 1/72.27 inch = 0.3515 mm cf.classPicArrowTypeExpression"0/1 0/1" arrow type (we take for granted that this string is followed by a LaTeX-picPoint, as in %Line 0 1 (2.3,4.5)..., possibly with leading whitespaces)classPicBezierExpressionParser expression for :classPicColorExpressionjPicEdt syntax (ie lines starting with a %) color : filled/blacken/whiten/shadeclassPicDashStatementHandles dash statements in jPicEdt-syntax (ie TeX-like comments) % ...classPicEllipseExpressionPicEllipse : %Ellipse(x0,y0)(width)(height) %Ellipse(x0,y0)(width,height) filled|whiten|blacken|shade arcStart= arcExtent= Any string (multiput...) %End EllipseclassPicEndExpressionMatch "%End XXXX"-like expressions at the beginning of a line (or preceeded by whitespaces), after skipping as many lines as necessary.classPicGroupExpressionPicGroup:
%Begin group
...
%End groupclassPicLineExpressionPicLine : %Line 0 0 (x0,y0)(x1,y1) dash=value %Line 0 1 (x0,y0)(x1,y1) dash=value %Line 1 0 (x0,y0)(x1,y1) dash=value %Line 1 1 (x0,y0)(x1,y1) dash=value (dash is optional) Any string (\multiput, etc...) %End LineclassPicPolygonExpressionPicPolygon :
%Polygon (x1,y1)...(xn,yn) dash=value whiten|shade|blacken closed
...classPicRectangleExpression%Rectangle(x0,y0)(x1,y1)
or %Rectangle(x0,y0)(x1,y1) filled|blacken|shade|whiten dash=value
Any string
%End RectangleclassUnitLengthExpression\\unitlength value
\\setlength{\\unitlength}{value}
where value's permitted syntaxs are : 0.11, 0.11mm, 0.11cm, 0.11pt with possible leading whitespaces before the "unit". -
Uses of ExpressionConstants in jpicedt.format.input.pstricks
Classes in jpicedt.format.input.pstricks that implement ExpressionConstants Modifier and Type Class Description classBeginPsPictureExpression\begin{pspicture}(x0,y0)(x1,y1) -> defines a box with BL=(x0,y0) and TR=(x1,y1)
\begin{pspicture}*(x0,y0)(x1,y1) -> clipped
\begin{pspicture}[baseline](x0,y0)(x1,y1) -> changes baseline (see pstricks's doc p.41)
\begin{pspicture}[](x0,y0)(x1,y1) -> baseline passes across the origine
And the same commands with \pspicture (that is, TeX-like).classEndPsPictureExpression\end{pspicture} and/or \endpspicture.
A REParserException.EndOfPicture is thrown when this expression gets successfully parsed, which give a chance to the receiver to end up the parsing process here.classPsArcExpressionParses \\psarc commands : \\psarc[parameters]{<->}(x0,y0){rad}{angleA}{angleB} ; where at least "arrows" or (x0,y0) args must be included \\psarc*[parameters]{<->}(x0,y0){rad}{angleA}{angleB} ; idid.classPsBezierExpressionRules for parsing cubic splines with a PsTricks syntax : \\psbezier[parameters]{arrows}(x0,y0)(x1,y1)(x2,y2)(x3,y3) \\psbezier*[parameters]{arrows}(x0,y0)(x1,y1)(x2,y2)(x3,y3) or PsTricks's object previously defined by help of a \\newpsobject command.classPsBoxParses PsTricks boxes, i.e.classPsCircleExpressionQuick circle : \\pscircle[parameters](x0,y0){rad} \\pscircle*[parameters](x0,y0){rad}classPsEllipseExpressionParses \\psellipse commands : \\psellipse[parameters](x0,y0)(hrad,vrad) \\psellipse*[parameters](x0,y0)(hrad,vrad)classPsFrameExpression\\psframe[parameters](x0,y0)(x1,y1) \\psframe*[parameters](x0,y0)(x1,y1)classPsObjectExpressionHandles \\newpsobject{myobj}{ps_object}{par1=val1,...}, for instance \\newpsobject{myline}{psline}{linecolor=green} (param is optional, though in this case, it'd be pretty useless!)classPsPolygonExpressionParses \\pspolygon, \\psdots and \\psline commands : \\pspolygon[param](2,4)(3,15) // NO ARROW ALLOWED HERE !
\\pspolygon*[param](5,1)(5,8)...(xN,yN)
\\psline[param]{arrows}(5,1)(5,8)...(xN,yN)
\\psline*[param]{arrows}(5,1)(5,8)...(xN,yN)
\\psdots[param,dotstyle=style,dotscale=a b,dotangle=angle]{arrows}(5,1)(5,8)...(xN,yN)
\\psdots*[param]{arrows}(5,1)(5,8)...(xN,yN) (same as above, '*' being unused)
Note : PsPolygon -> close path ; PsLine -> open path ; PsDots -> dots onlyclassPsQDiskExpressionQuick disk : (streamlines version of \\pscircle*), \\qdisk(x0,y0)(rad)classPsQLineExpressionQuick line : \\qline(x0,y0)(x1,y1)classPsRPutExpressionParses PsTricks's \\rput commands, either: \\rput[refpoint]{rotation}(x,y){stuff} \\rput*[refpoint]{rotation}(x,y){stuff} (line-breaks being allowed b/w each "block"), where :
refpoint = B|b|t for vertical and l|r for horizontal (B = baseline), used only for psframebox and rel.classPSTAngleParameterUsed by PSTParametersExpression to parse statements involving angles, for instance "hatchangle=45" or "shadowangle=90".classPSTArrowExpressionParses Pstricks's arrows, as given by the PsTricks's documentation (p.29).
This is based on the following rules : an opening "{" ; "<", ">", "(",...classPSTBooleanExpressionUsed by PSTParametersExpression to parse statements involving true/false parameters values, for instance "shadow=true" or "shadow=false" ...classPSTColorExpressionUsed by PSTParametersExpression to parse statements involving colours, for instance "linecolor=green" (predefined colour) or "fillcolor=MyGray" (user-defined colours).classPSTDashExpressionParses statements similar to "dash=1pt 3mm" (first opaque, then transparent).classPSTDotStyleExpressionParses statements similar to "dotstyle=style" where style is one of PicObjectConstants predefined dot styles.classPSTFillStyleExpressionParses statements similar to "fillstyle=style" where style is one of PicObjectConstants predefined fill styles.classPSTInstanciationExpressionInstanciates a new Element by cloning the given object, when a given tag gets found.classPSTLengthParameterParses statement involving length units (as set by PsTricks's "runit" register), e.g.classPSTLineStyleExpressionParses statements similar to "linestyle=style" where style is one of PicObjectConstants predefined line styles.classPSTParametersExpressionPsTricks graphics parameters, e.g.classPSTPicPointExpressionan expression that parses "(x,y)" string (PsTricks-like PicPoint) and gives the corresponding numerical values to the point number "ptNumber" of the current Element, possibly using a given EditPointConstraint.classPstricksParserRoot expression for the Pstricks parser, containing grammar rules for the pstricks format.classPsUnitLengthExpressionUsed by PSTParamExpression to parse statement involving the 4 pstricks length registers, that is "unit=1mm,xunit=1mm,yunit=1mm,runit=1mm" (or pt or cm), where setting "unit" sets "xunit", "yunit" and "runit" simultaneously.classStarExpressionHandles (usually optional) "*" after \\psframebox,\\pspolygon,...classUserDefinedColorExpressionParse statement defining user-colours, that is : \\newgray{user-def colour name}{num} (where num is a gray scale specification b/w 0 and 1)
\\newrgbcolor{user-def-colour-name}{num1 num2 num3} (where num are numbers b/w 0 and 1)
\\newhsbcolor{user-def-colour-name}{num1 num2 num3} (where num are numbers b/w 0 and 1)
\\newcmykcolor{user-def-colour-name}{num1 num2 num3 num4} (where num are numbers b/w 0 and 1)
Colour names may contain letters and numbers. -
Uses of ExpressionConstants in jpicedt.format.input.util
Classes in jpicedt.format.input.util that implement ExpressionConstants Modifier and Type Class Description classAbstractRegularExpressionThis is the abstract superclass for all regular expressions that may help building a RegExp-based parser.classAlternateExpressionA regular expression that mimics the "x|y" RegExp syntax.classCommentExpressionParse comment strings.classContextA class that stores context information about the parsing process, like : current line number, current parsed substring, block markers, stack for markers...classEnclosingExpressionAn expression that can encompass a sub-expression it encloses with markers, e.g.classInstanciationExpressionAn expression that can instanciate a new Element by cloning the given graphic element when it finds a given litteral tag, then add it to the current PicGroup in the pool.classLiteralExpressionAn expression specified by a String to be exactly matched at the current cursor position.classNotParsableExpressionAny string (but w/o line-feeds !)classNumericalExpressionAn expression containing only digits, possibly preceded by whitespaces ; a post-delimiters can be specified, as well as the number's type (int or double) and its signclassOptionalExpressionan expression that represents a pattern repeating at most onceclassPicPointExpressionAn expression for 2D-Point parsing e.g.classRegExExpressionAn expression specified by a java.util.regex.Pattern regular expression.classRepeatExpressionan expression that represents a pattern repeating a given number of timesclassRootExpressionThis is the super-class for head-expressions that contain grammar rule for a given format.classSequenceExpressionAn expression that represents a sequence of expressions to be matched exactly in the same order they're being added to the sequence.classStatementExpressionAn expression for "statement"-parsing, i.e.classWhiteSpacesMultiple white spaces (w/o line-feeds)classWhiteSpacesOrEOLmultiple white spaces and/or '\n'classWildCharExpressiona RegExp that represents a single occurence of a wild-char, i.e.classWordExpressionA RegExp that parses a word, that is, a string : either composed of letters only, or letters and digits only (see java.lang.Character.isLetter() for details), or terminated by the specified end-delimiter (in which case it may contain chars not restricted to letters)
-