Documentation ¶
Overview ¶
Package plot wraps Gnuplot, the portable command-line driven graphing utility for Linux, OS/2, MS Windows, OSX, VMS, and many other platforms.
See also: http://www.gnuplot.info/
Executing scripts ¶
Use the File and Script functions to execute a Gnuplot script in a file or []byte respectively.
Parsing scripts ¶
Use the Parse, ParseString and ParseFile functions to parse a Gnuplot script comming from an io.Reader, string and named file respectively.
The grammar of Gnuplot scipts is not context free and is defined, at least partially, by implementation. It's impossible to create a proper LALR(1) grammar for a yacc based parser. The parser provided by this package approximates the Gnuplot grammar. It will reject some Gnuplot scripts which are accepted by the Gnuplot program and it will accept some other scripts which are rejected by the same. Between those extremes are many, if not most, scripts that the parser recognizes correctly.
Keywords, like 'with', 'lines' etc., can be shortened as long as they're unambiguous, so for example 'plot sin(x) w li' is a valid Gnuplot statement. The parser in this package handles shortened keywords only partially. Some scripts rejected by the parser will be accepted when modified to use full, non-shortened keywords.
Please share your Gnuplot scripts which the parser does not accept, or incorrectly accepts, and fill a report at the project issue tracker.
Example (File) ¶
const fname = "testdata/example.gp" src, err := ioutil.ReadFile(fname) if err != nil { panic(err) } fmt.Printf("%s\n", src) out, err := File(fname) if err != nil { panic(err) } fmt.Printf("%s\n", trim(out))
Output: set term dumb plot [-5:6.5] sin(x) with impulse ls -1 1 +-+---+-----------+-----------+-----------+-----------+-----------++-+ |||||++ + + ++||||++ + + | 0.8 +-+|||+ ++|||||||+ sin(x) +-----+-+ |||||||+ ++|||||||||+ | 0.6 +-+|||||+ ++||||||||||| +-+ ||||||||| +||||||||||||+ | 0.4 +-+||||||+ +||||||||||||||+ +-+ ||||||||||+ ++|||||||||||||||+ | 0.2 +-+||||||||+ +||||||||||||||||| +-+ 0 +-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-+ | ++|||||||||||||||||+ +||||||||||||||||||+| -0.2 +-+ +||||||||||||||||| +||||||||||||||||+-+ | ++|||||||||||||||+ ++||||||||||||||| | -0.4 +-+ ++|||||||||||||+ +||||||||||||||++-+ | +||||||||||||| +||||||||||||+ | -0.6 +-+ +|||||||||||+ ++||||||||||+ +-+ | ++|||||||||+ ++||||||||| | -0.8 +-+ ++|||||||+ ++|||||||+ +-+ | + +++|||++ + + +++||||++ + | -1 +-+---+-----------+-----------+-----------+-----------+-----------++-+ -4 -2 0 2 4 6
Example (ParseString) ¶
ast, err := ParseString("example.gp", "set term dumb") if err != nil { panic(err) } fmt.Println(ast)
Output: &plot.AST{ · StatementList: &plot.StatementList{ · · Statement: &plot.Statement{ · · · Case: 22, · · · Set: &plot.Set{ · · · · SetSpec: &plot.SetSpec{ · · · · · Case: 89, · · · · · SetTerminalSpec: &plot.SetTerminalSpec{ · · · · · · SetTerminalInner: &plot.SetTerminalInner{ · · · · · · · Case: 10, · · · · · · · Token: example.gp:1:10: IDENTIFIER "dumb", · · · · · · }, · · · · · }, · · · · · Token: example.gp:1:5: IDENTIFIER "term", · · · · }, · · · · Token: example.gp:1:1: IDENTIFIER "set", · · · }, · · }, · }, }
Example (Script) ¶
const src = ` set term dumb plot [-5:6.5] -sin(x/2) with impulse ls -1 ` fmt.Printf("%s\n", src) out, err := Script([]byte(src)) if err != nil { panic(err) } fmt.Printf("%s\n", trim(out))
Output: set term dumb plot [-5:6.5] -sin(x/2) with impulse ls -1 1 +-+---+-----------+-----------+-----------+-----------+-----------++-+ | ++++||||||||+++ + + + + | 0.8 +-+++||||||||||||||++ -sin(x/2) +-----+-+ |++||||||||||||||||||++ | 0.6 +-+||||||||||||||||||||+ +-+ ||||||||||||||||||||||||++ | 0.4 +-+|||||||||||||||||||||||+ +-+ |||||||||||||||||||||||||||+ | 0.2 +-+|||||||||||||||||||||||||++ +-+ 0 +-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-+ | ++|||||||||||||||||||||||||||||||||||++| -0.2 +-+ ++|||||||||||||||||||||||||||||||||++-+ | ++||||||||||||||||||||||||||||||+ | -0.4 +-+ ++|||||||||||||||||||||||||||++ +-+ | +++||||||||||||||||||||||||+ | -0.6 +-+ ++|||||||||||||||||||||++ +-+ | +++||||||||||||||||||+ | -0.8 +-+ +++||||||||||||||++ +-+ | + + + ++++||||||||+++ + | -1 +-+---+-----------+-----------+-----------+-----------+-----------++-+ -4 -2 0 2 4 6
Index ¶
- Constants
- func File(name string) ([]byte, error)
- func PrettyString(v interface{}) string
- func Script(src []byte) ([]byte, error)
- type AST
- type AngleUnit
- type ArrowStyleList
- type ArrowStyleListItem
- type BinaryList
- type BinaryListItem
- type BinaryListOpt
- type Bind
- type Bindings
- type Call
- type Cd
- type Clear
- type ColonExpressionList
- type ColonExpressionOptList
- type ColorSpec
- type ComplexNumber
- type CoordinateSystemOpt
- type DashTypeSpec
- type DatafileModifiersList
- type DatafileModifiersListItem
- type DatafileModifiersListOpt
- type Do
- type Else
- type EndConditionList
- type EndConditionListItem
- type Endianess
- type Eval
- type Exit
- type Expression
- type ExpressionList
- type ExpressionOpt
- type ExpressionOptList
- type ExpressionUnitList
- type Fit
- type FitOptionsList
- type FitOptionsListItem
- type FitOptionsListOpt
- type FunctionDefinition
- type IdentifierList
- type IdentifierOptList
- type If
- type IfHeader
- type Import
- type IterationSpecifier
- type IterationSpecifierOpt
- type LineStyleList
- type LineStyleListItem
- type Load
- type Lower
- type NamedDataBlock
- type Node
- type NonParenthesizedExpression
- type NonParenthesizedOperand
- type NonStringExpression
- type NonStringOperand
- type Operand
- type Option
- type OriginList
- type Pause
- type Plot
- type PlotElementAxes
- type PlotElementList
- type PlotElementListItem
- type PlotElementModifiersList
- type PlotElementModifiersListItem
- type PlotElementModifiersListOpt
- type PlotElementStyle
- type PlotElementStyleFilledcurvesSpecList
- type PlotElementStyleFilledcurvesSpecListItem
- type PlotElementStyleFilledcurvesSpecListOpt
- type PlotElementStyleHistogramsList
- type PlotElementStyleHistogramsListItem
- type PlotElementStyleHistogramsListOpt
- type PlotElementStyleLabelsSpecList
- type PlotElementStyleLabelsSpecListItem
- type PlotElementStyleVectorsSpecOpt
- type PlotElementTitle
- type PlotElementTitlePosOpt
- type PlotElementTitleSpec
- type PlotNewhistogramSpecList
- type PlotNewhistogramSpecListItem
- type PlotNewhistogramSpecListOpt
- type PlotWindow
- type Position
- type PrimaryExpression
- type PrimaryNonParenthesizedExpression
- type PrimaryNonStringExpression
- type Print
- type Range
- type RangeExpression
- type Ranges
- type RangesOpt
- type Replot
- type Reread
- type Reset
- type Set
- type SetAnglesSpec
- type SetArrowSpec
- type SetArrowSpecList
- type SetArrowSpecListItem
- type SetAutoscaleAxes
- type SetAutoscaleSpecList
- type SetAutoscaleSpecListItem
- type SetAutoscaleSpecListOpt
- type SetBarsSpecList
- type SetBarsSpecListItem
- type SetBarsSpecListOpt
- type SetBmarginSpecOpt
- type SetBorderSpec
- type SetBorderSpecList
- type SetBorderSpecListItem
- type SetBorderSpecListOpt
- type SetBoxwidthSpec
- type SetClipSpecOpt
- type SetCntrlabelSpecList
- type SetCntrlabelSpecListItem
- type SetCntrparamSpecList
- type SetCntrparamSpecListItem
- type SetColorboxSpecList
- type SetColorboxSpecListItem
- type SetColorboxSpecListOpt
- type SetColorsequenceSpecOpt
- type SetContourSpec
- type SetDatafileSeperatorSpecOpt
- type SetDatafileSpec
- type SetDecimalsignSpecOpt
- type SetDgrid3dSpecList
- type SetDgrid3dSpecListItem
- type SetDgrid3dSpecListOpt
- type SetEncodingSpec
- type SetFitSpecList
- type SetFitSpecListItem
- type SetFontPathSpecOpt
- type SetFormatAxesOpt
- type SetFormatModifierOpt
- type SetFormatSpec
- type SetGridSpecList
- type SetGridSpecListItem
- type SetGridSpecListOpt
- type SetHidden3dSpecList
- type SetHidden3dSpecListItem
- type SetHidden3dSpecListOpt
- type SetHistorySpecList
- type SetHistorySpecListItem
- type SetHistorySpecListOpt
- type SetKeySpecList
- type SetKeySpecListItem
- type SetKeySpecListOpt
- type SetLabelSpec
- type SetLabelSpecList
- type SetLabelSpecListItem
- type SetLinkSpecList
- type SetLinkSpecListItem
- type SetLinkSpecListOpt
- type SetLogscaleAxesList
- type SetLogscaleAxesListItem
- type SetLogscaleAxesListOpt
- type SetLogscaleSpec
- type SetMappingSpec
- type SetMonochromeSpecOpt
- type SetMouseSpecList
- type SetMouseSpecListItem
- type SetMouseSpecListOpt
- type SetMultiplotSpecList
- type SetMultiplotSpecListItem
- type SetMultiplotSpecListOpt
- type SetMxticsSpecOpt
- type SetObjectSpecList
- type SetObjectSpecListItem
- type SetOffsetsSpecOpt
- type SetPaletteSpecList
- type SetPaletteSpecListItem
- type SetPaletteSpecListOpt
- type SetPalleteDefinedColorList
- type SetPalleteDefinedColorListItem
- type SetPaxisSpecList
- type SetPaxisSpecListItem
- type SetPaxisSpecListOpt
- type SetPm3dSpecList
- type SetPm3dSpecListItem
- type SetPm3dSpecListOpt
- type SetPrintSpecOpt
- type SetRangeSpec
- type SetRangeSpecList
- type SetRangeSpecListItem
- type SetRangeSpecListOpt
- type SetSizeSpecList
- type SetSizeSpecListItem
- type SetSpec
- type SetStyleBoxplotSpecList
- type SetStyleBoxplotSpecListItem
- type SetStyleCircleSpecList
- type SetStyleCircleSpecListItem
- type SetStyleCircleSpecListOpt
- type SetStyleEllipseSpecList
- type SetStyleEllipseSpecListItem
- type SetStyleEllipseSpecListOpt
- type SetStyleFillSpecList
- type SetStyleFillSpecListItem
- type SetStyleRectangleSpecList
- type SetStyleRectangleSpecListItem
- type SetStyleRectangleSpecListOpt
- type SetStyleSpec
- type SetStyleTextboxSpecList
- type SetStyleTextboxSpecListItem
- type SetStyleTextboxSpecListOpt
- type SetSurfaceSpecOpt
- type SetTableSpecOpt
- type SetTerminalAifmSpecList
- type SetTerminalAifmSpecListItem
- type SetTerminalAifmSpecListOpt
- type SetTerminalAquaSpecList
- type SetTerminalAquaSpecListItem
- type SetTerminalAquaSpecListOpt
- type SetTerminalBeSpecList
- type SetTerminalBeSpecListItem
- type SetTerminalBeSpecListOpt
- type SetTerminalCairolatexSpecList
- type SetTerminalCairolatexSpecListItem
- type SetTerminalCairolatexSpecListOpt
- type SetTerminalCanvasSpecList
- type SetTerminalCanvasSpecListItem
- type SetTerminalCanvasSpecListOpt
- type SetTerminalCgmSpecList
- type SetTerminalCgmSpecListItem
- type SetTerminalCgmSpecListOpt
- type SetTerminalContextSpecList
- type SetTerminalContextSpecListItem
- type SetTerminalContextSpecListOpt
- type SetTerminalCorelSpecList
- type SetTerminalCorelSpecListItem
- type SetTerminalCorelSpecListOpt
- type SetTerminalDpu414SpecList
- type SetTerminalDpu414SpecListItem
- type SetTerminalDpu414SpecListOpt
- type SetTerminalDumbSpecList
- type SetTerminalDumbSpecListItem
- type SetTerminalDumbSpecListOpt
- type SetTerminalEepicSpecList
- type SetTerminalEepicSpecListItem
- type SetTerminalEepicSpecListOpt
- type SetTerminalEmfSpecList
- type SetTerminalEmfSpecListItem
- type SetTerminalEmfSpecListOpt
- type SetTerminalEpslatexSpecList
- type SetTerminalEpslatexSpecListItem
- type SetTerminalEpslatexSpecListOpt
- type SetTerminalFigSpecList
- type SetTerminalFigSpecListItem
- type SetTerminalFigSpecListOpt
- type SetTerminalGgiSpecList
- type SetTerminalGgiSpecListItem
- type SetTerminalGgiSpecListOpt
- type SetTerminalGifSpecList
- type SetTerminalGifSpecListItem
- type SetTerminalGifSpecListOpt
- type SetTerminalHpglSpecList
- type SetTerminalHpglSpecListItem
- type SetTerminalHpglSpecListOpt
- type SetTerminalHppjSpecOpt
- type SetTerminalImagenSpecList
- type SetTerminalImagenSpecListItem
- type SetTerminalImagenSpecListOpt
- type SetTerminalInner
- type SetTerminalJpegSpecList
- type SetTerminalJpegSpecListItem
- type SetTerminalJpegSpecListOpt
- type SetTerminalLatexSpecList
- type SetTerminalLatexSpecListItem
- type SetTerminalLatexSpecListOpt
- type SetTerminalLuatikzSpecList
- type SetTerminalLuatikzSpecListItem
- type SetTerminalLuatikzSpecListOpt
- type SetTerminalMifSpecList
- type SetTerminalMifSpecListItem
- type SetTerminalMifSpecListOpt
- type SetTerminalMpSpecList
- type SetTerminalMpSpecListItem
- type SetTerminalMpSpecListOpt
- type SetTerminalNeccp6SpecList
- type SetTerminalNeccp6SpecListItem
- type SetTerminalNeccp6SpecListOpt
- type SetTerminalNextSpecList
- type SetTerminalNextSpecListItem
- type SetTerminalNextSpecListOpt
- type SetTerminalPbmSpecList
- type SetTerminalPbmSpecListItem
- type SetTerminalPbmSpecListOpt
- type SetTerminalPdfSpecList
- type SetTerminalPdfSpecListItem
- type SetTerminalPdfSpecListOpt
- type SetTerminalPdfcairoSpecList
- type SetTerminalPdfcairoSpecListItem
- type SetTerminalPdfcairoSpecListOpt
- type SetTerminalPmSpecList
- type SetTerminalPmSpecListItem
- type SetTerminalPmSpecListOpt
- type SetTerminalPngSpecList
- type SetTerminalPngSpecListItem
- type SetTerminalPngSpecListOpt
- type SetTerminalPngcairoSpecList
- type SetTerminalPngcairoSpecListItem
- type SetTerminalPngcairoSpecListOpt
- type SetTerminalPostscriptSpecList
- type SetTerminalPostscriptSpecListItem
- type SetTerminalPostscriptSpecListOpt
- type SetTerminalPstexSpecList
- type SetTerminalPstexSpecListItem
- type SetTerminalPstexSpecListOpt
- type SetTerminalPstricksSpecList
- type SetTerminalPstricksSpecListItem
- type SetTerminalPstricksSpecListOpt
- type SetTerminalQtSpecList
- type SetTerminalQtSpecListItem
- type SetTerminalQtSpecListOpt
- type SetTerminalSpec
- type SetTerminalSvgSpecList
- type SetTerminalSvgSpecListItem
- type SetTerminalSvgSpecListOpt
- type SetTerminalTgifSpecList
- type SetTerminalTgifSpecListItem
- type SetTerminalTgifSpecListOpt
- type SetTerminalTkcanvasSpecList
- type SetTerminalTkcanvasSpecListItem
- type SetTerminalTkcanvasSpecListOpt
- type SetTerminalVgaglSpecList
- type SetTerminalVgaglSpecListItem
- type SetTerminalVgaglSpecListOpt
- type SetTerminalWindowsSpecList
- type SetTerminalWindowsSpecListItem
- type SetTerminalWindowsSpecListOpt
- type SetTerminalWxtSpecList
- type SetTerminalWxtSpecListItem
- type SetTerminalWxtSpecListOpt
- type SetTerminalX11SpecList
- type SetTerminalX11SpecListItem
- type SetTerminalX11SpecListOpt
- type SetTermoptionSpec
- type SetTimestampSpecList
- type SetTimestampSpecListItem
- type SetTimestampSpecListOpt
- type SetTitleSpecList
- type SetTitleSpecListItem
- type SetTitleSpecOpt
- type SetViewSpec
- type SetXLabelSpecList
- type SetXLabelSpecListItem
- type SetXLabelSpecOpt
- type SetXTicsSpecList
- type SetXTicsSpecListItem
- type SetXTicsSpecListOpt
- type SetXyplaneSpec
- type SetZeroaxisSpecList
- type SetZeroaxisSpecListOpt
- type Show
- type ShowDatafileSpecList
- type ShowDatafileSpecListItem
- type ShowDatafileSpecListOpt
- type ShowSpec
- type SimpleExpression
- type SimpleExpressionCommaList
- type SimpleExpressionList
- type SliceArgument
- type Smoothing
- type Splot
- type Statement
- type StatementList
- type StatementSeparator
- type Stats
- type StatsSpecList
- type StatsSpecListItem
- type StatsSpecListOpt
- type Test
- type TicsLabelList
- type TicsLabelListItem
- type UnaryExpression
- type UnaryNonParenthesizedExpression
- type UnaryNonStringExpression
- type UnarySimpleExpression
- type Undefine
- type UndefineList
- type UndefineListItem
- type Unit
- type UnitsOpt
- type Unset
- type UnsetLogscaleList
- type UnsetLogscaleListOpt
- type UnsetSpec
- type Update
- type UsingList
- type VariableDefinition
- type While
Examples ¶
- Package (File)
- Package (ParseString)
- Package (Script)
- AST
- AngleUnit
- AngleUnit (Case1)
- AngleUnit (Case2)
- ArrowStyleList
- ArrowStyleList (Case1)
- ArrowStyleListItem
- ArrowStyleListItem (Case01)
- ArrowStyleListItem (Case02)
- ArrowStyleListItem (Case03)
- ArrowStyleListItem (Case04)
- ArrowStyleListItem (Case05)
- ArrowStyleListItem (Case06)
- ArrowStyleListItem (Case07)
- ArrowStyleListItem (Case08)
- ArrowStyleListItem (Case09)
- ArrowStyleListItem (Case10)
- BinaryList
- BinaryList (Case1)
- BinaryListItem
- BinaryListItem (Case01)
- BinaryListItem (Case02)
- BinaryListItem (Case03)
- BinaryListItem (Case04)
- BinaryListItem (Case05)
- BinaryListItem (Case06)
- BinaryListItem (Case07)
- BinaryListItem (Case08)
- BinaryListItem (Case09)
- BinaryListItem (Case10)
- BinaryListItem (Case11)
- BinaryListItem (Case12)
- BinaryListItem (Case13)
- BinaryListItem (Case14)
- BinaryListItem (Case15)
- BinaryListItem (Case16)
- BinaryListItem (Case17)
- BinaryListItem (Case18)
- BinaryListItem (Case19)
- BinaryListItem (Case20)
- BinaryListItem (Case21)
- BinaryListItem (Case22)
- BinaryListItem (Case23)
- BinaryListItem (Case24)
- BinaryListItem (Case25)
- BinaryListItem (Case26)
- BinaryListItem (Case27)
- BinaryListItem (Case28)
- BinaryListItem (Case29)
- BinaryListItem (Case30)
- BinaryListItem (Case31)
- BinaryListItem (Case32)
- BinaryListItem (Case33)
- BinaryListItem (Case34)
- BinaryListItem (Case35)
- BinaryListItem (Case36)
- BinaryListItem (Case37)
- BinaryListItem (Case38)
- BinaryListItem (Case39)
- BinaryListOpt
- BinaryListOpt (Case1)
- Bind
- Bind (Case1)
- Bind (Case2)
- Bind (Case3)
- Call
- Cd
- Clear
- ColonExpressionList
- ColonExpressionList (Case1)
- ColonExpressionOptList
- ColonExpressionOptList (Case1)
- ColonExpressionOptList (Case2)
- ColonExpressionOptList (Case3)
- ColorSpec
- ColorSpec (Case01)
- ColorSpec (Case02)
- ColorSpec (Case03)
- ColorSpec (Case04)
- ColorSpec (Case05)
- ColorSpec (Case06)
- ColorSpec (Case07)
- ColorSpec (Case08)
- ColorSpec (Case09)
- ColorSpec (Case10)
- ColorSpec (Case11)
- ColorSpec (Case12)
- ColorSpec (Case13)
- ColorSpec (Case14)
- ColorSpec (Case15)
- ColorSpec (Case16)
- ColorSpec (Case17)
- ComplexNumber
- CoordinateSystemOpt
- CoordinateSystemOpt (Case1)
- CoordinateSystemOpt (Case2)
- CoordinateSystemOpt (Case3)
- CoordinateSystemOpt (Case4)
- CoordinateSystemOpt (Case5)
- CoordinateSystemOpt (Case6)
- DashTypeSpec
- DashTypeSpec (Case1)
- DatafileModifiersList
- DatafileModifiersList (Case1)
- DatafileModifiersListItem
- DatafileModifiersListItem (Case01)
- DatafileModifiersListItem (Case02)
- DatafileModifiersListItem (Case03)
- DatafileModifiersListItem (Case04)
- DatafileModifiersListItem (Case05)
- DatafileModifiersListItem (Case06)
- DatafileModifiersListItem (Case07)
- DatafileModifiersListItem (Case08)
- DatafileModifiersListItem (Case09)
- DatafileModifiersListItem (Case10)
- DatafileModifiersListItem (Case11)
- DatafileModifiersListItem (Case12)
- DatafileModifiersListItem (Case13)
- DatafileModifiersListItem (Case14)
- DatafileModifiersListItem (Case15)
- DatafileModifiersListItem (Case16)
- DatafileModifiersListOpt
- DatafileModifiersListOpt (Case1)
- Do
- Else
- EndConditionList
- EndConditionList (Case1)
- EndConditionListItem
- EndConditionListItem (Case1)
- EndConditionListItem (Case2)
- EndConditionListItem (Case3)
- EndConditionListItem (Case4)
- EndConditionListItem (Case5)
- EndConditionListItem (Case6)
- Endianess
- Endianess (Case1)
- Endianess (Case2)
- Endianess (Case3)
- Endianess (Case4)
- Eval
- Exit
- Exit (Case1)
- Exit (Case2)
- Expression
- Expression (Case01)
- Expression (Case02)
- Expression (Case03)
- Expression (Case04)
- Expression (Case05)
- Expression (Case06)
- Expression (Case07)
- Expression (Case08)
- Expression (Case09)
- Expression (Case10)
- Expression (Case11)
- Expression (Case12)
- Expression (Case13)
- Expression (Case14)
- Expression (Case15)
- Expression (Case16)
- Expression (Case17)
- Expression (Case18)
- Expression (Case19)
- Expression (Case20)
- Expression (Case21)
- Expression (Case22)
- Expression (Case23)
- Expression (Case24)
- ExpressionList
- ExpressionList (Case1)
- ExpressionOpt
- ExpressionOpt (Case1)
- ExpressionOptList
- ExpressionOptList (Case1)
- ExpressionOptList (Case2)
- ExpressionOptList (Case3)
- ExpressionUnitList
- ExpressionUnitList (Case1)
- ExpressionUnitList (Case2)
- ExpressionUnitList (Case3)
- Fit
- FitOptionsList
- FitOptionsList (Case1)
- FitOptionsListItem
- FitOptionsListItem (Case1)
- FitOptionsListItem (Case2)
- FitOptionsListItem (Case3)
- FitOptionsListItem (Case4)
- FitOptionsListOpt
- FitOptionsListOpt (Case1)
- FunctionDefinition
- IdentifierList
- IdentifierList (Case1)
- IdentifierOptList
- IdentifierOptList (Case1)
- IdentifierOptList (Case2)
- IdentifierOptList (Case3)
- If
- If (Case1)
- If (Case2)
- IfHeader
- Import
- IterationSpecifier
- IterationSpecifier (Case1)
- IterationSpecifier (Case2)
- IterationSpecifier (Case3)
- IterationSpecifierOpt
- IterationSpecifierOpt (Case1)
- LineStyleList
- LineStyleList (Case1)
- LineStyleListItem
- LineStyleListItem (Case01)
- LineStyleListItem (Case02)
- LineStyleListItem (Case03)
- LineStyleListItem (Case04)
- LineStyleListItem (Case05)
- LineStyleListItem (Case06)
- LineStyleListItem (Case07)
- LineStyleListItem (Case08)
- LineStyleListItem (Case09)
- LineStyleListItem (Case10)
- LineStyleListItem (Case11)
- LineStyleListItem (Case12)
- LineStyleListItem (Case13)
- LineStyleListItem (Case14)
- LineStyleListItem (Case15)
- LineStyleListItem (Case16)
- LineStyleListItem (Case17)
- LineStyleListItem (Case18)
- LineStyleListItem (Case19)
- LineStyleListItem (Case20)
- LineStyleListItem (Case21)
- LineStyleListItem (Case22)
- Load
- Lower
- Lower (Case1)
- NamedDataBlock
- NonParenthesizedExpression
- NonParenthesizedExpression (Case01)
- NonParenthesizedExpression (Case02)
- NonParenthesizedExpression (Case03)
- NonParenthesizedExpression (Case04)
- NonParenthesizedExpression (Case05)
- NonParenthesizedExpression (Case06)
- NonParenthesizedExpression (Case07)
- NonParenthesizedExpression (Case08)
- NonParenthesizedExpression (Case09)
- NonParenthesizedExpression (Case10)
- NonParenthesizedExpression (Case11)
- NonParenthesizedExpression (Case12)
- NonParenthesizedExpression (Case13)
- NonParenthesizedExpression (Case14)
- NonParenthesizedExpression (Case15)
- NonParenthesizedExpression (Case16)
- NonParenthesizedExpression (Case17)
- NonParenthesizedExpression (Case18)
- NonParenthesizedExpression (Case19)
- NonParenthesizedExpression (Case20)
- NonParenthesizedExpression (Case21)
- NonParenthesizedExpression (Case22)
- NonParenthesizedExpression (Case23)
- NonParenthesizedExpression (Case24)
- NonParenthesizedOperand
- NonParenthesizedOperand (Case1)
- NonParenthesizedOperand (Case2)
- NonParenthesizedOperand (Case3)
- NonParenthesizedOperand (Case4)
- NonStringExpression
- NonStringExpression (Case01)
- NonStringExpression (Case02)
- NonStringExpression (Case03)
- NonStringExpression (Case04)
- NonStringExpression (Case05)
- NonStringExpression (Case06)
- NonStringExpression (Case07)
- NonStringExpression (Case08)
- NonStringExpression (Case09)
- NonStringExpression (Case10)
- NonStringExpression (Case11)
- NonStringExpression (Case12)
- NonStringExpression (Case13)
- NonStringExpression (Case14)
- NonStringExpression (Case15)
- NonStringExpression (Case16)
- NonStringExpression (Case17)
- NonStringExpression (Case18)
- NonStringExpression (Case19)
- NonStringExpression (Case20)
- NonStringExpression (Case21)
- NonStringExpression (Case22)
- NonStringExpression (Case23)
- NonStringExpression (Case24)
- NonStringOperand
- NonStringOperand (Case1)
- NonStringOperand (Case2)
- NonStringOperand (Case3)
- Operand
- Operand (Case1)
- Operand (Case2)
- Operand (Case3)
- Operand (Case4)
- Operand (Case5)
- OriginList
- OriginList (Case1)
- Pause
- Pause (Case1)
- Pause (Case2)
- Pause (Case3)
- Pause (Case4)
- Plot
- PlotElementAxes
- PlotElementAxes (Case1)
- PlotElementAxes (Case2)
- PlotElementAxes (Case3)
- PlotElementList
- PlotElementList (Case1)
- PlotElementListItem
- PlotElementListItem (Case1)
- PlotElementListItem (Case2)
- PlotElementModifiersList
- PlotElementModifiersList (Case1)
- PlotElementModifiersListItem
- PlotElementModifiersListItem (Case1)
- PlotElementModifiersListItem (Case2)
- PlotElementModifiersListItem (Case3)
- PlotElementModifiersListItem (Case4)
- PlotElementModifiersListItem (Case5)
- PlotElementModifiersListItem (Case6)
- PlotElementModifiersListOpt
- PlotElementModifiersListOpt (Case1)
- PlotElementStyle
- PlotElementStyle (Case01)
- PlotElementStyle (Case02)
- PlotElementStyle (Case03)
- PlotElementStyle (Case04)
- PlotElementStyle (Case05)
- PlotElementStyle (Case06)
- PlotElementStyle (Case07)
- PlotElementStyle (Case08)
- PlotElementStyle (Case09)
- PlotElementStyle (Case10)
- PlotElementStyle (Case11)
- PlotElementStyle (Case12)
- PlotElementStyle (Case13)
- PlotElementStyle (Case14)
- PlotElementStyle (Case15)
- PlotElementStyle (Case16)
- PlotElementStyle (Case17)
- PlotElementStyle (Case18)
- PlotElementStyle (Case19)
- PlotElementStyle (Case20)
- PlotElementStyle (Case21)
- PlotElementStyle (Case22)
- PlotElementStyle (Case23)
- PlotElementStyle (Case24)
- PlotElementStyle (Case25)
- PlotElementStyle (Case26)
- PlotElementStyle (Case27)
- PlotElementStyle (Case28)
- PlotElementStyle (Case29)
- PlotElementStyle (Case30)
- PlotElementStyle (Case31)
- PlotElementStyle (Case32)
- PlotElementStyle (Case33)
- PlotElementStyle (Case34)
- PlotElementStyle (Case35)
- PlotElementStyle (Case36)
- PlotElementStyle (Case37)
- PlotElementStyle (Case38)
- PlotElementStyle (Case39)
- PlotElementStyle (Case40)
- PlotElementStyle (Case41)
- PlotElementStyle (Case42)
- PlotElementStyle (Case43)
- PlotElementStyle (Case44)
- PlotElementStyle (Case45)
- PlotElementStyleFilledcurvesSpecList
- PlotElementStyleFilledcurvesSpecList (Case1)
- PlotElementStyleFilledcurvesSpecListItem
- PlotElementStyleFilledcurvesSpecListItem (Case01)
- PlotElementStyleFilledcurvesSpecListItem (Case02)
- PlotElementStyleFilledcurvesSpecListItem (Case03)
- PlotElementStyleFilledcurvesSpecListItem (Case04)
- PlotElementStyleFilledcurvesSpecListItem (Case05)
- PlotElementStyleFilledcurvesSpecListItem (Case06)
- PlotElementStyleFilledcurvesSpecListItem (Case07)
- PlotElementStyleFilledcurvesSpecListItem (Case08)
- PlotElementStyleFilledcurvesSpecListItem (Case09)
- PlotElementStyleFilledcurvesSpecListItem (Case10)
- PlotElementStyleFilledcurvesSpecListItem (Case11)
- PlotElementStyleFilledcurvesSpecListItem (Case12)
- PlotElementStyleFilledcurvesSpecListItem (Case13)
- PlotElementStyleFilledcurvesSpecListItem (Case14)
- PlotElementStyleFilledcurvesSpecListItem (Case15)
- PlotElementStyleFilledcurvesSpecListOpt
- PlotElementStyleFilledcurvesSpecListOpt (Case1)
- PlotElementStyleHistogramsList
- PlotElementStyleHistogramsList (Case1)
- PlotElementStyleHistogramsListItem
- PlotElementStyleHistogramsListItem (Case01)
- PlotElementStyleHistogramsListItem (Case02)
- PlotElementStyleHistogramsListItem (Case03)
- PlotElementStyleHistogramsListItem (Case04)
- PlotElementStyleHistogramsListItem (Case05)
- PlotElementStyleHistogramsListItem (Case06)
- PlotElementStyleHistogramsListItem (Case07)
- PlotElementStyleHistogramsListItem (Case08)
- PlotElementStyleHistogramsListItem (Case09)
- PlotElementStyleHistogramsListItem (Case10)
- PlotElementStyleHistogramsListItem (Case11)
- PlotElementStyleHistogramsListItem (Case12)
- PlotElementStyleHistogramsListItem (Case13)
- PlotElementStyleHistogramsListItem (Case14)
- PlotElementStyleHistogramsListOpt
- PlotElementStyleHistogramsListOpt (Case1)
- PlotElementStyleLabelsSpecList
- PlotElementStyleLabelsSpecList (Case1)
- PlotElementStyleLabelsSpecListItem
- PlotElementStyleLabelsSpecListItem (Case01)
- PlotElementStyleLabelsSpecListItem (Case02)
- PlotElementStyleLabelsSpecListItem (Case03)
- PlotElementStyleLabelsSpecListItem (Case04)
- PlotElementStyleLabelsSpecListItem (Case05)
- PlotElementStyleLabelsSpecListItem (Case06)
- PlotElementStyleLabelsSpecListItem (Case07)
- PlotElementStyleLabelsSpecListItem (Case08)
- PlotElementStyleLabelsSpecListItem (Case09)
- PlotElementStyleLabelsSpecListItem (Case10)
- PlotElementStyleLabelsSpecListItem (Case11)
- PlotElementStyleLabelsSpecListItem (Case12)
- PlotElementStyleLabelsSpecListItem (Case13)
- PlotElementStyleLabelsSpecListItem (Case14)
- PlotElementStyleLabelsSpecListItem (Case15)
- PlotElementStyleLabelsSpecListItem (Case16)
- PlotElementStyleLabelsSpecListItem (Case17)
- PlotElementStyleLabelsSpecListItem (Case18)
- PlotElementStyleLabelsSpecListItem (Case19)
- PlotElementStyleVectorsSpecOpt
- PlotElementStyleVectorsSpecOpt (Case1)
- PlotElementStyleVectorsSpecOpt (Case2)
- PlotElementStyleVectorsSpecOpt (Case3)
- PlotElementStyleVectorsSpecOpt (Case4)
- PlotElementStyleVectorsSpecOpt (Case5)
- PlotElementTitle
- PlotElementTitle (Case1)
- PlotElementTitle (Case2)
- PlotElementTitle (Case3)
- PlotElementTitle (Case4)
- PlotElementTitlePosOpt
- PlotElementTitlePosOpt (Case1)
- PlotElementTitlePosOpt (Case2)
- PlotElementTitleSpec
- PlotElementTitleSpec (Case1)
- PlotElementTitleSpec (Case2)
- PlotNewhistogramSpecList
- PlotNewhistogramSpecList (Case1)
- PlotNewhistogramSpecListItem
- PlotNewhistogramSpecListItem (Case1)
- PlotNewhistogramSpecListItem (Case2)
- PlotNewhistogramSpecListItem (Case3)
- PlotNewhistogramSpecListItem (Case4)
- PlotNewhistogramSpecListItem (Case5)
- PlotNewhistogramSpecListItem (Case6)
- PlotNewhistogramSpecListItem (Case7)
- PlotNewhistogramSpecListItem (Case8)
- PlotNewhistogramSpecListOpt
- PlotNewhistogramSpecListOpt (Case1)
- PlotWindow
- PlotWindow (Case1)
- PlotWindow (Case2)
- PlotWindow (Case3)
- Position
- Position (Case1)
- Position (Case2)
- Position (Case3)
- PrimaryExpression
- PrimaryExpression (Case1)
- PrimaryExpression (Case2)
- PrimaryNonParenthesizedExpression
- PrimaryNonParenthesizedExpression (Case1)
- PrimaryNonParenthesizedExpression (Case2)
- PrimaryNonStringExpression
- PrimaryNonStringExpression (Case1)
- PrimaryNonStringExpression (Case2)
- Range
- Range (Case1)
- Range (Case2)
- Range (Case3)
- Range (Case4)
- RangeExpression
- RangeExpression (Case01)
- RangeExpression (Case02)
- RangeExpression (Case03)
- RangeExpression (Case04)
- RangeExpression (Case05)
- RangeExpression (Case06)
- RangeExpression (Case07)
- RangeExpression (Case08)
- RangeExpression (Case09)
- RangeExpression (Case10)
- RangeExpression (Case11)
- RangeExpression (Case12)
- RangeExpression (Case13)
- RangeExpression (Case14)
- RangeExpression (Case15)
- RangeExpression (Case16)
- RangeExpression (Case17)
- RangeExpression (Case18)
- RangeExpression (Case19)
- RangeExpression (Case20)
- RangeExpression (Case21)
- RangeExpression (Case22)
- RangeExpression (Case23)
- RangeExpression (Case24)
- RangeExpression (Case25)
- Ranges
- Ranges (Case1)
- RangesOpt
- RangesOpt (Case1)
- Replot
- Replot (Case1)
- Replot (Case2)
- Replot (Case3)
- Reread
- Reset
- Reset (Case1)
- Reset (Case2)
- Reset (Case3)
- Set
- SetAnglesSpec
- SetAnglesSpec (Case1)
- SetAnglesSpec (Case2)
- SetArrowSpec
- SetArrowSpecList
- SetArrowSpecList (Case1)
- SetArrowSpecListItem
- SetArrowSpecListItem (Case01)
- SetArrowSpecListItem (Case02)
- SetArrowSpecListItem (Case03)
- SetArrowSpecListItem (Case04)
- SetArrowSpecListItem (Case05)
- SetArrowSpecListItem (Case06)
- SetArrowSpecListItem (Case07)
- SetArrowSpecListItem (Case08)
- SetArrowSpecListItem (Case09)
- SetArrowSpecListItem (Case10)
- SetArrowSpecListItem (Case11)
- SetArrowSpecListItem (Case12)
- SetArrowSpecListItem (Case13)
- SetArrowSpecListItem (Case14)
- SetArrowSpecListItem (Case15)
- SetArrowSpecListItem (Case16)
- SetArrowSpecListItem (Case17)
- SetArrowSpecListItem (Case18)
- SetAutoscaleAxes
- SetAutoscaleAxes (Case01)
- SetAutoscaleAxes (Case02)
- SetAutoscaleAxes (Case03)
- SetAutoscaleAxes (Case04)
- SetAutoscaleAxes (Case05)
- SetAutoscaleAxes (Case06)
- SetAutoscaleAxes (Case07)
- SetAutoscaleAxes (Case08)
- SetAutoscaleAxes (Case09)
- SetAutoscaleAxes (Case10)
- SetAutoscaleAxes (Case11)
- SetAutoscaleAxes (Case12)
- SetAutoscaleAxes (Case13)
- SetAutoscaleAxes (Case14)
- SetAutoscaleAxes (Case15)
- SetAutoscaleAxes (Case16)
- SetAutoscaleAxes (Case17)
- SetAutoscaleAxes (Case18)
- SetAutoscaleAxes (Case19)
- SetAutoscaleAxes (Case20)
- SetAutoscaleAxes (Case21)
- SetAutoscaleAxes (Case22)
- SetAutoscaleAxes (Case23)
- SetAutoscaleAxes (Case24)
- SetAutoscaleAxes (Case25)
- SetAutoscaleAxes (Case26)
- SetAutoscaleAxes (Case27)
- SetAutoscaleAxes (Case28)
- SetAutoscaleAxes (Case29)
- SetAutoscaleAxes (Case30)
- SetAutoscaleAxes (Case31)
- SetAutoscaleAxes (Case32)
- SetAutoscaleAxes (Case33)
- SetAutoscaleAxes (Case34)
- SetAutoscaleAxes (Case35)
- SetAutoscaleAxes (Case36)
- SetAutoscaleAxes (Case37)
- SetAutoscaleAxes (Case38)
- SetAutoscaleSpecList
- SetAutoscaleSpecList (Case1)
- SetAutoscaleSpecListItem
- SetAutoscaleSpecListItem (Case1)
- SetAutoscaleSpecListItem (Case2)
- SetAutoscaleSpecListItem (Case3)
- SetAutoscaleSpecListOpt
- SetAutoscaleSpecListOpt (Case1)
- SetBarsSpecList
- SetBarsSpecList (Case1)
- SetBarsSpecListItem
- SetBarsSpecListItem (Case1)
- SetBarsSpecListItem (Case2)
- SetBarsSpecListItem (Case3)
- SetBarsSpecListItem (Case4)
- SetBarsSpecListItem (Case5)
- SetBarsSpecListOpt
- SetBarsSpecListOpt (Case1)
- SetBmarginSpecOpt
- SetBmarginSpecOpt (Case1)
- SetBmarginSpecOpt (Case2)
- SetBorderSpec
- SetBorderSpecList
- SetBorderSpecList (Case1)
- SetBorderSpecListItem
- SetBorderSpecListItem (Case1)
- SetBorderSpecListItem (Case2)
- SetBorderSpecListItem (Case3)
- SetBorderSpecListOpt
- SetBorderSpecListOpt (Case1)
- SetBoxwidthSpec
- SetBoxwidthSpec (Case1)
- SetBoxwidthSpec (Case2)
- SetClipSpecOpt
- SetClipSpecOpt (Case1)
- SetClipSpecOpt (Case2)
- SetClipSpecOpt (Case3)
- SetCntrlabelSpecList
- SetCntrlabelSpecList (Case1)
- SetCntrlabelSpecListItem
- SetCntrlabelSpecListItem (Case1)
- SetCntrlabelSpecListItem (Case2)
- SetCntrlabelSpecListItem (Case3)
- SetCntrlabelSpecListItem (Case4)
- SetCntrparamSpecList
- SetCntrparamSpecList (Case1)
- SetCntrparamSpecListItem
- SetCntrparamSpecListItem (Case01)
- SetCntrparamSpecListItem (Case02)
- SetCntrparamSpecListItem (Case03)
- SetCntrparamSpecListItem (Case04)
- SetCntrparamSpecListItem (Case05)
- SetCntrparamSpecListItem (Case06)
- SetCntrparamSpecListItem (Case07)
- SetCntrparamSpecListItem (Case08)
- SetCntrparamSpecListItem (Case09)
- SetCntrparamSpecListItem (Case10)
- SetCntrparamSpecListItem (Case11)
- SetCntrparamSpecListItem (Case12)
- SetCntrparamSpecListItem (Case13)
- SetCntrparamSpecListItem (Case14)
- SetColorboxSpecList
- SetColorboxSpecList (Case1)
- SetColorboxSpecListItem
- SetColorboxSpecListItem (Case01)
- SetColorboxSpecListItem (Case02)
- SetColorboxSpecListItem (Case03)
- SetColorboxSpecListItem (Case04)
- SetColorboxSpecListItem (Case05)
- SetColorboxSpecListItem (Case06)
- SetColorboxSpecListItem (Case07)
- SetColorboxSpecListItem (Case08)
- SetColorboxSpecListItem (Case09)
- SetColorboxSpecListItem (Case10)
- SetColorboxSpecListOpt
- SetColorboxSpecListOpt (Case1)
- SetColorsequenceSpecOpt
- SetColorsequenceSpecOpt (Case1)
- SetColorsequenceSpecOpt (Case2)
- SetColorsequenceSpecOpt (Case3)
- SetContourSpec
- SetContourSpec (Case1)
- SetContourSpec (Case2)
- SetContourSpec (Case3)
- SetDatafileSeperatorSpecOpt
- SetDatafileSeperatorSpecOpt (Case1)
- SetDatafileSeperatorSpecOpt (Case2)
- SetDatafileSeperatorSpecOpt (Case3)
- SetDatafileSeperatorSpecOpt (Case4)
- SetDatafileSpec
- SetDatafileSpec (Case1)
- SetDatafileSpec (Case2)
- SetDatafileSpec (Case3)
- SetDatafileSpec (Case4)
- SetDatafileSpec (Case5)
- SetDatafileSpec (Case6)
- SetDatafileSpec (Case7)
- SetDatafileSpec (Case8)
- SetDecimalsignSpecOpt
- SetDecimalsignSpecOpt (Case1)
- SetDecimalsignSpecOpt (Case2)
- SetDecimalsignSpecOpt (Case3)
- SetDgrid3dSpecList
- SetDgrid3dSpecList (Case1)
- SetDgrid3dSpecListItem
- SetDgrid3dSpecListItem (Case01)
- SetDgrid3dSpecListItem (Case02)
- SetDgrid3dSpecListItem (Case03)
- SetDgrid3dSpecListItem (Case04)
- SetDgrid3dSpecListItem (Case05)
- SetDgrid3dSpecListItem (Case06)
- SetDgrid3dSpecListItem (Case07)
- SetDgrid3dSpecListItem (Case08)
- SetDgrid3dSpecListItem (Case09)
- SetDgrid3dSpecListOpt
- SetDgrid3dSpecListOpt (Case1)
- SetEncodingSpec
- SetEncodingSpec (Case01)
- SetEncodingSpec (Case02)
- SetEncodingSpec (Case03)
- SetEncodingSpec (Case04)
- SetEncodingSpec (Case05)
- SetEncodingSpec (Case06)
- SetEncodingSpec (Case07)
- SetEncodingSpec (Case08)
- SetEncodingSpec (Case09)
- SetEncodingSpec (Case10)
- SetEncodingSpec (Case11)
- SetEncodingSpec (Case12)
- SetEncodingSpec (Case13)
- SetEncodingSpec (Case14)
- SetEncodingSpec (Case15)
- SetEncodingSpec (Case16)
- SetEncodingSpec (Case17)
- SetEncodingSpec (Case18)
- SetFitSpecList
- SetFitSpecList (Case1)
- SetFitSpecListItem
- SetFitSpecListItem (Case01)
- SetFitSpecListItem (Case02)
- SetFitSpecListItem (Case03)
- SetFitSpecListItem (Case04)
- SetFitSpecListItem (Case05)
- SetFitSpecListItem (Case06)
- SetFitSpecListItem (Case07)
- SetFitSpecListItem (Case08)
- SetFitSpecListItem (Case09)
- SetFitSpecListItem (Case10)
- SetFitSpecListItem (Case11)
- SetFitSpecListItem (Case12)
- SetFitSpecListItem (Case13)
- SetFitSpecListItem (Case14)
- SetFitSpecListItem (Case15)
- SetFitSpecListItem (Case16)
- SetFitSpecListItem (Case17)
- SetFitSpecListItem (Case18)
- SetFitSpecListItem (Case19)
- SetFitSpecListItem (Case20)
- SetFitSpecListItem (Case21)
- SetFitSpecListItem (Case22)
- SetFitSpecListItem (Case23)
- SetFitSpecListItem (Case24)
- SetFitSpecListItem (Case25)
- SetFitSpecListItem (Case26)
- SetFitSpecListItem (Case27)
- SetFitSpecListItem (Case28)
- SetFontPathSpecOpt
- SetFontPathSpecOpt (Case1)
- SetFontPathSpecOpt (Case2)
- SetFormatAxesOpt
- SetFormatAxesOpt (Case1)
- SetFormatAxesOpt (Case2)
- SetFormatAxesOpt (Case3)
- SetFormatAxesOpt (Case4)
- SetFormatAxesOpt (Case5)
- SetFormatAxesOpt (Case6)
- SetFormatAxesOpt (Case7)
- SetFormatModifierOpt
- SetFormatModifierOpt (Case1)
- SetFormatModifierOpt (Case2)
- SetFormatModifierOpt (Case3)
- SetFormatSpec
- SetGridSpecList
- SetGridSpecList (Case1)
- SetGridSpecListItem
- SetGridSpecListItem (Case01)
- SetGridSpecListItem (Case02)
- SetGridSpecListItem (Case03)
- SetGridSpecListItem (Case04)
- SetGridSpecListItem (Case05)
- SetGridSpecListItem (Case06)
- SetGridSpecListItem (Case07)
- SetGridSpecListItem (Case08)
- SetGridSpecListItem (Case09)
- SetGridSpecListItem (Case10)
- SetGridSpecListItem (Case11)
- SetGridSpecListItem (Case12)
- SetGridSpecListItem (Case13)
- SetGridSpecListItem (Case14)
- SetGridSpecListItem (Case15)
- SetGridSpecListItem (Case16)
- SetGridSpecListItem (Case17)
- SetGridSpecListItem (Case18)
- SetGridSpecListItem (Case19)
- SetGridSpecListItem (Case20)
- SetGridSpecListItem (Case21)
- SetGridSpecListItem (Case22)
- SetGridSpecListItem (Case23)
- SetGridSpecListItem (Case24)
- SetGridSpecListItem (Case25)
- SetGridSpecListItem (Case26)
- SetGridSpecListItem (Case27)
- SetGridSpecListItem (Case28)
- SetGridSpecListItem (Case29)
- SetGridSpecListItem (Case30)
- SetGridSpecListItem (Case31)
- SetGridSpecListItem (Case32)
- SetGridSpecListItem (Case33)
- SetGridSpecListItem (Case34)
- SetGridSpecListItem (Case35)
- SetGridSpecListItem (Case36)
- SetGridSpecListItem (Case37)
- SetGridSpecListOpt
- SetGridSpecListOpt (Case1)
- SetHidden3dSpecList
- SetHidden3dSpecList (Case1)
- SetHidden3dSpecListItem
- SetHidden3dSpecListItem (Case01)
- SetHidden3dSpecListItem (Case02)
- SetHidden3dSpecListItem (Case03)
- SetHidden3dSpecListItem (Case04)
- SetHidden3dSpecListItem (Case05)
- SetHidden3dSpecListItem (Case06)
- SetHidden3dSpecListItem (Case07)
- SetHidden3dSpecListItem (Case08)
- SetHidden3dSpecListItem (Case09)
- SetHidden3dSpecListItem (Case10)
- SetHidden3dSpecListItem (Case11)
- SetHidden3dSpecListOpt
- SetHidden3dSpecListOpt (Case1)
- SetHistorySpecList
- SetHistorySpecList (Case1)
- SetHistorySpecListItem
- SetHistorySpecListItem (Case1)
- SetHistorySpecListItem (Case2)
- SetHistorySpecListItem (Case3)
- SetHistorySpecListItem (Case4)
- SetHistorySpecListItem (Case5)
- SetHistorySpecListOpt
- SetHistorySpecListOpt (Case1)
- SetKeySpecList
- SetKeySpecList (Case1)
- SetKeySpecListItem
- SetKeySpecListItem (Case01)
- SetKeySpecListItem (Case02)
- SetKeySpecListItem (Case03)
- SetKeySpecListItem (Case04)
- SetKeySpecListItem (Case05)
- SetKeySpecListItem (Case06)
- SetKeySpecListItem (Case07)
- SetKeySpecListItem (Case08)
- SetKeySpecListItem (Case09)
- SetKeySpecListItem (Case10)
- SetKeySpecListItem (Case11)
- SetKeySpecListItem (Case12)
- SetKeySpecListItem (Case13)
- SetKeySpecListItem (Case14)
- SetKeySpecListItem (Case15)
- SetKeySpecListItem (Case16)
- SetKeySpecListItem (Case17)
- SetKeySpecListItem (Case18)
- SetKeySpecListItem (Case19)
- SetKeySpecListItem (Case20)
- SetKeySpecListItem (Case21)
- SetKeySpecListItem (Case22)
- SetKeySpecListItem (Case23)
- SetKeySpecListItem (Case24)
- SetKeySpecListItem (Case25)
- SetKeySpecListItem (Case26)
- SetKeySpecListItem (Case27)
- SetKeySpecListItem (Case28)
- SetKeySpecListItem (Case29)
- SetKeySpecListItem (Case30)
- SetKeySpecListItem (Case31)
- SetKeySpecListItem (Case32)
- SetKeySpecListItem (Case33)
- SetKeySpecListItem (Case34)
- SetKeySpecListItem (Case35)
- SetKeySpecListItem (Case36)
- SetKeySpecListItem (Case37)
- SetKeySpecListItem (Case38)
- SetKeySpecListItem (Case39)
- SetKeySpecListItem (Case40)
- SetKeySpecListItem (Case41)
- SetKeySpecListItem (Case42)
- SetKeySpecListItem (Case43)
- SetKeySpecListItem (Case44)
- SetKeySpecListItem (Case45)
- SetKeySpecListItem (Case46)
- SetKeySpecListItem (Case47)
- SetKeySpecListItem (Case48)
- SetKeySpecListItem (Case49)
- SetKeySpecListItem (Case50)
- SetKeySpecListItem (Case51)
- SetKeySpecListOpt
- SetKeySpecListOpt (Case1)
- SetLabelSpec
- SetLabelSpecList
- SetLabelSpecList (Case1)
- SetLabelSpecListItem
- SetLabelSpecListItem (Case01)
- SetLabelSpecListItem (Case02)
- SetLabelSpecListItem (Case03)
- SetLabelSpecListItem (Case04)
- SetLabelSpecListItem (Case05)
- SetLabelSpecListItem (Case06)
- SetLabelSpecListItem (Case07)
- SetLabelSpecListItem (Case08)
- SetLabelSpecListItem (Case09)
- SetLabelSpecListItem (Case10)
- SetLabelSpecListItem (Case11)
- SetLabelSpecListItem (Case12)
- SetLabelSpecListItem (Case13)
- SetLabelSpecListItem (Case14)
- SetLabelSpecListItem (Case15)
- SetLabelSpecListItem (Case16)
- SetLabelSpecListItem (Case17)
- SetLabelSpecListItem (Case18)
- SetLabelSpecListItem (Case19)
- SetLinkSpecList
- SetLinkSpecList (Case1)
- SetLinkSpecListItem
- SetLinkSpecListItem (Case1)
- SetLinkSpecListItem (Case2)
- SetLinkSpecListItem (Case3)
- SetLinkSpecListItem (Case4)
- SetLinkSpecListOpt
- SetLinkSpecListOpt (Case1)
- SetLogscaleAxesList
- SetLogscaleAxesList (Case1)
- SetLogscaleAxesListItem
- SetLogscaleAxesListItem (Case1)
- SetLogscaleAxesListItem (Case2)
- SetLogscaleAxesListItem (Case3)
- SetLogscaleAxesListItem (Case4)
- SetLogscaleAxesListItem (Case5)
- SetLogscaleAxesListItem (Case6)
- SetLogscaleAxesListOpt
- SetLogscaleAxesListOpt (Case1)
- SetLogscaleSpec
- SetMappingSpec
- SetMappingSpec (Case1)
- SetMappingSpec (Case2)
- SetMonochromeSpecOpt
- SetMonochromeSpecOpt (Case1)
- SetMouseSpecList
- SetMouseSpecList (Case1)
- SetMouseSpecListItem
- SetMouseSpecListItem (Case01)
- SetMouseSpecListItem (Case02)
- SetMouseSpecListItem (Case03)
- SetMouseSpecListItem (Case04)
- SetMouseSpecListItem (Case05)
- SetMouseSpecListItem (Case06)
- SetMouseSpecListItem (Case07)
- SetMouseSpecListItem (Case08)
- SetMouseSpecListItem (Case09)
- SetMouseSpecListItem (Case10)
- SetMouseSpecListItem (Case11)
- SetMouseSpecListItem (Case12)
- SetMouseSpecListItem (Case13)
- SetMouseSpecListItem (Case14)
- SetMouseSpecListItem (Case15)
- SetMouseSpecListItem (Case16)
- SetMouseSpecListItem (Case17)
- SetMouseSpecListItem (Case18)
- SetMouseSpecListItem (Case19)
- SetMouseSpecListOpt
- SetMouseSpecListOpt (Case1)
- SetMultiplotSpecList
- SetMultiplotSpecList (Case1)
- SetMultiplotSpecListItem
- SetMultiplotSpecListItem (Case01)
- SetMultiplotSpecListItem (Case02)
- SetMultiplotSpecListItem (Case03)
- SetMultiplotSpecListItem (Case04)
- SetMultiplotSpecListItem (Case05)
- SetMultiplotSpecListItem (Case06)
- SetMultiplotSpecListItem (Case07)
- SetMultiplotSpecListItem (Case08)
- SetMultiplotSpecListItem (Case09)
- SetMultiplotSpecListItem (Case10)
- SetMultiplotSpecListItem (Case11)
- SetMultiplotSpecListItem (Case12)
- SetMultiplotSpecListItem (Case13)
- SetMultiplotSpecListItem (Case14)
- SetMultiplotSpecListOpt
- SetMultiplotSpecListOpt (Case1)
- SetMxticsSpecOpt
- SetMxticsSpecOpt (Case1)
- SetMxticsSpecOpt (Case2)
- SetObjectSpecList
- SetObjectSpecList (Case1)
- SetObjectSpecListItem
- SetObjectSpecListItem (Case01)
- SetObjectSpecListItem (Case02)
- SetObjectSpecListItem (Case03)
- SetObjectSpecListItem (Case04)
- SetObjectSpecListItem (Case05)
- SetObjectSpecListItem (Case06)
- SetObjectSpecListItem (Case07)
- SetObjectSpecListItem (Case08)
- SetObjectSpecListItem (Case09)
- SetObjectSpecListItem (Case10)
- SetObjectSpecListItem (Case11)
- SetObjectSpecListItem (Case12)
- SetObjectSpecListItem (Case13)
- SetObjectSpecListItem (Case14)
- SetObjectSpecListItem (Case15)
- SetObjectSpecListItem (Case16)
- SetObjectSpecListItem (Case17)
- SetObjectSpecListItem (Case18)
- SetObjectSpecListItem (Case19)
- SetObjectSpecListItem (Case20)
- SetObjectSpecListItem (Case21)
- SetObjectSpecListItem (Case22)
- SetObjectSpecListItem (Case23)
- SetObjectSpecListItem (Case24)
- SetObjectSpecListItem (Case25)
- SetObjectSpecListItem (Case26)
- SetObjectSpecListItem (Case27)
- SetObjectSpecListItem (Case28)
- SetObjectSpecListItem (Case29)
- SetObjectSpecListItem (Case30)
- SetObjectSpecListItem (Case31)
- SetOffsetsSpecOpt
- SetOffsetsSpecOpt (Case1)
- SetOffsetsSpecOpt (Case2)
- SetPaletteSpecList
- SetPaletteSpecList (Case1)
- SetPaletteSpecListItem
- SetPaletteSpecListItem (Case01)
- SetPaletteSpecListItem (Case02)
- SetPaletteSpecListItem (Case03)
- SetPaletteSpecListItem (Case04)
- SetPaletteSpecListItem (Case05)
- SetPaletteSpecListItem (Case06)
- SetPaletteSpecListItem (Case07)
- SetPaletteSpecListItem (Case08)
- SetPaletteSpecListItem (Case09)
- SetPaletteSpecListItem (Case10)
- SetPaletteSpecListItem (Case11)
- SetPaletteSpecListItem (Case12)
- SetPaletteSpecListItem (Case13)
- SetPaletteSpecListItem (Case14)
- SetPaletteSpecListItem (Case15)
- SetPaletteSpecListItem (Case16)
- SetPaletteSpecListItem (Case17)
- SetPaletteSpecListItem (Case18)
- SetPaletteSpecListItem (Case19)
- SetPaletteSpecListItem (Case20)
- SetPaletteSpecListItem (Case21)
- SetPaletteSpecListItem (Case22)
- SetPaletteSpecListItem (Case23)
- SetPaletteSpecListItem (Case24)
- SetPaletteSpecListItem (Case25)
- SetPaletteSpecListItem (Case26)
- SetPaletteSpecListItem (Case27)
- SetPaletteSpecListItem (Case28)
- SetPaletteSpecListOpt
- SetPaletteSpecListOpt (Case1)
- SetPalleteDefinedColorList
- SetPalleteDefinedColorList (Case1)
- SetPalleteDefinedColorListItem
- SetPalleteDefinedColorListItem (Case1)
- SetPaxisSpecList
- SetPaxisSpecList (Case1)
- SetPaxisSpecListItem
- SetPaxisSpecListItem (Case1)
- SetPaxisSpecListOpt
- SetPaxisSpecListOpt (Case1)
- SetPm3dSpecList
- SetPm3dSpecList (Case1)
- SetPm3dSpecListItem
- SetPm3dSpecListItem (Case01)
- SetPm3dSpecListItem (Case02)
- SetPm3dSpecListItem (Case03)
- SetPm3dSpecListItem (Case04)
- SetPm3dSpecListItem (Case05)
- SetPm3dSpecListItem (Case06)
- SetPm3dSpecListItem (Case07)
- SetPm3dSpecListItem (Case08)
- SetPm3dSpecListItem (Case09)
- SetPm3dSpecListItem (Case10)
- SetPm3dSpecListItem (Case11)
- SetPm3dSpecListItem (Case12)
- SetPm3dSpecListItem (Case13)
- SetPm3dSpecListItem (Case14)
- SetPm3dSpecListItem (Case15)
- SetPm3dSpecListItem (Case16)
- SetPm3dSpecListItem (Case17)
- SetPm3dSpecListItem (Case18)
- SetPm3dSpecListItem (Case19)
- SetPm3dSpecListItem (Case20)
- SetPm3dSpecListItem (Case21)
- SetPm3dSpecListItem (Case22)
- SetPm3dSpecListItem (Case23)
- SetPm3dSpecListItem (Case24)
- SetPm3dSpecListItem (Case25)
- SetPm3dSpecListItem (Case26)
- SetPm3dSpecListItem (Case27)
- SetPm3dSpecListItem (Case28)
- SetPm3dSpecListItem (Case29)
- SetPm3dSpecListItem (Case30)
- SetPm3dSpecListItem (Case31)
- SetPm3dSpecListItem (Case32)
- SetPm3dSpecListOpt
- SetPm3dSpecListOpt (Case1)
- SetPrintSpecOpt
- SetPrintSpecOpt (Case1)
- SetPrintSpecOpt (Case2)
- SetRangeSpec
- SetRangeSpec (Case1)
- SetRangeSpecList
- SetRangeSpecList (Case1)
- SetRangeSpecListItem
- SetRangeSpecListItem (Case1)
- SetRangeSpecListItem (Case2)
- SetRangeSpecListItem (Case3)
- SetRangeSpecListItem (Case4)
- SetRangeSpecListItem (Case5)
- SetRangeSpecListItem (Case6)
- SetRangeSpecListOpt
- SetRangeSpecListOpt (Case1)
- SetSizeSpecList
- SetSizeSpecList (Case1)
- SetSizeSpecListItem
- SetSizeSpecListItem (Case1)
- SetSizeSpecListItem (Case2)
- SetSizeSpecListItem (Case3)
- SetSizeSpecListItem (Case4)
- SetSpec
- SetSpec (Case001)
- SetSpec (Case002)
- SetSpec (Case003)
- SetSpec (Case004)
- SetSpec (Case005)
- SetSpec (Case006)
- SetSpec (Case007)
- SetSpec (Case008)
- SetSpec (Case009)
- SetSpec (Case010)
- SetSpec (Case011)
- SetSpec (Case012)
- SetSpec (Case013)
- SetSpec (Case014)
- SetSpec (Case015)
- SetSpec (Case016)
- SetSpec (Case017)
- SetSpec (Case018)
- SetSpec (Case019)
- SetSpec (Case020)
- SetSpec (Case021)
- SetSpec (Case022)
- SetSpec (Case023)
- SetSpec (Case024)
- SetSpec (Case025)
- SetSpec (Case026)
- SetSpec (Case027)
- SetSpec (Case028)
- SetSpec (Case029)
- SetSpec (Case030)
- SetSpec (Case031)
- SetSpec (Case032)
- SetSpec (Case033)
- SetSpec (Case034)
- SetSpec (Case035)
- SetSpec (Case036)
- SetSpec (Case037)
- SetSpec (Case038)
- SetSpec (Case039)
- SetSpec (Case040)
- SetSpec (Case041)
- SetSpec (Case042)
- SetSpec (Case043)
- SetSpec (Case044)
- SetSpec (Case045)
- SetSpec (Case046)
- SetSpec (Case047)
- SetSpec (Case048)
- SetSpec (Case049)
- SetSpec (Case050)
- SetSpec (Case051)
- SetSpec (Case052)
- SetSpec (Case053)
- SetSpec (Case054)
- SetSpec (Case055)
- SetSpec (Case056)
- SetSpec (Case057)
- SetSpec (Case058)
- SetSpec (Case059)
- SetSpec (Case060)
- SetSpec (Case061)
- SetSpec (Case062)
- SetSpec (Case063)
- SetSpec (Case064)
- SetSpec (Case065)
- SetSpec (Case066)
- SetSpec (Case067)
- SetSpec (Case068)
- SetSpec (Case069)
- SetSpec (Case070)
- SetSpec (Case071)
- SetSpec (Case072)
- SetSpec (Case073)
- SetSpec (Case074)
- SetSpec (Case075)
- SetSpec (Case076)
- SetSpec (Case077)
- SetSpec (Case078)
- SetSpec (Case079)
- SetSpec (Case080)
- SetSpec (Case081)
- SetSpec (Case082)
- SetSpec (Case083)
- SetSpec (Case084)
- SetSpec (Case085)
- SetSpec (Case086)
- SetSpec (Case087)
- SetSpec (Case088)
- SetSpec (Case089)
- SetSpec (Case090)
- SetSpec (Case091)
- SetSpec (Case092)
- SetSpec (Case093)
- SetSpec (Case094)
- SetSpec (Case095)
- SetSpec (Case096)
- SetSpec (Case097)
- SetSpec (Case098)
- SetSpec (Case099)
- SetSpec (Case100)
- SetSpec (Case101)
- SetSpec (Case102)
- SetSpec (Case103)
- SetSpec (Case104)
- SetSpec (Case105)
- SetSpec (Case106)
- SetSpec (Case107)
- SetSpec (Case108)
- SetSpec (Case109)
- SetSpec (Case110)
- SetSpec (Case111)
- SetSpec (Case112)
- SetSpec (Case113)
- SetSpec (Case114)
- SetSpec (Case115)
- SetSpec (Case116)
- SetSpec (Case117)
- SetSpec (Case118)
- SetSpec (Case119)
- SetSpec (Case120)
- SetSpec (Case121)
- SetSpec (Case122)
- SetSpec (Case123)
- SetSpec (Case124)
- SetSpec (Case125)
- SetSpec (Case126)
- SetSpec (Case127)
- SetSpec (Case128)
- SetSpec (Case129)
- SetSpec (Case130)
- SetSpec (Case131)
- SetSpec (Case132)
- SetSpec (Case133)
- SetSpec (Case134)
- SetSpec (Case135)
- SetSpec (Case136)
- SetSpec (Case137)
- SetSpec (Case138)
- SetSpec (Case139)
- SetSpec (Case140)
- SetSpec (Case141)
- SetSpec (Case142)
- SetStyleBoxplotSpecList
- SetStyleBoxplotSpecList (Case1)
- SetStyleBoxplotSpecListItem
- SetStyleBoxplotSpecListItem (Case01)
- SetStyleBoxplotSpecListItem (Case02)
- SetStyleBoxplotSpecListItem (Case03)
- SetStyleBoxplotSpecListItem (Case04)
- SetStyleBoxplotSpecListItem (Case05)
- SetStyleBoxplotSpecListItem (Case06)
- SetStyleBoxplotSpecListItem (Case07)
- SetStyleBoxplotSpecListItem (Case08)
- SetStyleBoxplotSpecListItem (Case09)
- SetStyleBoxplotSpecListItem (Case10)
- SetStyleBoxplotSpecListItem (Case11)
- SetStyleBoxplotSpecListItem (Case12)
- SetStyleBoxplotSpecListItem (Case13)
- SetStyleCircleSpecList
- SetStyleCircleSpecList (Case1)
- SetStyleCircleSpecListItem
- SetStyleCircleSpecListItem (Case1)
- SetStyleCircleSpecListItem (Case2)
- SetStyleCircleSpecListItem (Case3)
- SetStyleCircleSpecListItem (Case4)
- SetStyleCircleSpecListOpt
- SetStyleCircleSpecListOpt (Case1)
- SetStyleEllipseSpecList
- SetStyleEllipseSpecList (Case1)
- SetStyleEllipseSpecListItem
- SetStyleEllipseSpecListItem (Case1)
- SetStyleEllipseSpecListItem (Case2)
- SetStyleEllipseSpecListItem (Case3)
- SetStyleEllipseSpecListItem (Case4)
- SetStyleEllipseSpecListItem (Case5)
- SetStyleEllipseSpecListItem (Case6)
- SetStyleEllipseSpecListOpt
- SetStyleEllipseSpecListOpt (Case1)
- SetStyleFillSpecList
- SetStyleFillSpecList (Case1)
- SetStyleFillSpecListItem
- SetStyleFillSpecListItem (Case01)
- SetStyleFillSpecListItem (Case02)
- SetStyleFillSpecListItem (Case03)
- SetStyleFillSpecListItem (Case04)
- SetStyleFillSpecListItem (Case05)
- SetStyleFillSpecListItem (Case06)
- SetStyleFillSpecListItem (Case07)
- SetStyleFillSpecListItem (Case08)
- SetStyleFillSpecListItem (Case09)
- SetStyleFillSpecListItem (Case10)
- SetStyleFillSpecListItem (Case11)
- SetStyleRectangleSpecList
- SetStyleRectangleSpecList (Case1)
- SetStyleRectangleSpecListItem
- SetStyleRectangleSpecListItem (Case1)
- SetStyleRectangleSpecListItem (Case2)
- SetStyleRectangleSpecListItem (Case3)
- SetStyleRectangleSpecListItem (Case4)
- SetStyleRectangleSpecListItem (Case5)
- SetStyleRectangleSpecListItem (Case6)
- SetStyleRectangleSpecListOpt
- SetStyleRectangleSpecListOpt (Case1)
- SetStyleSpec
- SetStyleSpec (Case01)
- SetStyleSpec (Case02)
- SetStyleSpec (Case03)
- SetStyleSpec (Case04)
- SetStyleSpec (Case05)
- SetStyleSpec (Case06)
- SetStyleSpec (Case07)
- SetStyleSpec (Case08)
- SetStyleSpec (Case09)
- SetStyleSpec (Case10)
- SetStyleSpec (Case11)
- SetStyleSpec (Case12)
- SetStyleSpec (Case13)
- SetStyleSpec (Case14)
- SetStyleSpec (Case15)
- SetStyleTextboxSpecList
- SetStyleTextboxSpecList (Case1)
- SetStyleTextboxSpecListItem
- SetStyleTextboxSpecListItem (Case1)
- SetStyleTextboxSpecListItem (Case2)
- SetStyleTextboxSpecListItem (Case3)
- SetStyleTextboxSpecListItem (Case4)
- SetStyleTextboxSpecListOpt
- SetStyleTextboxSpecListOpt (Case1)
- SetSurfaceSpecOpt
- SetSurfaceSpecOpt (Case1)
- SetSurfaceSpecOpt (Case2)
- SetTableSpecOpt
- SetTableSpecOpt (Case1)
- SetTerminalAifmSpecList
- SetTerminalAifmSpecList (Case1)
- SetTerminalAifmSpecListItem
- SetTerminalAifmSpecListItem (Case1)
- SetTerminalAifmSpecListItem (Case2)
- SetTerminalAifmSpecListOpt
- SetTerminalAifmSpecListOpt (Case1)
- SetTerminalAquaSpecList
- SetTerminalAquaSpecList (Case1)
- SetTerminalAquaSpecListItem
- SetTerminalAquaSpecListItem (Case1)
- SetTerminalAquaSpecListItem (Case2)
- SetTerminalAquaSpecListItem (Case3)
- SetTerminalAquaSpecListItem (Case4)
- SetTerminalAquaSpecListItem (Case5)
- SetTerminalAquaSpecListItem (Case6)
- SetTerminalAquaSpecListItem (Case7)
- SetTerminalAquaSpecListItem (Case8)
- SetTerminalAquaSpecListOpt
- SetTerminalAquaSpecListOpt (Case1)
- SetTerminalBeSpecList
- SetTerminalBeSpecList (Case1)
- SetTerminalBeSpecListItem
- SetTerminalBeSpecListItem (Case1)
- SetTerminalBeSpecListOpt
- SetTerminalBeSpecListOpt (Case1)
- SetTerminalCairolatexSpecList
- SetTerminalCairolatexSpecList (Case1)
- SetTerminalCairolatexSpecListItem
- SetTerminalCairolatexSpecListItem (Case01)
- SetTerminalCairolatexSpecListItem (Case02)
- SetTerminalCairolatexSpecListItem (Case03)
- SetTerminalCairolatexSpecListItem (Case04)
- SetTerminalCairolatexSpecListItem (Case05)
- SetTerminalCairolatexSpecListItem (Case06)
- SetTerminalCairolatexSpecListItem (Case07)
- SetTerminalCairolatexSpecListItem (Case08)
- SetTerminalCairolatexSpecListItem (Case09)
- SetTerminalCairolatexSpecListItem (Case10)
- SetTerminalCairolatexSpecListItem (Case11)
- SetTerminalCairolatexSpecListItem (Case12)
- SetTerminalCairolatexSpecListItem (Case13)
- SetTerminalCairolatexSpecListItem (Case14)
- SetTerminalCairolatexSpecListItem (Case15)
- SetTerminalCairolatexSpecListItem (Case16)
- SetTerminalCairolatexSpecListItem (Case17)
- SetTerminalCairolatexSpecListItem (Case18)
- SetTerminalCairolatexSpecListItem (Case19)
- SetTerminalCairolatexSpecListItem (Case20)
- SetTerminalCairolatexSpecListItem (Case21)
- SetTerminalCairolatexSpecListItem (Case22)
- SetTerminalCairolatexSpecListItem (Case23)
- SetTerminalCairolatexSpecListOpt
- SetTerminalCairolatexSpecListOpt (Case1)
- SetTerminalCanvasSpecList
- SetTerminalCanvasSpecList (Case1)
- SetTerminalCanvasSpecListItem
- SetTerminalCanvasSpecListItem (Case01)
- SetTerminalCanvasSpecListItem (Case02)
- SetTerminalCanvasSpecListItem (Case03)
- SetTerminalCanvasSpecListItem (Case04)
- SetTerminalCanvasSpecListItem (Case05)
- SetTerminalCanvasSpecListItem (Case06)
- SetTerminalCanvasSpecListItem (Case07)
- SetTerminalCanvasSpecListItem (Case08)
- SetTerminalCanvasSpecListItem (Case09)
- SetTerminalCanvasSpecListItem (Case10)
- SetTerminalCanvasSpecListItem (Case11)
- SetTerminalCanvasSpecListItem (Case12)
- SetTerminalCanvasSpecListItem (Case13)
- SetTerminalCanvasSpecListItem (Case14)
- SetTerminalCanvasSpecListItem (Case15)
- SetTerminalCanvasSpecListOpt
- SetTerminalCanvasSpecListOpt (Case1)
- SetTerminalCgmSpecList
- SetTerminalCgmSpecList (Case1)
- SetTerminalCgmSpecListItem
- SetTerminalCgmSpecListItem (Case01)
- SetTerminalCgmSpecListItem (Case02)
- SetTerminalCgmSpecListItem (Case03)
- SetTerminalCgmSpecListItem (Case04)
- SetTerminalCgmSpecListItem (Case05)
- SetTerminalCgmSpecListItem (Case06)
- SetTerminalCgmSpecListItem (Case07)
- SetTerminalCgmSpecListItem (Case08)
- SetTerminalCgmSpecListItem (Case09)
- SetTerminalCgmSpecListItem (Case10)
- SetTerminalCgmSpecListOpt
- SetTerminalCgmSpecListOpt (Case1)
- SetTerminalContextSpecList
- SetTerminalContextSpecList (Case1)
- SetTerminalContextSpecListItem
- SetTerminalContextSpecListItem (Case01)
- SetTerminalContextSpecListItem (Case02)
- SetTerminalContextSpecListItem (Case03)
- SetTerminalContextSpecListItem (Case04)
- SetTerminalContextSpecListItem (Case05)
- SetTerminalContextSpecListItem (Case06)
- SetTerminalContextSpecListItem (Case07)
- SetTerminalContextSpecListItem (Case08)
- SetTerminalContextSpecListItem (Case09)
- SetTerminalContextSpecListItem (Case10)
- SetTerminalContextSpecListItem (Case11)
- SetTerminalContextSpecListItem (Case12)
- SetTerminalContextSpecListItem (Case13)
- SetTerminalContextSpecListItem (Case14)
- SetTerminalContextSpecListItem (Case15)
- SetTerminalContextSpecListItem (Case16)
- SetTerminalContextSpecListItem (Case17)
- SetTerminalContextSpecListItem (Case18)
- SetTerminalContextSpecListItem (Case19)
- SetTerminalContextSpecListItem (Case20)
- SetTerminalContextSpecListItem (Case21)
- SetTerminalContextSpecListItem (Case22)
- SetTerminalContextSpecListItem (Case23)
- SetTerminalContextSpecListItem (Case24)
- SetTerminalContextSpecListItem (Case25)
- SetTerminalContextSpecListItem (Case26)
- SetTerminalContextSpecListItem (Case27)
- SetTerminalContextSpecListItem (Case28)
- SetTerminalContextSpecListItem (Case29)
- SetTerminalContextSpecListItem (Case30)
- SetTerminalContextSpecListOpt
- SetTerminalContextSpecListOpt (Case1)
- SetTerminalCorelSpecList
- SetTerminalCorelSpecList (Case1)
- SetTerminalCorelSpecListItem
- SetTerminalCorelSpecListItem (Case1)
- SetTerminalCorelSpecListItem (Case2)
- SetTerminalCorelSpecListItem (Case3)
- SetTerminalCorelSpecListOpt
- SetTerminalCorelSpecListOpt (Case1)
- SetTerminalDpu414SpecList
- SetTerminalDpu414SpecList (Case1)
- SetTerminalDpu414SpecListItem
- SetTerminalDpu414SpecListItem (Case1)
- SetTerminalDpu414SpecListItem (Case2)
- SetTerminalDpu414SpecListItem (Case3)
- SetTerminalDpu414SpecListItem (Case4)
- SetTerminalDpu414SpecListOpt
- SetTerminalDpu414SpecListOpt (Case1)
- SetTerminalDumbSpecList
- SetTerminalDumbSpecList (Case1)
- SetTerminalDumbSpecListItem
- SetTerminalDumbSpecListItem (Case1)
- SetTerminalDumbSpecListItem (Case2)
- SetTerminalDumbSpecListItem (Case3)
- SetTerminalDumbSpecListItem (Case4)
- SetTerminalDumbSpecListItem (Case5)
- SetTerminalDumbSpecListOpt
- SetTerminalDumbSpecListOpt (Case1)
- SetTerminalEepicSpecList
- SetTerminalEepicSpecList (Case1)
- SetTerminalEepicSpecListItem
- SetTerminalEepicSpecListItem (Case1)
- SetTerminalEepicSpecListItem (Case2)
- SetTerminalEepicSpecListItem (Case3)
- SetTerminalEepicSpecListItem (Case4)
- SetTerminalEepicSpecListItem (Case5)
- SetTerminalEepicSpecListItem (Case6)
- SetTerminalEepicSpecListItem (Case7)
- SetTerminalEepicSpecListOpt
- SetTerminalEepicSpecListOpt (Case1)
- SetTerminalEmfSpecList
- SetTerminalEmfSpecList (Case1)
- SetTerminalEmfSpecListItem
- SetTerminalEmfSpecListItem (Case01)
- SetTerminalEmfSpecListItem (Case02)
- SetTerminalEmfSpecListItem (Case03)
- SetTerminalEmfSpecListItem (Case04)
- SetTerminalEmfSpecListItem (Case05)
- SetTerminalEmfSpecListItem (Case06)
- SetTerminalEmfSpecListItem (Case07)
- SetTerminalEmfSpecListItem (Case08)
- SetTerminalEmfSpecListItem (Case09)
- SetTerminalEmfSpecListItem (Case10)
- SetTerminalEmfSpecListItem (Case11)
- SetTerminalEmfSpecListOpt
- SetTerminalEmfSpecListOpt (Case1)
- SetTerminalEpslatexSpecList
- SetTerminalEpslatexSpecList (Case1)
- SetTerminalEpslatexSpecListItem
- SetTerminalEpslatexSpecListItem (Case01)
- SetTerminalEpslatexSpecListItem (Case02)
- SetTerminalEpslatexSpecListItem (Case03)
- SetTerminalEpslatexSpecListItem (Case04)
- SetTerminalEpslatexSpecListItem (Case05)
- SetTerminalEpslatexSpecListItem (Case06)
- SetTerminalEpslatexSpecListItem (Case07)
- SetTerminalEpslatexSpecListItem (Case08)
- SetTerminalEpslatexSpecListItem (Case09)
- SetTerminalEpslatexSpecListItem (Case10)
- SetTerminalEpslatexSpecListItem (Case11)
- SetTerminalEpslatexSpecListItem (Case12)
- SetTerminalEpslatexSpecListItem (Case13)
- SetTerminalEpslatexSpecListItem (Case14)
- SetTerminalEpslatexSpecListItem (Case15)
- SetTerminalEpslatexSpecListItem (Case16)
- SetTerminalEpslatexSpecListItem (Case17)
- SetTerminalEpslatexSpecListItem (Case18)
- SetTerminalEpslatexSpecListItem (Case19)
- SetTerminalEpslatexSpecListItem (Case20)
- SetTerminalEpslatexSpecListItem (Case21)
- SetTerminalEpslatexSpecListItem (Case22)
- SetTerminalEpslatexSpecListItem (Case23)
- SetTerminalEpslatexSpecListItem (Case24)
- SetTerminalEpslatexSpecListItem (Case25)
- SetTerminalEpslatexSpecListItem (Case26)
- SetTerminalEpslatexSpecListItem (Case27)
- SetTerminalEpslatexSpecListItem (Case28)
- SetTerminalEpslatexSpecListItem (Case29)
- SetTerminalEpslatexSpecListItem (Case30)
- SetTerminalEpslatexSpecListItem (Case31)
- SetTerminalEpslatexSpecListOpt
- SetTerminalEpslatexSpecListOpt (Case1)
- SetTerminalFigSpecList
- SetTerminalFigSpecList (Case1)
- SetTerminalFigSpecListItem
- SetTerminalFigSpecListItem (Case01)
- SetTerminalFigSpecListItem (Case02)
- SetTerminalFigSpecListItem (Case03)
- SetTerminalFigSpecListItem (Case04)
- SetTerminalFigSpecListItem (Case05)
- SetTerminalFigSpecListItem (Case06)
- SetTerminalFigSpecListItem (Case07)
- SetTerminalFigSpecListItem (Case08)
- SetTerminalFigSpecListItem (Case09)
- SetTerminalFigSpecListItem (Case10)
- SetTerminalFigSpecListItem (Case11)
- SetTerminalFigSpecListItem (Case12)
- SetTerminalFigSpecListItem (Case13)
- SetTerminalFigSpecListItem (Case14)
- SetTerminalFigSpecListItem (Case15)
- SetTerminalFigSpecListItem (Case16)
- SetTerminalFigSpecListItem (Case17)
- SetTerminalFigSpecListItem (Case18)
- SetTerminalFigSpecListOpt
- SetTerminalFigSpecListOpt (Case1)
- SetTerminalGgiSpecList
- SetTerminalGgiSpecList (Case1)
- SetTerminalGgiSpecListItem
- SetTerminalGgiSpecListItem (Case1)
- SetTerminalGgiSpecListOpt
- SetTerminalGgiSpecListOpt (Case1)
- SetTerminalGifSpecList
- SetTerminalGifSpecList (Case1)
- SetTerminalGifSpecListItem
- SetTerminalGifSpecListItem (Case01)
- SetTerminalGifSpecListItem (Case02)
- SetTerminalGifSpecListItem (Case03)
- SetTerminalGifSpecListItem (Case04)
- SetTerminalGifSpecListItem (Case05)
- SetTerminalGifSpecListItem (Case06)
- SetTerminalGifSpecListItem (Case07)
- SetTerminalGifSpecListItem (Case08)
- SetTerminalGifSpecListItem (Case09)
- SetTerminalGifSpecListItem (Case10)
- SetTerminalGifSpecListItem (Case11)
- SetTerminalGifSpecListItem (Case12)
- SetTerminalGifSpecListItem (Case13)
- SetTerminalGifSpecListItem (Case14)
- SetTerminalGifSpecListItem (Case15)
- SetTerminalGifSpecListItem (Case16)
- SetTerminalGifSpecListItem (Case17)
- SetTerminalGifSpecListItem (Case18)
- SetTerminalGifSpecListItem (Case19)
- SetTerminalGifSpecListItem (Case20)
- SetTerminalGifSpecListItem (Case21)
- SetTerminalGifSpecListItem (Case22)
- SetTerminalGifSpecListOpt
- SetTerminalGifSpecListOpt (Case1)
- SetTerminalHpglSpecList
- SetTerminalHpglSpecList (Case1)
- SetTerminalHpglSpecListItem
- SetTerminalHpglSpecListItem (Case1)
- SetTerminalHpglSpecListOpt
- SetTerminalHpglSpecListOpt (Case1)
- SetTerminalHppjSpecOpt
- SetTerminalHppjSpecOpt (Case1)
- SetTerminalHppjSpecOpt (Case2)
- SetTerminalImagenSpecList
- SetTerminalImagenSpecList (Case1)
- SetTerminalImagenSpecListItem
- SetTerminalImagenSpecListItem (Case1)
- SetTerminalImagenSpecListItem (Case2)
- SetTerminalImagenSpecListItem (Case3)
- SetTerminalImagenSpecListOpt
- SetTerminalImagenSpecListOpt (Case1)
- SetTerminalInner
- SetTerminalInner (Case01)
- SetTerminalInner (Case02)
- SetTerminalInner (Case03)
- SetTerminalInner (Case04)
- SetTerminalInner (Case05)
- SetTerminalInner (Case06)
- SetTerminalInner (Case07)
- SetTerminalInner (Case08)
- SetTerminalInner (Case09)
- SetTerminalInner (Case10)
- SetTerminalInner (Case11)
- SetTerminalInner (Case12)
- SetTerminalInner (Case13)
- SetTerminalInner (Case14)
- SetTerminalInner (Case15)
- SetTerminalInner (Case16)
- SetTerminalInner (Case17)
- SetTerminalInner (Case18)
- SetTerminalInner (Case19)
- SetTerminalInner (Case20)
- SetTerminalInner (Case21)
- SetTerminalInner (Case22)
- SetTerminalInner (Case23)
- SetTerminalInner (Case24)
- SetTerminalInner (Case25)
- SetTerminalInner (Case26)
- SetTerminalInner (Case27)
- SetTerminalInner (Case28)
- SetTerminalInner (Case29)
- SetTerminalInner (Case30)
- SetTerminalInner (Case31)
- SetTerminalInner (Case32)
- SetTerminalInner (Case33)
- SetTerminalInner (Case34)
- SetTerminalInner (Case35)
- SetTerminalInner (Case36)
- SetTerminalInner (Case37)
- SetTerminalInner (Case38)
- SetTerminalInner (Case39)
- SetTerminalInner (Case40)
- SetTerminalInner (Case41)
- SetTerminalInner (Case42)
- SetTerminalInner (Case43)
- SetTerminalInner (Case44)
- SetTerminalInner (Case45)
- SetTerminalInner (Case46)
- SetTerminalInner (Case47)
- SetTerminalInner (Case48)
- SetTerminalInner (Case49)
- SetTerminalInner (Case50)
- SetTerminalInner (Case51)
- SetTerminalInner (Case52)
- SetTerminalInner (Case53)
- SetTerminalInner (Case54)
- SetTerminalInner (Case55)
- SetTerminalInner (Case56)
- SetTerminalInner (Case57)
- SetTerminalInner (Case58)
- SetTerminalInner (Case59)
- SetTerminalInner (Case60)
- SetTerminalInner (Case61)
- SetTerminalInner (Case62)
- SetTerminalInner (Case63)
- SetTerminalInner (Case64)
- SetTerminalInner (Case65)
- SetTerminalInner (Case66)
- SetTerminalInner (Case67)
- SetTerminalInner (Case68)
- SetTerminalInner (Case69)
- SetTerminalInner (Case70)
- SetTerminalInner (Case71)
- SetTerminalInner (Case72)
- SetTerminalInner (Case73)
- SetTerminalInner (Case74)
- SetTerminalInner (Case75)
- SetTerminalInner (Case76)
- SetTerminalInner (Case77)
- SetTerminalInner (Case78)
- SetTerminalJpegSpecList
- SetTerminalJpegSpecList (Case1)
- SetTerminalJpegSpecListItem
- SetTerminalJpegSpecListItem (Case01)
- SetTerminalJpegSpecListItem (Case02)
- SetTerminalJpegSpecListItem (Case03)
- SetTerminalJpegSpecListItem (Case04)
- SetTerminalJpegSpecListItem (Case05)
- SetTerminalJpegSpecListItem (Case06)
- SetTerminalJpegSpecListItem (Case07)
- SetTerminalJpegSpecListItem (Case08)
- SetTerminalJpegSpecListItem (Case09)
- SetTerminalJpegSpecListItem (Case10)
- SetTerminalJpegSpecListItem (Case11)
- SetTerminalJpegSpecListItem (Case12)
- SetTerminalJpegSpecListItem (Case13)
- SetTerminalJpegSpecListItem (Case14)
- SetTerminalJpegSpecListItem (Case15)
- SetTerminalJpegSpecListItem (Case16)
- SetTerminalJpegSpecListOpt
- SetTerminalJpegSpecListOpt (Case1)
- SetTerminalLatexSpecList
- SetTerminalLatexSpecList (Case1)
- SetTerminalLatexSpecListItem
- SetTerminalLatexSpecListItem (Case1)
- SetTerminalLatexSpecListItem (Case2)
- SetTerminalLatexSpecListItem (Case3)
- SetTerminalLatexSpecListItem (Case4)
- SetTerminalLatexSpecListItem (Case5)
- SetTerminalLatexSpecListOpt
- SetTerminalLatexSpecListOpt (Case1)
- SetTerminalLuatikzSpecList
- SetTerminalLuatikzSpecList (Case1)
- SetTerminalLuatikzSpecListItem
- SetTerminalLuatikzSpecListItem (Case01)
- SetTerminalLuatikzSpecListItem (Case02)
- SetTerminalLuatikzSpecListItem (Case03)
- SetTerminalLuatikzSpecListItem (Case04)
- SetTerminalLuatikzSpecListItem (Case05)
- SetTerminalLuatikzSpecListItem (Case06)
- SetTerminalLuatikzSpecListItem (Case07)
- SetTerminalLuatikzSpecListItem (Case08)
- SetTerminalLuatikzSpecListItem (Case09)
- SetTerminalLuatikzSpecListItem (Case10)
- SetTerminalLuatikzSpecListItem (Case11)
- SetTerminalLuatikzSpecListItem (Case12)
- SetTerminalLuatikzSpecListItem (Case13)
- SetTerminalLuatikzSpecListItem (Case14)
- SetTerminalLuatikzSpecListItem (Case15)
- SetTerminalLuatikzSpecListItem (Case16)
- SetTerminalLuatikzSpecListItem (Case17)
- SetTerminalLuatikzSpecListItem (Case18)
- SetTerminalLuatikzSpecListItem (Case19)
- SetTerminalLuatikzSpecListItem (Case20)
- SetTerminalLuatikzSpecListItem (Case21)
- SetTerminalLuatikzSpecListItem (Case22)
- SetTerminalLuatikzSpecListItem (Case23)
- SetTerminalLuatikzSpecListItem (Case24)
- SetTerminalLuatikzSpecListItem (Case25)
- SetTerminalLuatikzSpecListItem (Case26)
- SetTerminalLuatikzSpecListItem (Case27)
- SetTerminalLuatikzSpecListItem (Case28)
- SetTerminalLuatikzSpecListItem (Case29)
- SetTerminalLuatikzSpecListItem (Case30)
- SetTerminalLuatikzSpecListItem (Case31)
- SetTerminalLuatikzSpecListItem (Case32)
- SetTerminalLuatikzSpecListItem (Case33)
- SetTerminalLuatikzSpecListItem (Case34)
- SetTerminalLuatikzSpecListItem (Case35)
- SetTerminalLuatikzSpecListItem (Case36)
- SetTerminalLuatikzSpecListItem (Case37)
- SetTerminalLuatikzSpecListItem (Case38)
- SetTerminalLuatikzSpecListItem (Case39)
- SetTerminalLuatikzSpecListItem (Case40)
- SetTerminalLuatikzSpecListItem (Case41)
- SetTerminalLuatikzSpecListItem (Case42)
- SetTerminalLuatikzSpecListItem (Case43)
- SetTerminalLuatikzSpecListItem (Case44)
- SetTerminalLuatikzSpecListItem (Case45)
- SetTerminalLuatikzSpecListItem (Case46)
- SetTerminalLuatikzSpecListOpt
- SetTerminalLuatikzSpecListOpt (Case1)
- SetTerminalMifSpecList
- SetTerminalMifSpecList (Case1)
- SetTerminalMifSpecListItem
- SetTerminalMifSpecListItem (Case1)
- SetTerminalMifSpecListItem (Case2)
- SetTerminalMifSpecListItem (Case3)
- SetTerminalMifSpecListItem (Case4)
- SetTerminalMifSpecListItem (Case5)
- SetTerminalMifSpecListItem (Case6)
- SetTerminalMifSpecListOpt
- SetTerminalMifSpecListOpt (Case1)
- SetTerminalMpSpecList
- SetTerminalMpSpecList (Case1)
- SetTerminalMpSpecListItem
- SetTerminalMpSpecListItem (Case01)
- SetTerminalMpSpecListItem (Case02)
- SetTerminalMpSpecListItem (Case03)
- SetTerminalMpSpecListItem (Case04)
- SetTerminalMpSpecListItem (Case05)
- SetTerminalMpSpecListItem (Case06)
- SetTerminalMpSpecListItem (Case07)
- SetTerminalMpSpecListItem (Case08)
- SetTerminalMpSpecListItem (Case09)
- SetTerminalMpSpecListItem (Case10)
- SetTerminalMpSpecListItem (Case11)
- SetTerminalMpSpecListItem (Case12)
- SetTerminalMpSpecListItem (Case13)
- SetTerminalMpSpecListItem (Case14)
- SetTerminalMpSpecListItem (Case15)
- SetTerminalMpSpecListOpt
- SetTerminalMpSpecListOpt (Case1)
- SetTerminalNeccp6SpecList
- SetTerminalNeccp6SpecList (Case1)
- SetTerminalNeccp6SpecListItem
- SetTerminalNeccp6SpecListItem (Case1)
- SetTerminalNeccp6SpecListItem (Case2)
- SetTerminalNeccp6SpecListOpt
- SetTerminalNeccp6SpecListOpt (Case1)
- SetTerminalNextSpecList
- SetTerminalNextSpecList (Case1)
- SetTerminalNextSpecListItem
- SetTerminalNextSpecListItem (Case1)
- SetTerminalNextSpecListItem (Case2)
- SetTerminalNextSpecListItem (Case3)
- SetTerminalNextSpecListItem (Case4)
- SetTerminalNextSpecListItem (Case5)
- SetTerminalNextSpecListItem (Case6)
- SetTerminalNextSpecListItem (Case7)
- SetTerminalNextSpecListItem (Case8)
- SetTerminalNextSpecListOpt
- SetTerminalNextSpecListOpt (Case1)
- SetTerminalPbmSpecList
- SetTerminalPbmSpecList (Case1)
- SetTerminalPbmSpecListItem
- SetTerminalPbmSpecListItem (Case1)
- SetTerminalPbmSpecListOpt
- SetTerminalPbmSpecListOpt (Case1)
- SetTerminalPdfSpecList
- SetTerminalPdfSpecList (Case1)
- SetTerminalPdfSpecListItem
- SetTerminalPdfSpecListItem (Case01)
- SetTerminalPdfSpecListItem (Case02)
- SetTerminalPdfSpecListItem (Case03)
- SetTerminalPdfSpecListItem (Case04)
- SetTerminalPdfSpecListItem (Case05)
- SetTerminalPdfSpecListItem (Case06)
- SetTerminalPdfSpecListItem (Case07)
- SetTerminalPdfSpecListItem (Case08)
- SetTerminalPdfSpecListItem (Case09)
- SetTerminalPdfSpecListItem (Case10)
- SetTerminalPdfSpecListItem (Case11)
- SetTerminalPdfSpecListItem (Case12)
- SetTerminalPdfSpecListItem (Case13)
- SetTerminalPdfSpecListItem (Case14)
- SetTerminalPdfSpecListOpt
- SetTerminalPdfSpecListOpt (Case1)
- SetTerminalPdfcairoSpecList
- SetTerminalPdfcairoSpecList (Case1)
- SetTerminalPdfcairoSpecListItem
- SetTerminalPdfcairoSpecListItem (Case01)
- SetTerminalPdfcairoSpecListItem (Case02)
- SetTerminalPdfcairoSpecListItem (Case03)
- SetTerminalPdfcairoSpecListItem (Case04)
- SetTerminalPdfcairoSpecListItem (Case05)
- SetTerminalPdfcairoSpecListItem (Case06)
- SetTerminalPdfcairoSpecListItem (Case07)
- SetTerminalPdfcairoSpecListItem (Case08)
- SetTerminalPdfcairoSpecListItem (Case09)
- SetTerminalPdfcairoSpecListItem (Case10)
- SetTerminalPdfcairoSpecListItem (Case11)
- SetTerminalPdfcairoSpecListItem (Case12)
- SetTerminalPdfcairoSpecListOpt
- SetTerminalPdfcairoSpecListOpt (Case1)
- SetTerminalPmSpecList
- SetTerminalPmSpecList (Case1)
- SetTerminalPmSpecListItem
- SetTerminalPmSpecListItem (Case1)
- SetTerminalPmSpecListItem (Case2)
- SetTerminalPmSpecListItem (Case3)
- SetTerminalPmSpecListItem (Case4)
- SetTerminalPmSpecListOpt
- SetTerminalPmSpecListOpt (Case1)
- SetTerminalPngSpecList
- SetTerminalPngSpecList (Case1)
- SetTerminalPngSpecListItem
- SetTerminalPngSpecListItem (Case01)
- SetTerminalPngSpecListItem (Case02)
- SetTerminalPngSpecListItem (Case03)
- SetTerminalPngSpecListItem (Case04)
- SetTerminalPngSpecListItem (Case05)
- SetTerminalPngSpecListItem (Case06)
- SetTerminalPngSpecListItem (Case07)
- SetTerminalPngSpecListItem (Case08)
- SetTerminalPngSpecListItem (Case09)
- SetTerminalPngSpecListItem (Case10)
- SetTerminalPngSpecListItem (Case11)
- SetTerminalPngSpecListItem (Case12)
- SetTerminalPngSpecListItem (Case13)
- SetTerminalPngSpecListItem (Case14)
- SetTerminalPngSpecListItem (Case15)
- SetTerminalPngSpecListItem (Case16)
- SetTerminalPngSpecListItem (Case17)
- SetTerminalPngSpecListItem (Case18)
- SetTerminalPngSpecListItem (Case19)
- SetTerminalPngSpecListItem (Case20)
- SetTerminalPngSpecListItem (Case21)
- SetTerminalPngSpecListItem (Case22)
- SetTerminalPngSpecListOpt
- SetTerminalPngSpecListOpt (Case1)
- SetTerminalPngcairoSpecList
- SetTerminalPngcairoSpecList (Case1)
- SetTerminalPngcairoSpecListItem
- SetTerminalPngcairoSpecListItem (Case01)
- SetTerminalPngcairoSpecListItem (Case02)
- SetTerminalPngcairoSpecListItem (Case03)
- SetTerminalPngcairoSpecListItem (Case04)
- SetTerminalPngcairoSpecListItem (Case05)
- SetTerminalPngcairoSpecListItem (Case06)
- SetTerminalPngcairoSpecListItem (Case07)
- SetTerminalPngcairoSpecListItem (Case08)
- SetTerminalPngcairoSpecListItem (Case09)
- SetTerminalPngcairoSpecListItem (Case10)
- SetTerminalPngcairoSpecListItem (Case11)
- SetTerminalPngcairoSpecListItem (Case12)
- SetTerminalPngcairoSpecListItem (Case13)
- SetTerminalPngcairoSpecListItem (Case14)
- SetTerminalPngcairoSpecListItem (Case15)
- SetTerminalPngcairoSpecListItem (Case16)
- SetTerminalPngcairoSpecListOpt
- SetTerminalPngcairoSpecListOpt (Case1)
- SetTerminalPostscriptSpecList
- SetTerminalPostscriptSpecList (Case1)
- SetTerminalPostscriptSpecListItem
- SetTerminalPostscriptSpecListItem (Case01)
- SetTerminalPostscriptSpecListItem (Case02)
- SetTerminalPostscriptSpecListItem (Case03)
- SetTerminalPostscriptSpecListItem (Case04)
- SetTerminalPostscriptSpecListItem (Case05)
- SetTerminalPostscriptSpecListItem (Case06)
- SetTerminalPostscriptSpecListItem (Case07)
- SetTerminalPostscriptSpecListItem (Case08)
- SetTerminalPostscriptSpecListItem (Case09)
- SetTerminalPostscriptSpecListItem (Case10)
- SetTerminalPostscriptSpecListItem (Case11)
- SetTerminalPostscriptSpecListItem (Case12)
- SetTerminalPostscriptSpecListItem (Case13)
- SetTerminalPostscriptSpecListItem (Case14)
- SetTerminalPostscriptSpecListItem (Case15)
- SetTerminalPostscriptSpecListItem (Case16)
- SetTerminalPostscriptSpecListItem (Case17)
- SetTerminalPostscriptSpecListItem (Case18)
- SetTerminalPostscriptSpecListItem (Case19)
- SetTerminalPostscriptSpecListItem (Case20)
- SetTerminalPostscriptSpecListItem (Case21)
- SetTerminalPostscriptSpecListItem (Case22)
- SetTerminalPostscriptSpecListItem (Case23)
- SetTerminalPostscriptSpecListItem (Case24)
- SetTerminalPostscriptSpecListItem (Case25)
- SetTerminalPostscriptSpecListItem (Case26)
- SetTerminalPostscriptSpecListItem (Case27)
- SetTerminalPostscriptSpecListItem (Case28)
- SetTerminalPostscriptSpecListItem (Case29)
- SetTerminalPostscriptSpecListItem (Case30)
- SetTerminalPostscriptSpecListItem (Case31)
- SetTerminalPostscriptSpecListItem (Case32)
- SetTerminalPostscriptSpecListItem (Case33)
- SetTerminalPostscriptSpecListItem (Case34)
- SetTerminalPostscriptSpecListItem (Case35)
- SetTerminalPostscriptSpecListItem (Case36)
- SetTerminalPostscriptSpecListItem (Case37)
- SetTerminalPostscriptSpecListItem (Case38)
- SetTerminalPostscriptSpecListItem (Case39)
- SetTerminalPostscriptSpecListItem (Case40)
- SetTerminalPostscriptSpecListOpt
- SetTerminalPostscriptSpecListOpt (Case1)
- SetTerminalPstexSpecList
- SetTerminalPstexSpecList (Case1)
- SetTerminalPstexSpecListItem
- SetTerminalPstexSpecListItem (Case01)
- SetTerminalPstexSpecListItem (Case02)
- SetTerminalPstexSpecListItem (Case03)
- SetTerminalPstexSpecListItem (Case04)
- SetTerminalPstexSpecListItem (Case05)
- SetTerminalPstexSpecListItem (Case06)
- SetTerminalPstexSpecListItem (Case07)
- SetTerminalPstexSpecListItem (Case08)
- SetTerminalPstexSpecListItem (Case09)
- SetTerminalPstexSpecListItem (Case10)
- SetTerminalPstexSpecListItem (Case11)
- SetTerminalPstexSpecListItem (Case12)
- SetTerminalPstexSpecListItem (Case13)
- SetTerminalPstexSpecListItem (Case14)
- SetTerminalPstexSpecListItem (Case15)
- SetTerminalPstexSpecListItem (Case16)
- SetTerminalPstexSpecListItem (Case17)
- SetTerminalPstexSpecListItem (Case18)
- SetTerminalPstexSpecListItem (Case19)
- SetTerminalPstexSpecListItem (Case20)
- SetTerminalPstexSpecListItem (Case21)
- SetTerminalPstexSpecListItem (Case22)
- SetTerminalPstexSpecListItem (Case23)
- SetTerminalPstexSpecListItem (Case24)
- SetTerminalPstexSpecListItem (Case25)
- SetTerminalPstexSpecListOpt
- SetTerminalPstexSpecListOpt (Case1)
- SetTerminalPstricksSpecList
- SetTerminalPstricksSpecList (Case1)
- SetTerminalPstricksSpecListItem
- SetTerminalPstricksSpecListItem (Case1)
- SetTerminalPstricksSpecListItem (Case2)
- SetTerminalPstricksSpecListItem (Case3)
- SetTerminalPstricksSpecListOpt
- SetTerminalPstricksSpecListOpt (Case1)
- SetTerminalQtSpecList
- SetTerminalQtSpecList (Case1)
- SetTerminalQtSpecListItem
- SetTerminalQtSpecListItem (Case01)
- SetTerminalQtSpecListItem (Case02)
- SetTerminalQtSpecListItem (Case03)
- SetTerminalQtSpecListItem (Case04)
- SetTerminalQtSpecListItem (Case05)
- SetTerminalQtSpecListItem (Case06)
- SetTerminalQtSpecListItem (Case07)
- SetTerminalQtSpecListItem (Case08)
- SetTerminalQtSpecListItem (Case09)
- SetTerminalQtSpecListItem (Case10)
- SetTerminalQtSpecListItem (Case11)
- SetTerminalQtSpecListItem (Case12)
- SetTerminalQtSpecListItem (Case13)
- SetTerminalQtSpecListItem (Case14)
- SetTerminalQtSpecListItem (Case15)
- SetTerminalQtSpecListOpt
- SetTerminalQtSpecListOpt (Case1)
- SetTerminalSpec
- SetTerminalSpec (Case1)
- SetTerminalSpec (Case2)
- SetTerminalSvgSpecList
- SetTerminalSvgSpecList (Case1)
- SetTerminalSvgSpecListItem
- SetTerminalSvgSpecListItem (Case01)
- SetTerminalSvgSpecListItem (Case02)
- SetTerminalSvgSpecListItem (Case03)
- SetTerminalSvgSpecListItem (Case04)
- SetTerminalSvgSpecListItem (Case05)
- SetTerminalSvgSpecListItem (Case06)
- SetTerminalSvgSpecListItem (Case07)
- SetTerminalSvgSpecListItem (Case08)
- SetTerminalSvgSpecListItem (Case09)
- SetTerminalSvgSpecListItem (Case10)
- SetTerminalSvgSpecListItem (Case11)
- SetTerminalSvgSpecListItem (Case12)
- SetTerminalSvgSpecListItem (Case13)
- SetTerminalSvgSpecListItem (Case14)
- SetTerminalSvgSpecListItem (Case15)
- SetTerminalSvgSpecListItem (Case16)
- SetTerminalSvgSpecListItem (Case17)
- SetTerminalSvgSpecListItem (Case18)
- SetTerminalSvgSpecListItem (Case19)
- SetTerminalSvgSpecListItem (Case20)
- SetTerminalSvgSpecListOpt
- SetTerminalSvgSpecListOpt (Case1)
- SetTerminalTgifSpecList
- SetTerminalTgifSpecList (Case1)
- SetTerminalTgifSpecListItem
- SetTerminalTgifSpecListItem (Case01)
- SetTerminalTgifSpecListItem (Case02)
- SetTerminalTgifSpecListItem (Case03)
- SetTerminalTgifSpecListItem (Case04)
- SetTerminalTgifSpecListItem (Case05)
- SetTerminalTgifSpecListItem (Case06)
- SetTerminalTgifSpecListItem (Case07)
- SetTerminalTgifSpecListItem (Case08)
- SetTerminalTgifSpecListItem (Case09)
- SetTerminalTgifSpecListItem (Case10)
- SetTerminalTgifSpecListItem (Case11)
- SetTerminalTgifSpecListOpt
- SetTerminalTgifSpecListOpt (Case1)
- SetTerminalTkcanvasSpecList
- SetTerminalTkcanvasSpecList (Case1)
- SetTerminalTkcanvasSpecListItem
- SetTerminalTkcanvasSpecListItem (Case1)
- SetTerminalTkcanvasSpecListOpt
- SetTerminalTkcanvasSpecListOpt (Case1)
- SetTerminalVgaglSpecList
- SetTerminalVgaglSpecList (Case1)
- SetTerminalVgaglSpecListItem
- SetTerminalVgaglSpecListItem (Case1)
- SetTerminalVgaglSpecListItem (Case2)
- SetTerminalVgaglSpecListItem (Case3)
- SetTerminalVgaglSpecListOpt
- SetTerminalVgaglSpecListOpt (Case1)
- SetTerminalWindowsSpecList
- SetTerminalWindowsSpecList (Case1)
- SetTerminalWindowsSpecListItem
- SetTerminalWindowsSpecListItem (Case01)
- SetTerminalWindowsSpecListItem (Case02)
- SetTerminalWindowsSpecListItem (Case03)
- SetTerminalWindowsSpecListItem (Case04)
- SetTerminalWindowsSpecListItem (Case05)
- SetTerminalWindowsSpecListItem (Case06)
- SetTerminalWindowsSpecListItem (Case07)
- SetTerminalWindowsSpecListItem (Case08)
- SetTerminalWindowsSpecListItem (Case09)
- SetTerminalWindowsSpecListItem (Case10)
- SetTerminalWindowsSpecListItem (Case11)
- SetTerminalWindowsSpecListItem (Case12)
- SetTerminalWindowsSpecListItem (Case13)
- SetTerminalWindowsSpecListItem (Case14)
- SetTerminalWindowsSpecListItem (Case15)
- SetTerminalWindowsSpecListItem (Case16)
- SetTerminalWindowsSpecListItem (Case17)
- SetTerminalWindowsSpecListOpt
- SetTerminalWindowsSpecListOpt (Case1)
- SetTerminalWxtSpecList
- SetTerminalWxtSpecList (Case1)
- SetTerminalWxtSpecListItem
- SetTerminalWxtSpecListItem (Case01)
- SetTerminalWxtSpecListItem (Case02)
- SetTerminalWxtSpecListItem (Case03)
- SetTerminalWxtSpecListItem (Case04)
- SetTerminalWxtSpecListItem (Case05)
- SetTerminalWxtSpecListItem (Case06)
- SetTerminalWxtSpecListItem (Case07)
- SetTerminalWxtSpecListItem (Case08)
- SetTerminalWxtSpecListItem (Case09)
- SetTerminalWxtSpecListItem (Case10)
- SetTerminalWxtSpecListItem (Case11)
- SetTerminalWxtSpecListItem (Case12)
- SetTerminalWxtSpecListItem (Case13)
- SetTerminalWxtSpecListItem (Case14)
- SetTerminalWxtSpecListItem (Case15)
- SetTerminalWxtSpecListItem (Case16)
- SetTerminalWxtSpecListItem (Case17)
- SetTerminalWxtSpecListOpt
- SetTerminalWxtSpecListOpt (Case1)
- SetTerminalX11SpecList
- SetTerminalX11SpecList (Case1)
- SetTerminalX11SpecListItem
- SetTerminalX11SpecListItem (Case01)
- SetTerminalX11SpecListItem (Case02)
- SetTerminalX11SpecListItem (Case03)
- SetTerminalX11SpecListItem (Case04)
- SetTerminalX11SpecListItem (Case05)
- SetTerminalX11SpecListItem (Case06)
- SetTerminalX11SpecListItem (Case07)
- SetTerminalX11SpecListItem (Case08)
- SetTerminalX11SpecListItem (Case09)
- SetTerminalX11SpecListItem (Case10)
- SetTerminalX11SpecListItem (Case11)
- SetTerminalX11SpecListItem (Case12)
- SetTerminalX11SpecListItem (Case13)
- SetTerminalX11SpecListItem (Case14)
- SetTerminalX11SpecListItem (Case15)
- SetTerminalX11SpecListItem (Case16)
- SetTerminalX11SpecListItem (Case17)
- SetTerminalX11SpecListOpt
- SetTerminalX11SpecListOpt (Case1)
- SetTermoptionSpec
- SetTermoptionSpec (Case1)
- SetTermoptionSpec (Case2)
- SetTermoptionSpec (Case3)
- SetTermoptionSpec (Case4)
- SetTermoptionSpec (Case5)
- SetTermoptionSpec (Case6)
- SetTermoptionSpec (Case7)
- SetTermoptionSpec (Case8)
- SetTimestampSpecList
- SetTimestampSpecList (Case1)
- SetTimestampSpecListItem
- SetTimestampSpecListItem (Case1)
- SetTimestampSpecListItem (Case2)
- SetTimestampSpecListItem (Case3)
- SetTimestampSpecListItem (Case4)
- SetTimestampSpecListItem (Case5)
- SetTimestampSpecListItem (Case6)
- SetTimestampSpecListItem (Case7)
- SetTimestampSpecListOpt
- SetTimestampSpecListOpt (Case1)
- SetTitleSpecList
- SetTitleSpecList (Case1)
- SetTitleSpecListItem
- SetTitleSpecListItem (Case01)
- SetTitleSpecListItem (Case02)
- SetTitleSpecListItem (Case03)
- SetTitleSpecListItem (Case04)
- SetTitleSpecListItem (Case05)
- SetTitleSpecListItem (Case06)
- SetTitleSpecListItem (Case07)
- SetTitleSpecListItem (Case08)
- SetTitleSpecListItem (Case09)
- SetTitleSpecOpt
- SetTitleSpecOpt (Case1)
- SetTitleSpecOpt (Case2)
- SetTitleSpecOpt (Case3)
- SetViewSpec
- SetViewSpec (Case1)
- SetViewSpec (Case2)
- SetViewSpec (Case3)
- SetViewSpec (Case4)
- SetViewSpec (Case5)
- SetViewSpec (Case6)
- SetViewSpec (Case7)
- SetViewSpec (Case8)
- SetXLabelSpecList
- SetXLabelSpecList (Case1)
- SetXLabelSpecListItem
- SetXLabelSpecListItem (Case01)
- SetXLabelSpecListItem (Case02)
- SetXLabelSpecListItem (Case03)
- SetXLabelSpecListItem (Case04)
- SetXLabelSpecListItem (Case05)
- SetXLabelSpecListItem (Case06)
- SetXLabelSpecListItem (Case07)
- SetXLabelSpecListItem (Case08)
- SetXLabelSpecListItem (Case09)
- SetXLabelSpecListItem (Case10)
- SetXLabelSpecListItem (Case11)
- SetXLabelSpecListItem (Case12)
- SetXLabelSpecListItem (Case13)
- SetXLabelSpecOpt
- SetXLabelSpecOpt (Case1)
- SetXLabelSpecOpt (Case2)
- SetXLabelSpecOpt (Case3)
- SetXTicsSpecList
- SetXTicsSpecList (Case1)
- SetXTicsSpecListItem
- SetXTicsSpecListItem (Case01)
- SetXTicsSpecListItem (Case02)
- SetXTicsSpecListItem (Case03)
- SetXTicsSpecListItem (Case04)
- SetXTicsSpecListItem (Case05)
- SetXTicsSpecListItem (Case06)
- SetXTicsSpecListItem (Case07)
- SetXTicsSpecListItem (Case08)
- SetXTicsSpecListItem (Case09)
- SetXTicsSpecListItem (Case10)
- SetXTicsSpecListItem (Case11)
- SetXTicsSpecListItem (Case12)
- SetXTicsSpecListItem (Case13)
- SetXTicsSpecListItem (Case14)
- SetXTicsSpecListItem (Case15)
- SetXTicsSpecListItem (Case16)
- SetXTicsSpecListItem (Case17)
- SetXTicsSpecListItem (Case18)
- SetXTicsSpecListItem (Case19)
- SetXTicsSpecListItem (Case20)
- SetXTicsSpecListItem (Case21)
- SetXTicsSpecListItem (Case22)
- SetXTicsSpecListItem (Case23)
- SetXTicsSpecListItem (Case24)
- SetXTicsSpecListItem (Case25)
- SetXTicsSpecListItem (Case26)
- SetXTicsSpecListItem (Case27)
- SetXTicsSpecListItem (Case28)
- SetXTicsSpecListItem (Case29)
- SetXTicsSpecListItem (Case30)
- SetXTicsSpecListItem (Case31)
- SetXTicsSpecListItem (Case32)
- SetXTicsSpecListItem (Case33)
- SetXTicsSpecListItem (Case34)
- SetXTicsSpecListItem (Case35)
- SetXTicsSpecListItem (Case36)
- SetXTicsSpecListItem (Case37)
- SetXTicsSpecListItem (Case38)
- SetXTicsSpecListItem (Case39)
- SetXTicsSpecListItem (Case40)
- SetXTicsSpecListOpt
- SetXTicsSpecListOpt (Case1)
- SetXyplaneSpec
- SetXyplaneSpec (Case1)
- SetXyplaneSpec (Case2)
- SetZeroaxisSpecList
- SetZeroaxisSpecList (Case1)
- SetZeroaxisSpecListOpt
- SetZeroaxisSpecListOpt (Case1)
- Show
- ShowDatafileSpecList
- ShowDatafileSpecList (Case1)
- ShowDatafileSpecListItem
- ShowDatafileSpecListItem (Case1)
- ShowDatafileSpecListItem (Case2)
- ShowDatafileSpecListItem (Case3)
- ShowDatafileSpecListItem (Case4)
- ShowDatafileSpecListItem (Case5)
- ShowDatafileSpecListOpt
- ShowDatafileSpecListOpt (Case1)
- ShowSpec
- ShowSpec (Case001)
- ShowSpec (Case002)
- ShowSpec (Case003)
- ShowSpec (Case004)
- ShowSpec (Case005)
- ShowSpec (Case006)
- ShowSpec (Case007)
- ShowSpec (Case008)
- ShowSpec (Case009)
- ShowSpec (Case010)
- ShowSpec (Case011)
- ShowSpec (Case012)
- ShowSpec (Case013)
- ShowSpec (Case014)
- ShowSpec (Case015)
- ShowSpec (Case016)
- ShowSpec (Case017)
- ShowSpec (Case018)
- ShowSpec (Case019)
- ShowSpec (Case020)
- ShowSpec (Case021)
- ShowSpec (Case022)
- ShowSpec (Case023)
- ShowSpec (Case024)
- ShowSpec (Case025)
- ShowSpec (Case026)
- ShowSpec (Case027)
- ShowSpec (Case028)
- ShowSpec (Case029)
- ShowSpec (Case030)
- ShowSpec (Case031)
- ShowSpec (Case032)
- ShowSpec (Case033)
- ShowSpec (Case034)
- ShowSpec (Case035)
- ShowSpec (Case036)
- ShowSpec (Case037)
- ShowSpec (Case038)
- ShowSpec (Case039)
- ShowSpec (Case040)
- ShowSpec (Case041)
- ShowSpec (Case042)
- ShowSpec (Case043)
- ShowSpec (Case044)
- ShowSpec (Case045)
- ShowSpec (Case046)
- ShowSpec (Case047)
- ShowSpec (Case048)
- ShowSpec (Case049)
- ShowSpec (Case050)
- ShowSpec (Case051)
- ShowSpec (Case052)
- ShowSpec (Case053)
- ShowSpec (Case054)
- ShowSpec (Case055)
- ShowSpec (Case056)
- ShowSpec (Case057)
- ShowSpec (Case058)
- ShowSpec (Case059)
- ShowSpec (Case060)
- ShowSpec (Case061)
- ShowSpec (Case062)
- ShowSpec (Case063)
- ShowSpec (Case064)
- ShowSpec (Case065)
- ShowSpec (Case066)
- ShowSpec (Case067)
- ShowSpec (Case068)
- ShowSpec (Case069)
- ShowSpec (Case070)
- ShowSpec (Case071)
- ShowSpec (Case072)
- ShowSpec (Case073)
- ShowSpec (Case074)
- ShowSpec (Case075)
- ShowSpec (Case076)
- ShowSpec (Case077)
- ShowSpec (Case078)
- ShowSpec (Case079)
- ShowSpec (Case080)
- ShowSpec (Case081)
- ShowSpec (Case082)
- ShowSpec (Case083)
- ShowSpec (Case084)
- ShowSpec (Case085)
- ShowSpec (Case086)
- ShowSpec (Case087)
- ShowSpec (Case088)
- ShowSpec (Case089)
- ShowSpec (Case090)
- ShowSpec (Case091)
- ShowSpec (Case092)
- ShowSpec (Case093)
- ShowSpec (Case094)
- ShowSpec (Case095)
- ShowSpec (Case096)
- ShowSpec (Case097)
- ShowSpec (Case098)
- ShowSpec (Case099)
- ShowSpec (Case100)
- ShowSpec (Case101)
- ShowSpec (Case102)
- ShowSpec (Case103)
- ShowSpec (Case104)
- ShowSpec (Case105)
- ShowSpec (Case106)
- ShowSpec (Case107)
- ShowSpec (Case108)
- ShowSpec (Case109)
- ShowSpec (Case110)
- ShowSpec (Case111)
- ShowSpec (Case112)
- ShowSpec (Case113)
- ShowSpec (Case114)
- ShowSpec (Case115)
- ShowSpec (Case116)
- ShowSpec (Case117)
- ShowSpec (Case118)
- ShowSpec (Case119)
- ShowSpec (Case120)
- ShowSpec (Case121)
- ShowSpec (Case122)
- ShowSpec (Case123)
- ShowSpec (Case124)
- ShowSpec (Case125)
- ShowSpec (Case126)
- ShowSpec (Case127)
- ShowSpec (Case128)
- ShowSpec (Case129)
- ShowSpec (Case130)
- ShowSpec (Case131)
- ShowSpec (Case132)
- ShowSpec (Case133)
- ShowSpec (Case134)
- ShowSpec (Case135)
- ShowSpec (Case136)
- ShowSpec (Case137)
- ShowSpec (Case138)
- ShowSpec (Case139)
- ShowSpec (Case140)
- ShowSpec (Case141)
- ShowSpec (Case142)
- ShowSpec (Case143)
- ShowSpec (Case144)
- ShowSpec (Case145)
- ShowSpec (Case146)
- SimpleExpression
- SimpleExpression (Case01)
- SimpleExpression (Case02)
- SimpleExpression (Case03)
- SimpleExpression (Case04)
- SimpleExpression (Case05)
- SimpleExpression (Case06)
- SimpleExpression (Case07)
- SimpleExpression (Case08)
- SimpleExpression (Case09)
- SimpleExpression (Case10)
- SimpleExpression (Case11)
- SimpleExpression (Case12)
- SimpleExpression (Case13)
- SimpleExpression (Case14)
- SimpleExpression (Case15)
- SimpleExpression (Case16)
- SimpleExpression (Case17)
- SimpleExpression (Case18)
- SimpleExpression (Case19)
- SimpleExpression (Case20)
- SimpleExpression (Case21)
- SimpleExpression (Case22)
- SimpleExpression (Case23)
- SimpleExpression (Case24)
- SimpleExpressionList
- SimpleExpressionList (Case1)
- SliceArgument
- SliceArgument (Case1)
- SliceArgument (Case2)
- Smoothing
- Smoothing (Case01)
- Smoothing (Case02)
- Smoothing (Case03)
- Smoothing (Case04)
- Smoothing (Case05)
- Smoothing (Case06)
- Smoothing (Case07)
- Smoothing (Case08)
- Smoothing (Case09)
- Smoothing (Case10)
- Smoothing (Case11)
- Splot
- Statement
- Statement (Case01)
- Statement (Case02)
- Statement (Case03)
- Statement (Case04)
- Statement (Case05)
- Statement (Case06)
- Statement (Case07)
- Statement (Case08)
- Statement (Case09)
- Statement (Case10)
- Statement (Case11)
- Statement (Case12)
- Statement (Case13)
- Statement (Case14)
- Statement (Case15)
- Statement (Case16)
- Statement (Case17)
- Statement (Case18)
- Statement (Case19)
- Statement (Case20)
- Statement (Case21)
- Statement (Case22)
- Statement (Case23)
- Statement (Case24)
- Statement (Case25)
- Statement (Case26)
- Statement (Case27)
- Statement (Case28)
- Statement (Case29)
- Statement (Case30)
- Statement (Case31)
- StatementList
- StatementList (Case1)
- StatementSeparator
- StatementSeparator (Case1)
- Stats
- StatsSpecList
- StatsSpecList (Case1)
- StatsSpecListItem
- StatsSpecListItem (Case1)
- StatsSpecListItem (Case2)
- StatsSpecListItem (Case3)
- StatsSpecListItem (Case4)
- StatsSpecListItem (Case5)
- StatsSpecListItem (Case6)
- StatsSpecListItem (Case7)
- StatsSpecListOpt
- StatsSpecListOpt (Case1)
- Test
- Test (Case1)
- TicsLabelList
- TicsLabelList (Case1)
- TicsLabelListItem
- TicsLabelListItem (Case1)
- TicsLabelListItem (Case2)
- TicsLabelListItem (Case3)
- TicsLabelListItem (Case4)
- UnaryExpression
- UnaryExpression (Case1)
- UnaryExpression (Case2)
- UnaryExpression (Case3)
- UnaryExpression (Case4)
- UnaryExpression (Case5)
- UnaryNonParenthesizedExpression
- UnaryNonParenthesizedExpression (Case1)
- UnaryNonParenthesizedExpression (Case2)
- UnaryNonParenthesizedExpression (Case3)
- UnaryNonParenthesizedExpression (Case4)
- UnaryNonParenthesizedExpression (Case5)
- UnaryNonStringExpression
- UnaryNonStringExpression (Case1)
- UnaryNonStringExpression (Case2)
- UnaryNonStringExpression (Case3)
- UnaryNonStringExpression (Case4)
- UnarySimpleExpression
- UnarySimpleExpression (Case1)
- UnarySimpleExpression (Case2)
- UnarySimpleExpression (Case3)
- Undefine
- UndefineList
- UndefineList (Case1)
- UndefineListItem
- UndefineListItem (Case1)
- Unit
- Unit (Case1)
- Unit (Case2)
- Unit (Case3)
- Unit (Case4)
- Unit (Case5)
- Unit (Case6)
- Unit (Case7)
- Unit (Case8)
- UnitsOpt
- UnitsOpt (Case1)
- UnitsOpt (Case2)
- UnitsOpt (Case3)
- Unset
- UnsetLogscaleList
- UnsetLogscaleList (Case1)
- UnsetLogscaleListOpt
- UnsetLogscaleListOpt (Case1)
- UnsetSpec
- UnsetSpec (Case001)
- UnsetSpec (Case002)
- UnsetSpec (Case003)
- UnsetSpec (Case004)
- UnsetSpec (Case005)
- UnsetSpec (Case006)
- UnsetSpec (Case007)
- UnsetSpec (Case008)
- UnsetSpec (Case009)
- UnsetSpec (Case010)
- UnsetSpec (Case011)
- UnsetSpec (Case012)
- UnsetSpec (Case013)
- UnsetSpec (Case014)
- UnsetSpec (Case015)
- UnsetSpec (Case016)
- UnsetSpec (Case017)
- UnsetSpec (Case018)
- UnsetSpec (Case019)
- UnsetSpec (Case020)
- UnsetSpec (Case021)
- UnsetSpec (Case022)
- UnsetSpec (Case023)
- UnsetSpec (Case024)
- UnsetSpec (Case025)
- UnsetSpec (Case026)
- UnsetSpec (Case027)
- UnsetSpec (Case028)
- UnsetSpec (Case029)
- UnsetSpec (Case030)
- UnsetSpec (Case031)
- UnsetSpec (Case032)
- UnsetSpec (Case033)
- UnsetSpec (Case034)
- UnsetSpec (Case035)
- UnsetSpec (Case036)
- UnsetSpec (Case037)
- UnsetSpec (Case038)
- UnsetSpec (Case039)
- UnsetSpec (Case040)
- UnsetSpec (Case041)
- UnsetSpec (Case042)
- UnsetSpec (Case043)
- UnsetSpec (Case044)
- UnsetSpec (Case045)
- UnsetSpec (Case046)
- UnsetSpec (Case047)
- UnsetSpec (Case048)
- UnsetSpec (Case049)
- UnsetSpec (Case050)
- UnsetSpec (Case051)
- UnsetSpec (Case052)
- UnsetSpec (Case053)
- UnsetSpec (Case054)
- UnsetSpec (Case055)
- UnsetSpec (Case056)
- UnsetSpec (Case057)
- UnsetSpec (Case058)
- UnsetSpec (Case059)
- UnsetSpec (Case060)
- UnsetSpec (Case061)
- UnsetSpec (Case062)
- UnsetSpec (Case063)
- UnsetSpec (Case064)
- UnsetSpec (Case065)
- UnsetSpec (Case066)
- UnsetSpec (Case067)
- UnsetSpec (Case068)
- UnsetSpec (Case069)
- UnsetSpec (Case070)
- UnsetSpec (Case071)
- UnsetSpec (Case072)
- UnsetSpec (Case073)
- UnsetSpec (Case074)
- UnsetSpec (Case075)
- UnsetSpec (Case076)
- UnsetSpec (Case077)
- UnsetSpec (Case078)
- UnsetSpec (Case079)
- UnsetSpec (Case080)
- UnsetSpec (Case081)
- UnsetSpec (Case082)
- UnsetSpec (Case083)
- UnsetSpec (Case084)
- UnsetSpec (Case085)
- UnsetSpec (Case086)
- UnsetSpec (Case087)
- UnsetSpec (Case088)
- UnsetSpec (Case089)
- UnsetSpec (Case090)
- UnsetSpec (Case091)
- UnsetSpec (Case092)
- UnsetSpec (Case093)
- UnsetSpec (Case094)
- UnsetSpec (Case095)
- UnsetSpec (Case096)
- UnsetSpec (Case097)
- UnsetSpec (Case098)
- UnsetSpec (Case099)
- UnsetSpec (Case100)
- UnsetSpec (Case101)
- UnsetSpec (Case102)
- UnsetSpec (Case103)
- UnsetSpec (Case104)
- UnsetSpec (Case105)
- UnsetSpec (Case106)
- UnsetSpec (Case107)
- UnsetSpec (Case108)
- UnsetSpec (Case109)
- UnsetSpec (Case110)
- UnsetSpec (Case111)
- UnsetSpec (Case112)
- UnsetSpec (Case113)
- UnsetSpec (Case114)
- UnsetSpec (Case115)
- UnsetSpec (Case116)
- UnsetSpec (Case117)
- UnsetSpec (Case118)
- UnsetSpec (Case119)
- UnsetSpec (Case120)
- UnsetSpec (Case121)
- UnsetSpec (Case122)
- UnsetSpec (Case123)
- UnsetSpec (Case124)
- UnsetSpec (Case125)
- UnsetSpec (Case126)
- UnsetSpec (Case127)
- UnsetSpec (Case128)
- UnsetSpec (Case129)
- UnsetSpec (Case130)
- UnsetSpec (Case131)
- UnsetSpec (Case132)
- UnsetSpec (Case133)
- UnsetSpec (Case134)
- Update
- Update (Case1)
- UsingList
- UsingList (Case1)
- VariableDefinition
- While
Constants ¶
const ( ANDAND = 57346 DTEQ = 57347 EQEQ = 57348 EXP = 57349 GEQ = 57350 IDENTIFIER = 57351 LEQ = 57352 LESS_ADD_SUB = 57353 LESS_COMMA = 57354 LESS_EXPR = 57355 LESS_FACTORIAL = 57356 LESS_LBRACKET = 57357 LESS_LC = 57358 LESS_LPAREN = 57359 LESS_LT = 57360 LESS_SKIP = 57361 LESS_STYLE = 57362 LESS_T_Z = 57363 LSH = 57364 MACRO = 57365 NOTEQ = 57366 NUM_LIT = 57367 OROR = 57368 RSH = 57369 SKIPEQ = 57370 STRING_LIT = 57371 SUM = 57372 T_A = 57373 T_A4PAPER = 57374 T_ABOVE = 57375 T_ABSOLUTE = 57376 T_ACCELERATION = 57377 T_ACSPLINES = 57378 T_ADD = 57379 T_ADOBEGLYPHNAMES = 57380 T_AIFM = 57381 T_ALL = 57382 T_ALLWINDOWS = 57383 T_ALTDIAGONAL = 57384 T_AMSTEX = 57385 T_ANGLE = 57386 T_ANGLES = 57387 T_ANIMATE = 57388 T_ANY = 57389 T_APPEND = 57390 T_AQUA = 57391 T_ARC = 57392 T_ARRAY = 57393 T_ARROW = 57394 T_ARROWSTYLE = 57395 T_AS = 57396 T_ASPECT = 57397 T_AT = 57398 T_AUTO = 57399 T_AUTOFREQ = 57400 T_AUTOJUSTIFY = 57401 T_AUTOSCALE = 57402 T_AUTOTITLE = 57403 T_AUXFILE = 57404 T_AVS = 57405 T_AXES = 57406 T_AXIS = 57407 T_BACK = 57408 T_BACKGROUND = 57409 T_BACKHEAD = 57410 T_BANDWIDTH = 57411 T_BARS = 57412 T_BASE = 57413 T_BDEFAULT = 57414 T_BE = 57415 T_BEGIN = 57416 T_BEGINNING = 57417 T_BEHIND = 57418 T_BELOW = 57419 T_BENTOVER = 57420 T_BEVELED = 57421 T_BEZIER = 57422 T_BGND = 57423 T_BIG = 57424 T_BINARY = 57425 T_BIND = 57426 T_BITMAP = 57427 T_BLACK = 57428 T_BLACKTEXT = 57429 T_BMARGIN = 57430 T_BO = 57431 T_BORDER = 57432 T_BOT = 57433 T_BOTH = 57434 T_BOTTOM = 57435 T_BOX = 57436 T_BOXED = 57437 T_BOXERRORBARS = 57438 T_BOXES = 57439 T_BOXPLOT = 57440 T_BOXWIDTH = 57441 T_BOXXYERRORBARS = 57442 T_BP = 57443 T_BRIEF = 57444 T_BSPLINE = 57445 T_BUTT = 57446 T_BUTTON1 = 57447 T_BUTTON2 = 57448 T_BUTTON3 = 57449 T_BY = 57450 T_C1 = 57451 T_C2 = 57452 T_C3 = 57453 T_C4 = 57454 T_CAIROLATEX = 57455 T_CALL = 57456 T_CANDLESTICKS = 57457 T_CANVAS = 57458 T_CARTESIAN = 57459 T_CAUCHY = 57460 T_CB = 57461 T_CBDATA = 57462 T_CBDTICS = 57463 T_CBFIX = 57464 T_CBFIXMAX = 57465 T_CBFIXMIN = 57466 T_CBLABEL = 57467 T_CBMAX = 57468 T_CBMIN = 57469 T_CBMTICS = 57470 T_CBRANGE = 57471 T_CBTICS = 57472 T_CC = 57473 T_CD = 57474 T_CENTER = 57475 T_CGM = 57476 T_CHAR = 57477 T_CHARACTER = 57478 T_CHARSIZE = 57479 T_CIRCLE = 57480 T_CIRCLES = 57481 T_CLABEL = 57482 T_CLASSIC = 57483 T_CLEAR = 57484 T_CLIP = 57485 T_CLIP1IN = 57486 T_CLIP4IN = 57487 T_CLOSE = 57488 T_CLOSED = 57489 T_CLUSTER = 57490 T_CLUSTERED = 57491 T_CM = 57492 T_CMYKIMAGES = 57493 T_CNORMAL = 57494 T_CNTRLABEL = 57495 T_CNTRP = 57496 T_CNTRPARAM = 57497 T_COLOR = 57498 T_COLORBOX = 57499 T_COLORNAMES = 57500 T_COLORSEQUENCE = 57501 T_COLORTEXT = 57502 T_COLOUR = 57503 T_COLOURTEXT = 57504 T_COLUMN = 57505 T_COLUMNHEAD = 57506 T_COLUMNHEADER = 57507 T_COLUMNHEADERS = 57508 T_COLUMNS = 57509 T_COLUMNSFIRST = 57510 T_COLUMNSTACKED = 57511 T_COMMA = 57512 T_COMMENTSCHARS = 57513 T_CONTEXT = 57514 T_CONTOUR = 57515 T_COREL = 57516 T_CORNERS2COLOR = 57517 T_COURIER = 57518 T_COVARIANCEVARIABLES = 57519 T_CP1250 = 57520 T_CP1251 = 57521 T_CP1252 = 57522 T_CP1254 = 57523 T_CP437 = 57524 T_CP850 = 57525 T_CP852 = 57526 T_CP950 = 57527 T_CREATESTYLE = 57528 T_CROP = 57529 T_CSPLINES = 57530 T_CTRL = 57531 T_CTRLQ = 57532 T_CUBEHELIX = 57533 T_CUBICSPLINE = 57534 T_CUMULATIVE = 57535 T_CYCLES = 57536 T_CYLINDRICAL = 57537 T_D = 57538 T_DASH = 57539 T_DASHED = 57540 T_DASHLENGTH = 57541 T_DASHTYPE = 57542 T_DATA = 57543 T_DATAFILE = 57544 T_DATASIZES = 57545 T_DD = 57546 T_DEBUG = 57547 T_DECIMALSIGN = 57548 T_DEFAULT = 57549 T_DEFAULTFONT = 57550 T_DEFAULTPLEX = 57551 T_DEFAULTS = 57552 T_DEFAULTSIZE = 57553 T_DEFINED = 57554 T_DEG = 57555 T_DEGREES = 57556 T_DELETE = 57557 T_DEPTH = 57558 T_DEPTHORDER = 57559 T_DGRID3D = 57560 T_DISCRETE = 57561 T_DL = 57562 T_DO = 57563 T_DOTS = 57564 T_DOUBLECLICK = 57565 T_DOWNWARDS = 57566 T_DPU414 = 57567 T_DRAFT = 57568 T_DT = 57569 T_DUMB = 57570 T_DUMMY = 57571 T_DUPLEX = 57572 T_DX = 57573 T_DXF = 57574 T_DXY800A = 57575 T_DY = 57576 T_DYNAMIC = 57577 T_DZ = 57578 T_E = 57579 T_EDF = 57580 T_EEPIC = 57581 T_EJECT = 57582 T_ELLIPSE = 57583 T_ELLIPSES = 57584 T_ELSE = 57585 T_EMF = 57586 T_EMPTY = 57587 T_EMTEX = 57588 T_EMXVESA = 57589 T_EMXVGA = 57590 T_ENCODING = 57591 T_END = 57592 T_ENDIAN = 57593 T_ENHANCED = 57594 T_EPS = 57595 T_EPSLATEX = 57596 T_EPSON__180DPI = 57597 T_EPSON__60DPI = 57598 T_EQ = 57599 T_EQUAL = 57600 T_ERROR = 57601 T_ERRORBARS = 57602 T_ERRORLINES = 57603 T_ERRORS = 57604 T_ERRORSCALING = 57605 T_ERRORVARIABLES = 57606 T_EVAL = 57607 T_EVERY = 57608 T_EXCL = 57609 T_EXIT = 57610 T_EXP = 57611 T_EXPLICIT = 57612 T_EXTEND = 57613 T_EXTERNALIMAGES = 57614 T_FC = 57615 T_FEED = 57616 T_FIG = 57617 T_FILE = 57618 T_FILETYPE = 57619 T_FILETYPES = 57620 T_FILL = 57621 T_FILLCOLOR = 57622 T_FILLED = 57623 T_FILLEDCURVES = 57624 T_FILLSTYLE = 57625 T_FINANCEBARS = 57626 T_FIRST = 57627 T_FIT = 57628 T_FIX = 57629 T_FIXED = 57630 T_FLIP = 57631 T_FLIPX = 57632 T_FLIPY = 57633 T_FLIPZ = 57634 T_FLUSH = 57635 T_FNAME = 57636 T_FONT = 57637 T_FONTFILE = 57638 T_FONTPATH = 57639 T_FONTSCALE = 57640 T_FOR = 57641 T_FORMAT = 57642 T_FORTRAN = 57643 T_FRAC = 57644 T_FRACTION = 57645 T_FREQUENCY = 57646 T_FROM = 57647 T_FRONT = 57648 T_FS = 57649 T_FSIZE = 57650 T_FSTEPS = 57651 T_FTRIANGLES = 57652 T_FULL = 57653 T_FULLDOC = 57654 T_FULLWIDTH = 57655 T_FUNC = 57656 T_FUNCTION = 57657 T_FUNCTIONS = 57658 T_GAMMA = 57659 T_GAP = 57660 T_GAUSS = 57661 T_GENERAL = 57662 T_GEOGRAPHIC = 57663 T_GEOMEAN = 57664 T_GGI = 57665 T_GIANT = 57666 T_GIF = 57667 T_GNUPLOT = 57668 T_GPARROWS = 57669 T_GPIC = 57670 T_GPPOINTS = 57671 T_GRAPH = 57672 T_GRASS = 57673 T_GRAY = 57674 T_GRID = 57675 T_HACKTEXT = 57676 T_HANN = 57677 T_HARMEAN = 57678 T_HEAD = 57679 T_HEADER = 57680 T_HEADS = 57681 T_HEIGHT = 57682 T_HELP = 57683 T_HIDDEN3D = 57684 T_HIS = 57685 T_HISTEPS = 57686 T_HISTOGRAM = 57687 T_HISTOGRAMS = 57688 T_HISTORY = 57689 T_HORIZONTAL = 57690 T_HP2623A = 57691 T_HP2648 = 57692 T_HP500C = 57693 T_HPDJ = 57694 T_HPGL = 57695 T_HPLJII = 57696 T_HPPJ = 57697 T_HYPERTEXT = 57698 T_IF = 57699 T_IMAGE = 57700 T_IMAGEN = 57701 T_IMPLICIT = 57702 T_IMPORT = 57703 T_IMPULSES = 57704 T_IN = 57705 T_INCH = 57706 T_INCHES = 57707 T_INCR = 57708 T_INCREMENT = 57709 T_INCREMENTAL = 57710 T_INDEX = 57711 T_INLINEIMAGES = 57712 T_INPUT = 57713 T_INSIDE = 57714 T_INTERACTIVE = 57715 T_INTERLACE = 57716 T_INTERPOLATE = 57717 T_INTERVAL = 57718 T_INVERSE = 57719 T_INVERT = 57720 T_ISO = 57721 T_ISOSAMPLES = 57722 T_ISO__8859__1 = 57723 T_ISO__8859__15 = 57724 T_ISO__8859__2 = 57725 T_ISO__8859__9 = 57726 T_JPEG = 57727 T_JSDIR = 57728 T_KDENSITY = 57729 T_KEEPFIX = 57730 T_KEY = 57731 T_KEYPRESS = 57732 T_KOI8R = 57733 T_KOI8U = 57734 T_KYO = 57735 T_L = 57736 T_LABEL = 57737 T_LABELS = 57738 T_LAMBDA__FACTOR = 57739 T_LANDSCAPE = 57740 T_LARGE = 57741 T_LATEX = 57742 T_LAYERDEFAULT = 57743 T_LAYOUT = 57744 T_LC = 57745 T_LEFT = 57746 T_LENGTH = 57747 T_LEVEL = 57748 T_LEVEL1 = 57749 T_LEVEL3 = 57750 T_LEVELDEFAULT = 57751 T_LEVELS = 57752 T_LIMIT = 57753 T_LIMIT__ABS = 57754 T_LINE = 57755 T_LINEAR = 57756 T_LINECOLOR = 57757 T_LINES = 57758 T_LINESPOINTS = 57759 T_LINESTYLE = 57760 T_LINETYPE = 57761 T_LINEWDITH = 57762 T_LINEWIDTH = 57763 T_LINK = 57764 T_LINUX = 57765 T_LITTLE = 57766 T_LMARGIN = 57767 T_LOAD = 57768 T_LOADPATH = 57769 T_LOCALE = 57770 T_LOG = 57771 T_LOGFILE = 57772 T_LOGSCALE = 57773 T_LOOP = 57774 T_LOWER = 57775 T_LP = 57776 T_LS = 57777 T_LT = 57778 T_LUA = 57779 T_LW = 57780 T_MACROS = 57781 T_MAGNIFICATION = 57782 T_MAP = 57783 T_MAPPING = 57784 T_MARGINS = 57785 T_MATRIX = 57786 T_MAX = 57787 T_MAXCOLORS = 57788 T_MAXCOLS = 57789 T_MAXITER = 57790 T_MAXROWS = 57791 T_MCB = 57792 T_MCBTICS = 57793 T_MCSPLINES = 57794 T_MEAN = 57795 T_MEDIAN = 57796 T_MEDIUM = 57797 T_METRIC = 57798 T_MF = 57799 T_MIDDLE = 57800 T_MIF = 57801 T_MIN = 57802 T_MIRROR = 57803 T_MISSING = 57804 T_MITERED = 57805 T_MM = 57806 T_MODE = 57807 T_MODEL = 57808 T_MONO = 57809 T_MONOCHROME = 57810 T_MOUSE = 57811 T_MOUSEFORMAT = 57812 T_MOUSING = 57813 T_MP = 57814 T_MPPOINTS = 57815 T_MULTIPLOT = 57816 T_MX = 57817 T_MX2 = 57818 T_MX2TICS = 57819 T_MXTICS = 57820 T_MY = 57821 T_MY2 = 57822 T_MY2TICS = 57823 T_MYTICS = 57824 T_MZ = 57825 T_MZTICS = 57826 T_NAME = 57827 T_NE = 57828 T_NEC__CP6 = 57829 T_NEGATIVE = 57830 T_NEW = 57831 T_NEWHISTOGRAM = 57832 T_NEWSTYLE = 57833 T_NEXT = 57834 T_NOADOBEGLYPHNAMES = 57835 T_NOALTDIAGONAL = 57836 T_NOAUTOSCALE = 57837 T_NOAUTOTITLE = 57838 T_NOAUXFILE = 57839 T_NOBACKGROUND = 57840 T_NOBENTOVER = 57841 T_NOBITMAP = 57842 T_NOBORDER = 57843 T_NOBOX = 57844 T_NOCBTICS = 57845 T_NOCLIP = 57846 T_NOCONTOURS = 57847 T_NOCOVARIANCEVARIABLES = 57848 T_NOCROP = 57849 T_NOCTRL = 57850 T_NOCTRLQ = 57851 T_NODOUBLECLICK = 57852 T_NOENHANCED = 57853 T_NOEQUAL = 57854 T_NOERRORSCALING = 57855 T_NOERRORVARIABLES = 57856 T_NOEXTEND = 57857 T_NOEXTERNALIMAGES = 57858 T_NOFEED = 57859 T_NOFILLED = 57860 T_NOFONTFILES = 57861 T_NOFPE = 57862 T_NOFTRIANGLES = 57863 T_NOFULLDOC = 57864 T_NOGPARROWS = 57865 T_NOGPPOINTS = 57866 T_NOHACKTEXT = 57867 T_NOHEAD = 57868 T_NOHEADER = 57869 T_NOHIDDEN3D = 57870 T_NOINTERLACE = 57871 T_NOINVERT = 57872 T_NOLABELS = 57873 T_NOLOG = 57874 T_NOMCBTICS = 57875 T_NOMIRROR = 57876 T_NOMX2TICS = 57877 T_NOMXTICS = 57878 T_NOMY2TICS = 57879 T_NOMYTICS = 57880 T_NOMZTICS = 57881 T_NONUNIFORM = 57882 T_NOOFFSET = 57883 T_NOOPAQUE = 57884 T_NOOPTIMIZE = 57885 T_NOORIGINRESET = 57886 T_NOOUTLIERS = 57887 T_NOOUTPUT = 57888 T_NOPERSIST = 57889 T_NOPICENVIRONMENT = 57890 T_NOPOINT = 57891 T_NOPOLARDISTANCE = 57892 T_NOPRESCALE = 57893 T_NOPROPORTIONAL = 57894 T_NOPSNFSS = 57895 T_NOPS__ALLC_F = 57896 T_NOQUIET = 57897 T_NORAISE = 57898 T_NORATIO = 57899 T_NOREPLOTONRESIZE = 57900 T_NOREVERSE = 57901 T_NORMAL = 57902 T_NOROTATE = 57903 T_NORULER = 57904 T_NOSQUARE = 57905 T_NOSTANDALONE = 57906 T_NOSURFACE = 57907 T_NOTEX = 57908 T_NOTIGHTBOUNDINGBOX = 57909 T_NOTIKZARROWS = 57910 T_NOTIMESTAMP = 57911 T_NOTITLE = 57912 T_NOTRANSPARENT = 57913 T_NOTRUECOLOR = 57914 T_NOUNDEFINED = 57915 T_NOUNIT = 57916 T_NOVERBOSE = 57917 T_NOWEDGE = 57918 T_NOWRITEBACK = 57919 T_NOX2TICS = 57920 T_NOXTICS = 57921 T_NOY2TICS = 57922 T_NOYTICS = 57923 T_NOZOOMCOORDINATES = 57924 T_NOZOOMJUMP = 57925 T_NOZTICS = 57926 T_NUMBERS = 57927 T_NUMERIC = 57928 T_OBJECT = 57929 T_OFF = 57930 T_OFFSET = 57931 T_OFFSETS = 57932 T_OKIDATA = 57933 T_OLD = 57934 T_OLDSTYLE = 57935 T_ON = 57936 T_ONE = 57937 T_ONECOLOR = 57938 T_OPAQUE = 57939 T_OPENSTEP = 57940 T_OPTIMIZE = 57941 T_ORDER = 57942 T_ORIGIN = 57943 T_ORIGINRESET = 57944 T_OUT = 57945 T_OUTLIERS = 57946 T_OUTPUT = 57947 T_OUTSIDE = 57948 T_PAL = 57949 T_PALETTE = 57950 T_PALFUNCPARAM = 57951 T_PARA = 57952 T_PARALLEL = 57953 T_PARALLELAXES = 57954 T_PARAMETRIC = 57955 T_PATTERN = 57956 T_PAUSE = 57957 T_PAXIS = 57958 T_PBM = 57959 T_PC = 57960 T_PDF = 57961 T_PDFCAIRO = 57962 T_PERLTK = 57963 T_PERPENDICULAR = 57964 T_PERSIST = 57965 T_PI = 57966 T_PICENVIRONMENT = 57967 T_PIXELS = 57968 T_PLOT = 57969 T_PLOTSIZE = 57970 T_PM = 57971 T_PM3D = 57972 T_PNG = 57973 T_PNGCAIRO = 57974 T_PODO = 57975 T_POINT = 57976 T_POINTINTERVAL = 57977 T_POINTINTERVALBOX = 57978 T_POINTS = 57979 T_POINTSIZE = 57980 T_POINTSMAX = 57981 T_POINTTYPE = 57982 T_POLAR = 57983 T_POLARDISTANCEDEG = 57984 T_POLARDISTANCETAN = 57985 T_POLYGON = 57986 T_POLYLINE = 57987 T_POP = 57988 T_PORTRAIT = 57989 T_POSITION = 57990 T_POSITIVE = 57991 T_POSTSCRIPT = 57992 T_PREAMBLE = 57993 T_PREFIX = 57994 T_PRESCALE = 57995 T_PRESCRIBE = 57996 T_PREVIOUS = 57997 T_PRINT = 57998 T_PROLOGUES = 57999 T_PROVIDEVARS = 58000 T_PS = 58001 T_PSDIR = 58002 T_PSLATEX = 58003 T_PSNFSS = 58004 T_PSNFSS__VERSION7 = 58005 T_PSTEX = 58006 T_PSTRICKS = 58007 T_PS__ALLC_F = 58008 T_PT = 58009 T_PUSH = 58010 T_QMS = 58011 T_QNORM = 58012 T_QT = 58013 T_QUIET = 58014 T_R = 58015 T_RAD = 58016 T_RADIANS = 58017 T_RADIUS = 58018 T_RAISE = 58019 T_RANGE = 58020 T_RANGELIMITED = 58021 T_RATIO = 58022 T_RAXIS = 58023 T_RECORD = 58024 T_RECTANGLE = 58025 T_REGIS = 58026 T_RELATIVE = 58027 T_REP = 58028 T_REPLOT = 58029 T_REPLOTONRESIZE = 58030 T_REREAD = 58031 T_RESET = 58032 T_RESTORE = 58033 T_RESULTS = 58034 T_REVERSE = 58035 T_RGB = 58036 T_RGBALPHA = 58037 T_RGBCOLOR = 58038 T_RGBFORMULAE = 58039 T_RGBIMAGE = 58040 T_RGBIMAGES = 58041 T_RIGHT = 58042 T_RMARGIN = 58043 T_RMS = 58044 T_ROMAN = 58045 T_ROT = 58046 T_ROTATE = 58047 T_ROTATION = 58048 T_ROUND = 58049 T_ROUNDED = 58050 T_ROWHEADERS = 58051 T_ROWS = 58052 T_ROWSFIRST = 58053 T_ROWSTACKED = 58054 T_RRANGE = 58055 T_RTICS = 58056 T_RTO = 58057 T_RULER = 58058 T_SAM = 58059 T_SAMPLE = 58060 T_SAMPLEN = 58061 T_SAMPLES = 58062 T_SATURATION = 58063 T_SBEZIER = 58064 T_SCALE = 58065 T_SCAN = 58066 T_SCANSAUTOMATIC = 58067 T_SCANSBACKWARD = 58068 T_SCANSFORWARD = 58069 T_SCREEN = 58070 T_SCRIPT = 58071 T_SECOND = 58072 T_SEP = 58073 T_SEPARATION = 58074 T_SEPARATOR = 58075 T_SERVER = 58076 T_SESSION = 58077 T_SET = 58078 T_SHOW = 58079 T_SIMPLEX = 58080 T_SIZE = 58081 T_SJIS = 58082 T_SKIP = 58083 T_SM = 58084 T_SMALL = 58085 T_SMOOTH = 58086 T_SOLID = 58087 T_SORTED = 58088 T_SPACING = 58089 T_SPHERICAL = 58090 T_SPLINES = 58091 T_SPLOT = 58092 T_SQUARE = 58093 T_SQUARED = 58094 T_STANDALONE = 58095 T_START = 58096 T_START__LAMBDA = 58097 T_STATS = 58098 T_STEPS = 58099 T_STYLE = 58100 T_SUN = 58101 T_SURFACE = 58102 T_SVG = 58103 T_SVGA = 58104 T_SWAP = 58105 T_T = 58106 T_TAB = 58107 T_TABLE = 58108 T_TC = 58109 T_TEK40 = 58110 T_TEK410X = 58111 T_TERM = 58112 T_TERMINAL = 58113 T_TERMOPTION = 58114 T_TEST = 58115 T_TEX = 58116 T_TEXDRAW = 58117 T_TEXPOINTS = 58118 T_TEXTBOX = 58119 T_TEXTCOLOR = 58120 T_TEXTHIDDEN = 58121 T_TEXTNORMAL = 58122 T_TEXTRIGID = 58123 T_TEXTSCALE = 58124 T_TEXTSPECIAL = 58125 T_TGIF = 58126 T_THICKNESS = 58127 T_TI = 58128 T_TIC = 58129 T_TICS = 58130 T_TICSLEVEL = 58131 T_TIGHTBOUNDINGBOX = 58132 T_TIKS = 58133 T_TIKZ = 58134 T_TIKZARROWS = 58135 T_TIKZPLOT = 58136 T_TIME = 58137 T_TIMEDATE = 58138 T_TIMEFMT = 58139 T_TIMESTAMP = 58140 T_TINY = 58141 T_TITLE = 58142 T_TKCANVAS = 58143 T_TMARGIN = 58144 T_TO = 58145 T_TOP = 58146 T_TPIC = 58147 T_TRANGE = 58148 T_TRANSPARENT = 58149 T_TRANSPOSE = 58150 T_TRAP = 58151 T_TRIANGLEPATTERN = 58152 T_TRIM = 58153 T_TRUECOLOR = 58154 T_TWO = 58155 T_U = 58156 T_UNDEFINE = 58157 T_UNDEFINED = 58158 T_UNDER = 58159 T_UNIFORM = 58160 T_UNIQUE = 58161 T_UNIT = 58162 T_UNITS = 58163 T_UNITWEIGHTS = 58164 T_UNSET = 58165 T_UNSORTED = 58166 T_UNWRAP = 58167 T_UPDATE = 58168 T_UPWARDS = 58169 T_URANGE = 58170 T_USER = 58171 T_USERSTYLES = 58172 T_USING = 58173 T_UTF8 = 58174 T_V4 = 58175 T_V5 = 58176 T_VAR = 58177 T_VARIABLE = 58178 T_VARIABLES = 58179 T_VECTORS = 58180 T_VERBOSE = 58181 T_VERSION = 58182 T_VERTICAL = 58183 T_VGAGL = 58184 T_VGAL = 58185 T_VI = 58186 T_VIA = 58187 T_VIEW = 58188 T_VOLATILE = 58189 T_VRANGE = 58190 T_VWS = 58191 T_W = 58192 T_WEDGE = 58193 T_WHILE = 58194 T_WHISKERBARS = 58195 T_WHITESPACE = 58196 T_WIDELINES = 58197 T_WIDGET = 58198 T_WIDTH = 58199 T_WIN = 58200 T_WINDOW = 58201 T_WINDOWS = 58202 T_WITH = 58203 T_WRITEBACK = 58204 T_WSIZE = 58205 T_WXT = 58206 T_X = 58207 T_X1 = 58208 T_X11 = 58209 T_X1Y1 = 58210 T_X1Y2 = 58211 T_X2 = 58212 T_X2DATA = 58213 T_X2DTICS = 58214 T_X2FIX = 58215 T_X2FIXMAX = 58216 T_X2FIXMIN = 58217 T_X2LABEL = 58218 T_X2MAX = 58219 T_X2MIN = 58220 T_X2MTICS = 58221 T_X2RANGE = 58222 T_X2TICS = 58223 T_X2Y1 = 58224 T_X2Y2 = 58225 T_X2ZEROAXIS = 58226 T_XDATA = 58227 T_XDTICS = 58228 T_XERR = 58229 T_XERROR = 58230 T_XERRORBAR = 58231 T_XERRORLINES = 58232 T_XFIX = 58233 T_XFIXMAX = 58234 T_XFIXMIN = 58235 T_XLABEL = 58236 T_XMAX = 58237 T_XMIN = 58238 T_XMTICS = 58239 T_XRANGE = 58240 T_XTICS = 58241 T_XX = 58242 T_XY = 58243 T_XYERR = 58244 T_XYERROR = 58245 T_XYERRORBARS = 58246 T_XYERRORLINES = 58247 T_XYFIX = 58248 T_XYFIXMAX = 58249 T_XYFIXMIN = 58250 T_XYPLANE = 58251 T_XYZ = 58252 T_XZEROAXIS = 58253 T_XZY = 58254 T_Y = 58255 T_Y1 = 58256 T_Y2 = 58257 T_Y2DATA = 58258 T_Y2DTICS = 58259 T_Y2FIX = 58260 T_Y2FIXMAX = 58261 T_Y2FIXMIN = 58262 T_Y2LABEL = 58263 T_Y2MAX = 58264 T_Y2MIN = 58265 T_Y2MTICS = 58266 T_Y2RANGE = 58267 T_Y2TICS = 58268 T_Y2ZEROAXIS = 58269 T_YDATA = 58270 T_YDTICS = 58271 T_YERR = 58272 T_YERROR = 58273 T_YERRORBARS = 58274 T_YERRORLINES = 58275 T_YFIX = 58276 T_YFIXMAX = 58277 T_YFIXMIN = 58278 T_YLABEL = 58279 T_YMAX = 58280 T_YMIN = 58281 T_YMTICS = 58282 T_YRANGE = 58283 T_YTICS = 58284 T_YX = 58285 T_YXZ = 58286 T_YY = 58287 T_YZEROAXIS = 58288 T_YZX = 58289 T_Z = 58290 T_ZDATA = 58291 T_ZDTICS = 58292 T_ZERO = 58293 T_ZEROAXIS = 58294 T_ZFIX = 58295 T_ZFIXMAX = 58296 T_ZFIXMIN = 58297 T_ZLABEL = 58298 T_ZMAX = 58299 T_ZMTICS = 58300 T_ZOOMCOORDINATES = 58301 T_ZOOMFACTORS = 58302 T_ZOOMJUMP = 58303 T_ZRANGE = 58304 T_ZTICS = 58305 T_ZXY = 58306 T_ZYX = 58307 T_ZZEROAXIS = 58308 T__C_M_Y = 58309 T__F_N_T13_X25 = 58310 T__F_N_T5_X9 = 58311 T__F_N_T9_X17 = 58312 T__H_S_V = 58313 T__LEFT = 58314 T__RIGHT = 58315 T__R_G_B = 58316 T__X_Y_Z = 58317 T__Y_I_Q = 58318 )
Variables ¶
This section is empty.
Functions ¶
func PrettyString ¶
func PrettyString(v interface{}) string
PrettyString returns pretty formatted strings of things produced by this package.
Types ¶
type AST ¶
type AST struct {
StatementList *StatementList
}
AST represents data reduced by production:
AST: StatementList
Example ¶
fmt.Println(exampleAST(1, ""))
Output: &plot.AST{ }
func Parse ¶
Parse parses a GnuPlot script in r with assumed name nm and size sz and returns the resulting AST and an error, if any. The error, if non nil, is possibly a scanner.ErrorList.
func ParseFile ¶
ParseFile parses a GnuPlot script in file name and returns the resulting AST and an error, if any. The error, if non nil, is possibly a scanner.ErrorList.
func ParseString ¶
ParseString parses a GnuPlot script in src with asssumed name nm and returns the resulting AST and an error, if any. The error, if non nil, is possibly a scanner.ErrorList.
type AngleUnit ¶
AngleUnit represents data reduced by productions:
AngleUnit: "deg" | "d" // Case 1 | "pi" // Case 2
Example ¶
fmt.Println(exampleAST(2, "plot ident_a binary rotation = ident_b deg"))
Output: &plot.AngleUnit{ · Token: example2.go:1:40: IDENTIFIER "deg", }
Example (Case1) ¶
fmt.Println(exampleAST(3, "plot ident_a binary rotation = ident_b d"))
Output: &plot.AngleUnit{ · Case: 1, · Token: example3.go:1:40: IDENTIFIER "d", }
Example (Case2) ¶
fmt.Println(exampleAST(4, "plot ident_a binary rotation = ident_b pi"))
Output: &plot.AngleUnit{ · Case: 2, · Token: example4.go:1:40: IDENTIFIER "pi", }
type ArrowStyleList ¶
type ArrowStyleList struct { ArrowStyleList *ArrowStyleList ArrowStyleListItem *ArrowStyleListItem Case int }
ArrowStyleList represents data reduced by productions:
ArrowStyleList: ArrowStyleListItem | ArrowStyleList ArrowStyleListItem // Case 1
Example ¶
fmt.Println(exampleAST(5, "plot ident_a w vectors empty"))
Output: &plot.ArrowStyleList{ · ArrowStyleListItem: &plot.ArrowStyleListItem{ · · Case: 6, · · Token: example5.go:1:24: IDENTIFIER "empty", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(6, "plot ident_a w vectors empty empty"))
Output: &plot.ArrowStyleList{ · ArrowStyleList: &plot.ArrowStyleList{ · · ArrowStyleListItem: &plot.ArrowStyleListItem{ · · · Case: 6, · · · Token: example6.go:1:30: IDENTIFIER "empty", · · }, · · Case: 1, · }, · ArrowStyleListItem: &plot.ArrowStyleListItem{ · · Case: 6, · · Token: example6.go:1:24: IDENTIFIER "empty", · }, }
func (*ArrowStyleList) Pos ¶
func (n *ArrowStyleList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*ArrowStyleList) String ¶
func (n *ArrowStyleList) String() string
String implements fmt.Stringer.
type ArrowStyleListItem ¶
type ArrowStyleListItem struct { Case int LineStyleListItem *LineStyleListItem Position *Position Token xc.Token Token2 xc.Token }
ArrowStyleListItem represents data reduced by productions:
ArrowStyleListItem: "head" | "nohead" // Case 1 | "heads" // Case 2 | "size" Position // Case 3 | "size" Position "fixed" // Case 4 | "filled" // Case 5 | "empty" // Case 6 | "nofilled" // Case 7 | "noborder" // Case 8 | "front" // Case 9 | LineStyleListItem // Case 10
Example ¶
fmt.Println(exampleAST(7, "plot ident_a w vectors head"))
Output: &plot.ArrowStyleListItem{ · Token: example7.go:1:24: IDENTIFIER "head", }
Example (Case01) ¶
fmt.Println(exampleAST(8, "plot ident_a w vectors nohead"))
Output: &plot.ArrowStyleListItem{ · Case: 1, · Token: example8.go:1:24: IDENTIFIER "nohead", }
Example (Case02) ¶
fmt.Println(exampleAST(9, "plot ident_a w vectors heads"))
Output: &plot.ArrowStyleListItem{ · Case: 2, · Token: example9.go:1:24: IDENTIFIER "heads", }
Example (Case03) ¶
fmt.Println(exampleAST(10, "plot ident_a w vectors size ident_b"))
Output: &plot.ArrowStyleListItem{ · Case: 3, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example10.go:1:29: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example10.go:1:24: IDENTIFIER "size", }
Example (Case04) ¶
fmt.Println(exampleAST(11, "plot ident_a w vectors size ident_b fixed"))
Output: &plot.ArrowStyleListItem{ · Case: 4, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example11.go:1:29: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example11.go:1:24: IDENTIFIER "size", · Token2: example11.go:1:37: IDENTIFIER "fixed", }
Example (Case05) ¶
fmt.Println(exampleAST(12, "plot ident_a w vectors filled"))
Output: &plot.ArrowStyleListItem{ · Case: 5, · Token: example12.go:1:24: IDENTIFIER "filled", }
Example (Case06) ¶
fmt.Println(exampleAST(13, "plot ident_a w vectors empty"))
Output: &plot.ArrowStyleListItem{ · Case: 6, · Token: example13.go:1:24: IDENTIFIER "empty", }
Example (Case07) ¶
fmt.Println(exampleAST(14, "plot ident_a w vectors nofilled"))
Output: &plot.ArrowStyleListItem{ · Case: 7, · Token: example14.go:1:24: IDENTIFIER "nofilled", }
Example (Case08) ¶
fmt.Println(exampleAST(15, "plot ident_a w vectors noborder"))
Output: &plot.ArrowStyleListItem{ · Case: 8, · Token: example15.go:1:24: IDENTIFIER "noborder", }
Example (Case09) ¶
fmt.Println(exampleAST(16, "plot ident_a w vectors front"))
Output: &plot.ArrowStyleListItem{ · Case: 9, · Token: example16.go:1:24: IDENTIFIER "front", }
Example (Case10) ¶
fmt.Println(exampleAST(17, "plot ident_a w vectors nocontours"))
Output: &plot.ArrowStyleListItem{ · Case: 10, · LineStyleListItem: &plot.LineStyleListItem{ · · Case: 15, · · Token: example17.go:1:24: IDENTIFIER "nocontours", · }, }
func (*ArrowStyleListItem) Pos ¶
func (n *ArrowStyleListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*ArrowStyleListItem) String ¶
func (n *ArrowStyleListItem) String() string
String implements fmt.Stringer.
type BinaryList ¶
type BinaryList struct { BinaryList *BinaryList BinaryListItem *BinaryListItem Case int }
BinaryList represents data reduced by productions:
BinaryList: BinaryListItem | BinaryList BinaryListItem // Case 1
Example ¶
fmt.Println(exampleAST(18, "plot ident_a binary flipx"))
Output: &plot.BinaryList{ · BinaryListItem: &plot.BinaryListItem{ · · Case: 14, · · Token: example18.go:1:21: IDENTIFIER "flipx", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(19, "plot ident_a binary flipx flipx"))
Output: &plot.BinaryList{ · BinaryList: &plot.BinaryList{ · · BinaryListItem: &plot.BinaryListItem{ · · · Case: 14, · · · Token: example19.go:1:27: IDENTIFIER "flipx", · · }, · · Case: 1, · }, · BinaryListItem: &plot.BinaryListItem{ · · Case: 14, · · Token: example19.go:1:21: IDENTIFIER "flipx", · }, }
func (*BinaryList) Pos ¶
func (n *BinaryList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
type BinaryListItem ¶
type BinaryListItem struct { AngleUnit *AngleUnit Case int ColonExpressionList *ColonExpressionList Endianess *Endianess Expression *Expression ExpressionList *ExpressionList OriginList *OriginList Token xc.Token Token2 xc.Token Token3 xc.Token Token4 xc.Token }
BinaryListItem represents data reduced by productions:
BinaryListItem: "array" '=' '(' ExpressionList ')' | "array" '=' ColonExpressionList // Case 1 | "center" '=' '(' ExpressionList ')' // Case 2 | "dx" '=' Expression // Case 3 | "dy" '=' Expression // Case 4 | "dz" '=' Expression // Case 5 | "endian" '=' Endianess // Case 6 | "filetype" '=' "auto" // Case 7 | "filetype" '=' "avs" // Case 8 | "filetype" '=' "edf" // Case 9 | "filetype" '=' "png" // Case 10 | "flip" '=' "x" // Case 11 | "flip" '=' "y" // Case 12 | "flip" '=' "z" // Case 13 | "flipx" // Case 14 | "flipy" // Case 15 | "flipz" // Case 16 | "format" '=' Expression // Case 17 | "general" // Case 18 | "origin" '=' OriginList // Case 19 | "perpendicular" '=' '(' ExpressionList ')' // Case 20 | "record" '=' '(' ExpressionList ')' // Case 21 | "record" '=' ColonExpressionList // Case 22 | "rot" '=' Expression // Case 23 | "rot" '=' Expression AngleUnit // Case 24 | "rotate" '=' Expression // Case 25 | "rotate" '=' Expression AngleUnit // Case 26 | "rotation" '=' Expression // Case 27 | "rotation" '=' Expression AngleUnit // Case 28 | "scan" '=' "xy" // Case 29 | "scan" '=' "xyz" // Case 30 | "scan" '=' "xzy" // Case 31 | "scan" '=' "yx" // Case 32 | "scan" '=' "yxz" // Case 33 | "scan" '=' "yzx" // Case 34 | "scan" '=' "zxy" // Case 35 | "scan" '=' "zyx" // Case 36 | "transpose" // Case 37 | SKIPEQ '=' ColonExpressionList // Case 38 | DTEQ '=' Expression // Case 39
Example ¶
fmt.Println(exampleAST(20, "plot ident_a binary array = ( ident_b )"))
Output: &plot.BinaryListItem{ · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example20.go:1:31: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example20.go:1:21: IDENTIFIER "array", · Token2: example20.go:1:27: '=' "=", · Token3: example20.go:1:29: '(' "(", · Token4: example20.go:1:39: ')' ")", }
Example (Case01) ¶
fmt.Println(exampleAST(21, "plot ident_a binary array = ident_b"))
Output: &plot.BinaryListItem{ · Case: 1, · ColonExpressionList: &plot.ColonExpressionList{ · · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · · Case: 24, · · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · · Token: example21.go:1:29: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example21.go:1:21: IDENTIFIER "array", · Token2: example21.go:1:27: '=' "=", }
Example (Case02) ¶
fmt.Println(exampleAST(22, "plot ident_a binary center = ( ident_b )"))
Output: &plot.BinaryListItem{ · Case: 2, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example22.go:1:32: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example22.go:1:21: IDENTIFIER "center", · Token2: example22.go:1:28: '=' "=", · Token3: example22.go:1:30: '(' "(", · Token4: example22.go:1:40: ')' ")", }
Example (Case03) ¶
fmt.Println(exampleAST(23, "plot ident_a binary dx = ident_b"))
Output: &plot.BinaryListItem{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example23.go:1:26: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example23.go:1:21: IDENTIFIER "dx", · Token2: example23.go:1:24: '=' "=", }
Example (Case04) ¶
fmt.Println(exampleAST(24, "plot ident_a binary dy = ident_b"))
Output: &plot.BinaryListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example24.go:1:26: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example24.go:1:21: IDENTIFIER "dy", · Token2: example24.go:1:24: '=' "=", }
Example (Case05) ¶
fmt.Println(exampleAST(25, "plot ident_a binary dz = ident_b"))
Output: &plot.BinaryListItem{ · Case: 5, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example25.go:1:26: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example25.go:1:21: IDENTIFIER "dz", · Token2: example25.go:1:24: '=' "=", }
Example (Case06) ¶
fmt.Println(exampleAST(26, "plot ident_a binary endian = big"))
Output: &plot.BinaryListItem{ · Case: 6, · Endianess: &plot.Endianess{ · · Token: example26.go:1:30: IDENTIFIER "big", · }, · Token: example26.go:1:21: IDENTIFIER "endian", · Token2: example26.go:1:28: '=' "=", }
Example (Case07) ¶
fmt.Println(exampleAST(27, "plot ident_a binary filetype = auto"))
Output: &plot.BinaryListItem{ · Case: 7, · Token: example27.go:1:21: IDENTIFIER "filetype", · Token2: example27.go:1:30: '=' "=", · Token3: example27.go:1:32: IDENTIFIER "auto", }
Example (Case08) ¶
fmt.Println(exampleAST(28, "plot ident_a binary filetype = avs"))
Output: &plot.BinaryListItem{ · Case: 8, · Token: example28.go:1:21: IDENTIFIER "filetype", · Token2: example28.go:1:30: '=' "=", · Token3: example28.go:1:32: IDENTIFIER "avs", }
Example (Case09) ¶
fmt.Println(exampleAST(29, "plot ident_a binary filetype = edf"))
Output: &plot.BinaryListItem{ · Case: 9, · Token: example29.go:1:21: IDENTIFIER "filetype", · Token2: example29.go:1:30: '=' "=", · Token3: example29.go:1:32: IDENTIFIER "edf", }
Example (Case10) ¶
fmt.Println(exampleAST(30, "plot ident_a binary filetype = png"))
Output: &plot.BinaryListItem{ · Case: 10, · Token: example30.go:1:21: IDENTIFIER "filetype", · Token2: example30.go:1:30: '=' "=", · Token3: example30.go:1:32: IDENTIFIER "png", }
Example (Case11) ¶
fmt.Println(exampleAST(31, "plot ident_a binary flip = x"))
Output: &plot.BinaryListItem{ · Case: 11, · Token: example31.go:1:21: IDENTIFIER "flip", · Token2: example31.go:1:26: '=' "=", · Token3: example31.go:1:28: IDENTIFIER "x", }
Example (Case12) ¶
fmt.Println(exampleAST(32, "plot ident_a binary flip = y"))
Output: &plot.BinaryListItem{ · Case: 12, · Token: example32.go:1:21: IDENTIFIER "flip", · Token2: example32.go:1:26: '=' "=", · Token3: example32.go:1:28: IDENTIFIER "y", }
Example (Case13) ¶
fmt.Println(exampleAST(33, "plot ident_a binary flip = z"))
Output: &plot.BinaryListItem{ · Case: 13, · Token: example33.go:1:21: IDENTIFIER "flip", · Token2: example33.go:1:26: '=' "=", · Token3: example33.go:1:28: IDENTIFIER "z", }
Example (Case14) ¶
fmt.Println(exampleAST(34, "plot ident_a binary flipx"))
Output: &plot.BinaryListItem{ · Case: 14, · Token: example34.go:1:21: IDENTIFIER "flipx", }
Example (Case15) ¶
fmt.Println(exampleAST(35, "plot ident_a binary flipy"))
Output: &plot.BinaryListItem{ · Case: 15, · Token: example35.go:1:21: IDENTIFIER "flipy", }
Example (Case16) ¶
fmt.Println(exampleAST(36, "plot ident_a binary flipz"))
Output: &plot.BinaryListItem{ · Case: 16, · Token: example36.go:1:21: IDENTIFIER "flipz", }
Example (Case17) ¶
fmt.Println(exampleAST(37, "plot ident_a binary format = ident_b"))
Output: &plot.BinaryListItem{ · Case: 17, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example37.go:1:30: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example37.go:1:21: IDENTIFIER "format", · Token2: example37.go:1:28: '=' "=", }
Example (Case18) ¶
fmt.Println(exampleAST(38, "plot ident_a binary general"))
Output: &plot.BinaryListItem{ · Case: 18, · Token: example38.go:1:21: IDENTIFIER "general", }
Example (Case19) ¶
fmt.Println(exampleAST(39, "plot ident_a binary origin = ( ident_b )"))
Output: &plot.BinaryListItem{ · Case: 19, · OriginList: &plot.OriginList{ · · ExpressionList: &plot.ExpressionList{ · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example39.go:1:32: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · · Token: example39.go:1:30: '(' "(", · · Token2: example39.go:1:40: ')' ")", · }, · Token: example39.go:1:21: IDENTIFIER "origin", · Token2: example39.go:1:28: '=' "=", }
Example (Case20) ¶
fmt.Println(exampleAST(40, "plot ident_a binary perpendicular = ( ident_b )"))
Output: &plot.BinaryListItem{ · Case: 20, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example40.go:1:39: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example40.go:1:21: IDENTIFIER "perpendicular", · Token2: example40.go:1:35: '=' "=", · Token3: example40.go:1:37: '(' "(", · Token4: example40.go:1:47: ')' ")", }
Example (Case21) ¶
fmt.Println(exampleAST(41, "plot ident_a binary record = ( ident_b )"))
Output: &plot.BinaryListItem{ · Case: 21, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example41.go:1:32: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example41.go:1:21: IDENTIFIER "record", · Token2: example41.go:1:28: '=' "=", · Token3: example41.go:1:30: '(' "(", · Token4: example41.go:1:40: ')' ")", }
Example (Case22) ¶
fmt.Println(exampleAST(42, "plot ident_a binary record = ident_b"))
Output: &plot.BinaryListItem{ · Case: 22, · ColonExpressionList: &plot.ColonExpressionList{ · · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · · Case: 24, · · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · · Token: example42.go:1:30: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example42.go:1:21: IDENTIFIER "record", · Token2: example42.go:1:28: '=' "=", }
Example (Case23) ¶
fmt.Println(exampleAST(43, "plot ident_a binary rot = ident_b"))
Output: &plot.BinaryListItem{ · Case: 23, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example43.go:1:27: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example43.go:1:21: IDENTIFIER "rot", · Token2: example43.go:1:25: '=' "=", }
Example (Case24) ¶
fmt.Println(exampleAST(44, "plot ident_a binary rot = ident_b d"))
Output: &plot.BinaryListItem{ · AngleUnit: &plot.AngleUnit{ · · Case: 1, · · Token: example44.go:1:35: IDENTIFIER "d", · }, · Case: 24, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example44.go:1:27: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example44.go:1:21: IDENTIFIER "rot", · Token2: example44.go:1:25: '=' "=", }
Example (Case25) ¶
fmt.Println(exampleAST(45, "plot ident_a binary rotate = ident_b"))
Output: &plot.BinaryListItem{ · Case: 25, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example45.go:1:30: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example45.go:1:21: IDENTIFIER "rotate", · Token2: example45.go:1:28: '=' "=", }
Example (Case26) ¶
fmt.Println(exampleAST(46, "plot ident_a binary rotate = ident_b d"))
Output: &plot.BinaryListItem{ · AngleUnit: &plot.AngleUnit{ · · Case: 1, · · Token: example46.go:1:38: IDENTIFIER "d", · }, · Case: 26, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example46.go:1:30: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example46.go:1:21: IDENTIFIER "rotate", · Token2: example46.go:1:28: '=' "=", }
Example (Case27) ¶
fmt.Println(exampleAST(47, "plot ident_a binary rotation = ident_b"))
Output: &plot.BinaryListItem{ · Case: 27, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example47.go:1:32: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example47.go:1:21: IDENTIFIER "rotation", · Token2: example47.go:1:30: '=' "=", }
Example (Case28) ¶
fmt.Println(exampleAST(48, "plot ident_a binary rotation = ident_b d"))
Output: &plot.BinaryListItem{ · AngleUnit: &plot.AngleUnit{ · · Case: 1, · · Token: example48.go:1:40: IDENTIFIER "d", · }, · Case: 28, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example48.go:1:32: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example48.go:1:21: IDENTIFIER "rotation", · Token2: example48.go:1:30: '=' "=", }
Example (Case29) ¶
fmt.Println(exampleAST(49, "plot ident_a binary scan = xy"))
Output: &plot.BinaryListItem{ · Case: 29, · Token: example49.go:1:21: IDENTIFIER "scan", · Token2: example49.go:1:26: '=' "=", · Token3: example49.go:1:28: IDENTIFIER "xy", }
Example (Case30) ¶
fmt.Println(exampleAST(50, "plot ident_a binary scan = xyz"))
Output: &plot.BinaryListItem{ · Case: 30, · Token: example50.go:1:21: IDENTIFIER "scan", · Token2: example50.go:1:26: '=' "=", · Token3: example50.go:1:28: IDENTIFIER "xyz", }
Example (Case31) ¶
fmt.Println(exampleAST(51, "plot ident_a binary scan = xzy"))
Output: &plot.BinaryListItem{ · Case: 31, · Token: example51.go:1:21: IDENTIFIER "scan", · Token2: example51.go:1:26: '=' "=", · Token3: example51.go:1:28: IDENTIFIER "xzy", }
Example (Case32) ¶
fmt.Println(exampleAST(52, "plot ident_a binary scan = yx"))
Output: &plot.BinaryListItem{ · Case: 32, · Token: example52.go:1:21: IDENTIFIER "scan", · Token2: example52.go:1:26: '=' "=", · Token3: example52.go:1:28: IDENTIFIER "yx", }
Example (Case33) ¶
fmt.Println(exampleAST(53, "plot ident_a binary scan = yxz"))
Output: &plot.BinaryListItem{ · Case: 33, · Token: example53.go:1:21: IDENTIFIER "scan", · Token2: example53.go:1:26: '=' "=", · Token3: example53.go:1:28: IDENTIFIER "yxz", }
Example (Case34) ¶
fmt.Println(exampleAST(54, "plot ident_a binary scan = yzx"))
Output: &plot.BinaryListItem{ · Case: 34, · Token: example54.go:1:21: IDENTIFIER "scan", · Token2: example54.go:1:26: '=' "=", · Token3: example54.go:1:28: IDENTIFIER "yzx", }
Example (Case35) ¶
fmt.Println(exampleAST(55, "plot ident_a binary scan = zxy"))
Output: &plot.BinaryListItem{ · Case: 35, · Token: example55.go:1:21: IDENTIFIER "scan", · Token2: example55.go:1:26: '=' "=", · Token3: example55.go:1:28: IDENTIFIER "zxy", }
Example (Case36) ¶
fmt.Println(exampleAST(56, "plot ident_a binary scan = zyx"))
Output: &plot.BinaryListItem{ · Case: 36, · Token: example56.go:1:21: IDENTIFIER "scan", · Token2: example56.go:1:26: '=' "=", · Token3: example56.go:1:28: IDENTIFIER "zyx", }
Example (Case37) ¶
fmt.Println(exampleAST(57, "plot ident_a binary transpose"))
Output: &plot.BinaryListItem{ · Case: 37, · Token: example57.go:1:21: IDENTIFIER "transpose", }
Example (Case38) ¶
fmt.Println(exampleAST(58, "plot ident_a binary skip = ident_b"))
Output: &plot.BinaryListItem{ · Case: 38, · ColonExpressionList: &plot.ColonExpressionList{ · · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · · Case: 24, · · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · · Token: example58.go:1:28: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example58.go:1:21: SKIPEQ "skip", · Token2: example58.go:1:26: '=' "=", }
Example (Case39) ¶
fmt.Println(exampleAST(59, "plot ident_a binary dt = ident_b"))
Output: &plot.BinaryListItem{ · Case: 39, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example59.go:1:26: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example59.go:1:21: DTEQ "dt", · Token2: example59.go:1:24: '=' "=", }
func (*BinaryListItem) Pos ¶
func (n *BinaryListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*BinaryListItem) String ¶
func (n *BinaryListItem) String() string
String implements fmt.Stringer.
type BinaryListOpt ¶
type BinaryListOpt struct {
BinaryList *BinaryList
}
BinaryListOpt represents data reduced by productions:
BinaryListOpt: /* empty */ | BinaryList // Case 1
Example ¶
fmt.Println(exampleAST(60, "plot ident_a binary") == (*BinaryListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(61, "plot ident_a binary flipx"))
Output: &plot.BinaryListOpt{ · BinaryList: &plot.BinaryList{ · · BinaryListItem: &plot.BinaryListItem{ · · · Case: 14, · · · Token: example61.go:1:21: IDENTIFIER "flipx", · · }, · }, }
func (*BinaryListOpt) Pos ¶
func (n *BinaryListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*BinaryListOpt) String ¶
func (n *BinaryListOpt) String() string
String implements fmt.Stringer.
type Bind ¶
type Bind struct { Case int Expression *Expression SimpleExpression *SimpleExpression Token xc.Token Token2 xc.Token }
Bind represents data reduced by productions:
Bind: "bind" Expression SimpleExpression | "bind" "a" Expression SimpleExpression // Case 1 | "bind" "all" Expression SimpleExpression // Case 2 | "bind" "allwindows" Expression SimpleExpression // Case 3
Example ¶
fmt.Println(exampleAST(62, "bind ident_a ident_b"))
Output: &plot.Bind{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example62.go:1:6: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example62.go:1:14: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example62.go:1:1: IDENTIFIER "bind", }
Example (Case1) ¶
fmt.Println(exampleAST(63, "bind a ident_a ident_b"))
Output: &plot.Bind{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example63.go:1:8: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example63.go:1:16: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example63.go:1:1: IDENTIFIER "bind", · Token2: example63.go:1:6: IDENTIFIER "a", }
Example (Case2) ¶
fmt.Println(exampleAST(64, "bind all ident_a ident_b"))
Output: &plot.Bind{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example64.go:1:10: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example64.go:1:18: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example64.go:1:1: IDENTIFIER "bind", · Token2: example64.go:1:6: IDENTIFIER "all", }
Example (Case3) ¶
fmt.Println(exampleAST(65, "bind allwindows ident_a ident_b"))
Output: &plot.Bind{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example65.go:1:17: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example65.go:1:25: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example65.go:1:1: IDENTIFIER "bind", · Token2: example65.go:1:6: IDENTIFIER "allwindows", }
type Call ¶
type Call struct { SimpleExpressionList *SimpleExpressionList Token xc.Token }
Call represents data reduced by production:
Call: "call" SimpleExpressionList
Example ¶
fmt.Println(exampleAST(66, "call ident_a"))
Output: &plot.Call{ · SimpleExpressionList: &plot.SimpleExpressionList{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example66.go:1:6: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example66.go:1:1: IDENTIFIER "call", }
type Cd ¶
type Cd struct { Expression *Expression Token xc.Token }
Cd represents data reduced by production:
Cd: "cd" Expression
Example ¶
fmt.Println(exampleAST(67, "cd ident_a"))
Output: &plot.Cd{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example67.go:1:4: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example67.go:1:1: IDENTIFIER "cd", }
type Clear ¶
Clear represents data reduced by production:
Clear: "clear"
Example ¶
fmt.Println(exampleAST(68, "clear"))
Output: &plot.Clear{ · Token: example68.go:1:1: IDENTIFIER "clear", }
type ColonExpressionList ¶
type ColonExpressionList struct { Case int ColonExpressionList *ColonExpressionList NonParenthesizedExpression *NonParenthesizedExpression Token xc.Token }
ColonExpressionList represents data reduced by productions:
ColonExpressionList: NonParenthesizedExpression | ColonExpressionList ':' NonParenthesizedExpression // Case 1
Example ¶
fmt.Println(exampleAST(69, "plot ident_a in ident_b"))
Output: &plot.ColonExpressionList{ · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example69.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(70, "plot ident_a index ident_b : ident_c"))
Output: &plot.ColonExpressionList{ · ColonExpressionList: &plot.ColonExpressionList{ · · Case: 1, · · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · · Case: 24, · · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · · Token: example70.go:1:30: IDENTIFIER "ident_c", · · · · · }, · · · · }, · · · }, · · }, · · Token: example70.go:1:28: ':' ":", · }, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example70.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, }
func (*ColonExpressionList) Pos ¶
func (n *ColonExpressionList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*ColonExpressionList) String ¶
func (n *ColonExpressionList) String() string
String implements fmt.Stringer.
type ColonExpressionOptList ¶
type ColonExpressionOptList struct { Case int ColonExpressionOptList *ColonExpressionOptList NonParenthesizedExpression *NonParenthesizedExpression Token xc.Token }
ColonExpressionOptList represents data reduced by productions:
ColonExpressionOptList: /* empty */ | NonParenthesizedExpression // Case 1 | ColonExpressionOptList ':' // Case 2 | ColonExpressionOptList ':' NonParenthesizedExpression // Case 3
Example ¶
fmt.Println(exampleAST(71, "plot ident_a every") == (*ColonExpressionOptList)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(72, "plot ident_a every ident_b"))
Output: &plot.ColonExpressionOptList{ · Case: 1, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example72.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, }
Example (Case2) ¶
fmt.Println(exampleAST(73, "plot ident_a every :"))
Output: &plot.ColonExpressionOptList{ · Case: 2, · Token: example73.go:1:20: ':' ":", }
Example (Case3) ¶
fmt.Println(exampleAST(74, "plot ident_a every : ident_b"))
Output: &plot.ColonExpressionOptList{ · Case: 3, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example74.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example74.go:1:20: ':' ":", }
func (*ColonExpressionOptList) Pos ¶
func (n *ColonExpressionOptList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*ColonExpressionOptList) String ¶
func (n *ColonExpressionOptList) String() string
String implements fmt.Stringer.
type ColorSpec ¶
ColorSpec represents data reduced by productions:
ColorSpec: "bgnd" | "black" // Case 1 | "pal" // Case 2 | "pal" "cbrange" Expression // Case 3 | "pal" "frac" Expression // Case 4 | "pal" "z" // Case 5 | "palette" // Case 6 | "palette" "cbrange" Expression // Case 7 | "palette" "frac" Expression // Case 8 | "palette" "z" // Case 9 | "rgb" "var" // Case 10 | "rgb" "variable" // Case 11 | "rgb" Expression // Case 12 | "rgbcolor" "var" // Case 13 | "rgbcolor" "variable" // Case 14 | "rgbcolor" Expression // Case 15 | "variable" // Case 16 | Expression // Case 17
Example ¶
fmt.Println(exampleAST(75, "plot ident_a lc bgnd"))
Output: &plot.ColorSpec{ · Token: example75.go:1:17: IDENTIFIER "bgnd", }
Example (Case01) ¶
fmt.Println(exampleAST(76, "plot ident_a lt black"))
Output: &plot.ColorSpec{ · Case: 1, · Token: example76.go:1:17: IDENTIFIER "black", }
Example (Case02) ¶
fmt.Println(exampleAST(77, "plot ident_a lt pal"))
Output: &plot.ColorSpec{ · Case: 2, · Token: example77.go:1:17: IDENTIFIER "pal", }
Example (Case03) ¶
fmt.Println(exampleAST(78, "plot ident_a lt pal cbrange ident_b"))
Output: &plot.ColorSpec{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example78.go:1:29: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example78.go:1:17: IDENTIFIER "pal", · Token2: example78.go:1:21: IDENTIFIER "cbrange", }
Example (Case04) ¶
fmt.Println(exampleAST(79, "plot ident_a lt pal frac ident_b"))
Output: &plot.ColorSpec{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example79.go:1:26: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example79.go:1:17: IDENTIFIER "pal", · Token2: example79.go:1:21: IDENTIFIER "frac", }
Example (Case05) ¶
fmt.Println(exampleAST(80, "plot ident_a lt pal z"))
Output: &plot.ColorSpec{ · Case: 5, · Token: example80.go:1:17: IDENTIFIER "pal", · Token2: example80.go:1:21: IDENTIFIER "z", }
Example (Case06) ¶
fmt.Println(exampleAST(81, "plot ident_a linecolor palette"))
Output: &plot.ColorSpec{ · Case: 6, · Token: example81.go:1:24: IDENTIFIER "palette", }
Example (Case07) ¶
fmt.Println(exampleAST(82, "plot ident_a linecolor palette cbrange ident_b"))
Output: &plot.ColorSpec{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example82.go:1:40: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example82.go:1:24: IDENTIFIER "palette", · Token2: example82.go:1:32: IDENTIFIER "cbrange", }
Example (Case08) ¶
fmt.Println(exampleAST(83, "plot ident_a linecolor palette frac ident_b"))
Output: &plot.ColorSpec{ · Case: 8, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example83.go:1:37: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example83.go:1:24: IDENTIFIER "palette", · Token2: example83.go:1:32: IDENTIFIER "frac", }
Example (Case09) ¶
fmt.Println(exampleAST(84, "plot ident_a linecolor palette z"))
Output: &plot.ColorSpec{ · Case: 9, · Token: example84.go:1:24: IDENTIFIER "palette", · Token2: example84.go:1:32: IDENTIFIER "z", }
Example (Case10) ¶
fmt.Println(exampleAST(85, "plot ident_a lt rgb var"))
Output: &plot.ColorSpec{ · Case: 10, · Token: example85.go:1:17: IDENTIFIER "rgb", · Token2: example85.go:1:21: IDENTIFIER "var", }
Example (Case11) ¶
fmt.Println(exampleAST(86, "plot ident_a lt rgb variable"))
Output: &plot.ColorSpec{ · Case: 11, · Token: example86.go:1:17: IDENTIFIER "rgb", · Token2: example86.go:1:21: IDENTIFIER "variable", }
Example (Case12) ¶
fmt.Println(exampleAST(87, "plot ident_a lt rgb ident_b"))
Output: &plot.ColorSpec{ · Case: 12, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example87.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example87.go:1:17: IDENTIFIER "rgb", }
Example (Case13) ¶
fmt.Println(exampleAST(88, "plot ident_a linecolor rgbcolor var"))
Output: &plot.ColorSpec{ · Case: 13, · Token: example88.go:1:24: IDENTIFIER "rgbcolor", · Token2: example88.go:1:33: IDENTIFIER "var", }
Example (Case14) ¶
fmt.Println(exampleAST(89, "plot ident_a linecolor rgbcolor variable"))
Output: &plot.ColorSpec{ · Case: 14, · Token: example89.go:1:24: IDENTIFIER "rgbcolor", · Token2: example89.go:1:33: IDENTIFIER "variable", }
Example (Case15) ¶
fmt.Println(exampleAST(90, "plot ident_a linecolor rgbcolor ident_b"))
Output: &plot.ColorSpec{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example90.go:1:33: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example90.go:1:24: IDENTIFIER "rgbcolor", }
Example (Case16) ¶
fmt.Println(exampleAST(91, "plot ident_a lt variable"))
Output: &plot.ColorSpec{ · Case: 16, · Token: example91.go:1:17: IDENTIFIER "variable", }
Example (Case17) ¶
fmt.Println(exampleAST(92, "plot ident_a linecolor ident_b"))
Output: &plot.ColorSpec{ · Case: 17, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example92.go:1:24: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, }
type ComplexNumber ¶
type ComplexNumber struct { Expression *Expression Expression2 *Expression Token xc.Token Token2 xc.Token Token3 xc.Token }
ComplexNumber represents data reduced by production:
ComplexNumber: '{' Expression ',' Expression '}'
Example ¶
fmt.Println(exampleAST(93, "load { ident_a , ident_b }"))
Output: &plot.ComplexNumber{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example93.go:1:8: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example93.go:1:18: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example93.go:1:6: '{' "{", · Token2: example93.go:1:16: ',' ",", · Token3: example93.go:1:26: '}' "}", }
func (*ComplexNumber) Pos ¶
func (n *ComplexNumber) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*ComplexNumber) String ¶
func (n *ComplexNumber) String() string
String implements fmt.Stringer.
type CoordinateSystemOpt ¶
CoordinateSystemOpt represents data reduced by productions:
CoordinateSystemOpt: /* empty */ | "first" // Case 1 | "second" // Case 2 | "graph" // Case 3 | "screen" // Case 4 | "char" // Case 5 | "character" // Case 6
Example ¶
fmt.Println(exampleAST(94, "plot ident_a w vectors size !") == (*CoordinateSystemOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(95, "set arrow from first !"))
Output: &plot.CoordinateSystemOpt{ · Case: 1, · Token: example95.go:1:16: IDENTIFIER "first", }
Example (Case2) ¶
fmt.Println(exampleAST(96, "set multiplot scale second !"))
Output: &plot.CoordinateSystemOpt{ · Case: 2, · Token: example96.go:1:21: IDENTIFIER "second", }
Example (Case3) ¶
fmt.Println(exampleAST(97, "set pm3d at graph !"))
Output: &plot.CoordinateSystemOpt{ · Case: 3, · Token: example97.go:1:13: IDENTIFIER "graph", }
Example (Case4) ¶
fmt.Println(exampleAST(98, "set pm3d at screen !"))
Output: &plot.CoordinateSystemOpt{ · Case: 4, · Token: example98.go:1:13: IDENTIFIER "screen", }
Example (Case5) ¶
fmt.Println(exampleAST(99, "set pm3d at char !"))
Output: &plot.CoordinateSystemOpt{ · Case: 5, · Token: example99.go:1:13: IDENTIFIER "char", }
Example (Case6) ¶
fmt.Println(exampleAST(100, "set key at character !"))
Output: &plot.CoordinateSystemOpt{ · Case: 6, · Token: example100.go:1:12: IDENTIFIER "character", }
func (*CoordinateSystemOpt) Pos ¶
func (n *CoordinateSystemOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*CoordinateSystemOpt) String ¶
func (n *CoordinateSystemOpt) String() string
String implements fmt.Stringer.
type DashTypeSpec ¶
type DashTypeSpec struct { Case int Expression *Expression Token xc.Token }
DashTypeSpec represents data reduced by productions:
DashTypeSpec: "solid" | Expression // Case 1
Example ¶
fmt.Println(exampleAST(101, "set dashtype solid"))
Output: &plot.DashTypeSpec{ · Token: example101.go:1:14: IDENTIFIER "solid", }
Example (Case1) ¶
fmt.Println(exampleAST(102, "set dashtype ident_a"))
Output: &plot.DashTypeSpec{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example102.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*DashTypeSpec) Pos ¶
func (n *DashTypeSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*DashTypeSpec) String ¶
func (n *DashTypeSpec) String() string
String implements fmt.Stringer.
type DatafileModifiersList ¶
type DatafileModifiersList struct { Case int DatafileModifiersList *DatafileModifiersList DatafileModifiersListItem *DatafileModifiersListItem }
DatafileModifiersList represents data reduced by productions:
DatafileModifiersList: DatafileModifiersListItem | DatafileModifiersList DatafileModifiersListItem // Case 1
Example ¶
fmt.Println(exampleAST(103, "fit ident_a ident_b binary"))
Output: &plot.DatafileModifiersList{ · DatafileModifiersListItem: &plot.DatafileModifiersListItem{ · · Token: example103.go:1:21: IDENTIFIER "binary", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(104, "fit ident_a ident_b binary binary"))
Output: &plot.DatafileModifiersList{ · DatafileModifiersList: &plot.DatafileModifiersList{ · · Case: 1, · · DatafileModifiersListItem: &plot.DatafileModifiersListItem{ · · · Token: example104.go:1:28: IDENTIFIER "binary", · · }, · }, · DatafileModifiersListItem: &plot.DatafileModifiersListItem{ · · Token: example104.go:1:21: IDENTIFIER "binary", · }, }
func (*DatafileModifiersList) Pos ¶
func (n *DatafileModifiersList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*DatafileModifiersList) String ¶
func (n *DatafileModifiersList) String() string
String implements fmt.Stringer.
type DatafileModifiersListItem ¶
type DatafileModifiersListItem struct { BinaryListOpt *BinaryListOpt Case int ColonExpressionList *ColonExpressionList ColonExpressionOptList *ColonExpressionOptList Expression *Expression SimpleExpression *SimpleExpression Smoothing *Smoothing Token xc.Token Token2 xc.Token UsingList *UsingList }
DatafileModifiersListItem represents data reduced by productions:
DatafileModifiersListItem: "binary" BinaryListOpt | "matrix" // Case 1 | "nonuniform" "matrix" // Case 2 | "in" ColonExpressionList // Case 3 | "index" ColonExpressionList // Case 4 | "every" ColonExpressionOptList // Case 5 | "skip" Expression // Case 6 | "u" UsingList // Case 7 | "u" UsingList SimpleExpression // Case 8 | "using" UsingList // Case 9 | "using" UsingList SimpleExpression // Case 10 | "sm" Smoothing // Case 11 | "smooth" Smoothing // Case 12 | "volatile" // Case 13 | "noautoscale" // Case 14 | "columnheaders" // Case 15 | "rowheaders" // Case 16
Example ¶
fmt.Println(exampleAST(105, "plot ident_a binary"))
Output: &plot.DatafileModifiersListItem{ · Token: example105.go:1:14: IDENTIFIER "binary", }
Example (Case01) ¶
fmt.Println(exampleAST(106, "plot ident_a matrix"))
Output: &plot.DatafileModifiersListItem{ · Case: 1, · Token: example106.go:1:14: IDENTIFIER "matrix", }
Example (Case02) ¶
fmt.Println(exampleAST(107, "plot ident_a nonuniform matrix"))
Output: &plot.DatafileModifiersListItem{ · Case: 2, · Token: example107.go:1:14: IDENTIFIER "nonuniform", · Token2: example107.go:1:25: IDENTIFIER "matrix", }
Example (Case03) ¶
fmt.Println(exampleAST(108, "plot ident_a in ident_b"))
Output: &plot.DatafileModifiersListItem{ · Case: 3, · ColonExpressionList: &plot.ColonExpressionList{ · · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · · Case: 24, · · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · · Token: example108.go:1:17: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example108.go:1:14: IDENTIFIER "in", }
Example (Case04) ¶
fmt.Println(exampleAST(109, "plot ident_a index ident_b"))
Output: &plot.DatafileModifiersListItem{ · Case: 4, · ColonExpressionList: &plot.ColonExpressionList{ · · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · · Case: 24, · · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · · Token: example109.go:1:20: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example109.go:1:14: IDENTIFIER "index", }
Example (Case05) ¶
fmt.Println(exampleAST(110, "plot ident_a every"))
Output: &plot.DatafileModifiersListItem{ · Case: 5, · Token: example110.go:1:14: IDENTIFIER "every", }
Example (Case06) ¶
fmt.Println(exampleAST(111, "plot ident_a skip ident_b"))
Output: &plot.DatafileModifiersListItem{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example111.go:1:19: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example111.go:1:14: IDENTIFIER "skip", }
Example (Case07) ¶
fmt.Println(exampleAST(112, "plot ident_a u ident_b"))
Output: &plot.DatafileModifiersListItem{ · Case: 7, · Token: example112.go:1:14: IDENTIFIER "u", · UsingList: &plot.UsingList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example112.go:1:16: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case08) ¶
fmt.Println(exampleAST(113, "plot ident_a u ident_b ident_c"))
Output: &plot.DatafileModifiersListItem{ · Case: 8, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example113.go:1:24: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example113.go:1:14: IDENTIFIER "u", · UsingList: &plot.UsingList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example113.go:1:16: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case09) ¶
fmt.Println(exampleAST(114, "plot ident_a using ident_b"))
Output: &plot.DatafileModifiersListItem{ · Case: 9, · Token: example114.go:1:14: IDENTIFIER "using", · UsingList: &plot.UsingList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example114.go:1:20: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case10) ¶
fmt.Println(exampleAST(115, "plot ident_a using ident_b ident_c"))
Output: &plot.DatafileModifiersListItem{ · Case: 10, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example115.go:1:28: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example115.go:1:14: IDENTIFIER "using", · UsingList: &plot.UsingList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example115.go:1:20: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case11) ¶
fmt.Println(exampleAST(116, "plot ident_a sm acsplines"))
Output: &plot.DatafileModifiersListItem{ · Case: 11, · Smoothing: &plot.Smoothing{ · · Token: example116.go:1:17: IDENTIFIER "acsplines", · }, · Token: example116.go:1:14: IDENTIFIER "sm", }
Example (Case12) ¶
fmt.Println(exampleAST(117, "plot ident_a smooth acsplines"))
Output: &plot.DatafileModifiersListItem{ · Case: 12, · Smoothing: &plot.Smoothing{ · · Token: example117.go:1:21: IDENTIFIER "acsplines", · }, · Token: example117.go:1:14: IDENTIFIER "smooth", }
Example (Case13) ¶
fmt.Println(exampleAST(118, "plot ident_a volatile"))
Output: &plot.DatafileModifiersListItem{ · Case: 13, · Token: example118.go:1:14: IDENTIFIER "volatile", }
Example (Case14) ¶
fmt.Println(exampleAST(119, "plot ident_a noautoscale"))
Output: &plot.DatafileModifiersListItem{ · Case: 14, · Token: example119.go:1:14: IDENTIFIER "noautoscale", }
Example (Case15) ¶
fmt.Println(exampleAST(120, "plot ident_a columnheaders"))
Output: &plot.DatafileModifiersListItem{ · Case: 15, · Token: example120.go:1:14: IDENTIFIER "columnheaders", }
Example (Case16) ¶
fmt.Println(exampleAST(121, "plot ident_a rowheaders"))
Output: &plot.DatafileModifiersListItem{ · Case: 16, · Token: example121.go:1:14: IDENTIFIER "rowheaders", }
func (*DatafileModifiersListItem) Pos ¶
func (n *DatafileModifiersListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*DatafileModifiersListItem) String ¶
func (n *DatafileModifiersListItem) String() string
String implements fmt.Stringer.
type DatafileModifiersListOpt ¶
type DatafileModifiersListOpt struct {
DatafileModifiersList *DatafileModifiersList
}
DatafileModifiersListOpt represents data reduced by productions:
DatafileModifiersListOpt: /* empty */ | DatafileModifiersList // Case 1
Example ¶
fmt.Println(exampleAST(122, "set pal file ident_a") == (*DatafileModifiersListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(123, "fit ident_a ident_b binary"))
Output: &plot.DatafileModifiersListOpt{ · DatafileModifiersList: &plot.DatafileModifiersList{ · · DatafileModifiersListItem: &plot.DatafileModifiersListItem{ · · · Token: example123.go:1:21: IDENTIFIER "binary", · · }, · }, }
func (*DatafileModifiersListOpt) Pos ¶
func (n *DatafileModifiersListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*DatafileModifiersListOpt) String ¶
func (n *DatafileModifiersListOpt) String() string
String implements fmt.Stringer.
type Do ¶
type Do struct { IterationSpecifier *IterationSpecifier StatementList *StatementList Token xc.Token Token2 xc.Token Token3 xc.Token }
Do represents data reduced by production:
Do: "do" IterationSpecifier '{' StatementList '}'
Example ¶
fmt.Println(exampleAST(125, "do for [ ident_a : * ] { }"))
Output: &plot.Do{ · IterationSpecifier: &plot.IterationSpecifier{ · · Case: 2, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example125.go:1:10: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Token: example125.go:1:4: IDENTIFIER "for", · · Token2: example125.go:1:8: '[' "[", · · Token3: example125.go:1:18: ':' ":", · · Token4: example125.go:1:20: '*' "*", · · Token5: example125.go:1:22: ']' "]", · }, · Token: example125.go:1:1: IDENTIFIER "do", · Token2: example125.go:1:24: '{' "{", · Token3: example125.go:1:26: '}' "}", }
type Else ¶
Else represents data reduced by production:
Else: "else" Statement
Example ¶
fmt.Println(exampleAST(126, "else"))
Output: &plot.Else{ · Token: example126.go:1:1: IDENTIFIER "else", }
type EndConditionList ¶
type EndConditionList struct { Case int EndConditionList *EndConditionList EndConditionListItem *EndConditionListItem Token xc.Token }
EndConditionList represents data reduced by productions:
EndConditionList: EndConditionListItem | EndConditionList ',' EndConditionListItem // Case 1
Example ¶
fmt.Println(exampleAST(127, "pause mouse any"))
Output: &plot.EndConditionList{ · EndConditionListItem: &plot.EndConditionListItem{ · · Token: example127.go:1:13: IDENTIFIER "any", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(128, "pause mouse any , any"))
Output: &plot.EndConditionList{ · EndConditionList: &plot.EndConditionList{ · · Case: 1, · · EndConditionListItem: &plot.EndConditionListItem{ · · · Token: example128.go:1:19: IDENTIFIER "any", · · }, · · Token: example128.go:1:17: ',' ",", · }, · EndConditionListItem: &plot.EndConditionListItem{ · · Token: example128.go:1:13: IDENTIFIER "any", · }, }
func (*EndConditionList) Pos ¶
func (n *EndConditionList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*EndConditionList) String ¶
func (n *EndConditionList) String() string
String implements fmt.Stringer.
type EndConditionListItem ¶
EndConditionListItem represents data reduced by productions:
EndConditionListItem: "any" | "button1" // Case 1 | "button2" // Case 2 | "button3" // Case 3 | "close" // Case 4 | "keypress" // Case 5 | "key" // Case 6
Example ¶
fmt.Println(exampleAST(129, "pause mouse any"))
Output: &plot.EndConditionListItem{ · Token: example129.go:1:13: IDENTIFIER "any", }
Example (Case1) ¶
fmt.Println(exampleAST(130, "pause mouse button1"))
Output: &plot.EndConditionListItem{ · Case: 1, · Token: example130.go:1:13: IDENTIFIER "button1", }
Example (Case2) ¶
fmt.Println(exampleAST(131, "pause mouse button2"))
Output: &plot.EndConditionListItem{ · Case: 2, · Token: example131.go:1:13: IDENTIFIER "button2", }
Example (Case3) ¶
fmt.Println(exampleAST(132, "pause mouse button3"))
Output: &plot.EndConditionListItem{ · Case: 3, · Token: example132.go:1:13: IDENTIFIER "button3", }
Example (Case4) ¶
fmt.Println(exampleAST(133, "pause mouse close"))
Output: &plot.EndConditionListItem{ · Case: 4, · Token: example133.go:1:13: IDENTIFIER "close", }
Example (Case5) ¶
fmt.Println(exampleAST(134, "pause mouse keypress"))
Output: &plot.EndConditionListItem{ · Case: 5, · Token: example134.go:1:13: IDENTIFIER "keypress", }
Example (Case6) ¶
fmt.Println(exampleAST(135, "pause mouse key"))
Output: &plot.EndConditionListItem{ · Case: 6, · Token: example135.go:1:13: IDENTIFIER "key", }
func (*EndConditionListItem) Pos ¶
func (n *EndConditionListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*EndConditionListItem) String ¶
func (n *EndConditionListItem) String() string
String implements fmt.Stringer.
type Endianess ¶
Endianess represents data reduced by productions:
Endianess: "big" | "default" // Case 1 | "little" // Case 2 | "middle" // Case 3 | "swap" // Case 4
Example ¶
fmt.Println(exampleAST(136, "plot ident_a binary endian = big"))
Output: &plot.Endianess{ · Token: example136.go:1:30: IDENTIFIER "big", }
Example (Case1) ¶
fmt.Println(exampleAST(137, "plot ident_a binary endian = default"))
Output: &plot.Endianess{ · Case: 1, · Token: example137.go:1:30: IDENTIFIER "default", }
Example (Case2) ¶
fmt.Println(exampleAST(138, "plot ident_a binary endian = little"))
Output: &plot.Endianess{ · Case: 2, · Token: example138.go:1:30: IDENTIFIER "little", }
Example (Case3) ¶
fmt.Println(exampleAST(139, "plot ident_a binary endian = middle"))
Output: &plot.Endianess{ · Case: 3, · Token: example139.go:1:30: IDENTIFIER "middle", }
Example (Case4) ¶
fmt.Println(exampleAST(140, "plot ident_a binary endian = swap"))
Output: &plot.Endianess{ · Case: 4, · Token: example140.go:1:30: IDENTIFIER "swap", }
type Eval ¶
type Eval struct { Expression *Expression Token xc.Token }
Eval represents data reduced by production:
Eval: "eval" Expression
Example ¶
fmt.Println(exampleAST(141, "eval ident_a"))
Output: &plot.Eval{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example141.go:1:6: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example141.go:1:1: IDENTIFIER "eval", }
type Exit ¶
Exit represents data reduced by productions:
Exit: "exit" | "exit" "error" Expression // Case 1 | "exit" "gnuplot" // Case 2
Example ¶
fmt.Println(exampleAST(142, "exit"))
Output: &plot.Exit{ · Token: example142.go:1:1: IDENTIFIER "exit", }
Example (Case1) ¶
fmt.Println(exampleAST(143, "exit error ident_a"))
Output: &plot.Exit{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example143.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example143.go:1:1: IDENTIFIER "exit", · Token2: example143.go:1:6: IDENTIFIER "error", }
Example (Case2) ¶
fmt.Println(exampleAST(144, "exit gnuplot"))
Output: &plot.Exit{ · Case: 2, · Token: example144.go:1:1: IDENTIFIER "exit", · Token2: example144.go:1:6: IDENTIFIER "gnuplot", }
type Expression ¶
type Expression struct { Case int Expression *Expression Expression2 *Expression Expression3 *Expression Token xc.Token Token2 xc.Token UnaryExpression *UnaryExpression }
Expression represents data reduced by productions:
Expression: Expression "!=" Expression | Expression "&&" Expression // Case 1 | Expression "**" Expression // Case 2 | Expression "<<" Expression // Case 3 | Expression "<=" Expression // Case 4 | Expression "==" Expression // Case 5 | Expression ">=" Expression // Case 6 | Expression ">>" Expression // Case 7 | Expression "eq" Expression // Case 8 | Expression "ne" Expression // Case 9 | Expression "||" Expression // Case 10 | Expression '%' Expression // Case 11 | Expression '&' Expression // Case 12 | Expression '*' Expression // Case 13 | Expression '+' Expression // Case 14 | Expression '-' Expression // Case 15 | Expression '.' Expression // Case 16 | Expression '/' Expression // Case 17 | Expression '<' Expression // Case 18 | Expression '=' Expression // Case 19 | Expression '>' Expression // Case 20 | Expression '?' Expression ':' Expression // Case 21 | Expression '^' Expression // Case 22 | Expression '|' Expression // Case 23 | UnaryExpression // Case 24
Example ¶
fmt.Println(exampleAST(145, "pause ident_a != ident_b"))
Output: &plot.Expression{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example145.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example145.go:1:18: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example145.go:1:15: NOTEQ "!=", }
Example (Case01) ¶
fmt.Println(exampleAST(146, "pause ident_a && ident_b"))
Output: &plot.Expression{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example146.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example146.go:1:18: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example146.go:1:15: ANDAND "&&", }
Example (Case02) ¶
fmt.Println(exampleAST(147, "pause ident_a ** ident_b"))
Output: &plot.Expression{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example147.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example147.go:1:18: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example147.go:1:15: EXP "**", }
Example (Case03) ¶
fmt.Println(exampleAST(148, "eval ident_a << ident_b"))
Output: &plot.Expression{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example148.go:1:6: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example148.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example148.go:1:14: LSH "<<", }
Example (Case04) ¶
fmt.Println(exampleAST(149, "pause ident_a <= ident_b"))
Output: &plot.Expression{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example149.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example149.go:1:18: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example149.go:1:15: LEQ "<=", }
Example (Case05) ¶
fmt.Println(exampleAST(150, "pause ident_a == ident_b"))
Output: &plot.Expression{ · Case: 5, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example150.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example150.go:1:18: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example150.go:1:15: EQEQ "==", }
Example (Case06) ¶
fmt.Println(exampleAST(151, "pause ident_a >= ident_b"))
Output: &plot.Expression{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example151.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example151.go:1:18: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example151.go:1:15: GEQ ">=", }
Example (Case07) ¶
fmt.Println(exampleAST(152, "pause ident_a >> ident_b"))
Output: &plot.Expression{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example152.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example152.go:1:18: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example152.go:1:15: RSH ">>", }
Example (Case08) ¶
fmt.Println(exampleAST(153, "pause ident_a eq ident_b"))
Output: &plot.Expression{ · Case: 8, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example153.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example153.go:1:18: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example153.go:1:15: IDENTIFIER "eq", }
Example (Case09) ¶
fmt.Println(exampleAST(154, "pause ident_a ne ident_b"))
Output: &plot.Expression{ · Case: 9, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example154.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example154.go:1:18: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example154.go:1:15: IDENTIFIER "ne", }
Example (Case10) ¶
fmt.Println(exampleAST(155, "pause ident_a || ident_b"))
Output: &plot.Expression{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example155.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example155.go:1:18: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example155.go:1:15: OROR "||", }
Example (Case11) ¶
fmt.Println(exampleAST(156, "plot ident_a % ident_b"))
Output: &plot.Expression{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example156.go:1:6: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example156.go:1:16: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example156.go:1:14: '%' "%", }
Example (Case12) ¶
fmt.Println(exampleAST(157, "plot ident_a & ident_b"))
Output: &plot.Expression{ · Case: 12, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example157.go:1:6: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example157.go:1:16: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example157.go:1:14: '&' "&", }
Example (Case13) ¶
fmt.Println(exampleAST(158, "plot ident_a * ident_b"))
Output: &plot.Expression{ · Case: 13, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example158.go:1:6: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example158.go:1:16: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example158.go:1:14: '*' "*", }
Example (Case14) ¶
fmt.Println(exampleAST(159, "plot ident_a + ident_b"))
Output: &plot.Expression{ · Case: 14, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example159.go:1:6: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example159.go:1:16: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example159.go:1:14: '+' "+", }
Example (Case15) ¶
fmt.Println(exampleAST(160, "pause ident_a - ident_b"))
Output: &plot.Expression{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example160.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example160.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example160.go:1:15: '-' "-", }
Example (Case16) ¶
fmt.Println(exampleAST(161, "pause ident_a . ident_b"))
Output: &plot.Expression{ · Case: 16, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example161.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example161.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example161.go:1:15: '.' ".", }
Example (Case17) ¶
fmt.Println(exampleAST(162, "pause ident_a / ident_b"))
Output: &plot.Expression{ · Case: 17, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example162.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example162.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example162.go:1:15: '/' "/", }
Example (Case18) ¶
fmt.Println(exampleAST(163, "pause ident_a < ident_b"))
Output: &plot.Expression{ · Case: 18, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example163.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example163.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example163.go:1:15: '<' "<", }
Example (Case19) ¶
fmt.Println(exampleAST(164, "pause ident_a = ident_b"))
Output: &plot.Expression{ · Case: 19, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example164.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example164.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example164.go:1:15: '=' "=", }
Example (Case20) ¶
fmt.Println(exampleAST(165, "update ident_a > ident_b"))
Output: &plot.Expression{ · Case: 20, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example165.go:1:8: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example165.go:1:18: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example165.go:1:16: '>' ">", }
Example (Case21) ¶
fmt.Println(exampleAST(166, "pause ident_a ? ident_b : ident_c"))
Output: &plot.Expression{ · Case: 21, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example166.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example166.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression3: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example166.go:1:27: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example166.go:1:15: '?' "?", · Token2: example166.go:1:25: ':' ":", }
Example (Case22) ¶
fmt.Println(exampleAST(167, "pause ident_a ^ ident_b"))
Output: &plot.Expression{ · Case: 22, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example167.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example167.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example167.go:1:15: '^' "^", }
Example (Case23) ¶
fmt.Println(exampleAST(168, "pause ident_a | ident_b"))
Output: &plot.Expression{ · Case: 23, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example168.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example168.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example168.go:1:15: '|' "|", }
Example (Case24) ¶
fmt.Println(exampleAST(169, "pause ident_a"))
Output: &plot.Expression{ · Case: 24, · UnaryExpression: &plot.UnaryExpression{ · · PrimaryExpression: &plot.PrimaryExpression{ · · · Operand: &plot.Operand{ · · · · Case: 1, · · · · Token: example169.go:1:7: IDENTIFIER "ident_a", · · · }, · · }, · }, }
func (*Expression) Pos ¶
func (n *Expression) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
type ExpressionList ¶
type ExpressionList struct { Case int Expression *Expression ExpressionList *ExpressionList Token xc.Token }
ExpressionList represents data reduced by productions:
ExpressionList: Expression | ExpressionList ',' Expression // Case 1
Example ¶
fmt.Println(exampleAST(170, "print ident_a"))
Output: &plot.ExpressionList{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example170.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(171, "print ident_a , ident_b"))
Output: &plot.ExpressionList{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example171.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · ExpressionList: &plot.ExpressionList{ · · Case: 1, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example171.go:1:17: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · · Token: example171.go:1:15: ',' ",", · }, }
func (*ExpressionList) Pos ¶
func (n *ExpressionList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*ExpressionList) String ¶
func (n *ExpressionList) String() string
String implements fmt.Stringer.
type ExpressionOpt ¶
type ExpressionOpt struct {
Expression *Expression
}
ExpressionOpt represents data reduced by productions:
ExpressionOpt: /* empty */ | Expression // Case 1
Example ¶
fmt.Println(exampleAST(176, "unset arrow") == (*ExpressionOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(177, "unset arrow ident_a"))
Output: &plot.ExpressionOpt{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example177.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*ExpressionOpt) Pos ¶
func (n *ExpressionOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*ExpressionOpt) String ¶
func (n *ExpressionOpt) String() string
String implements fmt.Stringer.
type ExpressionOptList ¶
type ExpressionOptList struct { Case int Expression *Expression ExpressionOptList *ExpressionOptList Token xc.Token }
ExpressionOptList represents data reduced by productions:
ExpressionOptList: /* empty */ | Expression // Case 1 | ExpressionOptList ',' // Case 2 | ExpressionOptList ',' Expression // Case 3
Example ¶
fmt.Println(exampleAST(178, "set vi") == (*ExpressionOptList)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(179, "set vi ident_a"))
Output: &plot.ExpressionOptList{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example179.go:1:8: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case2) ¶
fmt.Println(exampleAST(180, "set vi ,"))
Output: &plot.ExpressionOptList{ · Case: 2, · Token: example180.go:1:8: ',' ",", }
Example (Case3) ¶
fmt.Println(exampleAST(181, "set vi , ident_a"))
Output: &plot.ExpressionOptList{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example181.go:1:10: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example181.go:1:8: ',' ",", }
func (*ExpressionOptList) Pos ¶
func (n *ExpressionOptList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*ExpressionOptList) String ¶
func (n *ExpressionOptList) String() string
String implements fmt.Stringer.
type ExpressionUnitList ¶
type ExpressionUnitList struct { Case int Expression *Expression ExpressionUnitList *ExpressionUnitList Token xc.Token Unit *Unit }
ExpressionUnitList represents data reduced by productions:
ExpressionUnitList: Expression | Expression Unit // Case 1 | ExpressionUnitList ',' Expression // Case 2 | ExpressionUnitList ',' Expression Unit // Case 3
Example ¶
fmt.Println(exampleAST(172, "set term pstex size ident_a"))
Output: &plot.ExpressionUnitList{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example172.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(173, "set term pstex size ident_a bp"))
Output: &plot.ExpressionUnitList{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example173.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Unit: &plot.Unit{ · · Case: 6, · · Token: example173.go:1:29: IDENTIFIER "bp", · }, }
Example (Case2) ¶
fmt.Println(exampleAST(174, "set term pstex size ident_a , ident_b"))
Output: &plot.ExpressionUnitList{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example174.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · ExpressionUnitList: &plot.ExpressionUnitList{ · · Case: 2, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example174.go:1:31: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · · Token: example174.go:1:29: ',' ",", · }, }
Example (Case3) ¶
fmt.Println(exampleAST(175, "set term pstex size ident_a , ident_b bp"))
Output: &plot.ExpressionUnitList{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example175.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · ExpressionUnitList: &plot.ExpressionUnitList{ · · Case: 3, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example175.go:1:31: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · · Token: example175.go:1:29: ',' ",", · · Unit: &plot.Unit{ · · · Case: 6, · · · Token: example175.go:1:39: IDENTIFIER "bp", · · }, · }, }
func (*ExpressionUnitList) Pos ¶
func (n *ExpressionUnitList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*ExpressionUnitList) String ¶
func (n *ExpressionUnitList) String() string
String implements fmt.Stringer.
type Fit ¶
type Fit struct { DatafileModifiersListOpt *DatafileModifiersListOpt Expression *Expression ExpressionList *ExpressionList FitOptionsListOpt *FitOptionsListOpt RangesOpt *RangesOpt SimpleExpression *SimpleExpression Token xc.Token Token2 xc.Token }
Fit represents data reduced by production:
Fit: "fit" RangesOpt Expression SimpleExpression DatafileModifiersListOpt FitOptionsListOpt "via" ExpressionList
Example ¶
fmt.Println(exampleAST(182, "fit ident_a ident_b via ident_c"))
Output: &plot.Fit{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example182.go:1:5: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example182.go:1:25: IDENTIFIER "ident_c", · · · · · }, · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example182.go:1:13: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example182.go:1:1: IDENTIFIER "fit", · Token2: example182.go:1:21: IDENTIFIER "via", }
type FitOptionsList ¶
type FitOptionsList struct { Case int FitOptionsList *FitOptionsList FitOptionsListItem *FitOptionsListItem }
FitOptionsList represents data reduced by productions:
FitOptionsList: FitOptionsListItem | FitOptionsList FitOptionsListItem // Case 1
Example ¶
fmt.Println(exampleAST(183, "fit ident_a ident_b unitweights errors"))
Output: &plot.FitOptionsList{ · FitOptionsListItem: &plot.FitOptionsListItem{ · · Token: example183.go:1:21: IDENTIFIER "unitweights", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(184, "fit ident_a ident_b unitweights unitweights errors"))
Output: &plot.FitOptionsList{ · FitOptionsList: &plot.FitOptionsList{ · · Case: 1, · · FitOptionsListItem: &plot.FitOptionsListItem{ · · · Token: example184.go:1:33: IDENTIFIER "unitweights", · · }, · }, · FitOptionsListItem: &plot.FitOptionsListItem{ · · Token: example184.go:1:21: IDENTIFIER "unitweights", · }, }
func (*FitOptionsList) Pos ¶
func (n *FitOptionsList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*FitOptionsList) String ¶
func (n *FitOptionsList) String() string
String implements fmt.Stringer.
type FitOptionsListItem ¶
type FitOptionsListItem struct { Case int IdentifierList *IdentifierList Token xc.Token }
FitOptionsListItem represents data reduced by productions:
FitOptionsListItem: "unitweights" | "xerror" // Case 1 | "xyerror" // Case 2 | "yerror" // Case 3 | "errors" IdentifierList // Case 4
Example ¶
fmt.Println(exampleAST(185, "fit ident_a ident_b unitweights errors"))
Output: &plot.FitOptionsListItem{ · Token: example185.go:1:21: IDENTIFIER "unitweights", }
Example (Case1) ¶
fmt.Println(exampleAST(186, "fit ident_a ident_b xerror errors"))
Output: &plot.FitOptionsListItem{ · Case: 1, · Token: example186.go:1:21: IDENTIFIER "xerror", }
Example (Case2) ¶
fmt.Println(exampleAST(187, "fit ident_a ident_b xyerror errors"))
Output: &plot.FitOptionsListItem{ · Case: 2, · Token: example187.go:1:21: IDENTIFIER "xyerror", }
Example (Case3) ¶
fmt.Println(exampleAST(188, "fit ident_a ident_b yerror errors"))
Output: &plot.FitOptionsListItem{ · Case: 3, · Token: example188.go:1:21: IDENTIFIER "yerror", }
Example (Case4) ¶
fmt.Println(exampleAST(189, "fit ident_a ident_b errors ident_c errors"))
Output: &plot.FitOptionsListItem{ · Case: 4, · IdentifierList: &plot.IdentifierList{ · · Token: example189.go:1:28: IDENTIFIER "ident_c", · }, · Token: example189.go:1:21: IDENTIFIER "errors", }
func (*FitOptionsListItem) Pos ¶
func (n *FitOptionsListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*FitOptionsListItem) String ¶
func (n *FitOptionsListItem) String() string
String implements fmt.Stringer.
type FitOptionsListOpt ¶
type FitOptionsListOpt struct {
FitOptionsList *FitOptionsList
}
FitOptionsListOpt represents data reduced by productions:
FitOptionsListOpt: /* empty */ | FitOptionsList // Case 1
Example ¶
fmt.Println(exampleAST(190, "fit ident_a ident_b via") == (*FitOptionsListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(191, "fit ident_a ident_b unitweights via"))
Output: &plot.FitOptionsListOpt{ · FitOptionsList: &plot.FitOptionsList{ · · FitOptionsListItem: &plot.FitOptionsListItem{ · · · Token: example191.go:1:21: IDENTIFIER "unitweights", · · }, · }, }
func (*FitOptionsListOpt) Pos ¶
func (n *FitOptionsListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*FitOptionsListOpt) String ¶
func (n *FitOptionsListOpt) String() string
String implements fmt.Stringer.
type FunctionDefinition ¶
type FunctionDefinition struct { Expression *Expression IdentifierList *IdentifierList Token xc.Token Token2 xc.Token Token3 xc.Token Token4 xc.Token }
FunctionDefinition represents data reduced by production:
FunctionDefinition: IDENTIFIER '(' IdentifierList ')' '=' Expression
Example ¶
fmt.Println(exampleAST(192, "ident_a ( ident_b ) = ident_c"))
Output: &plot.FunctionDefinition{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example192.go:1:23: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · IdentifierList: &plot.IdentifierList{ · · Token: example192.go:1:11: IDENTIFIER "ident_b", · }, · Token: example192.go:1:1: IDENTIFIER "ident_a", · Token2: example192.go:1:9: '(' "(", · Token3: example192.go:1:19: ')' ")", · Token4: example192.go:1:21: '=' "=", }
func (*FunctionDefinition) Pos ¶
func (n *FunctionDefinition) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*FunctionDefinition) String ¶
func (n *FunctionDefinition) String() string
String implements fmt.Stringer.
type IdentifierList ¶
type IdentifierList struct { Case int IdentifierList *IdentifierList Token xc.Token Token2 xc.Token }
IdentifierList represents data reduced by productions:
IdentifierList: IDENTIFIER | IdentifierList ',' IDENTIFIER // Case 1
Example ¶
fmt.Println(exampleAST(193, "ident_a ( ident_b"))
Output: &plot.IdentifierList{ · Token: example193.go:1:11: IDENTIFIER "ident_b", }
Example (Case1) ¶
fmt.Println(exampleAST(194, "ident_a ( ident_b , ident_c"))
Output: &plot.IdentifierList{ · IdentifierList: &plot.IdentifierList{ · · Case: 1, · · Token: example194.go:1:19: ',' ",", · · Token2: example194.go:1:21: IDENTIFIER "ident_c", · }, · Token: example194.go:1:11: IDENTIFIER "ident_b", }
func (*IdentifierList) Pos ¶
func (n *IdentifierList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*IdentifierList) String ¶
func (n *IdentifierList) String() string
String implements fmt.Stringer.
type IdentifierOptList ¶
type IdentifierOptList struct { Case int IdentifierOptList *IdentifierOptList Token xc.Token Token2 xc.Token }
IdentifierOptList represents data reduced by productions:
IdentifierOptList: /* empty */ | IDENTIFIER // Case 1 | IdentifierOptList ',' // Case 2 | IdentifierOptList ',' IDENTIFIER // Case 3
Example ¶
fmt.Println(exampleAST(195, "set dummy") == (*IdentifierOptList)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(196, "set dummy ident_a"))
Output: &plot.IdentifierOptList{ · Case: 1, · Token: example196.go:1:11: IDENTIFIER "ident_a", }
Example (Case2) ¶
fmt.Println(exampleAST(197, "set dummy ,"))
Output: &plot.IdentifierOptList{ · Case: 2, · Token: example197.go:1:11: ',' ",", }
Example (Case3) ¶
fmt.Println(exampleAST(198, "set dummy , ident_a"))
Output: &plot.IdentifierOptList{ · Case: 3, · Token: example198.go:1:11: ',' ",", · Token2: example198.go:1:13: IDENTIFIER "ident_a", }
func (*IdentifierOptList) Pos ¶
func (n *IdentifierOptList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*IdentifierOptList) String ¶
func (n *IdentifierOptList) String() string
String implements fmt.Stringer.
type If ¶
type If struct { Case int Expression *Expression IfHeader *IfHeader Statement *Statement StatementList *StatementList Token xc.Token Token2 xc.Token Token3 xc.Token }
If represents data reduced by productions:
If: IfHeader | IfHeader "else" '{' StatementList '}' // Case 1 | "if" '(' Expression ')' Statement // Case 2
Example ¶
fmt.Println(exampleAST(199, "if ( ident_a ) { }"))
Output: &plot.If{ · IfHeader: &plot.IfHeader{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example199.go:1:6: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Token: example199.go:1:1: IDENTIFIER "if", · · Token2: example199.go:1:4: '(' "(", · · Token3: example199.go:1:14: ')' ")", · · Token4: example199.go:1:16: '{' "{", · · Token5: example199.go:1:18: '}' "}", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(201, "if ( ident_a ) { } else { }"))
Output: &plot.If{ · Case: 1, · IfHeader: &plot.IfHeader{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example201.go:1:6: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Token: example201.go:1:1: IDENTIFIER "if", · · Token2: example201.go:1:4: '(' "(", · · Token3: example201.go:1:14: ')' ")", · · Token4: example201.go:1:16: '{' "{", · · Token5: example201.go:1:18: '}' "}", · }, · Token: example201.go:1:20: IDENTIFIER "else", · Token2: example201.go:1:25: '{' "{", · Token3: example201.go:1:27: '}' "}", }
Example (Case2) ¶
fmt.Println(exampleAST(202, "if ( ident_a )"))
Output: &plot.If{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example202.go:1:6: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example202.go:1:1: IDENTIFIER "if", · Token2: example202.go:1:4: '(' "(", · Token3: example202.go:1:14: ')' ")", }
type IfHeader ¶
type IfHeader struct { Expression *Expression StatementList *StatementList Token xc.Token Token2 xc.Token Token3 xc.Token Token4 xc.Token Token5 xc.Token }
IfHeader represents data reduced by production:
IfHeader: "if" '(' Expression ')' '{' StatementList '}'
Example ¶
fmt.Println(exampleAST(204, "if ( ident_a ) { }"))
Output: &plot.IfHeader{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example204.go:1:6: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example204.go:1:1: IDENTIFIER "if", · Token2: example204.go:1:4: '(' "(", · Token3: example204.go:1:14: ')' ")", · Token4: example204.go:1:16: '{' "{", · Token5: example204.go:1:18: '}' "}", }
type Import ¶
type Import struct { Expression *Expression IdentifierList *IdentifierList Token xc.Token Token2 xc.Token Token3 xc.Token Token4 xc.Token Token5 xc.Token }
Import represents data reduced by production:
Import: "import" IDENTIFIER '(' IdentifierList ')' "from" Expression
Example ¶
fmt.Println(exampleAST(205, "import ident_a ( ident_b ) from ident_c"))
Output: &plot.Import{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example205.go:1:33: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · IdentifierList: &plot.IdentifierList{ · · Token: example205.go:1:18: IDENTIFIER "ident_b", · }, · Token: example205.go:1:1: IDENTIFIER "import", · Token2: example205.go:1:8: IDENTIFIER "ident_a", · Token3: example205.go:1:16: '(' "(", · Token4: example205.go:1:26: ')' ")", · Token5: example205.go:1:28: IDENTIFIER "from", }
type IterationSpecifier ¶
type IterationSpecifier struct { Case int Expression *Expression Expression2 *Expression Expression3 *Expression Token xc.Token Token2 xc.Token Token3 xc.Token Token4 xc.Token Token5 xc.Token }
IterationSpecifier represents data reduced by productions:
IterationSpecifier: "for" '[' Expression ':' Expression ':' Expression ']' | "for" '[' Expression ':' Expression ']' // Case 1 | "for" '[' Expression ':' '*' ']' // Case 2 | "for" '[' Expression "in" Expression ']' // Case 3
Example ¶
fmt.Println(exampleAST(206, "splot for [ ident_a : ident_b : ident_c ] !"))
Output: &plot.IterationSpecifier{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example206.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example206.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression3: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example206.go:1:33: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example206.go:1:7: IDENTIFIER "for", · Token2: example206.go:1:11: '[' "[", · Token3: example206.go:1:21: ':' ":", · Token4: example206.go:1:31: ':' ":", · Token5: example206.go:1:41: ']' "]", }
Example (Case1) ¶
fmt.Println(exampleAST(207, "splot for [ ident_a : ident_b ] !"))
Output: &plot.IterationSpecifier{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example207.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example207.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example207.go:1:7: IDENTIFIER "for", · Token2: example207.go:1:11: '[' "[", · Token3: example207.go:1:21: ':' ":", · Token4: example207.go:1:31: ']' "]", }
Example (Case2) ¶
fmt.Println(exampleAST(208, "splot for [ ident_a : * ] !"))
Output: &plot.IterationSpecifier{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example208.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example208.go:1:7: IDENTIFIER "for", · Token2: example208.go:1:11: '[' "[", · Token3: example208.go:1:21: ':' ":", · Token4: example208.go:1:23: '*' "*", · Token5: example208.go:1:25: ']' "]", }
Example (Case3) ¶
fmt.Println(exampleAST(209, "splot for [ ident_a in ident_b ] !"))
Output: &plot.IterationSpecifier{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example209.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example209.go:1:24: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example209.go:1:7: IDENTIFIER "for", · Token2: example209.go:1:11: '[' "[", · Token3: example209.go:1:21: IDENTIFIER "in", · Token4: example209.go:1:32: ']' "]", }
func (*IterationSpecifier) Pos ¶
func (n *IterationSpecifier) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*IterationSpecifier) String ¶
func (n *IterationSpecifier) String() string
String implements fmt.Stringer.
type IterationSpecifierOpt ¶
type IterationSpecifierOpt struct {
IterationSpecifier *IterationSpecifier
}
IterationSpecifierOpt represents data reduced by productions:
IterationSpecifierOpt: /* empty */ | IterationSpecifier // Case 1
Example ¶
fmt.Println(exampleAST(210, "plot !") == (*IterationSpecifierOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(211, "set for [ ident_a : * ] !"))
Output: &plot.IterationSpecifierOpt{ · IterationSpecifier: &plot.IterationSpecifier{ · · Case: 2, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example211.go:1:11: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Token: example211.go:1:5: IDENTIFIER "for", · · Token2: example211.go:1:9: '[' "[", · · Token3: example211.go:1:19: ':' ":", · · Token4: example211.go:1:21: '*' "*", · · Token5: example211.go:1:23: ']' "]", · }, }
func (*IterationSpecifierOpt) Pos ¶
func (n *IterationSpecifierOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*IterationSpecifierOpt) String ¶
func (n *IterationSpecifierOpt) String() string
String implements fmt.Stringer.
type LineStyleList ¶
type LineStyleList struct { Case int LineStyleList *LineStyleList LineStyleListItem *LineStyleListItem }
LineStyleList represents data reduced by productions:
LineStyleList: LineStyleListItem | LineStyleList LineStyleListItem // Case 1
Example ¶
fmt.Println(exampleAST(212, "set colorbox border nocontours"))
Output: &plot.LineStyleList{ · LineStyleListItem: &plot.LineStyleListItem{ · · Case: 15, · · Token: example212.go:1:21: IDENTIFIER "nocontours", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(213, "set linetype ident_a nocontours nocontours"))
Output: &plot.LineStyleList{ · LineStyleList: &plot.LineStyleList{ · · Case: 1, · · LineStyleListItem: &plot.LineStyleListItem{ · · · Case: 15, · · · Token: example213.go:1:33: IDENTIFIER "nocontours", · · }, · }, · LineStyleListItem: &plot.LineStyleListItem{ · · Case: 15, · · Token: example213.go:1:22: IDENTIFIER "nocontours", · }, }
func (*LineStyleList) Pos ¶
func (n *LineStyleList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*LineStyleList) String ¶
func (n *LineStyleList) String() string
String implements fmt.Stringer.
type LineStyleListItem ¶
type LineStyleListItem struct { Case int ColorSpec *ColorSpec DashTypeSpec *DashTypeSpec Expression *Expression SetStyleFillSpecList *SetStyleFillSpecList Token xc.Token }
LineStyleListItem represents data reduced by productions:
LineStyleListItem: "linestyle" Expression | "ls" Expression // Case 1 | "linetype" ColorSpec // Case 2 | "lt" ColorSpec // Case 3 | "linewidth" Expression // Case 4 | "lw" Expression // Case 5 | "linecolor" ColorSpec // Case 6 | "lc" ColorSpec // Case 7 | "pointtype" Expression // Case 8 | "pt" Expression // Case 9 | "pointsize" Expression // Case 10 | "ps" Expression // Case 11 | "fill" SetStyleFillSpecList // Case 12 | "fs" SetStyleFillSpecList // Case 13 | "nohidden3d" // Case 14 | "nocontours" // Case 15 | "nosurface" // Case 16 | "palette" // Case 17 | "dashtype" DashTypeSpec // Case 18 | "dt" DashTypeSpec // Case 19 | "pi" Expression // Case 20 | "pointinterval" Expression // Case 21 | "tc" ColorSpec // Case 22
Example ¶
fmt.Println(exampleAST(214, "plot ident_a linestyle ident_b"))
Output: &plot.LineStyleListItem{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example214.go:1:24: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example214.go:1:14: IDENTIFIER "linestyle", }
Example (Case01) ¶
fmt.Println(exampleAST(215, "plot ident_a ls ident_b"))
Output: &plot.LineStyleListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example215.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example215.go:1:14: IDENTIFIER "ls", }
Example (Case02) ¶
fmt.Println(exampleAST(216, "plot ident_a linetype ident_b"))
Output: &plot.LineStyleListItem{ · Case: 2, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example216.go:1:23: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example216.go:1:14: IDENTIFIER "linetype", }
Example (Case03) ¶
fmt.Println(exampleAST(217, "plot ident_a lt ident_b"))
Output: &plot.LineStyleListItem{ · Case: 3, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example217.go:1:17: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example217.go:1:14: IDENTIFIER "lt", }
Example (Case04) ¶
fmt.Println(exampleAST(218, "plot ident_a linewidth ident_b"))
Output: &plot.LineStyleListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example218.go:1:24: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example218.go:1:14: IDENTIFIER "linewidth", }
Example (Case05) ¶
fmt.Println(exampleAST(219, "plot ident_a lw ident_b"))
Output: &plot.LineStyleListItem{ · Case: 5, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example219.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example219.go:1:14: IDENTIFIER "lw", }
Example (Case06) ¶
fmt.Println(exampleAST(220, "plot ident_a linecolor ident_b"))
Output: &plot.LineStyleListItem{ · Case: 6, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example220.go:1:24: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example220.go:1:14: IDENTIFIER "linecolor", }
Example (Case07) ¶
fmt.Println(exampleAST(221, "plot ident_a lc ident_b"))
Output: &plot.LineStyleListItem{ · Case: 7, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example221.go:1:17: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example221.go:1:14: IDENTIFIER "lc", }
Example (Case08) ¶
fmt.Println(exampleAST(222, "plot ident_a pointtype ident_b"))
Output: &plot.LineStyleListItem{ · Case: 8, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example222.go:1:24: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example222.go:1:14: IDENTIFIER "pointtype", }
Example (Case09) ¶
fmt.Println(exampleAST(223, "plot ident_a pt ident_b"))
Output: &plot.LineStyleListItem{ · Case: 9, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example223.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example223.go:1:14: IDENTIFIER "pt", }
Example (Case10) ¶
fmt.Println(exampleAST(224, "plot ident_a pointsize ident_b"))
Output: &plot.LineStyleListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example224.go:1:24: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example224.go:1:14: IDENTIFIER "pointsize", }
Example (Case11) ¶
fmt.Println(exampleAST(225, "plot ident_a ps ident_b"))
Output: &plot.LineStyleListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example225.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example225.go:1:14: IDENTIFIER "ps", }
Example (Case12) ¶
fmt.Println(exampleAST(226, "plot ident_a fill bo"))
Output: &plot.LineStyleListItem{ · Case: 12, · SetStyleFillSpecList: &plot.SetStyleFillSpecList{ · · SetStyleFillSpecListItem: &plot.SetStyleFillSpecListItem{ · · · Case: 5, · · · Token: example226.go:1:19: IDENTIFIER "bo", · · }, · }, · Token: example226.go:1:14: IDENTIFIER "fill", }
Example (Case13) ¶
fmt.Println(exampleAST(227, "plot ident_a fs bo"))
Output: &plot.LineStyleListItem{ · Case: 13, · SetStyleFillSpecList: &plot.SetStyleFillSpecList{ · · SetStyleFillSpecListItem: &plot.SetStyleFillSpecListItem{ · · · Case: 5, · · · Token: example227.go:1:17: IDENTIFIER "bo", · · }, · }, · Token: example227.go:1:14: IDENTIFIER "fs", }
Example (Case14) ¶
fmt.Println(exampleAST(228, "plot ident_a nohidden3d"))
Output: &plot.LineStyleListItem{ · Case: 14, · Token: example228.go:1:14: IDENTIFIER "nohidden3d", }
Example (Case15) ¶
fmt.Println(exampleAST(229, "plot ident_a nocontours"))
Output: &plot.LineStyleListItem{ · Case: 15, · Token: example229.go:1:14: IDENTIFIER "nocontours", }
Example (Case16) ¶
fmt.Println(exampleAST(230, "plot ident_a nosurface"))
Output: &plot.LineStyleListItem{ · Case: 16, · Token: example230.go:1:14: IDENTIFIER "nosurface", }
Example (Case17) ¶
fmt.Println(exampleAST(231, "plot ident_a palette"))
Output: &plot.LineStyleListItem{ · Case: 17, · Token: example231.go:1:14: IDENTIFIER "palette", }
Example (Case18) ¶
fmt.Println(exampleAST(232, "plot ident_a dashtype ident_b"))
Output: &plot.LineStyleListItem{ · Case: 18, · DashTypeSpec: &plot.DashTypeSpec{ · · Case: 1, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example232.go:1:23: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example232.go:1:14: IDENTIFIER "dashtype", }
Example (Case19) ¶
fmt.Println(exampleAST(233, "plot ident_a dt ident_b"))
Output: &plot.LineStyleListItem{ · Case: 19, · DashTypeSpec: &plot.DashTypeSpec{ · · Case: 1, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example233.go:1:17: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example233.go:1:14: IDENTIFIER "dt", }
Example (Case20) ¶
fmt.Println(exampleAST(234, "plot ident_a pi ident_b"))
Output: &plot.LineStyleListItem{ · Case: 20, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example234.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example234.go:1:14: IDENTIFIER "pi", }
Example (Case21) ¶
fmt.Println(exampleAST(235, "plot ident_a pointinterval ident_b"))
Output: &plot.LineStyleListItem{ · Case: 21, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example235.go:1:28: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example235.go:1:14: IDENTIFIER "pointinterval", }
Example (Case22) ¶
fmt.Println(exampleAST(236, "plot ident_a tc ident_b"))
Output: &plot.LineStyleListItem{ · Case: 22, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example236.go:1:17: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example236.go:1:14: IDENTIFIER "tc", }
func (*LineStyleListItem) Pos ¶
func (n *LineStyleListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*LineStyleListItem) String ¶
func (n *LineStyleListItem) String() string
String implements fmt.Stringer.
type Load ¶
type Load struct { Expression *Expression Token xc.Token }
Load represents data reduced by production:
Load: "load" Expression
Example ¶
fmt.Println(exampleAST(237, "load ident_a"))
Output: &plot.Load{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example237.go:1:6: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example237.go:1:1: IDENTIFIER "load", }
type Lower ¶
type Lower struct { Case int PlotWindow *PlotWindow Token xc.Token }
Lower represents data reduced by productions:
Lower: "lower" | "lower" PlotWindow // Case 1
Example ¶
fmt.Println(exampleAST(238, "lower"))
Output: &plot.Lower{ · Token: example238.go:1:1: IDENTIFIER "lower", }
Example (Case1) ¶
fmt.Println(exampleAST(239, "lower pm"))
Output: &plot.Lower{ · Case: 1, · PlotWindow: &plot.PlotWindow{ · · Token: example239.go:1:7: IDENTIFIER "pm", · }, · Token: example239.go:1:1: IDENTIFIER "lower", }
type NamedDataBlock ¶
type NamedDataBlock struct { Data []byte // The content of the named data block. Token xc.Token Token2 xc.Token Token3 xc.Token }
NamedDataBlock represents data reduced by production:
NamedDataBlock: IDENTIFIER "<<" IDENTIFIER
Example ¶
fmt.Println(exampleAST(240, "$data << EOD\n1 2 3\nEOD\n"))
Output: &plot.NamedDataBlock{ · Data: []uint8{ // len 6 · · 0: 49, · · 1: 32, · · 2: 50, · · 3: 32, · · 4: 51, · · 5: 10, · }, · Token: example240.go:1:1: IDENTIFIER "$data", · Token2: example240.go:1:7: LSH "<<", · Token3: example240.go:1:10: IDENTIFIER "EOD", }
func (*NamedDataBlock) Pos ¶
func (n *NamedDataBlock) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*NamedDataBlock) String ¶
func (n *NamedDataBlock) String() string
String implements fmt.Stringer.
type NonParenthesizedExpression ¶
type NonParenthesizedExpression struct { Case int NonParenthesizedExpression *NonParenthesizedExpression NonParenthesizedExpression2 *NonParenthesizedExpression NonParenthesizedExpression3 *NonParenthesizedExpression Token xc.Token Token2 xc.Token UnaryNonParenthesizedExpression *UnaryNonParenthesizedExpression }
NonParenthesizedExpression represents data reduced by productions:
NonParenthesizedExpression: NonParenthesizedExpression "!=" NonParenthesizedExpression | NonParenthesizedExpression "&&" NonParenthesizedExpression // Case 1 | NonParenthesizedExpression "**" NonParenthesizedExpression // Case 2 | NonParenthesizedExpression "<<" NonParenthesizedExpression // Case 3 | NonParenthesizedExpression "<=" NonParenthesizedExpression // Case 4 | NonParenthesizedExpression "==" NonParenthesizedExpression // Case 5 | NonParenthesizedExpression ">=" NonParenthesizedExpression // Case 6 | NonParenthesizedExpression ">>" NonParenthesizedExpression // Case 7 | NonParenthesizedExpression "eq" NonParenthesizedExpression // Case 8 | NonParenthesizedExpression "ne" NonParenthesizedExpression // Case 9 | NonParenthesizedExpression "||" NonParenthesizedExpression // Case 10 | NonParenthesizedExpression '%' NonParenthesizedExpression // Case 11 | NonParenthesizedExpression '&' NonParenthesizedExpression // Case 12 | NonParenthesizedExpression '*' NonParenthesizedExpression // Case 13 | NonParenthesizedExpression '+' NonParenthesizedExpression // Case 14 | NonParenthesizedExpression '-' NonParenthesizedExpression // Case 15 | NonParenthesizedExpression '.' NonParenthesizedExpression // Case 16 | NonParenthesizedExpression '/' NonParenthesizedExpression // Case 17 | NonParenthesizedExpression '<' NonParenthesizedExpression // Case 18 | NonParenthesizedExpression '=' NonParenthesizedExpression // Case 19 | NonParenthesizedExpression '>' NonParenthesizedExpression // Case 20 | NonParenthesizedExpression '?' NonParenthesizedExpression ':' NonParenthesizedExpression // Case 21 | NonParenthesizedExpression '^' NonParenthesizedExpression // Case 22 | NonParenthesizedExpression '|' NonParenthesizedExpression // Case 23 | UnaryNonParenthesizedExpression // Case 24
Example ¶
fmt.Println(exampleAST(241, "set rtics ident_a != ident_b"))
Output: &plot.NonParenthesizedExpression{ · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example241.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example241.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example241.go:1:19: NOTEQ "!=", }
Example (Case01) ¶
fmt.Println(exampleAST(242, "set rtics ident_a && ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 1, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example242.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example242.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example242.go:1:19: ANDAND "&&", }
Example (Case02) ¶
fmt.Println(exampleAST(243, "set rtics ident_a ** ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 2, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example243.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example243.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example243.go:1:19: EXP "**", }
Example (Case03) ¶
fmt.Println(exampleAST(244, "set rtics ident_a << ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 3, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example244.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example244.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example244.go:1:19: LSH "<<", }
Example (Case04) ¶
fmt.Println(exampleAST(245, "set rtics ident_a <= ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 4, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example245.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example245.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example245.go:1:19: LEQ "<=", }
Example (Case05) ¶
fmt.Println(exampleAST(246, "set rtics ident_a == ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 5, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example246.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example246.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example246.go:1:19: EQEQ "==", }
Example (Case06) ¶
fmt.Println(exampleAST(247, "set rtics ident_a >= ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 6, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example247.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example247.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example247.go:1:19: GEQ ">=", }
Example (Case07) ¶
fmt.Println(exampleAST(248, "set rtics ident_a >> ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 7, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example248.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example248.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example248.go:1:19: RSH ">>", }
Example (Case08) ¶
fmt.Println(exampleAST(249, "set rtics ident_a eq ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 8, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example249.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example249.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example249.go:1:19: IDENTIFIER "eq", }
Example (Case09) ¶
fmt.Println(exampleAST(250, "set rtics ident_a ne ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 9, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example250.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example250.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example250.go:1:19: IDENTIFIER "ne", }
Example (Case10) ¶
fmt.Println(exampleAST(251, "set rtics ident_a || ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 10, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example251.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example251.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example251.go:1:19: OROR "||", }
Example (Case11) ¶
fmt.Println(exampleAST(252, "set rtics ident_a % ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 11, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example252.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example252.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example252.go:1:19: '%' "%", }
Example (Case12) ¶
fmt.Println(exampleAST(253, "set rtics ident_a & ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 12, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example253.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example253.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example253.go:1:19: '&' "&", }
Example (Case13) ¶
fmt.Println(exampleAST(254, "set rtics ident_a * ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 13, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example254.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example254.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example254.go:1:19: '*' "*", }
Example (Case14) ¶
fmt.Println(exampleAST(255, "set rtics ident_a + ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 14, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example255.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example255.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example255.go:1:19: '+' "+", }
Example (Case15) ¶
fmt.Println(exampleAST(256, "set rtics ident_a - ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 15, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example256.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example256.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example256.go:1:19: '-' "-", }
Example (Case16) ¶
fmt.Println(exampleAST(257, "set rtics ident_a . ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 16, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example257.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example257.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example257.go:1:19: '.' ".", }
Example (Case17) ¶
fmt.Println(exampleAST(258, "set rtics ident_a / ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 17, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example258.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example258.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example258.go:1:19: '/' "/", }
Example (Case18) ¶
fmt.Println(exampleAST(259, "set rtics ident_a < ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 18, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example259.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example259.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example259.go:1:19: '<' "<", }
Example (Case19) ¶
fmt.Println(exampleAST(260, "set rtics ident_a = ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 19, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example260.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example260.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example260.go:1:19: '=' "=", }
Example (Case20) ¶
fmt.Println(exampleAST(261, "set rtics ident_a > ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 20, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example261.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example261.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example261.go:1:19: '>' ">", }
Example (Case21) ¶
fmt.Println(exampleAST(262, "set rtics ident_a ? ident_b : ident_c"))
Output: &plot.NonParenthesizedExpression{ · Case: 21, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example262.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example262.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression3: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example262.go:1:31: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example262.go:1:19: '?' "?", · Token2: example262.go:1:29: ':' ":", }
Example (Case22) ¶
fmt.Println(exampleAST(263, "set rtics ident_a ^ ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 22, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example263.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example263.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example263.go:1:19: '^' "^", }
Example (Case23) ¶
fmt.Println(exampleAST(264, "set rtics ident_a | ident_b"))
Output: &plot.NonParenthesizedExpression{ · Case: 23, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example264.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression2: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example264.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example264.go:1:19: '|' "|", }
Example (Case24) ¶
fmt.Println(exampleAST(265, "set cbtics ident_a"))
Output: &plot.NonParenthesizedExpression{ · Case: 24, · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · Token: example265.go:1:12: IDENTIFIER "ident_a", · · · }, · · }, · }, }
func (*NonParenthesizedExpression) Pos ¶
func (n *NonParenthesizedExpression) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*NonParenthesizedExpression) String ¶
func (n *NonParenthesizedExpression) String() string
String implements fmt.Stringer.
type NonParenthesizedOperand ¶
type NonParenthesizedOperand struct { Case int ComplexNumber *ComplexNumber Expression *Expression Expression2 *Expression Expression3 *Expression Token xc.Token Token2 xc.Token Token3 xc.Token Token4 xc.Token }
NonParenthesizedOperand represents data reduced by productions:
NonParenthesizedOperand: IDENTIFIER | NUM_LIT // Case 1 | STRING_LIT // Case 2 | ComplexNumber // Case 3 | SUM '[' Expression ':' Expression ']' Expression // Case 4
Example ¶
fmt.Println(exampleAST(266, "set ytics ident_a"))
Output: &plot.NonParenthesizedOperand{ · Token: example266.go:1:11: IDENTIFIER "ident_a", }
Example (Case1) ¶
fmt.Println(exampleAST(267, "set ztics 97"))
Output: &plot.NonParenthesizedOperand{ · Case: 1, · Token: example267.go:1:11: NUM_LIT "97", }
Example (Case2) ¶
fmt.Println(exampleAST(268, "set y2tics 'a'"))
Output: &plot.NonParenthesizedOperand{ · Case: 2, · Token: example268.go:1:12: STRING_LIT "a", }
Example (Case3) ¶
fmt.Println(exampleAST(269, "set tics { ident_a , ident_b }"))
Output: &plot.NonParenthesizedOperand{ · Case: 3, · ComplexNumber: &plot.ComplexNumber{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example269.go:1:12: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Expression2: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example269.go:1:22: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · · Token: example269.go:1:10: '{' "{", · · Token2: example269.go:1:20: ',' ",", · · Token3: example269.go:1:30: '}' "}", · }, }
Example (Case4) ¶
fmt.Println(exampleAST(270, "set ztics sum [ ident_a : ident_b ] ident_c"))
Output: &plot.NonParenthesizedOperand{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example270.go:1:17: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example270.go:1:27: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression3: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example270.go:1:37: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example270.go:1:11: SUM "sum", · Token2: example270.go:1:15: '[' "[", · Token3: example270.go:1:25: ':' ":", · Token4: example270.go:1:35: ']' "]", }
func (*NonParenthesizedOperand) Pos ¶
func (n *NonParenthesizedOperand) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*NonParenthesizedOperand) String ¶
func (n *NonParenthesizedOperand) String() string
String implements fmt.Stringer.
type NonStringExpression ¶
type NonStringExpression struct { Case int NonStringExpression *NonStringExpression NonStringExpression2 *NonStringExpression NonStringExpression3 *NonStringExpression Token xc.Token Token2 xc.Token UnaryNonStringExpression *UnaryNonStringExpression }
NonStringExpression represents data reduced by productions:
NonStringExpression: NonStringExpression "!=" NonStringExpression | NonStringExpression "&&" NonStringExpression // Case 1 | NonStringExpression "**" NonStringExpression // Case 2 | NonStringExpression "<<" NonStringExpression // Case 3 | NonStringExpression "<=" NonStringExpression // Case 4 | NonStringExpression "==" NonStringExpression // Case 5 | NonStringExpression ">=" NonStringExpression // Case 6 | NonStringExpression ">>" NonStringExpression // Case 7 | NonStringExpression "eq" NonStringExpression // Case 8 | NonStringExpression "ne" NonStringExpression // Case 9 | NonStringExpression "||" NonStringExpression // Case 10 | NonStringExpression '%' NonStringExpression // Case 11 | NonStringExpression '&' NonStringExpression // Case 12 | NonStringExpression '*' NonStringExpression // Case 13 | NonStringExpression '+' NonStringExpression // Case 14 | NonStringExpression '-' NonStringExpression // Case 15 | NonStringExpression '.' NonStringExpression // Case 16 | NonStringExpression '/' NonStringExpression // Case 17 | NonStringExpression '<' NonStringExpression // Case 18 | NonStringExpression '=' NonStringExpression // Case 19 | NonStringExpression '>' NonStringExpression // Case 20 | NonStringExpression '?' NonStringExpression ':' NonStringExpression // Case 21 | NonStringExpression '^' NonStringExpression // Case 22 | NonStringExpression '|' NonStringExpression // Case 23 | UnaryNonStringExpression // Case 24
Example ¶
fmt.Println(exampleAST(271, "set tics ( ident_a != ident_b )"))
Output: &plot.NonStringExpression{ · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example271.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example271.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example271.go:1:20: NOTEQ "!=", }
Example (Case01) ¶
fmt.Println(exampleAST(272, "set tics ( ident_a && ident_b )"))
Output: &plot.NonStringExpression{ · Case: 1, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example272.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example272.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example272.go:1:20: ANDAND "&&", }
Example (Case02) ¶
fmt.Println(exampleAST(273, "set tics ( ident_a ** ident_b )"))
Output: &plot.NonStringExpression{ · Case: 2, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example273.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example273.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example273.go:1:20: EXP "**", }
Example (Case03) ¶
fmt.Println(exampleAST(274, "set tics ( ident_a << ident_b )"))
Output: &plot.NonStringExpression{ · Case: 3, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example274.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example274.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example274.go:1:20: LSH "<<", }
Example (Case04) ¶
fmt.Println(exampleAST(275, "set tics ( ident_a <= ident_b )"))
Output: &plot.NonStringExpression{ · Case: 4, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example275.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example275.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example275.go:1:20: LEQ "<=", }
Example (Case05) ¶
fmt.Println(exampleAST(276, "set tics ( ident_a == ident_b )"))
Output: &plot.NonStringExpression{ · Case: 5, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example276.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example276.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example276.go:1:20: EQEQ "==", }
Example (Case06) ¶
fmt.Println(exampleAST(277, "set tics ( ident_a >= ident_b )"))
Output: &plot.NonStringExpression{ · Case: 6, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example277.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example277.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example277.go:1:20: GEQ ">=", }
Example (Case07) ¶
fmt.Println(exampleAST(278, "set tics ( ident_a >> ident_b )"))
Output: &plot.NonStringExpression{ · Case: 7, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example278.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example278.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example278.go:1:20: RSH ">>", }
Example (Case08) ¶
fmt.Println(exampleAST(279, "set tics ( ident_a eq ident_b )"))
Output: &plot.NonStringExpression{ · Case: 8, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example279.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example279.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example279.go:1:20: IDENTIFIER "eq", }
Example (Case09) ¶
fmt.Println(exampleAST(280, "set tics ( ident_a ne ident_b )"))
Output: &plot.NonStringExpression{ · Case: 9, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example280.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example280.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example280.go:1:20: IDENTIFIER "ne", }
Example (Case10) ¶
fmt.Println(exampleAST(281, "set tics ( ident_a || ident_b )"))
Output: &plot.NonStringExpression{ · Case: 10, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example281.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example281.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example281.go:1:20: OROR "||", }
Example (Case11) ¶
fmt.Println(exampleAST(282, "set tics ( ident_a % ident_b )"))
Output: &plot.NonStringExpression{ · Case: 11, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example282.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example282.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example282.go:1:20: '%' "%", }
Example (Case12) ¶
fmt.Println(exampleAST(283, "set tics ( ident_a & ident_b )"))
Output: &plot.NonStringExpression{ · Case: 12, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example283.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example283.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example283.go:1:20: '&' "&", }
Example (Case13) ¶
fmt.Println(exampleAST(284, "set tics ( ident_a * ident_b )"))
Output: &plot.NonStringExpression{ · Case: 13, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example284.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example284.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example284.go:1:20: '*' "*", }
Example (Case14) ¶
fmt.Println(exampleAST(285, "set tics ( ident_a + ident_b )"))
Output: &plot.NonStringExpression{ · Case: 14, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example285.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example285.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example285.go:1:20: '+' "+", }
Example (Case15) ¶
fmt.Println(exampleAST(286, "set tics ( ident_a - ident_b )"))
Output: &plot.NonStringExpression{ · Case: 15, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example286.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example286.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example286.go:1:20: '-' "-", }
Example (Case16) ¶
fmt.Println(exampleAST(287, "set tics ( ident_a . ident_b )"))
Output: &plot.NonStringExpression{ · Case: 16, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example287.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example287.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example287.go:1:20: '.' ".", }
Example (Case17) ¶
fmt.Println(exampleAST(288, "set tics ( ident_a / ident_b )"))
Output: &plot.NonStringExpression{ · Case: 17, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example288.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example288.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example288.go:1:20: '/' "/", }
Example (Case18) ¶
fmt.Println(exampleAST(289, "set tics ( ident_a < ident_b )"))
Output: &plot.NonStringExpression{ · Case: 18, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example289.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example289.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example289.go:1:20: '<' "<", }
Example (Case19) ¶
fmt.Println(exampleAST(290, "set tics ( ident_a = ident_b )"))
Output: &plot.NonStringExpression{ · Case: 19, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example290.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example290.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example290.go:1:20: '=' "=", }
Example (Case20) ¶
fmt.Println(exampleAST(291, "set tics ( ident_a > ident_b )"))
Output: &plot.NonStringExpression{ · Case: 20, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example291.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example291.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example291.go:1:20: '>' ">", }
Example (Case21) ¶
fmt.Println(exampleAST(292, "set tics ( ident_a ? ident_b : ident_c )"))
Output: &plot.NonStringExpression{ · Case: 21, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example292.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example292.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · NonStringExpression3: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example292.go:1:32: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example292.go:1:20: '?' "?", · Token2: example292.go:1:30: ':' ":", }
Example (Case22) ¶
fmt.Println(exampleAST(293, "set tics ( ident_a ^ ident_b )"))
Output: &plot.NonStringExpression{ · Case: 22, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example293.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example293.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example293.go:1:20: '^' "^", }
Example (Case23) ¶
fmt.Println(exampleAST(294, "set tics ( ident_a | ident_b )"))
Output: &plot.NonStringExpression{ · Case: 23, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example294.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · NonStringExpression2: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example294.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example294.go:1:20: '|' "|", }
Example (Case24) ¶
fmt.Println(exampleAST(295, "set rtics ( ident_a !"))
Output: &plot.NonStringExpression{ · Case: 24, · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · NonStringOperand: &plot.NonStringOperand{ · · · · Case: 1, · · · · Token: example295.go:1:13: IDENTIFIER "ident_a", · · · }, · · }, · }, }
func (*NonStringExpression) Pos ¶
func (n *NonStringExpression) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*NonStringExpression) String ¶
func (n *NonStringExpression) String() string
String implements fmt.Stringer.
type NonStringOperand ¶
type NonStringOperand struct { Case int ComplexNumber *ComplexNumber Expression *Expression Token xc.Token Token2 xc.Token }
NonStringOperand represents data reduced by productions:
NonStringOperand: '(' Expression ')' | IDENTIFIER // Case 1 | NUM_LIT // Case 2 | ComplexNumber // Case 3
Example ¶
fmt.Println(exampleAST(296, "set rtics ( ( ident_a ) !"))
Output: &plot.NonStringOperand{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example296.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example296.go:1:13: '(' "(", · Token2: example296.go:1:23: ')' ")", }
Example (Case1) ¶
fmt.Println(exampleAST(297, "set rtics ( ident_a !"))
Output: &plot.NonStringOperand{ · Case: 1, · Token: example297.go:1:13: IDENTIFIER "ident_a", }
Example (Case2) ¶
fmt.Println(exampleAST(298, "set rtics ( 97 !"))
Output: &plot.NonStringOperand{ · Case: 2, · Token: example298.go:1:13: NUM_LIT "97", }
Example (Case3) ¶
fmt.Println(exampleAST(299, "set rtics ( { ident_a , ident_b } !"))
Output: &plot.NonStringOperand{ · Case: 3, · ComplexNumber: &plot.ComplexNumber{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example299.go:1:15: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Expression2: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example299.go:1:25: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · · Token: example299.go:1:13: '{' "{", · · Token2: example299.go:1:23: ',' ",", · · Token3: example299.go:1:33: '}' "}", · }, }
func (*NonStringOperand) Pos ¶
func (n *NonStringOperand) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*NonStringOperand) String ¶
func (n *NonStringOperand) String() string
String implements fmt.Stringer.
type Operand ¶
type Operand struct { Case int ComplexNumber *ComplexNumber Expression *Expression Expression2 *Expression Expression3 *Expression ExpressionList *ExpressionList Token xc.Token Token2 xc.Token Token3 xc.Token Token4 xc.Token // contains filtered or unexported fields }
Operand represents data reduced by productions:
Operand: '(' ExpressionList ')' | IDENTIFIER // Case 1 | NUM_LIT // Case 2 | STRING_LIT // Case 3 | ComplexNumber // Case 4 | SUM '[' Expression ':' Expression ']' Expression // Case 5
Example ¶
fmt.Println(exampleAST(300, "load ( ident_a )"))
Output: &plot.Operand{ · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example300.go:1:8: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example300.go:1:6: '(' "(", · Token2: example300.go:1:16: ')' ")", }
Example (Case1) ¶
fmt.Println(exampleAST(301, "load ident_a"))
Output: &plot.Operand{ · Case: 1, · Token: example301.go:1:6: IDENTIFIER "ident_a", }
Example (Case2) ¶
fmt.Println(exampleAST(302, "bind 97"))
Output: &plot.Operand{ · Case: 2, · Token: example302.go:1:6: NUM_LIT "97", }
Example (Case3) ¶
fmt.Println(exampleAST(303, "bind 'a'"))
Output: &plot.Operand{ · Case: 3, · Token: example303.go:1:6: STRING_LIT "a", }
Example (Case4) ¶
fmt.Println(exampleAST(304, "cd { ident_a , ident_b }"))
Output: &plot.Operand{ · Case: 4, · ComplexNumber: &plot.ComplexNumber{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example304.go:1:6: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Expression2: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example304.go:1:16: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · · Token: example304.go:1:4: '{' "{", · · Token2: example304.go:1:14: ',' ",", · · Token3: example304.go:1:24: '}' "}", · }, }
Example (Case5) ¶
fmt.Println(exampleAST(305, "bind sum [ ident_a : ident_b ] ident_c"))
Output: &plot.Operand{ · Case: 5, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example305.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example305.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression3: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example305.go:1:32: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example305.go:1:6: SUM "sum", · Token2: example305.go:1:10: '[' "[", · Token3: example305.go:1:20: ':' ":", · Token4: example305.go:1:30: ']' "]", }
type Option ¶
type Option func(*opts) error
Option allows to amend the parser behavior.
func EnableCommandSubstitution ¶
func EnableCommandSubstitution() Option
EnableCommandSubstitution enables command substitution by executing strings between backticks. Command substitution should never be enabled for untrusted sources.
type OriginList ¶
type OriginList struct { Case int ExpressionList *ExpressionList OriginList *OriginList Token xc.Token Token2 xc.Token Token3 xc.Token }
OriginList represents data reduced by productions:
OriginList: '(' ExpressionList ')' | OriginList ':' '(' ExpressionList ')' // Case 1
Example ¶
fmt.Println(exampleAST(306, "plot ident_a binary origin = ( ident_b )"))
Output: &plot.OriginList{ · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example306.go:1:32: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example306.go:1:30: '(' "(", · Token2: example306.go:1:40: ')' ")", }
Example (Case1) ¶
fmt.Println(exampleAST(307, "plot ident_a binary origin = ( ident_b ) : ( ident_c )"))
Output: &plot.OriginList{ · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example307.go:1:32: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · OriginList: &plot.OriginList{ · · Case: 1, · · ExpressionList: &plot.ExpressionList{ · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example307.go:1:46: IDENTIFIER "ident_c", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · · Token: example307.go:1:42: ':' ":", · · Token2: example307.go:1:44: '(' "(", · · Token3: example307.go:1:54: ')' ")", · }, · Token: example307.go:1:30: '(' "(", · Token2: example307.go:1:40: ')' ")", }
func (*OriginList) Pos ¶
func (n *OriginList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
type Pause ¶
type Pause struct { Case int EndConditionList *EndConditionList Expression *Expression SimpleExpression *SimpleExpression Token xc.Token Token2 xc.Token }
Pause represents data reduced by productions:
Pause: "pause" "mouse" EndConditionList | "pause" "mouse" EndConditionList Expression // Case 1 | "pause" "mouse" Expression // Case 2 | "pause" Expression // Case 3 | "pause" Expression SimpleExpression // Case 4
Example ¶
fmt.Println(exampleAST(308, "pause mouse any"))
Output: &plot.Pause{ · EndConditionList: &plot.EndConditionList{ · · EndConditionListItem: &plot.EndConditionListItem{ · · · Token: example308.go:1:13: IDENTIFIER "any", · · }, · }, · Token: example308.go:1:1: IDENTIFIER "pause", · Token2: example308.go:1:7: IDENTIFIER "mouse", }
Example (Case1) ¶
fmt.Println(exampleAST(309, "pause mouse any ident_a"))
Output: &plot.Pause{ · Case: 1, · EndConditionList: &plot.EndConditionList{ · · EndConditionListItem: &plot.EndConditionListItem{ · · · Token: example309.go:1:13: IDENTIFIER "any", · · }, · }, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example309.go:1:17: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example309.go:1:1: IDENTIFIER "pause", · Token2: example309.go:1:7: IDENTIFIER "mouse", }
Example (Case2) ¶
fmt.Println(exampleAST(310, "pause mouse ident_a"))
Output: &plot.Pause{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example310.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example310.go:1:1: IDENTIFIER "pause", · Token2: example310.go:1:7: IDENTIFIER "mouse", }
Example (Case3) ¶
fmt.Println(exampleAST(311, "pause ident_a"))
Output: &plot.Pause{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example311.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example311.go:1:1: IDENTIFIER "pause", }
Example (Case4) ¶
fmt.Println(exampleAST(312, "pause ident_a ident_b"))
Output: &plot.Pause{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example312.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example312.go:1:15: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example312.go:1:1: IDENTIFIER "pause", }
type Plot ¶
type Plot struct { Data [][]byte // Content of the inline data block(s). PlotElementList *PlotElementList Token xc.Token }
Plot represents data reduced by production:
Plot: "plot" PlotElementList
Example ¶
fmt.Println(exampleAST(313, "plot ident_a"))
Output: &plot.Plot{ · PlotElementList: &plot.PlotElementList{ · · PlotElementListItem: &plot.PlotElementListItem{ · · · Case: 1, · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example313.go:1:6: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example313.go:1:1: IDENTIFIER "plot", }
type PlotElementAxes ¶
PlotElementAxes represents data reduced by productions:
PlotElementAxes: "axes" "x1y1" | "axes" "x1y2" // Case 1 | "axes" "x2y1" // Case 2 | "axes" "x2y2" // Case 3
Example ¶
fmt.Println(exampleAST(314, "plot ident_a axes x1y1"))
Output: &plot.PlotElementAxes{ · Token: example314.go:1:14: IDENTIFIER "axes", · Token2: example314.go:1:19: IDENTIFIER "x1y1", }
Example (Case1) ¶
fmt.Println(exampleAST(315, "plot ident_a axes x1y2"))
Output: &plot.PlotElementAxes{ · Case: 1, · Token: example315.go:1:14: IDENTIFIER "axes", · Token2: example315.go:1:19: IDENTIFIER "x1y2", }
Example (Case2) ¶
fmt.Println(exampleAST(316, "plot ident_a axes x2y1"))
Output: &plot.PlotElementAxes{ · Case: 2, · Token: example316.go:1:14: IDENTIFIER "axes", · Token2: example316.go:1:19: IDENTIFIER "x2y1", }
Example (Case3) ¶
fmt.Println(exampleAST(317, "plot ident_a axes x2y2"))
Output: &plot.PlotElementAxes{ · Case: 3, · Token: example317.go:1:14: IDENTIFIER "axes", · Token2: example317.go:1:19: IDENTIFIER "x2y2", }
func (*PlotElementAxes) Pos ¶
func (n *PlotElementAxes) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementAxes) String ¶
func (n *PlotElementAxes) String() string
String implements fmt.Stringer.
type PlotElementList ¶
type PlotElementList struct { Case int PlotElementList *PlotElementList PlotElementListItem *PlotElementListItem Token xc.Token }
PlotElementList represents data reduced by productions:
PlotElementList: PlotElementListItem | PlotElementList ',' PlotElementListItem // Case 1
Example ¶
fmt.Println(exampleAST(318, "plot ident_a"))
Output: &plot.PlotElementList{ · PlotElementListItem: &plot.PlotElementListItem{ · · Case: 1, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example318.go:1:6: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(319, "splot ident_a , ident_b"))
Output: &plot.PlotElementList{ · PlotElementList: &plot.PlotElementList{ · · Case: 1, · · PlotElementListItem: &plot.PlotElementListItem{ · · · Case: 1, · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example319.go:1:17: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · · Token: example319.go:1:15: ',' ",", · }, · PlotElementListItem: &plot.PlotElementListItem{ · · Case: 1, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example319.go:1:7: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*PlotElementList) Pos ¶
func (n *PlotElementList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementList) String ¶
func (n *PlotElementList) String() string
String implements fmt.Stringer.
type PlotElementListItem ¶
type PlotElementListItem struct { Case int Expression *Expression IterationSpecifierOpt *IterationSpecifierOpt PlotElementModifiersListOpt *PlotElementModifiersListOpt PlotNewhistogramSpecListOpt *PlotNewhistogramSpecListOpt Ranges *Ranges RangesOpt *RangesOpt Token xc.Token }
PlotElementListItem represents data reduced by productions:
PlotElementListItem: "newhistogram" PlotNewhistogramSpecListOpt | IterationSpecifierOpt RangesOpt Expression PlotElementModifiersListOpt // Case 1 | IterationSpecifierOpt RangesOpt "sample" Ranges Expression PlotElementModifiersListOpt // Case 2
Example ¶
fmt.Println(exampleAST(320, "plot newhistogram"))
Output: &plot.PlotElementListItem{ · Token: example320.go:1:6: IDENTIFIER "newhistogram", }
Example (Case1) ¶
fmt.Println(exampleAST(321, "plot ident_a"))
Output: &plot.PlotElementListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example321.go:1:6: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case2) ¶
fmt.Println(exampleAST(322, "plot sample [ ] ident_a"))
Output: &plot.PlotElementListItem{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example322.go:1:17: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Ranges: &plot.Ranges{ · · Range: &plot.Range{ · · · Case: 2, · · · Token: example322.go:1:13: '[' "[", · · · Token2: example322.go:1:15: ']' "]", · · }, · }, · Token: example322.go:1:6: IDENTIFIER "sample", }
func (*PlotElementListItem) Pos ¶
func (n *PlotElementListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementListItem) String ¶
func (n *PlotElementListItem) String() string
String implements fmt.Stringer.
type PlotElementModifiersList ¶
type PlotElementModifiersList struct { Case int PlotElementModifiersList *PlotElementModifiersList PlotElementModifiersListItem *PlotElementModifiersListItem // contains filtered or unexported fields }
PlotElementModifiersList represents data reduced by productions:
PlotElementModifiersList: PlotElementModifiersListItem | PlotElementModifiersList PlotElementModifiersListItem // Case 1
Example ¶
fmt.Println(exampleAST(323, "plot ident_a binary"))
Output: &plot.PlotElementModifiersList{ · PlotElementModifiersListItem: &plot.PlotElementModifiersListItem{ · · Case: 6, · · DatafileModifiersListItem: &plot.DatafileModifiersListItem{ · · · Token: example323.go:1:14: IDENTIFIER "binary", · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(324, "plot ident_a binary binary"))
Output: &plot.PlotElementModifiersList{ · PlotElementModifiersList: &plot.PlotElementModifiersList{ · · Case: 1, · · PlotElementModifiersListItem: &plot.PlotElementModifiersListItem{ · · · Case: 6, · · · DatafileModifiersListItem: &plot.DatafileModifiersListItem{ · · · · Token: example324.go:1:21: IDENTIFIER "binary", · · · }, · · }, · }, · PlotElementModifiersListItem: &plot.PlotElementModifiersListItem{ · · Case: 6, · · DatafileModifiersListItem: &plot.DatafileModifiersListItem{ · · · Token: example324.go:1:14: IDENTIFIER "binary", · · }, · }, }
func (*PlotElementModifiersList) Pos ¶
func (n *PlotElementModifiersList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementModifiersList) String ¶
func (n *PlotElementModifiersList) String() string
String implements fmt.Stringer.
type PlotElementModifiersListItem ¶
type PlotElementModifiersListItem struct { Case int DatafileModifiersListItem *DatafileModifiersListItem LineStyleListItem *LineStyleListItem PlotElementAxes *PlotElementAxes PlotElementStyle *PlotElementStyle PlotElementTitle *PlotElementTitle Token xc.Token // contains filtered or unexported fields }
PlotElementModifiersListItem represents data reduced by productions:
PlotElementModifiersListItem: PlotElementAxes | PlotElementTitle // Case 1 | "w" PlotElementStyle // Case 2 | "with" PlotElementStyle // Case 3 | LineStyleListItem // Case 4 | "whiskerbars" // Case 5 | DatafileModifiersListItem // Case 6
Example ¶
fmt.Println(exampleAST(325, "plot ident_a axes x1y1"))
Output: &plot.PlotElementModifiersListItem{ · PlotElementAxes: &plot.PlotElementAxes{ · · Token: example325.go:1:14: IDENTIFIER "axes", · · Token2: example325.go:1:19: IDENTIFIER "x1y1", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(326, "plot ident_a columnheader"))
Output: &plot.PlotElementModifiersListItem{ · Case: 1, · PlotElementTitle: &plot.PlotElementTitle{ · · Case: 1, · · Token: example326.go:1:14: IDENTIFIER "columnheader", · }, }
Example (Case2) ¶
fmt.Println(exampleAST(327, "plot ident_a w boxerrorbars"))
Output: &plot.PlotElementModifiersListItem{ · Case: 2, · PlotElementStyle: &plot.PlotElementStyle{ · · Token: example327.go:1:16: IDENTIFIER "boxerrorbars", · }, · Token: example327.go:1:14: IDENTIFIER "w", }
Example (Case3) ¶
fmt.Println(exampleAST(328, "plot ident_a with boxerrorbars"))
Output: &plot.PlotElementModifiersListItem{ · Case: 3, · PlotElementStyle: &plot.PlotElementStyle{ · · Token: example328.go:1:19: IDENTIFIER "boxerrorbars", · }, · Token: example328.go:1:14: IDENTIFIER "with", }
Example (Case4) ¶
fmt.Println(exampleAST(329, "plot ident_a nocontours"))
Output: &plot.PlotElementModifiersListItem{ · Case: 4, · LineStyleListItem: &plot.LineStyleListItem{ · · Case: 15, · · Token: example329.go:1:14: IDENTIFIER "nocontours", · }, }
Example (Case5) ¶
fmt.Println(exampleAST(330, "plot ident_a whiskerbars"))
Output: &plot.PlotElementModifiersListItem{ · Case: 5, · Token: example330.go:1:14: IDENTIFIER "whiskerbars", }
Example (Case6) ¶
fmt.Println(exampleAST(331, "plot ident_a binary"))
Output: &plot.PlotElementModifiersListItem{ · Case: 6, · DatafileModifiersListItem: &plot.DatafileModifiersListItem{ · · Token: example331.go:1:14: IDENTIFIER "binary", · }, }
func (*PlotElementModifiersListItem) Pos ¶
func (n *PlotElementModifiersListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementModifiersListItem) String ¶
func (n *PlotElementModifiersListItem) String() string
String implements fmt.Stringer.
type PlotElementModifiersListOpt ¶
type PlotElementModifiersListOpt struct {
PlotElementModifiersList *PlotElementModifiersList
}
PlotElementModifiersListOpt represents data reduced by productions:
PlotElementModifiersListOpt: /* empty */ | PlotElementModifiersList // Case 1
Example ¶
fmt.Println(exampleAST(332, "plot ident_a") == (*PlotElementModifiersListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(333, "plot ident_a binary"))
Output: &plot.PlotElementModifiersListOpt{ · PlotElementModifiersList: &plot.PlotElementModifiersList{ · · PlotElementModifiersListItem: &plot.PlotElementModifiersListItem{ · · · Case: 6, · · · DatafileModifiersListItem: &plot.DatafileModifiersListItem{ · · · · Token: example333.go:1:14: IDENTIFIER "binary", · · · }, · · }, · }, }
func (*PlotElementModifiersListOpt) Pos ¶
func (n *PlotElementModifiersListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementModifiersListOpt) String ¶
func (n *PlotElementModifiersListOpt) String() string
String implements fmt.Stringer.
type PlotElementStyle ¶
type PlotElementStyle struct { Case int PlotElementStyleFilledcurvesSpecListOpt *PlotElementStyleFilledcurvesSpecListOpt PlotElementStyleHistogramsListOpt *PlotElementStyleHistogramsListOpt PlotElementStyleLabelsSpecList *PlotElementStyleLabelsSpecList PlotElementStyleVectorsSpecOpt *PlotElementStyleVectorsSpecOpt Token xc.Token Token2 xc.Token UnitsOpt *UnitsOpt }
PlotElementStyle represents data reduced by productions:
PlotElementStyle: "boxerrorbars" | "boxes" // Case 1 | "boxplot" // Case 2 | "boxxyerrorbars" // Case 3 | "candlesticks" // Case 4 | "circles" // Case 5 | "dots" // Case 6 | "ellipses" UnitsOpt // Case 7 | "e" // Case 8 | "errorbars" // Case 9 | "errorlines" // Case 10 | "filledcurves" PlotElementStyleFilledcurvesSpecListOpt // Case 11 | "financebars" // Case 12 | "fsteps" // Case 13 | "histeps" // Case 14 | "his" PlotElementStyleHistogramsListOpt // Case 15 | "histogram" PlotElementStyleHistogramsListOpt // Case 16 | "histograms" PlotElementStyleHistogramsListOpt // Case 17 | "image" // Case 18 | "image" "pixels" // Case 19 | "impulses" // Case 20 | "labels" // Case 21 | "labels" PlotElementStyleLabelsSpecList // Case 22 | "l" // Case 23 | "line" // Case 24 | "lines" // Case 25 | "lp" // Case 26 | "linespoints" // Case 27 | "parallel" // Case 28 | "parallelaxes" // Case 29 | "pm3d" // Case 30 | "points" // Case 31 | "rgbalpha" // Case 32 | "rgbimage" // Case 33 | "steps" // Case 34 | "surface" // Case 35 | "vectors" PlotElementStyleVectorsSpecOpt // Case 36 | "xerr" // Case 37 | "xerrorbar" // Case 38 | "xerrorlines" // Case 39 | "xyerr" // Case 40 | "xyerrorbars" // Case 41 | "xyerrorlines" // Case 42 | "yerr" // Case 43 | "yerrorbars" // Case 44 | "yerrorlines" // Case 45
Example ¶
fmt.Println(exampleAST(334, "plot ident_a with boxerrorbars"))
Output: &plot.PlotElementStyle{ · Token: example334.go:1:19: IDENTIFIER "boxerrorbars", }
Example (Case01) ¶
fmt.Println(exampleAST(335, "plot ident_a w boxes"))
Output: &plot.PlotElementStyle{ · Case: 1, · Token: example335.go:1:16: IDENTIFIER "boxes", }
Example (Case02) ¶
fmt.Println(exampleAST(336, "plot ident_a with boxplot"))
Output: &plot.PlotElementStyle{ · Case: 2, · Token: example336.go:1:19: IDENTIFIER "boxplot", }
Example (Case03) ¶
fmt.Println(exampleAST(337, "plot ident_a w boxxyerrorbars"))
Output: &plot.PlotElementStyle{ · Case: 3, · Token: example337.go:1:16: IDENTIFIER "boxxyerrorbars", }
Example (Case04) ¶
fmt.Println(exampleAST(338, "plot ident_a with candlesticks"))
Output: &plot.PlotElementStyle{ · Case: 4, · Token: example338.go:1:19: IDENTIFIER "candlesticks", }
Example (Case05) ¶
fmt.Println(exampleAST(339, "plot ident_a w circles"))
Output: &plot.PlotElementStyle{ · Case: 5, · Token: example339.go:1:16: IDENTIFIER "circles", }
Example (Case06) ¶
fmt.Println(exampleAST(340, "plot ident_a with dots"))
Output: &plot.PlotElementStyle{ · Case: 6, · Token: example340.go:1:19: IDENTIFIER "dots", }
Example (Case07) ¶
fmt.Println(exampleAST(341, "plot ident_a w ellipses"))
Output: &plot.PlotElementStyle{ · Case: 7, · Token: example341.go:1:16: IDENTIFIER "ellipses", }
Example (Case08) ¶
fmt.Println(exampleAST(342, "plot ident_a w e"))
Output: &plot.PlotElementStyle{ · Case: 8, · Token: example342.go:1:16: IDENTIFIER "e", }
Example (Case09) ¶
fmt.Println(exampleAST(343, "plot ident_a with errorbars"))
Output: &plot.PlotElementStyle{ · Case: 9, · Token: example343.go:1:19: IDENTIFIER "errorbars", }
Example (Case10) ¶
fmt.Println(exampleAST(344, "plot ident_a with errorlines"))
Output: &plot.PlotElementStyle{ · Case: 10, · Token: example344.go:1:19: IDENTIFIER "errorlines", }
Example (Case11) ¶
fmt.Println(exampleAST(345, "plot ident_a w filledcurves"))
Output: &plot.PlotElementStyle{ · Case: 11, · Token: example345.go:1:16: IDENTIFIER "filledcurves", }
Example (Case12) ¶
fmt.Println(exampleAST(346, "plot ident_a w financebars"))
Output: &plot.PlotElementStyle{ · Case: 12, · Token: example346.go:1:16: IDENTIFIER "financebars", }
Example (Case13) ¶
fmt.Println(exampleAST(347, "plot ident_a w fsteps"))
Output: &plot.PlotElementStyle{ · Case: 13, · Token: example347.go:1:16: IDENTIFIER "fsteps", }
Example (Case14) ¶
fmt.Println(exampleAST(348, "plot ident_a w histeps"))
Output: &plot.PlotElementStyle{ · Case: 14, · Token: example348.go:1:16: IDENTIFIER "histeps", }
Example (Case15) ¶
fmt.Println(exampleAST(349, "plot ident_a with his"))
Output: &plot.PlotElementStyle{ · Case: 15, · Token: example349.go:1:19: IDENTIFIER "his", }
Example (Case16) ¶
fmt.Println(exampleAST(350, "plot ident_a with histogram"))
Output: &plot.PlotElementStyle{ · Case: 16, · Token: example350.go:1:19: IDENTIFIER "histogram", }
Example (Case17) ¶
fmt.Println(exampleAST(351, "plot ident_a w histograms"))
Output: &plot.PlotElementStyle{ · Case: 17, · Token: example351.go:1:16: IDENTIFIER "histograms", }
Example (Case18) ¶
fmt.Println(exampleAST(352, "plot ident_a with image"))
Output: &plot.PlotElementStyle{ · Case: 18, · Token: example352.go:1:19: IDENTIFIER "image", }
Example (Case19) ¶
fmt.Println(exampleAST(353, "plot ident_a with image pixels"))
Output: &plot.PlotElementStyle{ · Case: 19, · Token: example353.go:1:19: IDENTIFIER "image", · Token2: example353.go:1:25: IDENTIFIER "pixels", }
Example (Case20) ¶
fmt.Println(exampleAST(354, "plot ident_a w impulses"))
Output: &plot.PlotElementStyle{ · Case: 20, · Token: example354.go:1:16: IDENTIFIER "impulses", }
Example (Case21) ¶
fmt.Println(exampleAST(355, "plot ident_a w labels"))
Output: &plot.PlotElementStyle{ · Case: 21, · Token: example355.go:1:16: IDENTIFIER "labels", }
Example (Case22) ¶
fmt.Println(exampleAST(356, "plot ident_a w labels back"))
Output: &plot.PlotElementStyle{ · Case: 22, · PlotElementStyleLabelsSpecList: &plot.PlotElementStyleLabelsSpecList{ · · PlotElementStyleLabelsSpecListItem: &plot.PlotElementStyleLabelsSpecListItem{ · · · Case: 10, · · · Token: example356.go:1:23: IDENTIFIER "back", · · }, · }, · Token: example356.go:1:16: IDENTIFIER "labels", }
Example (Case23) ¶
fmt.Println(exampleAST(357, "plot ident_a w l"))
Output: &plot.PlotElementStyle{ · Case: 23, · Token: example357.go:1:16: IDENTIFIER "l", }
Example (Case24) ¶
fmt.Println(exampleAST(358, "plot ident_a with line"))
Output: &plot.PlotElementStyle{ · Case: 24, · Token: example358.go:1:19: IDENTIFIER "line", }
Example (Case25) ¶
fmt.Println(exampleAST(359, "plot ident_a with lines"))
Output: &plot.PlotElementStyle{ · Case: 25, · Token: example359.go:1:19: IDENTIFIER "lines", }
Example (Case26) ¶
fmt.Println(exampleAST(360, "plot ident_a w lp"))
Output: &plot.PlotElementStyle{ · Case: 26, · Token: example360.go:1:16: IDENTIFIER "lp", }
Example (Case27) ¶
fmt.Println(exampleAST(361, "plot ident_a with linespoints"))
Output: &plot.PlotElementStyle{ · Case: 27, · Token: example361.go:1:19: IDENTIFIER "linespoints", }
Example (Case28) ¶
fmt.Println(exampleAST(362, "plot ident_a w parallel"))
Output: &plot.PlotElementStyle{ · Case: 28, · Token: example362.go:1:16: IDENTIFIER "parallel", }
Example (Case29) ¶
fmt.Println(exampleAST(363, "plot ident_a w parallelaxes"))
Output: &plot.PlotElementStyle{ · Case: 29, · Token: example363.go:1:16: IDENTIFIER "parallelaxes", }
Example (Case30) ¶
fmt.Println(exampleAST(364, "plot ident_a w pm3d"))
Output: &plot.PlotElementStyle{ · Case: 30, · Token: example364.go:1:16: IDENTIFIER "pm3d", }
Example (Case31) ¶
fmt.Println(exampleAST(365, "plot ident_a w points"))
Output: &plot.PlotElementStyle{ · Case: 31, · Token: example365.go:1:16: IDENTIFIER "points", }
Example (Case32) ¶
fmt.Println(exampleAST(366, "plot ident_a with rgbalpha"))
Output: &plot.PlotElementStyle{ · Case: 32, · Token: example366.go:1:19: IDENTIFIER "rgbalpha", }
Example (Case33) ¶
fmt.Println(exampleAST(367, "plot ident_a w rgbimage"))
Output: &plot.PlotElementStyle{ · Case: 33, · Token: example367.go:1:16: IDENTIFIER "rgbimage", }
Example (Case34) ¶
fmt.Println(exampleAST(368, "plot ident_a w steps"))
Output: &plot.PlotElementStyle{ · Case: 34, · Token: example368.go:1:16: IDENTIFIER "steps", }
Example (Case35) ¶
fmt.Println(exampleAST(369, "plot ident_a w surface"))
Output: &plot.PlotElementStyle{ · Case: 35, · Token: example369.go:1:16: IDENTIFIER "surface", }
Example (Case36) ¶
fmt.Println(exampleAST(370, "plot ident_a w vectors"))
Output: &plot.PlotElementStyle{ · Case: 36, · Token: example370.go:1:16: IDENTIFIER "vectors", }
Example (Case37) ¶
fmt.Println(exampleAST(371, "plot ident_a w xerr"))
Output: &plot.PlotElementStyle{ · Case: 37, · Token: example371.go:1:16: IDENTIFIER "xerr", }
Example (Case38) ¶
fmt.Println(exampleAST(372, "plot ident_a with xerrorbar"))
Output: &plot.PlotElementStyle{ · Case: 38, · Token: example372.go:1:19: IDENTIFIER "xerrorbar", }
Example (Case39) ¶
fmt.Println(exampleAST(373, "plot ident_a w xerrorlines"))
Output: &plot.PlotElementStyle{ · Case: 39, · Token: example373.go:1:16: IDENTIFIER "xerrorlines", }
Example (Case40) ¶
fmt.Println(exampleAST(374, "plot ident_a w xyerr"))
Output: &plot.PlotElementStyle{ · Case: 40, · Token: example374.go:1:16: IDENTIFIER "xyerr", }
Example (Case41) ¶
fmt.Println(exampleAST(375, "plot ident_a w xyerrorbars"))
Output: &plot.PlotElementStyle{ · Case: 41, · Token: example375.go:1:16: IDENTIFIER "xyerrorbars", }
Example (Case42) ¶
fmt.Println(exampleAST(376, "plot ident_a w xyerrorlines"))
Output: &plot.PlotElementStyle{ · Case: 42, · Token: example376.go:1:16: IDENTIFIER "xyerrorlines", }
Example (Case43) ¶
fmt.Println(exampleAST(377, "plot ident_a w yerr"))
Output: &plot.PlotElementStyle{ · Case: 43, · Token: example377.go:1:16: IDENTIFIER "yerr", }
Example (Case44) ¶
fmt.Println(exampleAST(378, "plot ident_a w yerrorbars"))
Output: &plot.PlotElementStyle{ · Case: 44, · Token: example378.go:1:16: IDENTIFIER "yerrorbars", }
Example (Case45) ¶
fmt.Println(exampleAST(379, "plot ident_a w yerrorlines"))
Output: &plot.PlotElementStyle{ · Case: 45, · Token: example379.go:1:16: IDENTIFIER "yerrorlines", }
func (*PlotElementStyle) Pos ¶
func (n *PlotElementStyle) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementStyle) String ¶
func (n *PlotElementStyle) String() string
String implements fmt.Stringer.
type PlotElementStyleFilledcurvesSpecList ¶
type PlotElementStyleFilledcurvesSpecList struct { Case int PlotElementStyleFilledcurvesSpecList *PlotElementStyleFilledcurvesSpecList PlotElementStyleFilledcurvesSpecListItem *PlotElementStyleFilledcurvesSpecListItem }
PlotElementStyleFilledcurvesSpecList represents data reduced by productions:
PlotElementStyleFilledcurvesSpecList: PlotElementStyleFilledcurvesSpecListItem | PlotElementStyleFilledcurvesSpecList PlotElementStyleFilledcurvesSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(402, "plot ident_a w filledcurves above"))
Output: &plot.PlotElementStyleFilledcurvesSpecList{ · PlotElementStyleFilledcurvesSpecListItem: &plot.PlotElementStyleFilledcurvesSpecListItem{ · · Case: 1, · · Token: example402.go:1:29: IDENTIFIER "above", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(403, "plot ident_a w filledcurves above above"))
Output: &plot.PlotElementStyleFilledcurvesSpecList{ · PlotElementStyleFilledcurvesSpecList: &plot.PlotElementStyleFilledcurvesSpecList{ · · Case: 1, · · PlotElementStyleFilledcurvesSpecListItem: &plot.PlotElementStyleFilledcurvesSpecListItem{ · · · Case: 1, · · · Token: example403.go:1:35: IDENTIFIER "above", · · }, · }, · PlotElementStyleFilledcurvesSpecListItem: &plot.PlotElementStyleFilledcurvesSpecListItem{ · · Case: 1, · · Token: example403.go:1:29: IDENTIFIER "above", · }, }
func (*PlotElementStyleFilledcurvesSpecList) Pos ¶
func (n *PlotElementStyleFilledcurvesSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementStyleFilledcurvesSpecList) String ¶
func (n *PlotElementStyleFilledcurvesSpecList) String() string
String implements fmt.Stringer.
type PlotElementStyleFilledcurvesSpecListItem ¶
type PlotElementStyleFilledcurvesSpecListItem struct { Case int Expression *Expression Expression2 *Expression Token xc.Token Token2 xc.Token Token3 xc.Token }
PlotElementStyleFilledcurvesSpecListItem represents data reduced by productions:
PlotElementStyleFilledcurvesSpecListItem: "closed" | "above" // Case 1 | "below" // Case 2 | "x1" // Case 3 | "x2" // Case 4 | "y" // Case 5 | "y1" // Case 6 | "y2" // Case 7 | "r" // Case 8 | "x1" '=' Expression // Case 9 | "x2" '=' Expression // Case 10 | "y" '=' Expression // Case 11 | "y1" '=' Expression // Case 12 | "y2" '=' Expression // Case 13 | "r" '=' Expression // Case 14 | "xy" '=' Expression ',' Expression // Case 15
Example ¶
fmt.Println(exampleAST(404, "plot ident_a w filledcurves closed"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Token: example404.go:1:29: IDENTIFIER "closed", }
Example (Case01) ¶
fmt.Println(exampleAST(405, "plot ident_a w filledcurves above"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Case: 1, · Token: example405.go:1:29: IDENTIFIER "above", }
Example (Case02) ¶
fmt.Println(exampleAST(406, "plot ident_a w filledcurves below"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Case: 2, · Token: example406.go:1:29: IDENTIFIER "below", }
Example (Case03) ¶
fmt.Println(exampleAST(407, "plot ident_a w filledcurves x1"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Case: 3, · Token: example407.go:1:29: IDENTIFIER "x1", }
Example (Case04) ¶
fmt.Println(exampleAST(408, "plot ident_a w filledcurves x2"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Case: 4, · Token: example408.go:1:29: IDENTIFIER "x2", }
Example (Case05) ¶
fmt.Println(exampleAST(409, "plot ident_a w filledcurves y"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Case: 5, · Token: example409.go:1:29: IDENTIFIER "y", }
Example (Case06) ¶
fmt.Println(exampleAST(410, "plot ident_a w filledcurves y1"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Case: 6, · Token: example410.go:1:29: IDENTIFIER "y1", }
Example (Case07) ¶
fmt.Println(exampleAST(411, "plot ident_a w filledcurves y2"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Case: 7, · Token: example411.go:1:29: IDENTIFIER "y2", }
Example (Case08) ¶
fmt.Println(exampleAST(412, "plot ident_a w filledcurves r"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Case: 8, · Token: example412.go:1:29: IDENTIFIER "r", }
Example (Case09) ¶
fmt.Println(exampleAST(413, "plot ident_a w filledcurves x1 = ident_b"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Case: 9, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example413.go:1:34: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example413.go:1:29: IDENTIFIER "x1", · Token2: example413.go:1:32: '=' "=", }
Example (Case10) ¶
fmt.Println(exampleAST(414, "plot ident_a w filledcurves x2 = ident_b"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example414.go:1:34: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example414.go:1:29: IDENTIFIER "x2", · Token2: example414.go:1:32: '=' "=", }
Example (Case11) ¶
fmt.Println(exampleAST(415, "plot ident_a w filledcurves y = ident_b"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example415.go:1:33: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example415.go:1:29: IDENTIFIER "y", · Token2: example415.go:1:31: '=' "=", }
Example (Case12) ¶
fmt.Println(exampleAST(416, "plot ident_a w filledcurves y1 = ident_b"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Case: 12, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example416.go:1:34: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example416.go:1:29: IDENTIFIER "y1", · Token2: example416.go:1:32: '=' "=", }
Example (Case13) ¶
fmt.Println(exampleAST(417, "plot ident_a w filledcurves y2 = ident_b"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Case: 13, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example417.go:1:34: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example417.go:1:29: IDENTIFIER "y2", · Token2: example417.go:1:32: '=' "=", }
Example (Case14) ¶
fmt.Println(exampleAST(418, "plot ident_a w filledcurves r = ident_b"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Case: 14, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example418.go:1:33: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example418.go:1:29: IDENTIFIER "r", · Token2: example418.go:1:31: '=' "=", }
Example (Case15) ¶
fmt.Println(exampleAST(419, "plot ident_a w filledcurves xy = ident_b , ident_c"))
Output: &plot.PlotElementStyleFilledcurvesSpecListItem{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example419.go:1:34: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example419.go:1:44: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example419.go:1:29: IDENTIFIER "xy", · Token2: example419.go:1:32: '=' "=", · Token3: example419.go:1:42: ',' ",", }
func (*PlotElementStyleFilledcurvesSpecListItem) Pos ¶
func (n *PlotElementStyleFilledcurvesSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementStyleFilledcurvesSpecListItem) String ¶
func (n *PlotElementStyleFilledcurvesSpecListItem) String() string
String implements fmt.Stringer.
type PlotElementStyleFilledcurvesSpecListOpt ¶
type PlotElementStyleFilledcurvesSpecListOpt struct {
PlotElementStyleFilledcurvesSpecList *PlotElementStyleFilledcurvesSpecList
}
PlotElementStyleFilledcurvesSpecListOpt represents data reduced by productions:
PlotElementStyleFilledcurvesSpecListOpt: /* empty */ | PlotElementStyleFilledcurvesSpecList // Case 1
Example ¶
fmt.Println(exampleAST(420, "plot ident_a w filledcurves") == (*PlotElementStyleFilledcurvesSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(421, "plot ident_a w filledcurves above"))
Output: &plot.PlotElementStyleFilledcurvesSpecListOpt{ · PlotElementStyleFilledcurvesSpecList: &plot.PlotElementStyleFilledcurvesSpecList{ · · PlotElementStyleFilledcurvesSpecListItem: &plot.PlotElementStyleFilledcurvesSpecListItem{ · · · Case: 1, · · · Token: example421.go:1:29: IDENTIFIER "above", · · }, · }, }
func (*PlotElementStyleFilledcurvesSpecListOpt) Pos ¶
func (n *PlotElementStyleFilledcurvesSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementStyleFilledcurvesSpecListOpt) String ¶
func (n *PlotElementStyleFilledcurvesSpecListOpt) String() string
String implements fmt.Stringer.
type PlotElementStyleHistogramsList ¶
type PlotElementStyleHistogramsList struct { Case int PlotElementStyleHistogramsList *PlotElementStyleHistogramsList PlotElementStyleHistogramsListItem *PlotElementStyleHistogramsListItem }
PlotElementStyleHistogramsList represents data reduced by productions:
PlotElementStyleHistogramsList: PlotElementStyleHistogramsListItem | PlotElementStyleHistogramsList PlotElementStyleHistogramsListItem // Case 1
Example ¶
fmt.Println(exampleAST(422, "set style histogram boxed"))
Output: &plot.PlotElementStyleHistogramsList{ · PlotElementStyleHistogramsListItem: &plot.PlotElementStyleHistogramsListItem{ · · Case: 14, · · Token: example422.go:1:21: IDENTIFIER "boxed", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(423, "set style histogram boxed boxed"))
Output: &plot.PlotElementStyleHistogramsList{ · PlotElementStyleHistogramsList: &plot.PlotElementStyleHistogramsList{ · · Case: 1, · · PlotElementStyleHistogramsListItem: &plot.PlotElementStyleHistogramsListItem{ · · · Case: 14, · · · Token: example423.go:1:27: IDENTIFIER "boxed", · · }, · }, · PlotElementStyleHistogramsListItem: &plot.PlotElementStyleHistogramsListItem{ · · Case: 14, · · Token: example423.go:1:21: IDENTIFIER "boxed", · }, }
func (*PlotElementStyleHistogramsList) Pos ¶
func (n *PlotElementStyleHistogramsList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementStyleHistogramsList) String ¶
func (n *PlotElementStyleHistogramsList) String() string
String implements fmt.Stringer.
type PlotElementStyleHistogramsListItem ¶
type PlotElementStyleHistogramsListItem struct { Case int ColorSpec *ColorSpec Expression *Expression Position *Position SimpleExpression *SimpleExpression Token xc.Token }
PlotElementStyleHistogramsListItem represents data reduced by productions:
PlotElementStyleHistogramsListItem: "cluster" | "clustered" // Case 1 | "gap" Expression // Case 2 | "gap" Expression SimpleExpression // Case 3 | "errorbars" // Case 4 | "rows" // Case 5 | "rowstacked" // Case 6 | "columns" // Case 7 | "columnstacked" // Case 8 | "title" // Case 9 | "font" Expression // Case 10 | "tc" ColorSpec // Case 11 | "textcolor" ColorSpec // Case 12 | "offset" Position // Case 13 | "boxed" // Case 14
Example ¶
fmt.Println(exampleAST(424, "set style histogram cluster"))
Output: &plot.PlotElementStyleHistogramsListItem{ · Token: example424.go:1:21: IDENTIFIER "cluster", }
Example (Case01) ¶
fmt.Println(exampleAST(425, "set style histogram clustered"))
Output: &plot.PlotElementStyleHistogramsListItem{ · Case: 1, · Token: example425.go:1:21: IDENTIFIER "clustered", }
Example (Case02) ¶
fmt.Println(exampleAST(426, "set style histogram gap ident_a"))
Output: &plot.PlotElementStyleHistogramsListItem{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example426.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example426.go:1:21: IDENTIFIER "gap", }
Example (Case03) ¶
fmt.Println(exampleAST(427, "set style histogram gap ident_a ident_b"))
Output: &plot.PlotElementStyleHistogramsListItem{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example427.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example427.go:1:33: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example427.go:1:21: IDENTIFIER "gap", }
Example (Case04) ¶
fmt.Println(exampleAST(428, "set style histogram errorbars"))
Output: &plot.PlotElementStyleHistogramsListItem{ · Case: 4, · Token: example428.go:1:21: IDENTIFIER "errorbars", }
Example (Case05) ¶
fmt.Println(exampleAST(429, "set style histogram rows"))
Output: &plot.PlotElementStyleHistogramsListItem{ · Case: 5, · Token: example429.go:1:21: IDENTIFIER "rows", }
Example (Case06) ¶
fmt.Println(exampleAST(430, "set style histogram rowstacked"))
Output: &plot.PlotElementStyleHistogramsListItem{ · Case: 6, · Token: example430.go:1:21: IDENTIFIER "rowstacked", }
Example (Case07) ¶
fmt.Println(exampleAST(431, "set style histogram columns"))
Output: &plot.PlotElementStyleHistogramsListItem{ · Case: 7, · Token: example431.go:1:21: IDENTIFIER "columns", }
Example (Case08) ¶
fmt.Println(exampleAST(432, "set style histogram columnstacked"))
Output: &plot.PlotElementStyleHistogramsListItem{ · Case: 8, · Token: example432.go:1:21: IDENTIFIER "columnstacked", }
Example (Case09) ¶
fmt.Println(exampleAST(433, "set style histogram title"))
Output: &plot.PlotElementStyleHistogramsListItem{ · Case: 9, · Token: example433.go:1:21: IDENTIFIER "title", }
Example (Case10) ¶
fmt.Println(exampleAST(434, "set style histogram font ident_a"))
Output: &plot.PlotElementStyleHistogramsListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example434.go:1:26: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example434.go:1:21: IDENTIFIER "font", }
Example (Case11) ¶
fmt.Println(exampleAST(435, "set style histogram tc ident_a"))
Output: &plot.PlotElementStyleHistogramsListItem{ · Case: 11, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example435.go:1:24: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example435.go:1:21: IDENTIFIER "tc", }
Example (Case12) ¶
fmt.Println(exampleAST(436, "set style histogram textcolor ident_a"))
Output: &plot.PlotElementStyleHistogramsListItem{ · Case: 12, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example436.go:1:31: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example436.go:1:21: IDENTIFIER "textcolor", }
Example (Case13) ¶
fmt.Println(exampleAST(437, "set style histogram offset ident_a"))
Output: &plot.PlotElementStyleHistogramsListItem{ · Case: 13, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example437.go:1:28: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example437.go:1:21: IDENTIFIER "offset", }
Example (Case14) ¶
fmt.Println(exampleAST(438, "set style histogram boxed"))
Output: &plot.PlotElementStyleHistogramsListItem{ · Case: 14, · Token: example438.go:1:21: IDENTIFIER "boxed", }
func (*PlotElementStyleHistogramsListItem) Pos ¶
func (n *PlotElementStyleHistogramsListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementStyleHistogramsListItem) String ¶
func (n *PlotElementStyleHistogramsListItem) String() string
String implements fmt.Stringer.
type PlotElementStyleHistogramsListOpt ¶
type PlotElementStyleHistogramsListOpt struct {
PlotElementStyleHistogramsList *PlotElementStyleHistogramsList
}
PlotElementStyleHistogramsListOpt represents data reduced by productions:
PlotElementStyleHistogramsListOpt: /* empty */ | PlotElementStyleHistogramsList // Case 1
Example ¶
fmt.Println(exampleAST(439, "plot ident_a with his") == (*PlotElementStyleHistogramsListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(440, "set style histogram boxed"))
Output: &plot.PlotElementStyleHistogramsListOpt{ · PlotElementStyleHistogramsList: &plot.PlotElementStyleHistogramsList{ · · PlotElementStyleHistogramsListItem: &plot.PlotElementStyleHistogramsListItem{ · · · Case: 14, · · · Token: example440.go:1:21: IDENTIFIER "boxed", · · }, · }, }
func (*PlotElementStyleHistogramsListOpt) Pos ¶
func (n *PlotElementStyleHistogramsListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementStyleHistogramsListOpt) String ¶
func (n *PlotElementStyleHistogramsListOpt) String() string
String implements fmt.Stringer.
type PlotElementStyleLabelsSpecList ¶
type PlotElementStyleLabelsSpecList struct { Case int PlotElementStyleLabelsSpecList *PlotElementStyleLabelsSpecList PlotElementStyleLabelsSpecListItem *PlotElementStyleLabelsSpecListItem }
PlotElementStyleLabelsSpecList represents data reduced by productions:
PlotElementStyleLabelsSpecList: PlotElementStyleLabelsSpecListItem | PlotElementStyleLabelsSpecList PlotElementStyleLabelsSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(380, "plot ident_a w labels back"))
Output: &plot.PlotElementStyleLabelsSpecList{ · PlotElementStyleLabelsSpecListItem: &plot.PlotElementStyleLabelsSpecListItem{ · · Case: 10, · · Token: example380.go:1:23: IDENTIFIER "back", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(381, "plot ident_a w labels back back"))
Output: &plot.PlotElementStyleLabelsSpecList{ · PlotElementStyleLabelsSpecList: &plot.PlotElementStyleLabelsSpecList{ · · Case: 1, · · PlotElementStyleLabelsSpecListItem: &plot.PlotElementStyleLabelsSpecListItem{ · · · Case: 10, · · · Token: example381.go:1:28: IDENTIFIER "back", · · }, · }, · PlotElementStyleLabelsSpecListItem: &plot.PlotElementStyleLabelsSpecListItem{ · · Case: 10, · · Token: example381.go:1:23: IDENTIFIER "back", · }, }
func (*PlotElementStyleLabelsSpecList) Pos ¶
func (n *PlotElementStyleLabelsSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementStyleLabelsSpecList) String ¶
func (n *PlotElementStyleLabelsSpecList) String() string
String implements fmt.Stringer.
type PlotElementStyleLabelsSpecListItem ¶
type PlotElementStyleLabelsSpecListItem struct { Case int ColorSpec *ColorSpec Expression *Expression Expression2 *Expression ExpressionOpt *ExpressionOpt LineStyleListItem *LineStyleListItem Position *Position Token xc.Token Token2 xc.Token }
PlotElementStyleLabelsSpecListItem represents data reduced by productions:
PlotElementStyleLabelsSpecListItem: "at" Position | "left" // Case 1 | "center" // Case 2 | "right" // Case 3 | "norotate" // Case 4 | "rotate" // Case 5 | "rotate" "by" Expression // Case 6 | "font" Expression // Case 7 | "noenhanced" // Case 8 | "front" // Case 9 | "back" // Case 10 | "textcolor" ColorSpec // Case 11 | "point" // Case 12 | "nopoint" // Case 13 | "offset" Expression // Case 14 | "offset" Expression ',' Expression // Case 15 | "boxed" // Case 16 | "hypertext" // Case 17 | LineStyleListItem // Case 18 | "notitle" ExpressionOpt // Case 19
Example ¶
fmt.Println(exampleAST(382, "plot ident_a w labels at ident_b"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example382.go:1:26: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example382.go:1:23: IDENTIFIER "at", }
Example (Case01) ¶
fmt.Println(exampleAST(383, "plot ident_a w labels left"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 1, · Token: example383.go:1:23: IDENTIFIER "left", }
Example (Case02) ¶
fmt.Println(exampleAST(384, "plot ident_a w labels center"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 2, · Token: example384.go:1:23: IDENTIFIER "center", }
Example (Case03) ¶
fmt.Println(exampleAST(385, "plot ident_a w labels right"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 3, · Token: example385.go:1:23: IDENTIFIER "right", }
Example (Case04) ¶
fmt.Println(exampleAST(386, "plot ident_a w labels norotate"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 4, · Token: example386.go:1:23: IDENTIFIER "norotate", }
Example (Case05) ¶
fmt.Println(exampleAST(387, "plot ident_a w labels rotate"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 5, · Token: example387.go:1:23: IDENTIFIER "rotate", }
Example (Case06) ¶
fmt.Println(exampleAST(388, "plot ident_a w labels rotate by ident_b"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example388.go:1:33: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example388.go:1:23: IDENTIFIER "rotate", · Token2: example388.go:1:30: IDENTIFIER "by", }
Example (Case07) ¶
fmt.Println(exampleAST(389, "plot ident_a w labels font ident_b"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example389.go:1:28: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example389.go:1:23: IDENTIFIER "font", }
Example (Case08) ¶
fmt.Println(exampleAST(390, "plot ident_a w labels noenhanced"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 8, · Token: example390.go:1:23: IDENTIFIER "noenhanced", }
Example (Case09) ¶
fmt.Println(exampleAST(391, "plot ident_a w labels front"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 9, · Token: example391.go:1:23: IDENTIFIER "front", }
Example (Case10) ¶
fmt.Println(exampleAST(392, "plot ident_a w labels back"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 10, · Token: example392.go:1:23: IDENTIFIER "back", }
Example (Case11) ¶
fmt.Println(exampleAST(393, "plot ident_a w labels textcolor ident_b"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 11, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example393.go:1:33: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example393.go:1:23: IDENTIFIER "textcolor", }
Example (Case12) ¶
fmt.Println(exampleAST(394, "plot ident_a w labels point"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 12, · Token: example394.go:1:23: IDENTIFIER "point", }
Example (Case13) ¶
fmt.Println(exampleAST(395, "plot ident_a w labels nopoint"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 13, · Token: example395.go:1:23: IDENTIFIER "nopoint", }
Example (Case14) ¶
fmt.Println(exampleAST(396, "plot ident_a w labels offset ident_b"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 14, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example396.go:1:30: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example396.go:1:23: IDENTIFIER "offset", }
Example (Case15) ¶
fmt.Println(exampleAST(397, "plot ident_a w labels offset ident_b , ident_c"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example397.go:1:30: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example397.go:1:40: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example397.go:1:23: IDENTIFIER "offset", · Token2: example397.go:1:38: ',' ",", }
Example (Case16) ¶
fmt.Println(exampleAST(398, "plot ident_a w labels boxed"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 16, · Token: example398.go:1:23: IDENTIFIER "boxed", }
Example (Case17) ¶
fmt.Println(exampleAST(399, "plot ident_a w labels hypertext"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 17, · Token: example399.go:1:23: IDENTIFIER "hypertext", }
Example (Case18) ¶
fmt.Println(exampleAST(400, "plot ident_a w labels nocontours"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 18, · LineStyleListItem: &plot.LineStyleListItem{ · · Case: 15, · · Token: example400.go:1:23: IDENTIFIER "nocontours", · }, }
Example (Case19) ¶
fmt.Println(exampleAST(401, "plot ident_a w labels notitle"))
Output: &plot.PlotElementStyleLabelsSpecListItem{ · Case: 19, · Token: example401.go:1:23: IDENTIFIER "notitle", }
func (*PlotElementStyleLabelsSpecListItem) Pos ¶
func (n *PlotElementStyleLabelsSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementStyleLabelsSpecListItem) String ¶
func (n *PlotElementStyleLabelsSpecListItem) String() string
String implements fmt.Stringer.
type PlotElementStyleVectorsSpecOpt ¶
type PlotElementStyleVectorsSpecOpt struct { ArrowStyleList *ArrowStyleList Case int Expression *Expression Token xc.Token Token2 xc.Token }
PlotElementStyleVectorsSpecOpt represents data reduced by productions:
PlotElementStyleVectorsSpecOpt: /* empty */ | "arrowstyle" "variable" // Case 1 | "arrowstyle" Expression // Case 2 | "as" "variable" // Case 3 | "as" Expression // Case 4 | ArrowStyleList // Case 5
Example ¶
fmt.Println(exampleAST(441, "plot ident_a w vectors") == (*PlotElementStyleVectorsSpecOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(442, "plot ident_a w vectors arrowstyle variable"))
Output: &plot.PlotElementStyleVectorsSpecOpt{ · Case: 1, · Token: example442.go:1:24: IDENTIFIER "arrowstyle", · Token2: example442.go:1:35: IDENTIFIER "variable", }
Example (Case2) ¶
fmt.Println(exampleAST(443, "plot ident_a w vectors arrowstyle ident_b"))
Output: &plot.PlotElementStyleVectorsSpecOpt{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example443.go:1:35: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example443.go:1:24: IDENTIFIER "arrowstyle", }
Example (Case3) ¶
fmt.Println(exampleAST(444, "plot ident_a w vectors as variable"))
Output: &plot.PlotElementStyleVectorsSpecOpt{ · Case: 3, · Token: example444.go:1:24: IDENTIFIER "as", · Token2: example444.go:1:27: IDENTIFIER "variable", }
Example (Case4) ¶
fmt.Println(exampleAST(445, "plot ident_a w vectors as ident_b"))
Output: &plot.PlotElementStyleVectorsSpecOpt{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example445.go:1:27: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example445.go:1:24: IDENTIFIER "as", }
Example (Case5) ¶
fmt.Println(exampleAST(446, "plot ident_a w vectors empty"))
Output: &plot.PlotElementStyleVectorsSpecOpt{ · ArrowStyleList: &plot.ArrowStyleList{ · · ArrowStyleListItem: &plot.ArrowStyleListItem{ · · · Case: 6, · · · Token: example446.go:1:24: IDENTIFIER "empty", · · }, · }, · Case: 5, }
func (*PlotElementStyleVectorsSpecOpt) Pos ¶
func (n *PlotElementStyleVectorsSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementStyleVectorsSpecOpt) String ¶
func (n *PlotElementStyleVectorsSpecOpt) String() string
String implements fmt.Stringer.
type PlotElementTitle ¶
type PlotElementTitle struct { Case int ExpressionOpt *ExpressionOpt PlotElementTitlePosOpt *PlotElementTitlePosOpt PlotElementTitleSpec *PlotElementTitleSpec Token xc.Token }
PlotElementTitle represents data reduced by productions:
PlotElementTitle: "notitle" ExpressionOpt | "columnheader" PlotElementTitlePosOpt // Case 1 | "t" PlotElementTitleSpec // Case 2 | "ti" PlotElementTitleSpec // Case 3 | "title" PlotElementTitleSpec // Case 4
Example ¶
fmt.Println(exampleAST(447, "plot ident_a notitle"))
Output: &plot.PlotElementTitle{ · Token: example447.go:1:14: IDENTIFIER "notitle", }
Example (Case1) ¶
fmt.Println(exampleAST(448, "plot ident_a columnheader"))
Output: &plot.PlotElementTitle{ · Case: 1, · Token: example448.go:1:14: IDENTIFIER "columnheader", }
Example (Case2) ¶
fmt.Println(exampleAST(449, "plot ident_a t ident_b"))
Output: &plot.PlotElementTitle{ · Case: 2, · PlotElementTitleSpec: &plot.PlotElementTitleSpec{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example449.go:1:16: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example449.go:1:14: IDENTIFIER "t", }
Example (Case3) ¶
fmt.Println(exampleAST(450, "plot ident_a ti ident_b"))
Output: &plot.PlotElementTitle{ · Case: 3, · PlotElementTitleSpec: &plot.PlotElementTitleSpec{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example450.go:1:17: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example450.go:1:14: IDENTIFIER "ti", }
Example (Case4) ¶
fmt.Println(exampleAST(451, "plot ident_a title ident_b"))
Output: &plot.PlotElementTitle{ · Case: 4, · PlotElementTitleSpec: &plot.PlotElementTitleSpec{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example451.go:1:20: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example451.go:1:14: IDENTIFIER "title", }
func (*PlotElementTitle) Pos ¶
func (n *PlotElementTitle) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementTitle) String ¶
func (n *PlotElementTitle) String() string
String implements fmt.Stringer.
type PlotElementTitlePosOpt ¶
PlotElementTitlePosOpt represents data reduced by productions:
PlotElementTitlePosOpt: /* empty */ | "at" "beginning" // Case 1 | "at" "end" // Case 2
Example ¶
fmt.Println(exampleAST(455, "plot ident_a columnheader") == (*PlotElementTitlePosOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(456, "plot ident_a columnheader at beginning"))
Output: &plot.PlotElementTitlePosOpt{ · Case: 1, · Token: example456.go:1:27: IDENTIFIER "at", · Token2: example456.go:1:30: IDENTIFIER "beginning", }
Example (Case2) ¶
fmt.Println(exampleAST(457, "plot ident_a columnheader at end"))
Output: &plot.PlotElementTitlePosOpt{ · Case: 2, · Token: example457.go:1:27: IDENTIFIER "at", · Token2: example457.go:1:30: IDENTIFIER "end", }
func (*PlotElementTitlePosOpt) Pos ¶
func (n *PlotElementTitlePosOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementTitlePosOpt) String ¶
func (n *PlotElementTitlePosOpt) String() string
String implements fmt.Stringer.
type PlotElementTitleSpec ¶
type PlotElementTitleSpec struct { Case int Expression *Expression PlotElementTitlePosOpt *PlotElementTitlePosOpt Token xc.Token Token2 xc.Token Token3 xc.Token }
PlotElementTitleSpec represents data reduced by productions:
PlotElementTitleSpec: Expression PlotElementTitlePosOpt | "column" '(' Expression ')' PlotElementTitlePosOpt // Case 1 | "columnheader" '(' Expression ')' PlotElementTitlePosOpt // Case 2
Example ¶
fmt.Println(exampleAST(452, "plot ident_a ti ident_b"))
Output: &plot.PlotElementTitleSpec{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example452.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(453, "plot ident_a t column ( ident_b )"))
Output: &plot.PlotElementTitleSpec{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example453.go:1:25: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example453.go:1:16: IDENTIFIER "column", · Token2: example453.go:1:23: '(' "(", · Token3: example453.go:1:33: ')' ")", }
Example (Case2) ¶
fmt.Println(exampleAST(454, "plot ident_a t columnheader ( ident_b )"))
Output: &plot.PlotElementTitleSpec{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example454.go:1:31: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example454.go:1:16: IDENTIFIER "columnheader", · Token2: example454.go:1:29: '(' "(", · Token3: example454.go:1:39: ')' ")", }
func (*PlotElementTitleSpec) Pos ¶
func (n *PlotElementTitleSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotElementTitleSpec) String ¶
func (n *PlotElementTitleSpec) String() string
String implements fmt.Stringer.
type PlotNewhistogramSpecList ¶
type PlotNewhistogramSpecList struct { Case int PlotNewhistogramSpecList *PlotNewhistogramSpecList PlotNewhistogramSpecListItem *PlotNewhistogramSpecListItem }
PlotNewhistogramSpecList represents data reduced by productions:
PlotNewhistogramSpecList: PlotNewhistogramSpecListItem | PlotNewhistogramSpecList PlotNewhistogramSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(458, "plot newhistogram ident_a"))
Output: &plot.PlotNewhistogramSpecList{ · PlotNewhistogramSpecListItem: &plot.PlotNewhistogramSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example458.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(459, "plot newhistogram ident_a ident_b"))
Output: &plot.PlotNewhistogramSpecList{ · PlotNewhistogramSpecList: &plot.PlotNewhistogramSpecList{ · · Case: 1, · · PlotNewhistogramSpecListItem: &plot.PlotNewhistogramSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example459.go:1:27: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · PlotNewhistogramSpecListItem: &plot.PlotNewhistogramSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example459.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*PlotNewhistogramSpecList) Pos ¶
func (n *PlotNewhistogramSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotNewhistogramSpecList) String ¶
func (n *PlotNewhistogramSpecList) String() string
String implements fmt.Stringer.
type PlotNewhistogramSpecListItem ¶
type PlotNewhistogramSpecListItem struct { Case int ColorSpec *ColorSpec Expression *Expression Position *Position SetStyleFillSpecList *SetStyleFillSpecList SimpleExpression *SimpleExpression Token xc.Token }
PlotNewhistogramSpecListItem represents data reduced by productions:
PlotNewhistogramSpecListItem: SimpleExpression | "font" Expression // Case 1 | "tc" ColorSpec // Case 2 | "textcolor" ColorSpec // Case 3 | "lt" ColorSpec // Case 4 | "linetype" ColorSpec // Case 5 | "fs" SetStyleFillSpecList // Case 6 | "fillstyle" SetStyleFillSpecList // Case 7 | "at" Position // Case 8
Example ¶
fmt.Println(exampleAST(460, "plot newhistogram ident_a"))
Output: &plot.PlotNewhistogramSpecListItem{ · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example460.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(461, "plot newhistogram font ident_a"))
Output: &plot.PlotNewhistogramSpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example461.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example461.go:1:19: IDENTIFIER "font", }
Example (Case2) ¶
fmt.Println(exampleAST(462, "plot newhistogram tc ident_a"))
Output: &plot.PlotNewhistogramSpecListItem{ · Case: 2, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example462.go:1:22: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example462.go:1:19: IDENTIFIER "tc", }
Example (Case3) ¶
fmt.Println(exampleAST(463, "plot newhistogram textcolor ident_a"))
Output: &plot.PlotNewhistogramSpecListItem{ · Case: 3, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example463.go:1:29: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example463.go:1:19: IDENTIFIER "textcolor", }
Example (Case4) ¶
fmt.Println(exampleAST(464, "plot newhistogram lt ident_a"))
Output: &plot.PlotNewhistogramSpecListItem{ · Case: 4, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example464.go:1:22: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example464.go:1:19: IDENTIFIER "lt", }
Example (Case5) ¶
fmt.Println(exampleAST(465, "plot newhistogram linetype ident_a"))
Output: &plot.PlotNewhistogramSpecListItem{ · Case: 5, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example465.go:1:28: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example465.go:1:19: IDENTIFIER "linetype", }
Example (Case6) ¶
fmt.Println(exampleAST(466, "plot newhistogram fs bo"))
Output: &plot.PlotNewhistogramSpecListItem{ · Case: 6, · SetStyleFillSpecList: &plot.SetStyleFillSpecList{ · · SetStyleFillSpecListItem: &plot.SetStyleFillSpecListItem{ · · · Case: 5, · · · Token: example466.go:1:22: IDENTIFIER "bo", · · }, · }, · Token: example466.go:1:19: IDENTIFIER "fs", }
Example (Case7) ¶
fmt.Println(exampleAST(467, "plot newhistogram fillstyle bo"))
Output: &plot.PlotNewhistogramSpecListItem{ · Case: 7, · SetStyleFillSpecList: &plot.SetStyleFillSpecList{ · · SetStyleFillSpecListItem: &plot.SetStyleFillSpecListItem{ · · · Case: 5, · · · Token: example467.go:1:29: IDENTIFIER "bo", · · }, · }, · Token: example467.go:1:19: IDENTIFIER "fillstyle", }
Example (Case8) ¶
fmt.Println(exampleAST(468, "plot newhistogram at ident_a"))
Output: &plot.PlotNewhistogramSpecListItem{ · Case: 8, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example468.go:1:22: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example468.go:1:19: IDENTIFIER "at", }
func (*PlotNewhistogramSpecListItem) Pos ¶
func (n *PlotNewhistogramSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotNewhistogramSpecListItem) String ¶
func (n *PlotNewhistogramSpecListItem) String() string
String implements fmt.Stringer.
type PlotNewhistogramSpecListOpt ¶
type PlotNewhistogramSpecListOpt struct {
PlotNewhistogramSpecList *PlotNewhistogramSpecList
}
PlotNewhistogramSpecListOpt represents data reduced by productions:
PlotNewhistogramSpecListOpt: /* empty */ | PlotNewhistogramSpecList // Case 1
Example ¶
fmt.Println(exampleAST(469, "plot newhistogram") == (*PlotNewhistogramSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(470, "plot newhistogram ident_a"))
Output: &plot.PlotNewhistogramSpecListOpt{ · PlotNewhistogramSpecList: &plot.PlotNewhistogramSpecList{ · · PlotNewhistogramSpecListItem: &plot.PlotNewhistogramSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example470.go:1:19: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*PlotNewhistogramSpecListOpt) Pos ¶
func (n *PlotNewhistogramSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PlotNewhistogramSpecListOpt) String ¶
func (n *PlotNewhistogramSpecListOpt) String() string
String implements fmt.Stringer.
type PlotWindow ¶
PlotWindow represents data reduced by productions:
PlotWindow: "pm" | "win" // Case 1 | "wxt" // Case 2 | "x11" // Case 3
Example ¶
fmt.Println(exampleAST(471, "lower pm"))
Output: &plot.PlotWindow{ · Token: example471.go:1:7: IDENTIFIER "pm", }
Example (Case1) ¶
fmt.Println(exampleAST(472, "lower win"))
Output: &plot.PlotWindow{ · Case: 1, · Token: example472.go:1:7: IDENTIFIER "win", }
Example (Case2) ¶
fmt.Println(exampleAST(473, "lower wxt"))
Output: &plot.PlotWindow{ · Case: 2, · Token: example473.go:1:7: IDENTIFIER "wxt", }
Example (Case3) ¶
fmt.Println(exampleAST(474, "lower x11"))
Output: &plot.PlotWindow{ · Case: 3, · Token: example474.go:1:7: IDENTIFIER "x11", }
func (*PlotWindow) Pos ¶
func (n *PlotWindow) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
type Position ¶
type Position struct { Case int CoordinateSystemOpt *CoordinateSystemOpt CoordinateSystemOpt2 *CoordinateSystemOpt CoordinateSystemOpt3 *CoordinateSystemOpt CoordinateSystemOpt4 *CoordinateSystemOpt Expression *Expression Expression2 *Expression Expression3 *Expression Expression4 *Expression Token xc.Token Token2 xc.Token Token3 xc.Token }
Position represents data reduced by productions:
Position: CoordinateSystemOpt Expression | CoordinateSystemOpt Expression ',' CoordinateSystemOpt Expression // Case 1 | CoordinateSystemOpt Expression ',' CoordinateSystemOpt Expression ',' CoordinateSystemOpt Expression // Case 2 | CoordinateSystemOpt Expression ',' CoordinateSystemOpt Expression ',' CoordinateSystemOpt Expression ',' CoordinateSystemOpt Expression // Case 3
Example ¶
fmt.Println(exampleAST(475, "plot newhistogram at ident_a"))
Output: &plot.Position{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example475.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(476, "plot newhistogram at ident_a , ident_b"))
Output: &plot.Position{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example476.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example476.go:1:32: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example476.go:1:30: ',' ",", }
Example (Case2) ¶
fmt.Println(exampleAST(477, "plot newhistogram at ident_a , ident_b , ident_c"))
Output: &plot.Position{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example477.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example477.go:1:32: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression3: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example477.go:1:42: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example477.go:1:30: ',' ",", · Token2: example477.go:1:40: ',' ",", }
Example (Case3) ¶
fmt.Println(exampleAST(478, "plot newhistogram at ident_a , ident_b , ident_c , ident_d"))
Output: &plot.Position{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example478.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example478.go:1:32: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression3: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example478.go:1:42: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Expression4: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example478.go:1:52: IDENTIFIER "ident_d", · · · · }, · · · }, · · }, · }, · Token: example478.go:1:30: ',' ",", · Token2: example478.go:1:40: ',' ",", · Token3: example478.go:1:50: ',' ",", }
type PrimaryExpression ¶
type PrimaryExpression struct { Case int ExpressionList *ExpressionList Operand *Operand PrimaryExpression *PrimaryExpression SliceArgument *SliceArgument SliceArgument2 *SliceArgument Token xc.Token Token2 xc.Token Token3 xc.Token }
PrimaryExpression represents data reduced by productions:
PrimaryExpression: Operand | IDENTIFIER '(' ExpressionList ')' // Case 1 | PrimaryExpression '[' SliceArgument ':' SliceArgument ']' // Case 2
Example ¶
fmt.Println(exampleAST(479, "load ident_a"))
Output: &plot.PrimaryExpression{ · Operand: &plot.Operand{ · · Case: 1, · · Token: example479.go:1:6: IDENTIFIER "ident_a", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(480, "load ident_a ( ident_b )"))
Output: &plot.PrimaryExpression{ · Case: 1, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example480.go:1:16: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example480.go:1:6: IDENTIFIER "ident_a", · Token2: example480.go:1:14: '(' "(", · Token3: example480.go:1:24: ')' ")", }
Example (Case2) ¶
fmt.Println(exampleAST(481, "bind ident_a [ : ]"))
Output: &plot.PrimaryExpression{ · Case: 2, · PrimaryExpression: &plot.PrimaryExpression{ · · Operand: &plot.Operand{ · · · Case: 1, · · · Token: example481.go:1:6: IDENTIFIER "ident_a", · · }, · }, · Token: example481.go:1:14: '[' "[", · Token2: example481.go:1:16: ':' ":", · Token3: example481.go:1:18: ']' "]", }
func (*PrimaryExpression) Pos ¶
func (n *PrimaryExpression) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PrimaryExpression) String ¶
func (n *PrimaryExpression) String() string
String implements fmt.Stringer.
type PrimaryNonParenthesizedExpression ¶
type PrimaryNonParenthesizedExpression struct { Case int ExpressionList *ExpressionList NonParenthesizedOperand *NonParenthesizedOperand PrimaryNonParenthesizedExpression *PrimaryNonParenthesizedExpression SliceArgument *SliceArgument SliceArgument2 *SliceArgument Token xc.Token Token2 xc.Token Token3 xc.Token }
PrimaryNonParenthesizedExpression represents data reduced by productions:
PrimaryNonParenthesizedExpression: NonParenthesizedOperand | IDENTIFIER '(' ExpressionList ')' // Case 1 | PrimaryNonParenthesizedExpression '[' SliceArgument ':' SliceArgument ']' // Case 2
Example ¶
fmt.Println(exampleAST(482, "set cbtics ident_a"))
Output: &plot.PrimaryNonParenthesizedExpression{ · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · Token: example482.go:1:12: IDENTIFIER "ident_a", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(483, "set ytics ident_a ( ident_b )"))
Output: &plot.PrimaryNonParenthesizedExpression{ · Case: 1, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example483.go:1:21: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example483.go:1:11: IDENTIFIER "ident_a", · Token2: example483.go:1:19: '(' "(", · Token3: example483.go:1:29: ')' ")", }
Example (Case2) ¶
fmt.Println(exampleAST(484, "set ztics ident_a [ : ]"))
Output: &plot.PrimaryNonParenthesizedExpression{ · Case: 2, · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · Token: example484.go:1:11: IDENTIFIER "ident_a", · · }, · }, · Token: example484.go:1:19: '[' "[", · Token2: example484.go:1:21: ':' ":", · Token3: example484.go:1:23: ']' "]", }
func (*PrimaryNonParenthesizedExpression) Pos ¶
func (n *PrimaryNonParenthesizedExpression) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PrimaryNonParenthesizedExpression) String ¶
func (n *PrimaryNonParenthesizedExpression) String() string
String implements fmt.Stringer.
type PrimaryNonStringExpression ¶
type PrimaryNonStringExpression struct { Case int ExpressionList *ExpressionList NonStringOperand *NonStringOperand PrimaryNonStringExpression *PrimaryNonStringExpression SliceArgument *SliceArgument SliceArgument2 *SliceArgument Token xc.Token Token2 xc.Token Token3 xc.Token }
PrimaryNonStringExpression represents data reduced by productions:
PrimaryNonStringExpression: NonStringOperand | IDENTIFIER '(' ExpressionList ')' // Case 1 | PrimaryNonStringExpression '[' SliceArgument ':' SliceArgument ']' // Case 2
Example ¶
fmt.Println(exampleAST(485, "set rtics ( ident_a !"))
Output: &plot.PrimaryNonStringExpression{ · NonStringOperand: &plot.NonStringOperand{ · · Case: 1, · · Token: example485.go:1:13: IDENTIFIER "ident_a", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(486, "set rtics ( ident_a ( ident_b ) !"))
Output: &plot.PrimaryNonStringExpression{ · Case: 1, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example486.go:1:23: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example486.go:1:13: IDENTIFIER "ident_a", · Token2: example486.go:1:21: '(' "(", · Token3: example486.go:1:31: ')' ")", }
Example (Case2) ¶
fmt.Println(exampleAST(487, "set rtics ( ident_a [ : ] !"))
Output: &plot.PrimaryNonStringExpression{ · Case: 2, · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · NonStringOperand: &plot.NonStringOperand{ · · · Case: 1, · · · Token: example487.go:1:13: IDENTIFIER "ident_a", · · }, · }, · Token: example487.go:1:21: '[' "[", · Token2: example487.go:1:23: ':' ":", · Token3: example487.go:1:25: ']' "]", }
func (*PrimaryNonStringExpression) Pos ¶
func (n *PrimaryNonStringExpression) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*PrimaryNonStringExpression) String ¶
func (n *PrimaryNonStringExpression) String() string
String implements fmt.Stringer.
type Print ¶
type Print struct { ExpressionList *ExpressionList Token xc.Token }
Print represents data reduced by production:
Print: "print" ExpressionList
Example ¶
fmt.Println(exampleAST(488, "print ident_a"))
Output: &plot.Print{ · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example488.go:1:7: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example488.go:1:1: IDENTIFIER "print", }
type Range ¶
type Range struct { Case int RangeExpression *RangeExpression RangeExpression2 *RangeExpression Token xc.Token Token2 xc.Token Token3 xc.Token }
Range represents data reduced by productions:
Range: '[' ':' ']' | '[' ':' RangeExpression ']' // Case 1 | '[' ']' // Case 2 | '[' RangeExpression ':' ']' // Case 3 | '[' RangeExpression ':' RangeExpression ']' // Case 4
Example ¶
fmt.Println(exampleAST(489, "stats [ : ]"))
Output: &plot.Range{ · Token: example489.go:1:7: '[' "[", · Token2: example489.go:1:9: ':' ":", · Token3: example489.go:1:11: ']' "]", }
Example (Case1) ¶
fmt.Println(exampleAST(490, "stats [ : * ]"))
Output: &plot.Range{ · Case: 1, · RangeExpression: &plot.RangeExpression{ · · Token: example490.go:1:11: '*' "*", · }, · Token: example490.go:1:7: '[' "[", · Token2: example490.go:1:9: ':' ":", · Token3: example490.go:1:13: ']' "]", }
Example (Case2) ¶
fmt.Println(exampleAST(491, "stats [ ]"))
Output: &plot.Range{ · Case: 2, · Token: example491.go:1:7: '[' "[", · Token2: example491.go:1:9: ']' "]", }
Example (Case3) ¶
fmt.Println(exampleAST(492, "stats [ * : ]"))
Output: &plot.Range{ · Case: 3, · RangeExpression: &plot.RangeExpression{ · · Token: example492.go:1:9: '*' "*", · }, · Token: example492.go:1:7: '[' "[", · Token2: example492.go:1:11: ':' ":", · Token3: example492.go:1:13: ']' "]", }
Example (Case4) ¶
fmt.Println(exampleAST(493, "stats [ * : * ]"))
Output: &plot.Range{ · Case: 4, · RangeExpression: &plot.RangeExpression{ · · Token: example493.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example493.go:1:13: '*' "*", · }, · Token: example493.go:1:7: '[' "[", · Token2: example493.go:1:11: ':' ":", · Token3: example493.go:1:15: ']' "]", }
type RangeExpression ¶
type RangeExpression struct { Case int RangeExpression *RangeExpression RangeExpression2 *RangeExpression RangeExpression3 *RangeExpression Token xc.Token Token2 xc.Token UnaryExpression *UnaryExpression }
RangeExpression represents data reduced by productions:
RangeExpression: '*' | RangeExpression "!=" RangeExpression // Case 1 | RangeExpression "&&" RangeExpression // Case 2 | RangeExpression "**" RangeExpression // Case 3 | RangeExpression "<<" RangeExpression // Case 4 | RangeExpression "<=" RangeExpression // Case 5 | RangeExpression "==" RangeExpression // Case 6 | RangeExpression ">=" RangeExpression // Case 7 | RangeExpression ">>" RangeExpression // Case 8 | RangeExpression "eq" RangeExpression // Case 9 | RangeExpression "ne" RangeExpression // Case 10 | RangeExpression "||" RangeExpression // Case 11 | RangeExpression '%' RangeExpression // Case 12 | RangeExpression '&' RangeExpression // Case 13 | RangeExpression '*' RangeExpression // Case 14 | RangeExpression '+' RangeExpression // Case 15 | RangeExpression '-' RangeExpression // Case 16 | RangeExpression '.' RangeExpression // Case 17 | RangeExpression '/' RangeExpression // Case 18 | RangeExpression '<' RangeExpression // Case 19 | RangeExpression '=' RangeExpression // Case 20 | RangeExpression '>' RangeExpression // Case 21 | RangeExpression '?' RangeExpression ':' RangeExpression // Case 22 | RangeExpression '^' RangeExpression // Case 23 | RangeExpression '|' RangeExpression // Case 24 | UnaryExpression // Case 25
Example ¶
fmt.Println(exampleAST(494, "stats [ * %"))
Output: &plot.RangeExpression{ · Token: example494.go:1:9: '*' "*", }
Example (Case01) ¶
fmt.Println(exampleAST(495, "stats [ * != * &"))
Output: &plot.RangeExpression{ · Case: 1, · RangeExpression: &plot.RangeExpression{ · · Token: example495.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example495.go:1:14: '*' "*", · }, · Token: example495.go:1:11: NOTEQ "!=", }
Example (Case02) ¶
fmt.Println(exampleAST(496, "stats [ * && * :"))
Output: &plot.RangeExpression{ · Case: 2, · RangeExpression: &plot.RangeExpression{ · · Token: example496.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example496.go:1:14: '*' "*", · }, · Token: example496.go:1:11: ANDAND "&&", }
Example (Case03) ¶
fmt.Println(exampleAST(497, "stats [ * ** * %"))
Output: &plot.RangeExpression{ · Case: 3, · RangeExpression: &plot.RangeExpression{ · · Token: example497.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example497.go:1:14: '*' "*", · }, · Token: example497.go:1:11: EXP "**", }
Example (Case04) ¶
fmt.Println(exampleAST(498, "stats [ * << * &"))
Output: &plot.RangeExpression{ · Case: 4, · RangeExpression: &plot.RangeExpression{ · · Token: example498.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example498.go:1:14: '*' "*", · }, · Token: example498.go:1:11: LSH "<<", }
Example (Case05) ¶
fmt.Println(exampleAST(499, "stats [ * <= * &"))
Output: &plot.RangeExpression{ · Case: 5, · RangeExpression: &plot.RangeExpression{ · · Token: example499.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example499.go:1:14: '*' "*", · }, · Token: example499.go:1:11: LEQ "<=", }
Example (Case06) ¶
fmt.Println(exampleAST(500, "stats [ * == * &"))
Output: &plot.RangeExpression{ · Case: 6, · RangeExpression: &plot.RangeExpression{ · · Token: example500.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example500.go:1:14: '*' "*", · }, · Token: example500.go:1:11: EQEQ "==", }
Example (Case07) ¶
fmt.Println(exampleAST(501, "stats [ * >= * &"))
Output: &plot.RangeExpression{ · Case: 7, · RangeExpression: &plot.RangeExpression{ · · Token: example501.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example501.go:1:14: '*' "*", · }, · Token: example501.go:1:11: GEQ ">=", }
Example (Case08) ¶
fmt.Println(exampleAST(502, "stats [ * >> * &"))
Output: &plot.RangeExpression{ · Case: 8, · RangeExpression: &plot.RangeExpression{ · · Token: example502.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example502.go:1:14: '*' "*", · }, · Token: example502.go:1:11: RSH ">>", }
Example (Case09) ¶
fmt.Println(exampleAST(503, "stats [ * eq * &"))
Output: &plot.RangeExpression{ · Case: 9, · RangeExpression: &plot.RangeExpression{ · · Token: example503.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example503.go:1:14: '*' "*", · }, · Token: example503.go:1:11: IDENTIFIER "eq", }
Example (Case10) ¶
fmt.Println(exampleAST(504, "stats [ * ne * &"))
Output: &plot.RangeExpression{ · Case: 10, · RangeExpression: &plot.RangeExpression{ · · Token: example504.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example504.go:1:14: '*' "*", · }, · Token: example504.go:1:11: IDENTIFIER "ne", }
Example (Case11) ¶
fmt.Println(exampleAST(505, "stats [ * || * :"))
Output: &plot.RangeExpression{ · Case: 11, · RangeExpression: &plot.RangeExpression{ · · Token: example505.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example505.go:1:14: '*' "*", · }, · Token: example505.go:1:11: OROR "||", }
Example (Case12) ¶
fmt.Println(exampleAST(506, "stats [ * % * %"))
Output: &plot.RangeExpression{ · Case: 12, · RangeExpression: &plot.RangeExpression{ · · Token: example506.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example506.go:1:13: '*' "*", · }, · Token: example506.go:1:11: '%' "%", }
Example (Case13) ¶
fmt.Println(exampleAST(507, "stats [ * & * &"))
Output: &plot.RangeExpression{ · Case: 13, · RangeExpression: &plot.RangeExpression{ · · Token: example507.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example507.go:1:13: '*' "*", · }, · Token: example507.go:1:11: '&' "&", }
Example (Case14) ¶
fmt.Println(exampleAST(508, "stats [ * * * %"))
Output: &plot.RangeExpression{ · Case: 14, · RangeExpression: &plot.RangeExpression{ · · Token: example508.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example508.go:1:13: '*' "*", · }, · Token: example508.go:1:11: '*' "*", }
Example (Case15) ¶
fmt.Println(exampleAST(509, "stats [ * + * &"))
Output: &plot.RangeExpression{ · Case: 15, · RangeExpression: &plot.RangeExpression{ · · Token: example509.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example509.go:1:13: '*' "*", · }, · Token: example509.go:1:11: '+' "+", }
Example (Case16) ¶
fmt.Println(exampleAST(510, "stats [ * - * &"))
Output: &plot.RangeExpression{ · Case: 16, · RangeExpression: &plot.RangeExpression{ · · Token: example510.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example510.go:1:13: '*' "*", · }, · Token: example510.go:1:11: '-' "-", }
Example (Case17) ¶
fmt.Println(exampleAST(511, "stats [ * . * &"))
Output: &plot.RangeExpression{ · Case: 17, · RangeExpression: &plot.RangeExpression{ · · Token: example511.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example511.go:1:13: '*' "*", · }, · Token: example511.go:1:11: '.' ".", }
Example (Case18) ¶
fmt.Println(exampleAST(512, "stats [ * / * %"))
Output: &plot.RangeExpression{ · Case: 18, · RangeExpression: &plot.RangeExpression{ · · Token: example512.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example512.go:1:13: '*' "*", · }, · Token: example512.go:1:11: '/' "/", }
Example (Case19) ¶
fmt.Println(exampleAST(513, "stats [ * < * &"))
Output: &plot.RangeExpression{ · Case: 19, · RangeExpression: &plot.RangeExpression{ · · Token: example513.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example513.go:1:13: '*' "*", · }, · Token: example513.go:1:11: '<' "<", }
Example (Case20) ¶
fmt.Println(exampleAST(514, "stats [ * = * :"))
Output: &plot.RangeExpression{ · Case: 20, · RangeExpression: &plot.RangeExpression{ · · Token: example514.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example514.go:1:13: '*' "*", · }, · Token: example514.go:1:11: '=' "=", }
Example (Case21) ¶
fmt.Println(exampleAST(515, "stats [ * > * &"))
Output: &plot.RangeExpression{ · Case: 21, · RangeExpression: &plot.RangeExpression{ · · Token: example515.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example515.go:1:13: '*' "*", · }, · Token: example515.go:1:11: '>' ">", }
Example (Case22) ¶
fmt.Println(exampleAST(516, "stats [ * ? * : * :"))
Output: &plot.RangeExpression{ · Case: 22, · RangeExpression: &plot.RangeExpression{ · · Token: example516.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example516.go:1:13: '*' "*", · }, · RangeExpression3: &plot.RangeExpression{ · · Token: example516.go:1:17: '*' "*", · }, · Token: example516.go:1:11: '?' "?", · Token2: example516.go:1:15: ':' ":", }
Example (Case23) ¶
fmt.Println(exampleAST(517, "stats [ * ^ * :"))
Output: &plot.RangeExpression{ · Case: 23, · RangeExpression: &plot.RangeExpression{ · · Token: example517.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example517.go:1:13: '*' "*", · }, · Token: example517.go:1:11: '^' "^", }
Example (Case24) ¶
fmt.Println(exampleAST(518, "stats [ * | * :"))
Output: &plot.RangeExpression{ · Case: 24, · RangeExpression: &plot.RangeExpression{ · · Token: example518.go:1:9: '*' "*", · }, · RangeExpression2: &plot.RangeExpression{ · · Token: example518.go:1:13: '*' "*", · }, · Token: example518.go:1:11: '|' "|", }
Example (Case25) ¶
fmt.Println(exampleAST(519, "stats [ ident_a %"))
Output: &plot.RangeExpression{ · Case: 25, · UnaryExpression: &plot.UnaryExpression{ · · PrimaryExpression: &plot.PrimaryExpression{ · · · Operand: &plot.Operand{ · · · · Case: 1, · · · · Token: example519.go:1:9: IDENTIFIER "ident_a", · · · }, · · }, · }, }
func (*RangeExpression) Pos ¶
func (n *RangeExpression) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*RangeExpression) String ¶
func (n *RangeExpression) String() string
String implements fmt.Stringer.
type Ranges ¶
Ranges represents data reduced by productions:
Ranges: Range | Ranges Range // Case 1
Example ¶
fmt.Println(exampleAST(520, "stats [ ] !"))
Output: &plot.Ranges{ · Range: &plot.Range{ · · Case: 2, · · Token: example520.go:1:7: '[' "[", · · Token2: example520.go:1:9: ']' "]", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(521, "stats [ ] [ ] !"))
Output: &plot.Ranges{ · Case: 1, · Range: &plot.Range{ · · Case: 2, · · Token: example521.go:1:11: '[' "[", · · Token2: example521.go:1:13: ']' "]", · }, · Ranges: &plot.Ranges{ · · Range: &plot.Range{ · · · Case: 2, · · · Token: example521.go:1:7: '[' "[", · · · Token2: example521.go:1:9: ']' "]", · · }, · }, }
type RangesOpt ¶
type RangesOpt struct {
Ranges *Ranges
}
RangesOpt represents data reduced by productions:
RangesOpt: /* empty */ | Ranges // Case 1
Example ¶
fmt.Println(exampleAST(522, "fit !") == (*RangesOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(523, "stats [ ] !"))
Output: &plot.RangesOpt{ · Ranges: &plot.Ranges{ · · Range: &plot.Range{ · · · Case: 2, · · · Token: example523.go:1:7: '[' "[", · · · Token2: example523.go:1:9: ']' "]", · · }, · }, }
type Replot ¶
type Replot struct { Case int PlotElementList *PlotElementList Token xc.Token }
Replot represents data reduced by productions:
Replot: "rep" | "rep" PlotElementList // Case 1 | "replot" // Case 2 | "replot" PlotElementList // Case 3
Example ¶
fmt.Println(exampleAST(524, "rep"))
Output: &plot.Replot{ · Token: example524.go:1:1: IDENTIFIER "rep", }
Example (Case1) ¶
fmt.Println(exampleAST(525, "rep ident_a"))
Output: &plot.Replot{ · Case: 1, · PlotElementList: &plot.PlotElementList{ · · PlotElementListItem: &plot.PlotElementListItem{ · · · Case: 1, · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example525.go:1:5: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example525.go:1:1: IDENTIFIER "rep", }
Example (Case2) ¶
fmt.Println(exampleAST(526, "replot"))
Output: &plot.Replot{ · Case: 2, · Token: example526.go:1:1: IDENTIFIER "replot", }
Example (Case3) ¶
fmt.Println(exampleAST(527, "replot ident_a"))
Output: &plot.Replot{ · Case: 3, · PlotElementList: &plot.PlotElementList{ · · PlotElementListItem: &plot.PlotElementListItem{ · · · Case: 1, · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example527.go:1:8: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example527.go:1:1: IDENTIFIER "replot", }
type Reread ¶
Reread represents data reduced by production:
Reread: "reread"
Example ¶
fmt.Println(exampleAST(528, "reread"))
Output: &plot.Reread{ · Token: example528.go:1:1: IDENTIFIER "reread", }
type Reset ¶
Reset represents data reduced by productions:
Reset: "reset" | "reset" "bind" // Case 1 | "reset" "errors" // Case 2 | "reset" "session" // Case 3
Example ¶
fmt.Println(exampleAST(529, "reset"))
Output: &plot.Reset{ · Token: example529.go:1:1: IDENTIFIER "reset", }
Example (Case1) ¶
fmt.Println(exampleAST(530, "reset bind"))
Output: &plot.Reset{ · Case: 1, · Token: example530.go:1:1: IDENTIFIER "reset", · Token2: example530.go:1:7: IDENTIFIER "bind", }
Example (Case2) ¶
fmt.Println(exampleAST(531, "reset errors"))
Output: &plot.Reset{ · Case: 2, · Token: example531.go:1:1: IDENTIFIER "reset", · Token2: example531.go:1:7: IDENTIFIER "errors", }
Example (Case3) ¶
fmt.Println(exampleAST(532, "reset session"))
Output: &plot.Reset{ · Case: 3, · Token: example532.go:1:1: IDENTIFIER "reset", · Token2: example532.go:1:7: IDENTIFIER "session", }
type Set ¶
type Set struct { IterationSpecifierOpt *IterationSpecifierOpt SetSpec *SetSpec Token xc.Token }
Set represents data reduced by production:
Set: "set" IterationSpecifierOpt SetSpec
Example ¶
fmt.Println(exampleAST(533, "set auto"))
Output: &plot.Set{ · SetSpec: &plot.SetSpec{ · · Case: 3, · · Token: example533.go:1:5: IDENTIFIER "auto", · }, · Token: example533.go:1:1: IDENTIFIER "set", }
type SetAnglesSpec ¶
SetAnglesSpec represents data reduced by productions:
SetAnglesSpec: "degrees" | "radians" // Case 1 | "rad" // Case 2
Example ¶
fmt.Println(exampleAST(677, "set angle degrees"))
Output: &plot.SetAnglesSpec{ · Token: example677.go:1:11: IDENTIFIER "degrees", }
Example (Case1) ¶
fmt.Println(exampleAST(678, "set angles radians"))
Output: &plot.SetAnglesSpec{ · Case: 1, · Token: example678.go:1:12: IDENTIFIER "radians", }
Example (Case2) ¶
fmt.Println(exampleAST(679, "set angle rad"))
Output: &plot.SetAnglesSpec{ · Case: 2, · Token: example679.go:1:11: IDENTIFIER "rad", }
func (*SetAnglesSpec) Pos ¶
func (n *SetAnglesSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetAnglesSpec) String ¶
func (n *SetAnglesSpec) String() string
String implements fmt.Stringer.
type SetArrowSpec ¶
type SetArrowSpec struct { ExpressionOpt *ExpressionOpt SetArrowSpecList *SetArrowSpecList }
SetArrowSpec represents data reduced by production:
SetArrowSpec: ExpressionOpt SetArrowSpecList
Example ¶
fmt.Println(exampleAST(680, "set arrow arrowstyle"))
Output: &plot.SetArrowSpec{ · SetArrowSpecList: &plot.SetArrowSpecList{ · · SetArrowSpecListItem: &plot.SetArrowSpecListItem{ · · · Case: 17, · · · Token: example680.go:1:11: IDENTIFIER "arrowstyle", · · }, · }, }
func (*SetArrowSpec) Pos ¶
func (n *SetArrowSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetArrowSpec) String ¶
func (n *SetArrowSpec) String() string
String implements fmt.Stringer.
type SetArrowSpecList ¶
type SetArrowSpecList struct { Case int SetArrowSpecList *SetArrowSpecList SetArrowSpecListItem *SetArrowSpecListItem }
SetArrowSpecList represents data reduced by productions:
SetArrowSpecList: SetArrowSpecListItem | SetArrowSpecList SetArrowSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(681, "set arrow arrowstyle"))
Output: &plot.SetArrowSpecList{ · SetArrowSpecListItem: &plot.SetArrowSpecListItem{ · · Case: 17, · · Token: example681.go:1:11: IDENTIFIER "arrowstyle", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(682, "set arrow arrowstyle arrowstyle"))
Output: &plot.SetArrowSpecList{ · SetArrowSpecList: &plot.SetArrowSpecList{ · · Case: 1, · · SetArrowSpecListItem: &plot.SetArrowSpecListItem{ · · · Case: 17, · · · Token: example682.go:1:22: IDENTIFIER "arrowstyle", · · }, · }, · SetArrowSpecListItem: &plot.SetArrowSpecListItem{ · · Case: 17, · · Token: example682.go:1:11: IDENTIFIER "arrowstyle", · }, }
func (*SetArrowSpecList) Pos ¶
func (n *SetArrowSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetArrowSpecList) String ¶
func (n *SetArrowSpecList) String() string
String implements fmt.Stringer.
type SetArrowSpecListItem ¶
type SetArrowSpecListItem struct { Case int Expression *Expression Expression2 *Expression Expression3 *Expression LineStyleListItem *LineStyleListItem Position *Position Position2 *Position Position3 *Position Token xc.Token Token2 xc.Token Token3 xc.Token }
SetArrowSpecListItem represents data reduced by productions:
SetArrowSpecListItem: "head" | "nohead" // Case 1 | "backhead" // Case 2 | "heads" // Case 3 | "size" Expression ',' Expression // Case 4 | "size" Expression ',' Expression ',' Expression // Case 5 | "fill" // Case 6 | "filled" // Case 7 | "nofilled" // Case 8 | "empty" // Case 9 | "noborder" // Case 10 | "front" // Case 11 | "back" // Case 12 | LineStyleListItem // Case 13 | "from" Position "to" Position // Case 14 | "from" Position "rto" Position // Case 15 | "from" Position "length" Position "angle" Position // Case 16 | "arrowstyle" // Case 17 | "as" Expression // Case 18
Example ¶
fmt.Println(exampleAST(683, "set arrow head"))
Output: &plot.SetArrowSpecListItem{ · Token: example683.go:1:11: IDENTIFIER "head", }
Example (Case01) ¶
fmt.Println(exampleAST(684, "set arrow nohead"))
Output: &plot.SetArrowSpecListItem{ · Case: 1, · Token: example684.go:1:11: IDENTIFIER "nohead", }
Example (Case02) ¶
fmt.Println(exampleAST(685, "set arrow backhead"))
Output: &plot.SetArrowSpecListItem{ · Case: 2, · Token: example685.go:1:11: IDENTIFIER "backhead", }
Example (Case03) ¶
fmt.Println(exampleAST(686, "set arrow heads"))
Output: &plot.SetArrowSpecListItem{ · Case: 3, · Token: example686.go:1:11: IDENTIFIER "heads", }
Example (Case04) ¶
fmt.Println(exampleAST(687, "set arrow size ident_a , ident_b"))
Output: &plot.SetArrowSpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example687.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example687.go:1:26: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example687.go:1:11: IDENTIFIER "size", · Token2: example687.go:1:24: ',' ",", }
Example (Case05) ¶
fmt.Println(exampleAST(688, "set arrow size ident_a , ident_b , ident_c"))
Output: &plot.SetArrowSpecListItem{ · Case: 5, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example688.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example688.go:1:26: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression3: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example688.go:1:36: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example688.go:1:11: IDENTIFIER "size", · Token2: example688.go:1:24: ',' ",", · Token3: example688.go:1:34: ',' ",", }
Example (Case06) ¶
fmt.Println(exampleAST(689, "set arrow fill"))
Output: &plot.SetArrowSpecListItem{ · Case: 6, · Token: example689.go:1:11: IDENTIFIER "fill", }
Example (Case07) ¶
fmt.Println(exampleAST(690, "set arrow filled"))
Output: &plot.SetArrowSpecListItem{ · Case: 7, · Token: example690.go:1:11: IDENTIFIER "filled", }
Example (Case08) ¶
fmt.Println(exampleAST(691, "set arrow nofilled"))
Output: &plot.SetArrowSpecListItem{ · Case: 8, · Token: example691.go:1:11: IDENTIFIER "nofilled", }
Example (Case09) ¶
fmt.Println(exampleAST(692, "set arrow empty"))
Output: &plot.SetArrowSpecListItem{ · Case: 9, · Token: example692.go:1:11: IDENTIFIER "empty", }
Example (Case10) ¶
fmt.Println(exampleAST(693, "set arrow noborder"))
Output: &plot.SetArrowSpecListItem{ · Case: 10, · Token: example693.go:1:11: IDENTIFIER "noborder", }
Example (Case11) ¶
fmt.Println(exampleAST(694, "set arrow front"))
Output: &plot.SetArrowSpecListItem{ · Case: 11, · Token: example694.go:1:11: IDENTIFIER "front", }
Example (Case12) ¶
fmt.Println(exampleAST(695, "set arrow back"))
Output: &plot.SetArrowSpecListItem{ · Case: 12, · Token: example695.go:1:11: IDENTIFIER "back", }
Example (Case13) ¶
fmt.Println(exampleAST(696, "set arrow nocontours"))
Output: &plot.SetArrowSpecListItem{ · Case: 13, · LineStyleListItem: &plot.LineStyleListItem{ · · Case: 15, · · Token: example696.go:1:11: IDENTIFIER "nocontours", · }, }
Example (Case14) ¶
fmt.Println(exampleAST(697, "set arrow from ident_a to ident_b"))
Output: &plot.SetArrowSpecListItem{ · Case: 14, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example697.go:1:16: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Position2: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example697.go:1:27: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example697.go:1:11: IDENTIFIER "from", · Token2: example697.go:1:24: IDENTIFIER "to", }
Example (Case15) ¶
fmt.Println(exampleAST(698, "set arrow from ident_a rto ident_b"))
Output: &plot.SetArrowSpecListItem{ · Case: 15, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example698.go:1:16: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Position2: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example698.go:1:28: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example698.go:1:11: IDENTIFIER "from", · Token2: example698.go:1:24: IDENTIFIER "rto", }
Example (Case16) ¶
fmt.Println(exampleAST(699, "set arrow from ident_a length ident_b angle ident_c"))
Output: &plot.SetArrowSpecListItem{ · Case: 16, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example699.go:1:16: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Position2: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example699.go:1:31: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Position3: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example699.go:1:45: IDENTIFIER "ident_c", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example699.go:1:11: IDENTIFIER "from", · Token2: example699.go:1:24: IDENTIFIER "length", · Token3: example699.go:1:39: IDENTIFIER "angle", }
Example (Case17) ¶
fmt.Println(exampleAST(700, "set arrow arrowstyle"))
Output: &plot.SetArrowSpecListItem{ · Case: 17, · Token: example700.go:1:11: IDENTIFIER "arrowstyle", }
Example (Case18) ¶
fmt.Println(exampleAST(701, "set arrow as ident_a"))
Output: &plot.SetArrowSpecListItem{ · Case: 18, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example701.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example701.go:1:11: IDENTIFIER "as", }
func (*SetArrowSpecListItem) Pos ¶
func (n *SetArrowSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetArrowSpecListItem) String ¶
func (n *SetArrowSpecListItem) String() string
String implements fmt.Stringer.
type SetAutoscaleAxes ¶
SetAutoscaleAxes represents data reduced by productions:
SetAutoscaleAxes: "cb" | "cbfix" // Case 1 | "cbfixmax" // Case 2 | "cbfixmin" // Case 3 | "cbmax" // Case 4 | "cbmin" // Case 5 | "x" // Case 6 | "x2" // Case 7 | "x2fix" // Case 8 | "x2fixmax" // Case 9 | "x2fixmin" // Case 10 | "x2max" // Case 11 | "x2min" // Case 12 | "xfix" // Case 13 | "xfixmax" // Case 14 | "xfixmin" // Case 15 | "xmax" // Case 16 | "xmin" // Case 17 | "xy" // Case 18 | "xyfix" // Case 19 | "xyfixmax" // Case 20 | "xyfixmin" // Case 21 | "y" // Case 22 | "y2" // Case 23 | "y2fix" // Case 24 | "y2fixmax" // Case 25 | "y2fixmin" // Case 26 | "y2max" // Case 27 | "y2min" // Case 28 | "yfix" // Case 29 | "yfixmax" // Case 30 | "yfixmin" // Case 31 | "ymax" // Case 32 | "ymin" // Case 33 | "z" // Case 34 | "zfix" // Case 35 | "zfixmax" // Case 36 | "zfixmin" // Case 37 | "zmax" // Case 38
Example ¶
fmt.Println(exampleAST(702, "set auto cb"))
Output: &plot.SetAutoscaleAxes{ · Token: example702.go:1:10: IDENTIFIER "cb", }
Example (Case01) ¶
fmt.Println(exampleAST(703, "set auto cbfix"))
Output: &plot.SetAutoscaleAxes{ · Case: 1, · Token: example703.go:1:10: IDENTIFIER "cbfix", }
Example (Case02) ¶
fmt.Println(exampleAST(704, "set auto cbfixmax"))
Output: &plot.SetAutoscaleAxes{ · Case: 2, · Token: example704.go:1:10: IDENTIFIER "cbfixmax", }
Example (Case03) ¶
fmt.Println(exampleAST(705, "set auto cbfixmin"))
Output: &plot.SetAutoscaleAxes{ · Case: 3, · Token: example705.go:1:10: IDENTIFIER "cbfixmin", }
Example (Case04) ¶
fmt.Println(exampleAST(706, "set auto cbmax"))
Output: &plot.SetAutoscaleAxes{ · Case: 4, · Token: example706.go:1:10: IDENTIFIER "cbmax", }
Example (Case05) ¶
fmt.Println(exampleAST(707, "set auto cbmin"))
Output: &plot.SetAutoscaleAxes{ · Case: 5, · Token: example707.go:1:10: IDENTIFIER "cbmin", }
Example (Case06) ¶
fmt.Println(exampleAST(708, "set auto x"))
Output: &plot.SetAutoscaleAxes{ · Case: 6, · Token: example708.go:1:10: IDENTIFIER "x", }
Example (Case07) ¶
fmt.Println(exampleAST(709, "set autoscale x2"))
Output: &plot.SetAutoscaleAxes{ · Case: 7, · Token: example709.go:1:15: IDENTIFIER "x2", }
Example (Case08) ¶
fmt.Println(exampleAST(710, "set auto x2fix"))
Output: &plot.SetAutoscaleAxes{ · Case: 8, · Token: example710.go:1:10: IDENTIFIER "x2fix", }
Example (Case09) ¶
fmt.Println(exampleAST(711, "set auto x2fixmax"))
Output: &plot.SetAutoscaleAxes{ · Case: 9, · Token: example711.go:1:10: IDENTIFIER "x2fixmax", }
Example (Case10) ¶
fmt.Println(exampleAST(712, "set auto x2fixmin"))
Output: &plot.SetAutoscaleAxes{ · Case: 10, · Token: example712.go:1:10: IDENTIFIER "x2fixmin", }
Example (Case11) ¶
fmt.Println(exampleAST(713, "set auto x2max"))
Output: &plot.SetAutoscaleAxes{ · Case: 11, · Token: example713.go:1:10: IDENTIFIER "x2max", }
Example (Case12) ¶
fmt.Println(exampleAST(714, "set auto x2min"))
Output: &plot.SetAutoscaleAxes{ · Case: 12, · Token: example714.go:1:10: IDENTIFIER "x2min", }
Example (Case13) ¶
fmt.Println(exampleAST(715, "set auto xfix"))
Output: &plot.SetAutoscaleAxes{ · Case: 13, · Token: example715.go:1:10: IDENTIFIER "xfix", }
Example (Case14) ¶
fmt.Println(exampleAST(716, "set auto xfixmax"))
Output: &plot.SetAutoscaleAxes{ · Case: 14, · Token: example716.go:1:10: IDENTIFIER "xfixmax", }
Example (Case15) ¶
fmt.Println(exampleAST(717, "set auto xfixmin"))
Output: &plot.SetAutoscaleAxes{ · Case: 15, · Token: example717.go:1:10: IDENTIFIER "xfixmin", }
Example (Case16) ¶
fmt.Println(exampleAST(718, "set auto xmax"))
Output: &plot.SetAutoscaleAxes{ · Case: 16, · Token: example718.go:1:10: IDENTIFIER "xmax", }
Example (Case17) ¶
fmt.Println(exampleAST(719, "set auto xmin"))
Output: &plot.SetAutoscaleAxes{ · Case: 17, · Token: example719.go:1:10: IDENTIFIER "xmin", }
Example (Case18) ¶
fmt.Println(exampleAST(720, "set auto xy"))
Output: &plot.SetAutoscaleAxes{ · Case: 18, · Token: example720.go:1:10: IDENTIFIER "xy", }
Example (Case19) ¶
fmt.Println(exampleAST(721, "set auto xyfix"))
Output: &plot.SetAutoscaleAxes{ · Case: 19, · Token: example721.go:1:10: IDENTIFIER "xyfix", }
Example (Case20) ¶
fmt.Println(exampleAST(722, "set auto xyfixmax"))
Output: &plot.SetAutoscaleAxes{ · Case: 20, · Token: example722.go:1:10: IDENTIFIER "xyfixmax", }
Example (Case21) ¶
fmt.Println(exampleAST(723, "set auto xyfixmin"))
Output: &plot.SetAutoscaleAxes{ · Case: 21, · Token: example723.go:1:10: IDENTIFIER "xyfixmin", }
Example (Case22) ¶
fmt.Println(exampleAST(724, "set auto y"))
Output: &plot.SetAutoscaleAxes{ · Case: 22, · Token: example724.go:1:10: IDENTIFIER "y", }
Example (Case23) ¶
fmt.Println(exampleAST(725, "set auto y2"))
Output: &plot.SetAutoscaleAxes{ · Case: 23, · Token: example725.go:1:10: IDENTIFIER "y2", }
Example (Case24) ¶
fmt.Println(exampleAST(726, "set auto y2fix"))
Output: &plot.SetAutoscaleAxes{ · Case: 24, · Token: example726.go:1:10: IDENTIFIER "y2fix", }
Example (Case25) ¶
fmt.Println(exampleAST(727, "set auto y2fixmax"))
Output: &plot.SetAutoscaleAxes{ · Case: 25, · Token: example727.go:1:10: IDENTIFIER "y2fixmax", }
Example (Case26) ¶
fmt.Println(exampleAST(728, "set auto y2fixmin"))
Output: &plot.SetAutoscaleAxes{ · Case: 26, · Token: example728.go:1:10: IDENTIFIER "y2fixmin", }
Example (Case27) ¶
fmt.Println(exampleAST(729, "set auto y2max"))
Output: &plot.SetAutoscaleAxes{ · Case: 27, · Token: example729.go:1:10: IDENTIFIER "y2max", }
Example (Case28) ¶
fmt.Println(exampleAST(730, "set auto y2min"))
Output: &plot.SetAutoscaleAxes{ · Case: 28, · Token: example730.go:1:10: IDENTIFIER "y2min", }
Example (Case29) ¶
fmt.Println(exampleAST(731, "set autoscale yfix"))
Output: &plot.SetAutoscaleAxes{ · Case: 29, · Token: example731.go:1:15: IDENTIFIER "yfix", }
Example (Case30) ¶
fmt.Println(exampleAST(732, "set auto yfixmax"))
Output: &plot.SetAutoscaleAxes{ · Case: 30, · Token: example732.go:1:10: IDENTIFIER "yfixmax", }
Example (Case31) ¶
fmt.Println(exampleAST(733, "set auto yfixmin"))
Output: &plot.SetAutoscaleAxes{ · Case: 31, · Token: example733.go:1:10: IDENTIFIER "yfixmin", }
Example (Case32) ¶
fmt.Println(exampleAST(734, "set auto ymax"))
Output: &plot.SetAutoscaleAxes{ · Case: 32, · Token: example734.go:1:10: IDENTIFIER "ymax", }
Example (Case33) ¶
fmt.Println(exampleAST(735, "set auto ymin"))
Output: &plot.SetAutoscaleAxes{ · Case: 33, · Token: example735.go:1:10: IDENTIFIER "ymin", }
Example (Case34) ¶
fmt.Println(exampleAST(736, "set auto z"))
Output: &plot.SetAutoscaleAxes{ · Case: 34, · Token: example736.go:1:10: IDENTIFIER "z", }
Example (Case35) ¶
fmt.Println(exampleAST(737, "set auto zfix"))
Output: &plot.SetAutoscaleAxes{ · Case: 35, · Token: example737.go:1:10: IDENTIFIER "zfix", }
Example (Case36) ¶
fmt.Println(exampleAST(738, "set auto zfixmax"))
Output: &plot.SetAutoscaleAxes{ · Case: 36, · Token: example738.go:1:10: IDENTIFIER "zfixmax", }
Example (Case37) ¶
fmt.Println(exampleAST(739, "set auto zfixmin"))
Output: &plot.SetAutoscaleAxes{ · Case: 37, · Token: example739.go:1:10: IDENTIFIER "zfixmin", }
Example (Case38) ¶
fmt.Println(exampleAST(740, "set auto zmax"))
Output: &plot.SetAutoscaleAxes{ · Case: 38, · Token: example740.go:1:10: IDENTIFIER "zmax", }
func (*SetAutoscaleAxes) Pos ¶
func (n *SetAutoscaleAxes) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetAutoscaleAxes) String ¶
func (n *SetAutoscaleAxes) String() string
String implements fmt.Stringer.
type SetAutoscaleSpecList ¶
type SetAutoscaleSpecList struct { Case int SetAutoscaleSpecList *SetAutoscaleSpecList SetAutoscaleSpecListItem *SetAutoscaleSpecListItem }
SetAutoscaleSpecList represents data reduced by productions:
SetAutoscaleSpecList: SetAutoscaleSpecListItem | SetAutoscaleSpecList SetAutoscaleSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(741, "set auto cb"))
Output: &plot.SetAutoscaleSpecList{ · SetAutoscaleSpecListItem: &plot.SetAutoscaleSpecListItem{ · · Case: 3, · · SetAutoscaleAxes: &plot.SetAutoscaleAxes{ · · · Token: example741.go:1:10: IDENTIFIER "cb", · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(742, "set autoscale cb cb"))
Output: &plot.SetAutoscaleSpecList{ · SetAutoscaleSpecList: &plot.SetAutoscaleSpecList{ · · Case: 1, · · SetAutoscaleSpecListItem: &plot.SetAutoscaleSpecListItem{ · · · Case: 3, · · · SetAutoscaleAxes: &plot.SetAutoscaleAxes{ · · · · Token: example742.go:1:18: IDENTIFIER "cb", · · · }, · · }, · }, · SetAutoscaleSpecListItem: &plot.SetAutoscaleSpecListItem{ · · Case: 3, · · SetAutoscaleAxes: &plot.SetAutoscaleAxes{ · · · Token: example742.go:1:15: IDENTIFIER "cb", · · }, · }, }
func (*SetAutoscaleSpecList) Pos ¶
func (n *SetAutoscaleSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetAutoscaleSpecList) String ¶
func (n *SetAutoscaleSpecList) String() string
String implements fmt.Stringer.
type SetAutoscaleSpecListItem ¶
type SetAutoscaleSpecListItem struct { Case int SetAutoscaleAxes *SetAutoscaleAxes Token xc.Token }
SetAutoscaleSpecListItem represents data reduced by productions:
SetAutoscaleSpecListItem: "fix" | "keepfix" // Case 1 | "noextend" // Case 2 | SetAutoscaleAxes // Case 3
Example ¶
fmt.Println(exampleAST(745, "set auto fix"))
Output: &plot.SetAutoscaleSpecListItem{ · Token: example745.go:1:10: IDENTIFIER "fix", }
Example (Case1) ¶
fmt.Println(exampleAST(746, "set auto keepfix"))
Output: &plot.SetAutoscaleSpecListItem{ · Case: 1, · Token: example746.go:1:10: IDENTIFIER "keepfix", }
Example (Case2) ¶
fmt.Println(exampleAST(747, "set auto noextend"))
Output: &plot.SetAutoscaleSpecListItem{ · Case: 2, · Token: example747.go:1:10: IDENTIFIER "noextend", }
Example (Case3) ¶
fmt.Println(exampleAST(748, "set auto cb"))
Output: &plot.SetAutoscaleSpecListItem{ · Case: 3, · SetAutoscaleAxes: &plot.SetAutoscaleAxes{ · · Token: example748.go:1:10: IDENTIFIER "cb", · }, }
func (*SetAutoscaleSpecListItem) Pos ¶
func (n *SetAutoscaleSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetAutoscaleSpecListItem) String ¶
func (n *SetAutoscaleSpecListItem) String() string
String implements fmt.Stringer.
type SetAutoscaleSpecListOpt ¶
type SetAutoscaleSpecListOpt struct {
SetAutoscaleSpecList *SetAutoscaleSpecList
}
SetAutoscaleSpecListOpt represents data reduced by productions:
SetAutoscaleSpecListOpt: /* empty */ | SetAutoscaleSpecList // Case 1
Example ¶
fmt.Println(exampleAST(743, "set auto") == (*SetAutoscaleSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(744, "set autoscale cb"))
Output: &plot.SetAutoscaleSpecListOpt{ · SetAutoscaleSpecList: &plot.SetAutoscaleSpecList{ · · SetAutoscaleSpecListItem: &plot.SetAutoscaleSpecListItem{ · · · Case: 3, · · · SetAutoscaleAxes: &plot.SetAutoscaleAxes{ · · · · Token: example744.go:1:15: IDENTIFIER "cb", · · · }, · · }, · }, }
func (*SetAutoscaleSpecListOpt) Pos ¶
func (n *SetAutoscaleSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetAutoscaleSpecListOpt) String ¶
func (n *SetAutoscaleSpecListOpt) String() string
String implements fmt.Stringer.
type SetBarsSpecList ¶
type SetBarsSpecList struct { Case int SetBarsSpecList *SetBarsSpecList SetBarsSpecListItem *SetBarsSpecListItem }
SetBarsSpecList represents data reduced by productions:
SetBarsSpecList: SetBarsSpecListItem | SetBarsSpecList SetBarsSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(749, "set bars ident_a"))
Output: &plot.SetBarsSpecList{ · SetBarsSpecListItem: &plot.SetBarsSpecListItem{ · · Case: 3, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example749.go:1:10: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(750, "set bars ident_a ident_b"))
Output: &plot.SetBarsSpecList{ · SetBarsSpecList: &plot.SetBarsSpecList{ · · Case: 1, · · SetBarsSpecListItem: &plot.SetBarsSpecListItem{ · · · Case: 3, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example750.go:1:18: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetBarsSpecListItem: &plot.SetBarsSpecListItem{ · · Case: 3, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example750.go:1:10: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetBarsSpecList) Pos ¶
func (n *SetBarsSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetBarsSpecList) String ¶
func (n *SetBarsSpecList) String() string
String implements fmt.Stringer.
type SetBarsSpecListItem ¶
type SetBarsSpecListItem struct { Case int SimpleExpression *SimpleExpression Token xc.Token }
SetBarsSpecListItem represents data reduced by productions:
SetBarsSpecListItem: "small" | "large" // Case 1 | "fullwidth" // Case 2 | SimpleExpression // Case 3 | "front" // Case 4 | "back" // Case 5
Example ¶
fmt.Println(exampleAST(751, "set bars small"))
Output: &plot.SetBarsSpecListItem{ · Token: example751.go:1:10: IDENTIFIER "small", }
Example (Case1) ¶
fmt.Println(exampleAST(752, "set bars large"))
Output: &plot.SetBarsSpecListItem{ · Case: 1, · Token: example752.go:1:10: IDENTIFIER "large", }
Example (Case2) ¶
fmt.Println(exampleAST(753, "set bars fullwidth"))
Output: &plot.SetBarsSpecListItem{ · Case: 2, · Token: example753.go:1:10: IDENTIFIER "fullwidth", }
Example (Case3) ¶
fmt.Println(exampleAST(754, "set bars ident_a"))
Output: &plot.SetBarsSpecListItem{ · Case: 3, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example754.go:1:10: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case4) ¶
fmt.Println(exampleAST(755, "set bars front"))
Output: &plot.SetBarsSpecListItem{ · Case: 4, · Token: example755.go:1:10: IDENTIFIER "front", }
Example (Case5) ¶
fmt.Println(exampleAST(756, "set bars back"))
Output: &plot.SetBarsSpecListItem{ · Case: 5, · Token: example756.go:1:10: IDENTIFIER "back", }
func (*SetBarsSpecListItem) Pos ¶
func (n *SetBarsSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetBarsSpecListItem) String ¶
func (n *SetBarsSpecListItem) String() string
String implements fmt.Stringer.
type SetBarsSpecListOpt ¶
type SetBarsSpecListOpt struct {
SetBarsSpecList *SetBarsSpecList
}
SetBarsSpecListOpt represents data reduced by productions:
SetBarsSpecListOpt: /* empty */ | SetBarsSpecList // Case 1
Example ¶
fmt.Println(exampleAST(757, "set bars") == (*SetBarsSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(758, "set bars ident_a"))
Output: &plot.SetBarsSpecListOpt{ · SetBarsSpecList: &plot.SetBarsSpecList{ · · SetBarsSpecListItem: &plot.SetBarsSpecListItem{ · · · Case: 3, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example758.go:1:10: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetBarsSpecListOpt) Pos ¶
func (n *SetBarsSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetBarsSpecListOpt) String ¶
func (n *SetBarsSpecListOpt) String() string
String implements fmt.Stringer.
type SetBmarginSpecOpt ¶
SetBmarginSpecOpt represents data reduced by productions:
SetBmarginSpecOpt: /* empty */ | "at" "screen" Expression // Case 1 | Expression // Case 2
Example ¶
fmt.Println(exampleAST(759, "set bmargin") == (*SetBmarginSpecOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(760, "set tmargin at screen ident_a"))
Output: &plot.SetBmarginSpecOpt{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example760.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example760.go:1:13: IDENTIFIER "at", · Token2: example760.go:1:16: IDENTIFIER "screen", }
Example (Case2) ¶
fmt.Println(exampleAST(761, "set rmargin ident_a"))
Output: &plot.SetBmarginSpecOpt{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example761.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*SetBmarginSpecOpt) Pos ¶
func (n *SetBmarginSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetBmarginSpecOpt) String ¶
func (n *SetBmarginSpecOpt) String() string
String implements fmt.Stringer.
type SetBorderSpec ¶
type SetBorderSpec struct { ExpressionOpt *ExpressionOpt SetBorderSpecListOpt *SetBorderSpecListOpt }
SetBorderSpec represents data reduced by production:
SetBorderSpec: ExpressionOpt SetBorderSpecListOpt
Example ¶
fmt.Println(exampleAST(762, "set border 1 front"))
Output: &plot.SetBorderSpec{ · ExpressionOpt: &plot.ExpressionOpt{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 2, · · · · · · Token: example762.go:1:12: NUM_LIT "1", · · · · · }, · · · · }, · · · }, · · }, · }, · SetBorderSpecListOpt: &plot.SetBorderSpecListOpt{ · · SetBorderSpecList: &plot.SetBorderSpecList{ · · · SetBorderSpecListItem: &plot.SetBorderSpecListItem{ · · · · Token: example762.go:1:14: IDENTIFIER "front", · · · }, · · }, · }, }
func (*SetBorderSpec) Pos ¶
func (n *SetBorderSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetBorderSpec) String ¶
func (n *SetBorderSpec) String() string
String implements fmt.Stringer.
type SetBorderSpecList ¶
type SetBorderSpecList struct { Case int SetBorderSpecList *SetBorderSpecList SetBorderSpecListItem *SetBorderSpecListItem }
SetBorderSpecList represents data reduced by productions:
SetBorderSpecList: SetBorderSpecListItem | SetBorderSpecList SetBorderSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(763, "set border back"))
Output: &plot.SetBorderSpecList{ · SetBorderSpecListItem: &plot.SetBorderSpecListItem{ · · Case: 1, · · Token: example763.go:1:12: IDENTIFIER "back", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(764, "set border back back"))
Output: &plot.SetBorderSpecList{ · SetBorderSpecList: &plot.SetBorderSpecList{ · · Case: 1, · · SetBorderSpecListItem: &plot.SetBorderSpecListItem{ · · · Case: 1, · · · Token: example764.go:1:17: IDENTIFIER "back", · · }, · }, · SetBorderSpecListItem: &plot.SetBorderSpecListItem{ · · Case: 1, · · Token: example764.go:1:12: IDENTIFIER "back", · }, }
func (*SetBorderSpecList) Pos ¶
func (n *SetBorderSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetBorderSpecList) String ¶
func (n *SetBorderSpecList) String() string
String implements fmt.Stringer.
type SetBorderSpecListItem ¶
type SetBorderSpecListItem struct { Case int LineStyleListItem *LineStyleListItem Token xc.Token }
SetBorderSpecListItem represents data reduced by productions:
SetBorderSpecListItem: "front" | "back" // Case 1 | "behind" // Case 2 | LineStyleListItem // Case 3
Example ¶
fmt.Println(exampleAST(765, "set border front"))
Output: &plot.SetBorderSpecListItem{ · Token: example765.go:1:12: IDENTIFIER "front", }
Example (Case1) ¶
fmt.Println(exampleAST(766, "set border back"))
Output: &plot.SetBorderSpecListItem{ · Case: 1, · Token: example766.go:1:12: IDENTIFIER "back", }
Example (Case2) ¶
fmt.Println(exampleAST(767, "set border behind"))
Output: &plot.SetBorderSpecListItem{ · Case: 2, · Token: example767.go:1:12: IDENTIFIER "behind", }
Example (Case3) ¶
fmt.Println(exampleAST(768, "set border nocontours"))
Output: &plot.SetBorderSpecListItem{ · Case: 3, · LineStyleListItem: &plot.LineStyleListItem{ · · Case: 15, · · Token: example768.go:1:12: IDENTIFIER "nocontours", · }, }
func (*SetBorderSpecListItem) Pos ¶
func (n *SetBorderSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetBorderSpecListItem) String ¶
func (n *SetBorderSpecListItem) String() string
String implements fmt.Stringer.
type SetBorderSpecListOpt ¶
type SetBorderSpecListOpt struct {
SetBorderSpecList *SetBorderSpecList
}
SetBorderSpecListOpt represents data reduced by productions:
SetBorderSpecListOpt: /* empty */ | SetBorderSpecList // Case 1
Example ¶
fmt.Println(exampleAST(769, "set border") == (*SetBorderSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(770, "set border back"))
Output: &plot.SetBorderSpecListOpt{ · SetBorderSpecList: &plot.SetBorderSpecList{ · · SetBorderSpecListItem: &plot.SetBorderSpecListItem{ · · · Case: 1, · · · Token: example770.go:1:12: IDENTIFIER "back", · · }, · }, }
func (*SetBorderSpecListOpt) Pos ¶
func (n *SetBorderSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetBorderSpecListOpt) String ¶
func (n *SetBorderSpecListOpt) String() string
String implements fmt.Stringer.
type SetBoxwidthSpec ¶
type SetBoxwidthSpec struct { Case int Expression *Expression Token xc.Token }
SetBoxwidthSpec represents data reduced by productions:
SetBoxwidthSpec: Expression | Expression "absolute" // Case 1 | Expression "relative" // Case 2
Example ¶
fmt.Println(exampleAST(771, "set boxwidth ident_a"))
Output: &plot.SetBoxwidthSpec{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example771.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(772, "set boxwidth ident_a absolute"))
Output: &plot.SetBoxwidthSpec{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example772.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example772.go:1:22: IDENTIFIER "absolute", }
Example (Case2) ¶
fmt.Println(exampleAST(773, "set boxwidth ident_a relative"))
Output: &plot.SetBoxwidthSpec{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example773.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example773.go:1:22: IDENTIFIER "relative", }
func (*SetBoxwidthSpec) Pos ¶
func (n *SetBoxwidthSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetBoxwidthSpec) String ¶
func (n *SetBoxwidthSpec) String() string
String implements fmt.Stringer.
type SetClipSpecOpt ¶
SetClipSpecOpt represents data reduced by productions:
SetClipSpecOpt: /* empty */ | "points" // Case 1 | "one" // Case 2 | "two" // Case 3
Example ¶
fmt.Println(exampleAST(774, "set clip") == (*SetClipSpecOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(775, "set clip points"))
Output: &plot.SetClipSpecOpt{ · Case: 1, · Token: example775.go:1:10: IDENTIFIER "points", }
Example (Case2) ¶
fmt.Println(exampleAST(776, "set clip one"))
Output: &plot.SetClipSpecOpt{ · Case: 2, · Token: example776.go:1:10: IDENTIFIER "one", }
Example (Case3) ¶
fmt.Println(exampleAST(777, "set clip two"))
Output: &plot.SetClipSpecOpt{ · Case: 3, · Token: example777.go:1:10: IDENTIFIER "two", }
func (*SetClipSpecOpt) Pos ¶
func (n *SetClipSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetClipSpecOpt) String ¶
func (n *SetClipSpecOpt) String() string
String implements fmt.Stringer.
type SetCntrlabelSpecList ¶
type SetCntrlabelSpecList struct { Case int SetCntrlabelSpecList *SetCntrlabelSpecList SetCntrlabelSpecListItem *SetCntrlabelSpecListItem }
SetCntrlabelSpecList represents data reduced by productions:
SetCntrlabelSpecList: SetCntrlabelSpecListItem | SetCntrlabelSpecList SetCntrlabelSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(778, "set cntrlabel onecolor"))
Output: &plot.SetCntrlabelSpecList{ · SetCntrlabelSpecListItem: &plot.SetCntrlabelSpecListItem{ · · Case: 4, · · Token: example778.go:1:15: IDENTIFIER "onecolor", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(779, "set cntrlabel onecolor onecolor"))
Output: &plot.SetCntrlabelSpecList{ · SetCntrlabelSpecList: &plot.SetCntrlabelSpecList{ · · Case: 1, · · SetCntrlabelSpecListItem: &plot.SetCntrlabelSpecListItem{ · · · Case: 4, · · · Token: example779.go:1:24: IDENTIFIER "onecolor", · · }, · }, · SetCntrlabelSpecListItem: &plot.SetCntrlabelSpecListItem{ · · Case: 4, · · Token: example779.go:1:15: IDENTIFIER "onecolor", · }, }
func (*SetCntrlabelSpecList) Pos ¶
func (n *SetCntrlabelSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetCntrlabelSpecList) String ¶
func (n *SetCntrlabelSpecList) String() string
String implements fmt.Stringer.
type SetCntrlabelSpecListItem ¶
type SetCntrlabelSpecListItem struct { Case int Expression *Expression Token xc.Token }
SetCntrlabelSpecListItem represents data reduced by productions:
SetCntrlabelSpecListItem: "format" Expression | "font" Expression // Case 1 | "start" Expression // Case 2 | "interval" Expression // Case 3 | "onecolor" // Case 4
Example ¶
fmt.Println(exampleAST(780, "set cntrlabel format ident_a"))
Output: &plot.SetCntrlabelSpecListItem{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example780.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example780.go:1:15: IDENTIFIER "format", }
Example (Case1) ¶
fmt.Println(exampleAST(781, "set cntrlabel font ident_a"))
Output: &plot.SetCntrlabelSpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example781.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example781.go:1:15: IDENTIFIER "font", }
Example (Case2) ¶
fmt.Println(exampleAST(782, "set cntrlabel start ident_a"))
Output: &plot.SetCntrlabelSpecListItem{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example782.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example782.go:1:15: IDENTIFIER "start", }
Example (Case3) ¶
fmt.Println(exampleAST(783, "set cntrlabel interval ident_a"))
Output: &plot.SetCntrlabelSpecListItem{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example783.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example783.go:1:15: IDENTIFIER "interval", }
Example (Case4) ¶
fmt.Println(exampleAST(784, "set cntrlabel onecolor"))
Output: &plot.SetCntrlabelSpecListItem{ · Case: 4, · Token: example784.go:1:15: IDENTIFIER "onecolor", }
func (*SetCntrlabelSpecListItem) Pos ¶
func (n *SetCntrlabelSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetCntrlabelSpecListItem) String ¶
func (n *SetCntrlabelSpecListItem) String() string
String implements fmt.Stringer.
type SetCntrparamSpecList ¶
type SetCntrparamSpecList struct { Case int SetCntrparamSpecList *SetCntrparamSpecList SetCntrparamSpecListItem *SetCntrparamSpecListItem }
SetCntrparamSpecList represents data reduced by productions:
SetCntrparamSpecList: SetCntrparamSpecListItem | SetCntrparamSpecList SetCntrparamSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(785, "set cntrp bspline"))
Output: &plot.SetCntrparamSpecList{ · SetCntrparamSpecListItem: &plot.SetCntrparamSpecListItem{ · · Case: 2, · · Token: example785.go:1:11: IDENTIFIER "bspline", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(786, "set cntrparam bspline bspline"))
Output: &plot.SetCntrparamSpecList{ · SetCntrparamSpecList: &plot.SetCntrparamSpecList{ · · Case: 1, · · SetCntrparamSpecListItem: &plot.SetCntrparamSpecListItem{ · · · Case: 2, · · · Token: example786.go:1:23: IDENTIFIER "bspline", · · }, · }, · SetCntrparamSpecListItem: &plot.SetCntrparamSpecListItem{ · · Case: 2, · · Token: example786.go:1:15: IDENTIFIER "bspline", · }, }
func (*SetCntrparamSpecList) Pos ¶
func (n *SetCntrparamSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetCntrparamSpecList) String ¶
func (n *SetCntrparamSpecList) String() string
String implements fmt.Stringer.
type SetCntrparamSpecListItem ¶
type SetCntrparamSpecListItem struct { Case int Expression *Expression ExpressionList *ExpressionList Token xc.Token Token2 xc.Token }
SetCntrparamSpecListItem represents data reduced by productions:
SetCntrparamSpecListItem: "linear" | "cubicspline" // Case 1 | "bspline" // Case 2 | "points" Expression // Case 3 | "order" Expression // Case 4 | "level" "auto" Expression // Case 5 | "level" Expression // Case 6 | "level" "discrete" ExpressionList // Case 7 | "level" "incr" ExpressionList // Case 8 | "level" "incremental" ExpressionList // Case 9 | "levels" "auto" Expression // Case 10 | "levels" Expression // Case 11 | "levels" "discrete" ExpressionList // Case 12 | "levels" "incr" ExpressionList // Case 13 | "levels" "incremental" ExpressionList // Case 14
Example ¶
fmt.Println(exampleAST(787, "set cntrp linear"))
Output: &plot.SetCntrparamSpecListItem{ · Token: example787.go:1:11: IDENTIFIER "linear", }
Example (Case01) ¶
fmt.Println(exampleAST(788, "set cntrparam cubicspline"))
Output: &plot.SetCntrparamSpecListItem{ · Case: 1, · Token: example788.go:1:15: IDENTIFIER "cubicspline", }
Example (Case02) ¶
fmt.Println(exampleAST(789, "set cntrp bspline"))
Output: &plot.SetCntrparamSpecListItem{ · Case: 2, · Token: example789.go:1:11: IDENTIFIER "bspline", }
Example (Case03) ¶
fmt.Println(exampleAST(790, "set cntrp points ident_a"))
Output: &plot.SetCntrparamSpecListItem{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example790.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example790.go:1:11: IDENTIFIER "points", }
Example (Case04) ¶
fmt.Println(exampleAST(791, "set cntrparam order ident_a"))
Output: &plot.SetCntrparamSpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example791.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example791.go:1:15: IDENTIFIER "order", }
Example (Case05) ¶
fmt.Println(exampleAST(792, "set cntrparam level auto ident_a"))
Output: &plot.SetCntrparamSpecListItem{ · Case: 5, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example792.go:1:26: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example792.go:1:15: IDENTIFIER "level", · Token2: example792.go:1:21: IDENTIFIER "auto", }
Example (Case06) ¶
fmt.Println(exampleAST(793, "set cntrparam level ident_a"))
Output: &plot.SetCntrparamSpecListItem{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example793.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example793.go:1:15: IDENTIFIER "level", }
Example (Case07) ¶
fmt.Println(exampleAST(794, "set cntrparam level discrete ident_a"))
Output: &plot.SetCntrparamSpecListItem{ · Case: 7, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example794.go:1:30: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example794.go:1:15: IDENTIFIER "level", · Token2: example794.go:1:21: IDENTIFIER "discrete", }
Example (Case08) ¶
fmt.Println(exampleAST(795, "set cntrparam level incr ident_a"))
Output: &plot.SetCntrparamSpecListItem{ · Case: 8, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example795.go:1:26: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example795.go:1:15: IDENTIFIER "level", · Token2: example795.go:1:21: IDENTIFIER "incr", }
Example (Case09) ¶
fmt.Println(exampleAST(796, "set cntrparam level incremental ident_a"))
Output: &plot.SetCntrparamSpecListItem{ · Case: 9, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example796.go:1:33: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example796.go:1:15: IDENTIFIER "level", · Token2: example796.go:1:21: IDENTIFIER "incremental", }
Example (Case10) ¶
fmt.Println(exampleAST(797, "set cntrp levels auto ident_a"))
Output: &plot.SetCntrparamSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example797.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example797.go:1:11: IDENTIFIER "levels", · Token2: example797.go:1:18: IDENTIFIER "auto", }
Example (Case11) ¶
fmt.Println(exampleAST(798, "set cntrp levels ident_a"))
Output: &plot.SetCntrparamSpecListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example798.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example798.go:1:11: IDENTIFIER "levels", }
Example (Case12) ¶
fmt.Println(exampleAST(799, "set cntrp levels discrete ident_a"))
Output: &plot.SetCntrparamSpecListItem{ · Case: 12, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example799.go:1:27: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example799.go:1:11: IDENTIFIER "levels", · Token2: example799.go:1:18: IDENTIFIER "discrete", }
Example (Case13) ¶
fmt.Println(exampleAST(800, "set cntrp levels incr ident_a"))
Output: &plot.SetCntrparamSpecListItem{ · Case: 13, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example800.go:1:23: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example800.go:1:11: IDENTIFIER "levels", · Token2: example800.go:1:18: IDENTIFIER "incr", }
Example (Case14) ¶
fmt.Println(exampleAST(801, "set cntrp levels incremental ident_a"))
Output: &plot.SetCntrparamSpecListItem{ · Case: 14, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example801.go:1:30: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example801.go:1:11: IDENTIFIER "levels", · Token2: example801.go:1:18: IDENTIFIER "incremental", }
func (*SetCntrparamSpecListItem) Pos ¶
func (n *SetCntrparamSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetCntrparamSpecListItem) String ¶
func (n *SetCntrparamSpecListItem) String() string
String implements fmt.Stringer.
type SetColorboxSpecList ¶
type SetColorboxSpecList struct { Case int SetColorboxSpecList *SetColorboxSpecList SetColorboxSpecListItem *SetColorboxSpecListItem }
SetColorboxSpecList represents data reduced by productions:
SetColorboxSpecList: SetColorboxSpecListItem | SetColorboxSpecList SetColorboxSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(806, "set colorbox back"))
Output: &plot.SetColorboxSpecList{ · SetColorboxSpecListItem: &plot.SetColorboxSpecListItem{ · · Case: 7, · · Token: example806.go:1:14: IDENTIFIER "back", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(807, "set colorbox back back"))
Output: &plot.SetColorboxSpecList{ · SetColorboxSpecList: &plot.SetColorboxSpecList{ · · Case: 1, · · SetColorboxSpecListItem: &plot.SetColorboxSpecListItem{ · · · Case: 7, · · · Token: example807.go:1:19: IDENTIFIER "back", · · }, · }, · SetColorboxSpecListItem: &plot.SetColorboxSpecListItem{ · · Case: 7, · · Token: example807.go:1:14: IDENTIFIER "back", · }, }
func (*SetColorboxSpecList) Pos ¶
func (n *SetColorboxSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetColorboxSpecList) String ¶
func (n *SetColorboxSpecList) String() string
String implements fmt.Stringer.
type SetColorboxSpecListItem ¶
type SetColorboxSpecListItem struct { Case int Expression *Expression Expression2 *Expression LineStyleList *LineStyleList Token xc.Token Token2 xc.Token }
SetColorboxSpecListItem represents data reduced by productions:
SetColorboxSpecListItem: "vertical" | "horizontal" // Case 1 | "default" // Case 2 | "user" // Case 3 | "origin" Expression ',' Expression // Case 4 | "size" Expression ',' Expression // Case 5 | "front" // Case 6 | "back" // Case 7 | "noborder" // Case 8 | "bdefault" // Case 9 | "border" LineStyleList // Case 10
Example ¶
fmt.Println(exampleAST(808, "set colorbox vertical"))
Output: &plot.SetColorboxSpecListItem{ · Token: example808.go:1:14: IDENTIFIER "vertical", }
Example (Case01) ¶
fmt.Println(exampleAST(809, "set colorbox horizontal"))
Output: &plot.SetColorboxSpecListItem{ · Case: 1, · Token: example809.go:1:14: IDENTIFIER "horizontal", }
Example (Case02) ¶
fmt.Println(exampleAST(810, "set colorbox default"))
Output: &plot.SetColorboxSpecListItem{ · Case: 2, · Token: example810.go:1:14: IDENTIFIER "default", }
Example (Case03) ¶
fmt.Println(exampleAST(811, "set colorbox user"))
Output: &plot.SetColorboxSpecListItem{ · Case: 3, · Token: example811.go:1:14: IDENTIFIER "user", }
Example (Case04) ¶
fmt.Println(exampleAST(812, "set colorbox origin ident_a , ident_b"))
Output: &plot.SetColorboxSpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example812.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example812.go:1:31: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example812.go:1:14: IDENTIFIER "origin", · Token2: example812.go:1:29: ',' ",", }
Example (Case05) ¶
fmt.Println(exampleAST(813, "set colorbox size ident_a , ident_b"))
Output: &plot.SetColorboxSpecListItem{ · Case: 5, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example813.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example813.go:1:29: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example813.go:1:14: IDENTIFIER "size", · Token2: example813.go:1:27: ',' ",", }
Example (Case06) ¶
fmt.Println(exampleAST(814, "set colorbox front"))
Output: &plot.SetColorboxSpecListItem{ · Case: 6, · Token: example814.go:1:14: IDENTIFIER "front", }
Example (Case07) ¶
fmt.Println(exampleAST(815, "set colorbox back"))
Output: &plot.SetColorboxSpecListItem{ · Case: 7, · Token: example815.go:1:14: IDENTIFIER "back", }
Example (Case08) ¶
fmt.Println(exampleAST(816, "set colorbox noborder"))
Output: &plot.SetColorboxSpecListItem{ · Case: 8, · Token: example816.go:1:14: IDENTIFIER "noborder", }
Example (Case09) ¶
fmt.Println(exampleAST(817, "set colorbox bdefault"))
Output: &plot.SetColorboxSpecListItem{ · Case: 9, · Token: example817.go:1:14: IDENTIFIER "bdefault", }
Example (Case10) ¶
fmt.Println(exampleAST(818, "set colorbox border nocontours"))
Output: &plot.SetColorboxSpecListItem{ · Case: 10, · LineStyleList: &plot.LineStyleList{ · · LineStyleListItem: &plot.LineStyleListItem{ · · · Case: 15, · · · Token: example818.go:1:21: IDENTIFIER "nocontours", · · }, · }, · Token: example818.go:1:14: IDENTIFIER "border", }
func (*SetColorboxSpecListItem) Pos ¶
func (n *SetColorboxSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetColorboxSpecListItem) String ¶
func (n *SetColorboxSpecListItem) String() string
String implements fmt.Stringer.
type SetColorboxSpecListOpt ¶
type SetColorboxSpecListOpt struct {
SetColorboxSpecList *SetColorboxSpecList
}
SetColorboxSpecListOpt represents data reduced by productions:
SetColorboxSpecListOpt: /* empty */ | SetColorboxSpecList // Case 1
Example ¶
fmt.Println(exampleAST(819, "set colorbox") == (*SetColorboxSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(820, "set colorbox back"))
Output: &plot.SetColorboxSpecListOpt{ · SetColorboxSpecList: &plot.SetColorboxSpecList{ · · SetColorboxSpecListItem: &plot.SetColorboxSpecListItem{ · · · Case: 7, · · · Token: example820.go:1:14: IDENTIFIER "back", · · }, · }, }
func (*SetColorboxSpecListOpt) Pos ¶
func (n *SetColorboxSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetColorboxSpecListOpt) String ¶
func (n *SetColorboxSpecListOpt) String() string
String implements fmt.Stringer.
type SetColorsequenceSpecOpt ¶
SetColorsequenceSpecOpt represents data reduced by productions:
SetColorsequenceSpecOpt: /* empty */ | "default" // Case 1 | "classic" // Case 2 | "podo" // Case 3
Example ¶
fmt.Println(exampleAST(802, "set colorsequence") == (*SetColorsequenceSpecOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(803, "set colorsequence default"))
Output: &plot.SetColorsequenceSpecOpt{ · Case: 1, · Token: example803.go:1:19: IDENTIFIER "default", }
Example (Case2) ¶
fmt.Println(exampleAST(804, "set colorsequence classic"))
Output: &plot.SetColorsequenceSpecOpt{ · Case: 2, · Token: example804.go:1:19: IDENTIFIER "classic", }
Example (Case3) ¶
fmt.Println(exampleAST(805, "set colorsequence podo"))
Output: &plot.SetColorsequenceSpecOpt{ · Case: 3, · Token: example805.go:1:19: IDENTIFIER "podo", }
func (*SetColorsequenceSpecOpt) Pos ¶
func (n *SetColorsequenceSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetColorsequenceSpecOpt) String ¶
func (n *SetColorsequenceSpecOpt) String() string
String implements fmt.Stringer.
type SetContourSpec ¶
SetContourSpec represents data reduced by productions:
SetContourSpec: /* empty */ | "base" // Case 1 | "surface" // Case 2 | "both" // Case 3
Example ¶
fmt.Println(exampleAST(821, "set contour") == (*SetContourSpec)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(822, "set contour base"))
Output: &plot.SetContourSpec{ · Case: 1, · Token: example822.go:1:13: IDENTIFIER "base", }
Example (Case2) ¶
fmt.Println(exampleAST(823, "set contour surface"))
Output: &plot.SetContourSpec{ · Case: 2, · Token: example823.go:1:13: IDENTIFIER "surface", }
Example (Case3) ¶
fmt.Println(exampleAST(824, "set contour both"))
Output: &plot.SetContourSpec{ · Case: 3, · Token: example824.go:1:13: IDENTIFIER "both", }
func (*SetContourSpec) Pos ¶
func (n *SetContourSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetContourSpec) String ¶
func (n *SetContourSpec) String() string
String implements fmt.Stringer.
type SetDatafileSeperatorSpecOpt ¶
type SetDatafileSeperatorSpecOpt struct { Case int Expression *Expression Token xc.Token }
SetDatafileSeperatorSpecOpt represents data reduced by productions:
SetDatafileSeperatorSpecOpt: /* empty */ | "whitespace" // Case 1 | "tab" // Case 2 | "comma" // Case 3 | Expression // Case 4
Example ¶
fmt.Println(exampleAST(856, "set datafile sep") == (*SetDatafileSeperatorSpecOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(857, "set datafile sep whitespace"))
Output: &plot.SetDatafileSeperatorSpecOpt{ · Case: 1, · Token: example857.go:1:18: IDENTIFIER "whitespace", }
Example (Case2) ¶
fmt.Println(exampleAST(858, "set datafile sep tab"))
Output: &plot.SetDatafileSeperatorSpecOpt{ · Case: 2, · Token: example858.go:1:18: IDENTIFIER "tab", }
Example (Case3) ¶
fmt.Println(exampleAST(859, "set datafile separator comma"))
Output: &plot.SetDatafileSeperatorSpecOpt{ · Case: 3, · Token: example859.go:1:24: IDENTIFIER "comma", }
Example (Case4) ¶
fmt.Println(exampleAST(860, "set datafile sep ident_a"))
Output: &plot.SetDatafileSeperatorSpecOpt{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example860.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*SetDatafileSeperatorSpecOpt) Pos ¶
func (n *SetDatafileSeperatorSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetDatafileSeperatorSpecOpt) String ¶
func (n *SetDatafileSeperatorSpecOpt) String() string
String implements fmt.Stringer.
type SetDatafileSpec ¶
type SetDatafileSpec struct { BinaryList *BinaryList Case int Expression *Expression SetDatafileSeperatorSpecOpt *SetDatafileSeperatorSpecOpt Token xc.Token Token2 xc.Token }
SetDatafileSpec represents data reduced by productions:
SetDatafileSpec: "fortran" | "nofpe" "trap" // Case 1 | "missing" Expression // Case 2 | "sep" SetDatafileSeperatorSpecOpt // Case 3 | "separator" SetDatafileSeperatorSpecOpt // Case 4 | "commentschars" // Case 5 | "commentschars" Expression // Case 6 | "binary" // Case 7 | "binary" BinaryList // Case 8
Example ¶
fmt.Println(exampleAST(847, "set datafile fortran"))
Output: &plot.SetDatafileSpec{ · Token: example847.go:1:14: IDENTIFIER "fortran", }
Example (Case1) ¶
fmt.Println(exampleAST(848, "set datafile nofpe trap"))
Output: &plot.SetDatafileSpec{ · Case: 1, · Token: example848.go:1:14: IDENTIFIER "nofpe", · Token2: example848.go:1:20: IDENTIFIER "trap", }
Example (Case2) ¶
fmt.Println(exampleAST(849, "set datafile missing ident_a"))
Output: &plot.SetDatafileSpec{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example849.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example849.go:1:14: IDENTIFIER "missing", }
Example (Case3) ¶
fmt.Println(exampleAST(850, "set datafile sep"))
Output: &plot.SetDatafileSpec{ · Case: 3, · Token: example850.go:1:14: IDENTIFIER "sep", }
Example (Case4) ¶
fmt.Println(exampleAST(851, "set datafile separator"))
Output: &plot.SetDatafileSpec{ · Case: 4, · Token: example851.go:1:14: IDENTIFIER "separator", }
Example (Case5) ¶
fmt.Println(exampleAST(852, "set datafile commentschars"))
Output: &plot.SetDatafileSpec{ · Case: 5, · Token: example852.go:1:14: IDENTIFIER "commentschars", }
Example (Case6) ¶
fmt.Println(exampleAST(853, "set datafile commentschars ident_a"))
Output: &plot.SetDatafileSpec{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example853.go:1:28: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example853.go:1:14: IDENTIFIER "commentschars", }
Example (Case7) ¶
fmt.Println(exampleAST(854, "set datafile binary"))
Output: &plot.SetDatafileSpec{ · Case: 7, · Token: example854.go:1:14: IDENTIFIER "binary", }
Example (Case8) ¶
fmt.Println(exampleAST(855, "set datafile binary flipx"))
Output: &plot.SetDatafileSpec{ · BinaryList: &plot.BinaryList{ · · BinaryListItem: &plot.BinaryListItem{ · · · Case: 14, · · · Token: example855.go:1:21: IDENTIFIER "flipx", · · }, · }, · Case: 8, · Token: example855.go:1:14: IDENTIFIER "binary", }
func (*SetDatafileSpec) Pos ¶
func (n *SetDatafileSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetDatafileSpec) String ¶
func (n *SetDatafileSpec) String() string
String implements fmt.Stringer.
type SetDecimalsignSpecOpt ¶
type SetDecimalsignSpecOpt struct { Case int Expression *Expression Token xc.Token }
SetDecimalsignSpecOpt represents data reduced by productions:
SetDecimalsignSpecOpt: /* empty */ | Expression // Case 1 | "locale" // Case 2 | "locale" Expression // Case 3
Example ¶
fmt.Println(exampleAST(861, "set decimalsign") == (*SetDecimalsignSpecOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(862, "set decimalsign ident_a"))
Output: &plot.SetDecimalsignSpecOpt{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example862.go:1:17: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case2) ¶
fmt.Println(exampleAST(863, "set decimalsign locale"))
Output: &plot.SetDecimalsignSpecOpt{ · Case: 2, · Token: example863.go:1:17: IDENTIFIER "locale", }
Example (Case3) ¶
fmt.Println(exampleAST(864, "set decimalsign locale ident_a"))
Output: &plot.SetDecimalsignSpecOpt{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example864.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example864.go:1:17: IDENTIFIER "locale", }
func (*SetDecimalsignSpecOpt) Pos ¶
func (n *SetDecimalsignSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetDecimalsignSpecOpt) String ¶
func (n *SetDecimalsignSpecOpt) String() string
String implements fmt.Stringer.
type SetDgrid3dSpecList ¶
type SetDgrid3dSpecList struct { Case int SetDgrid3dSpecList *SetDgrid3dSpecList SetDgrid3dSpecListItem *SetDgrid3dSpecListItem }
SetDgrid3dSpecList represents data reduced by productions:
SetDgrid3dSpecList: SetDgrid3dSpecListItem | SetDgrid3dSpecList SetDgrid3dSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(865, "set dgrid3d ,"))
Output: &plot.SetDgrid3dSpecList{ · SetDgrid3dSpecListItem: &plot.SetDgrid3dSpecListItem{ · · Case: 1, · · Token: example865.go:1:13: ',' ",", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(866, "set dgrid3d , ,"))
Output: &plot.SetDgrid3dSpecList{ · SetDgrid3dSpecList: &plot.SetDgrid3dSpecList{ · · Case: 1, · · SetDgrid3dSpecListItem: &plot.SetDgrid3dSpecListItem{ · · · Case: 1, · · · Token: example866.go:1:15: ',' ",", · · }, · }, · SetDgrid3dSpecListItem: &plot.SetDgrid3dSpecListItem{ · · Case: 1, · · Token: example866.go:1:13: ',' ",", · }, }
func (*SetDgrid3dSpecList) Pos ¶
func (n *SetDgrid3dSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetDgrid3dSpecList) String ¶
func (n *SetDgrid3dSpecList) String() string
String implements fmt.Stringer.
type SetDgrid3dSpecListItem ¶
type SetDgrid3dSpecListItem struct { Case int Expression *Expression Token xc.Token }
SetDgrid3dSpecListItem represents data reduced by productions:
SetDgrid3dSpecListItem: Expression | ',' // Case 1 | "splines" // Case 2 | "qnorm" // Case 3 | "gauss" // Case 4 | "cauchy" // Case 5 | "exp" // Case 6 | "box" // Case 7 | "hann" // Case 8 | "kdensity" // Case 9
Example ¶
fmt.Println(exampleAST(867, "set dgrid3d ident_a"))
Output: &plot.SetDgrid3dSpecListItem{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example867.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case01) ¶
fmt.Println(exampleAST(868, "set dgrid3d ,"))
Output: &plot.SetDgrid3dSpecListItem{ · Case: 1, · Token: example868.go:1:13: ',' ",", }
Example (Case02) ¶
fmt.Println(exampleAST(869, "set dgrid3d splines"))
Output: &plot.SetDgrid3dSpecListItem{ · Case: 2, · Token: example869.go:1:13: IDENTIFIER "splines", }
Example (Case03) ¶
fmt.Println(exampleAST(870, "set dgrid3d qnorm"))
Output: &plot.SetDgrid3dSpecListItem{ · Case: 3, · Token: example870.go:1:13: IDENTIFIER "qnorm", }
Example (Case04) ¶
fmt.Println(exampleAST(871, "set dgrid3d gauss"))
Output: &plot.SetDgrid3dSpecListItem{ · Case: 4, · Token: example871.go:1:13: IDENTIFIER "gauss", }
Example (Case05) ¶
fmt.Println(exampleAST(872, "set dgrid3d cauchy"))
Output: &plot.SetDgrid3dSpecListItem{ · Case: 5, · Token: example872.go:1:13: IDENTIFIER "cauchy", }
Example (Case06) ¶
fmt.Println(exampleAST(873, "set dgrid3d exp"))
Output: &plot.SetDgrid3dSpecListItem{ · Case: 6, · Token: example873.go:1:13: IDENTIFIER "exp", }
Example (Case07) ¶
fmt.Println(exampleAST(874, "set dgrid3d box"))
Output: &plot.SetDgrid3dSpecListItem{ · Case: 7, · Token: example874.go:1:13: IDENTIFIER "box", }
Example (Case08) ¶
fmt.Println(exampleAST(875, "set dgrid3d hann"))
Output: &plot.SetDgrid3dSpecListItem{ · Case: 8, · Token: example875.go:1:13: IDENTIFIER "hann", }
Example (Case09) ¶
fmt.Println(exampleAST(876, "set dgrid3d kdensity"))
Output: &plot.SetDgrid3dSpecListItem{ · Case: 9, · Token: example876.go:1:13: IDENTIFIER "kdensity", }
func (*SetDgrid3dSpecListItem) Pos ¶
func (n *SetDgrid3dSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetDgrid3dSpecListItem) String ¶
func (n *SetDgrid3dSpecListItem) String() string
String implements fmt.Stringer.
type SetDgrid3dSpecListOpt ¶
type SetDgrid3dSpecListOpt struct {
SetDgrid3dSpecList *SetDgrid3dSpecList
}
SetDgrid3dSpecListOpt represents data reduced by productions:
SetDgrid3dSpecListOpt: /* empty */ | SetDgrid3dSpecList // Case 1
Example ¶
fmt.Println(exampleAST(877, "set dgrid3d") == (*SetDgrid3dSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(878, "set dgrid3d ,"))
Output: &plot.SetDgrid3dSpecListOpt{ · SetDgrid3dSpecList: &plot.SetDgrid3dSpecList{ · · SetDgrid3dSpecListItem: &plot.SetDgrid3dSpecListItem{ · · · Case: 1, · · · Token: example878.go:1:13: ',' ",", · · }, · }, }
func (*SetDgrid3dSpecListOpt) Pos ¶
func (n *SetDgrid3dSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetDgrid3dSpecListOpt) String ¶
func (n *SetDgrid3dSpecListOpt) String() string
String implements fmt.Stringer.
type SetEncodingSpec ¶
type SetEncodingSpec struct { Case int Expression *Expression Token xc.Token }
SetEncodingSpec represents data reduced by productions:
SetEncodingSpec: "cp1250" | "cp1251" // Case 1 | "cp1252" // Case 2 | "cp1254" // Case 3 | "cp437" // Case 4 | "cp850" // Case 5 | "cp852" // Case 6 | "cp950" // Case 7 | "default" // Case 8 | "iso_8859_1" // Case 9 | "iso_8859_15" // Case 10 | "iso_8859_2" // Case 11 | "iso_8859_9" // Case 12 | "koi8r" // Case 13 | "koi8u" // Case 14 | "locale" // Case 15 | "sjis" // Case 16 | "utf8" // Case 17 | Expression // Case 18
Example ¶
fmt.Println(exampleAST(828, "set encoding cp1250"))
Output: &plot.SetEncodingSpec{ · Token: example828.go:1:14: IDENTIFIER "cp1250", }
Example (Case01) ¶
fmt.Println(exampleAST(829, "set encoding cp1251"))
Output: &plot.SetEncodingSpec{ · Case: 1, · Token: example829.go:1:14: IDENTIFIER "cp1251", }
Example (Case02) ¶
fmt.Println(exampleAST(830, "set encoding cp1252"))
Output: &plot.SetEncodingSpec{ · Case: 2, · Token: example830.go:1:14: IDENTIFIER "cp1252", }
Example (Case03) ¶
fmt.Println(exampleAST(831, "set encoding cp1254"))
Output: &plot.SetEncodingSpec{ · Case: 3, · Token: example831.go:1:14: IDENTIFIER "cp1254", }
Example (Case04) ¶
fmt.Println(exampleAST(832, "set encoding cp437"))
Output: &plot.SetEncodingSpec{ · Case: 4, · Token: example832.go:1:14: IDENTIFIER "cp437", }
Example (Case05) ¶
fmt.Println(exampleAST(833, "set encoding cp850"))
Output: &plot.SetEncodingSpec{ · Case: 5, · Token: example833.go:1:14: IDENTIFIER "cp850", }
Example (Case06) ¶
fmt.Println(exampleAST(834, "set encoding cp852"))
Output: &plot.SetEncodingSpec{ · Case: 6, · Token: example834.go:1:14: IDENTIFIER "cp852", }
Example (Case07) ¶
fmt.Println(exampleAST(835, "set encoding cp950"))
Output: &plot.SetEncodingSpec{ · Case: 7, · Token: example835.go:1:14: IDENTIFIER "cp950", }
Example (Case08) ¶
fmt.Println(exampleAST(836, "set encoding default"))
Output: &plot.SetEncodingSpec{ · Case: 8, · Token: example836.go:1:14: IDENTIFIER "default", }
Example (Case09) ¶
fmt.Println(exampleAST(837, "set encoding iso_8859_1"))
Output: &plot.SetEncodingSpec{ · Case: 9, · Token: example837.go:1:14: IDENTIFIER "iso_8859_1", }
Example (Case10) ¶
fmt.Println(exampleAST(838, "set encoding iso_8859_15"))
Output: &plot.SetEncodingSpec{ · Case: 10, · Token: example838.go:1:14: IDENTIFIER "iso_8859_15", }
Example (Case11) ¶
fmt.Println(exampleAST(839, "set encoding iso_8859_2"))
Output: &plot.SetEncodingSpec{ · Case: 11, · Token: example839.go:1:14: IDENTIFIER "iso_8859_2", }
Example (Case12) ¶
fmt.Println(exampleAST(840, "set encoding iso_8859_9"))
Output: &plot.SetEncodingSpec{ · Case: 12, · Token: example840.go:1:14: IDENTIFIER "iso_8859_9", }
Example (Case13) ¶
fmt.Println(exampleAST(841, "set encoding koi8r"))
Output: &plot.SetEncodingSpec{ · Case: 13, · Token: example841.go:1:14: IDENTIFIER "koi8r", }
Example (Case14) ¶
fmt.Println(exampleAST(842, "set encoding koi8u"))
Output: &plot.SetEncodingSpec{ · Case: 14, · Token: example842.go:1:14: IDENTIFIER "koi8u", }
Example (Case15) ¶
fmt.Println(exampleAST(843, "set encoding locale"))
Output: &plot.SetEncodingSpec{ · Case: 15, · Token: example843.go:1:14: IDENTIFIER "locale", }
Example (Case16) ¶
fmt.Println(exampleAST(844, "set encoding sjis"))
Output: &plot.SetEncodingSpec{ · Case: 16, · Token: example844.go:1:14: IDENTIFIER "sjis", }
Example (Case17) ¶
fmt.Println(exampleAST(845, "set encoding utf8"))
Output: &plot.SetEncodingSpec{ · Case: 17, · Token: example845.go:1:14: IDENTIFIER "utf8", }
Example (Case18) ¶
fmt.Println(exampleAST(846, "set encoding ident_a"))
Output: &plot.SetEncodingSpec{ · Case: 18, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example846.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*SetEncodingSpec) Pos ¶
func (n *SetEncodingSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetEncodingSpec) String ¶
func (n *SetEncodingSpec) String() string
String implements fmt.Stringer.
type SetFitSpecList ¶
type SetFitSpecList struct { Case int SetFitSpecList *SetFitSpecList SetFitSpecListItem *SetFitSpecListItem }
SetFitSpecList represents data reduced by productions:
SetFitSpecList: SetFitSpecListItem | SetFitSpecList SetFitSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(879, "set fit brief"))
Output: &plot.SetFitSpecList{ · SetFitSpecListItem: &plot.SetFitSpecListItem{ · · Case: 6, · · Token: example879.go:1:9: IDENTIFIER "brief", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(880, "set fit brief brief"))
Output: &plot.SetFitSpecList{ · SetFitSpecList: &plot.SetFitSpecList{ · · Case: 1, · · SetFitSpecListItem: &plot.SetFitSpecListItem{ · · · Case: 6, · · · Token: example880.go:1:15: IDENTIFIER "brief", · · }, · }, · SetFitSpecListItem: &plot.SetFitSpecListItem{ · · Case: 6, · · Token: example880.go:1:9: IDENTIFIER "brief", · }, }
func (*SetFitSpecList) Pos ¶
func (n *SetFitSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetFitSpecList) String ¶
func (n *SetFitSpecList) String() string
String implements fmt.Stringer.
type SetFitSpecListItem ¶
SetFitSpecListItem represents data reduced by productions:
SetFitSpecListItem: "nolog" | "logfile" Expression // Case 1 | "logfile" "default" // Case 2 | "quiet" // Case 3 | "noquiet" // Case 4 | "results" // Case 5 | "brief" // Case 6 | "verbose" // Case 7 | "errorvariables" // Case 8 | "noerrorvariables" // Case 9 | "covariancevariables" // Case 10 | "nocovariancevariables" // Case 11 | "errorscaling" // Case 12 | "noerrorscaling" // Case 13 | "prescale" // Case 14 | "noprescale" // Case 15 | "maxiter" Expression // Case 16 | "maxiter" "default" // Case 17 | "limit" Expression // Case 18 | "limit" "default" // Case 19 | "limit_abs" Expression // Case 20 | "start_lambda" Expression // Case 21 | "start_lambda" "default" // Case 22 | "lambda_factor" Expression // Case 23 | "lambda_factor" "default" // Case 24 | "script" Expression // Case 25 | "script" "default" // Case 26 | "v4" // Case 27 | "v5" // Case 28
Example ¶
fmt.Println(exampleAST(881, "set fit nolog"))
Output: &plot.SetFitSpecListItem{ · Token: example881.go:1:9: IDENTIFIER "nolog", }
Example (Case01) ¶
fmt.Println(exampleAST(882, "set fit logfile ident_a"))
Output: &plot.SetFitSpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example882.go:1:17: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example882.go:1:9: IDENTIFIER "logfile", }
Example (Case02) ¶
fmt.Println(exampleAST(883, "set fit logfile default"))
Output: &plot.SetFitSpecListItem{ · Case: 2, · Token: example883.go:1:9: IDENTIFIER "logfile", · Token2: example883.go:1:17: IDENTIFIER "default", }
Example (Case03) ¶
fmt.Println(exampleAST(884, "set fit quiet"))
Output: &plot.SetFitSpecListItem{ · Case: 3, · Token: example884.go:1:9: IDENTIFIER "quiet", }
Example (Case04) ¶
fmt.Println(exampleAST(885, "set fit noquiet"))
Output: &plot.SetFitSpecListItem{ · Case: 4, · Token: example885.go:1:9: IDENTIFIER "noquiet", }
Example (Case05) ¶
fmt.Println(exampleAST(886, "set fit results"))
Output: &plot.SetFitSpecListItem{ · Case: 5, · Token: example886.go:1:9: IDENTIFIER "results", }
Example (Case06) ¶
fmt.Println(exampleAST(887, "set fit brief"))
Output: &plot.SetFitSpecListItem{ · Case: 6, · Token: example887.go:1:9: IDENTIFIER "brief", }
Example (Case07) ¶
fmt.Println(exampleAST(888, "set fit verbose"))
Output: &plot.SetFitSpecListItem{ · Case: 7, · Token: example888.go:1:9: IDENTIFIER "verbose", }
Example (Case08) ¶
fmt.Println(exampleAST(889, "set fit errorvariables"))
Output: &plot.SetFitSpecListItem{ · Case: 8, · Token: example889.go:1:9: IDENTIFIER "errorvariables", }
Example (Case09) ¶
fmt.Println(exampleAST(890, "set fit noerrorvariables"))
Output: &plot.SetFitSpecListItem{ · Case: 9, · Token: example890.go:1:9: IDENTIFIER "noerrorvariables", }
Example (Case10) ¶
fmt.Println(exampleAST(891, "set fit covariancevariables"))
Output: &plot.SetFitSpecListItem{ · Case: 10, · Token: example891.go:1:9: IDENTIFIER "covariancevariables", }
Example (Case11) ¶
fmt.Println(exampleAST(892, "set fit nocovariancevariables"))
Output: &plot.SetFitSpecListItem{ · Case: 11, · Token: example892.go:1:9: IDENTIFIER "nocovariancevariables", }
Example (Case12) ¶
fmt.Println(exampleAST(893, "set fit errorscaling"))
Output: &plot.SetFitSpecListItem{ · Case: 12, · Token: example893.go:1:9: IDENTIFIER "errorscaling", }
Example (Case13) ¶
fmt.Println(exampleAST(894, "set fit noerrorscaling"))
Output: &plot.SetFitSpecListItem{ · Case: 13, · Token: example894.go:1:9: IDENTIFIER "noerrorscaling", }
Example (Case14) ¶
fmt.Println(exampleAST(895, "set fit prescale"))
Output: &plot.SetFitSpecListItem{ · Case: 14, · Token: example895.go:1:9: IDENTIFIER "prescale", }
Example (Case15) ¶
fmt.Println(exampleAST(896, "set fit noprescale"))
Output: &plot.SetFitSpecListItem{ · Case: 15, · Token: example896.go:1:9: IDENTIFIER "noprescale", }
Example (Case16) ¶
fmt.Println(exampleAST(897, "set fit maxiter ident_a"))
Output: &plot.SetFitSpecListItem{ · Case: 16, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example897.go:1:17: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example897.go:1:9: IDENTIFIER "maxiter", }
Example (Case17) ¶
fmt.Println(exampleAST(898, "set fit maxiter default"))
Output: &plot.SetFitSpecListItem{ · Case: 17, · Token: example898.go:1:9: IDENTIFIER "maxiter", · Token2: example898.go:1:17: IDENTIFIER "default", }
Example (Case18) ¶
fmt.Println(exampleAST(899, "set fit limit ident_a"))
Output: &plot.SetFitSpecListItem{ · Case: 18, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example899.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example899.go:1:9: IDENTIFIER "limit", }
Example (Case19) ¶
fmt.Println(exampleAST(900, "set fit limit default"))
Output: &plot.SetFitSpecListItem{ · Case: 19, · Token: example900.go:1:9: IDENTIFIER "limit", · Token2: example900.go:1:15: IDENTIFIER "default", }
Example (Case20) ¶
fmt.Println(exampleAST(901, "set fit limit_abs ident_a"))
Output: &plot.SetFitSpecListItem{ · Case: 20, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example901.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example901.go:1:9: IDENTIFIER "limit_abs", }
Example (Case21) ¶
fmt.Println(exampleAST(902, "set fit start_lambda ident_a"))
Output: &plot.SetFitSpecListItem{ · Case: 21, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example902.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example902.go:1:9: IDENTIFIER "start_lambda", }
Example (Case22) ¶
fmt.Println(exampleAST(903, "set fit start_lambda default"))
Output: &plot.SetFitSpecListItem{ · Case: 22, · Token: example903.go:1:9: IDENTIFIER "start_lambda", · Token2: example903.go:1:22: IDENTIFIER "default", }
Example (Case23) ¶
fmt.Println(exampleAST(904, "set fit lambda_factor ident_a"))
Output: &plot.SetFitSpecListItem{ · Case: 23, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example904.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example904.go:1:9: IDENTIFIER "lambda_factor", }
Example (Case24) ¶
fmt.Println(exampleAST(905, "set fit lambda_factor default"))
Output: &plot.SetFitSpecListItem{ · Case: 24, · Token: example905.go:1:9: IDENTIFIER "lambda_factor", · Token2: example905.go:1:23: IDENTIFIER "default", }
Example (Case25) ¶
fmt.Println(exampleAST(906, "set fit script ident_a"))
Output: &plot.SetFitSpecListItem{ · Case: 25, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example906.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example906.go:1:9: IDENTIFIER "script", }
Example (Case26) ¶
fmt.Println(exampleAST(907, "set fit script default"))
Output: &plot.SetFitSpecListItem{ · Case: 26, · Token: example907.go:1:9: IDENTIFIER "script", · Token2: example907.go:1:16: IDENTIFIER "default", }
Example (Case27) ¶
fmt.Println(exampleAST(908, "set fit v4"))
Output: &plot.SetFitSpecListItem{ · Case: 27, · Token: example908.go:1:9: IDENTIFIER "v4", }
Example (Case28) ¶
fmt.Println(exampleAST(909, "set fit v5"))
Output: &plot.SetFitSpecListItem{ · Case: 28, · Token: example909.go:1:9: IDENTIFIER "v5", }
func (*SetFitSpecListItem) Pos ¶
func (n *SetFitSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetFitSpecListItem) String ¶
func (n *SetFitSpecListItem) String() string
String implements fmt.Stringer.
type SetFontPathSpecOpt ¶
type SetFontPathSpecOpt struct { Case int Expression *Expression SimpleExpressionList *SimpleExpressionList }
SetFontPathSpecOpt represents data reduced by productions:
SetFontPathSpecOpt: /* empty */ | Expression // Case 1 | Expression SimpleExpressionList // Case 2
Example ¶
fmt.Println(exampleAST(825, "set fontpath") == (*SetFontPathSpecOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(826, "set fontpath ident_a"))
Output: &plot.SetFontPathSpecOpt{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example826.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case2) ¶
fmt.Println(exampleAST(827, "set fontpath ident_a ident_b"))
Output: &plot.SetFontPathSpecOpt{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example827.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpressionList: &plot.SimpleExpressionList{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example827.go:1:22: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetFontPathSpecOpt) Pos ¶
func (n *SetFontPathSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetFontPathSpecOpt) String ¶
func (n *SetFontPathSpecOpt) String() string
String implements fmt.Stringer.
type SetFormatAxesOpt ¶
SetFormatAxesOpt represents data reduced by productions:
SetFormatAxesOpt: /* empty */ | "cb" // Case 1 | "x" // Case 2 | "x2" // Case 3 | "xy" // Case 4 | "y" // Case 5 | "y2" // Case 6 | "z" // Case 7
Example ¶
fmt.Println(exampleAST(910, "set format") == (*SetFormatAxesOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(911, "set format cb"))
Output: &plot.SetFormatAxesOpt{ · Case: 1, · Token: example911.go:1:12: IDENTIFIER "cb", }
Example (Case2) ¶
fmt.Println(exampleAST(912, "set format x"))
Output: &plot.SetFormatAxesOpt{ · Case: 2, · Token: example912.go:1:12: IDENTIFIER "x", }
Example (Case3) ¶
fmt.Println(exampleAST(913, "set format x2"))
Output: &plot.SetFormatAxesOpt{ · Case: 3, · Token: example913.go:1:12: IDENTIFIER "x2", }
Example (Case4) ¶
fmt.Println(exampleAST(914, "set format xy"))
Output: &plot.SetFormatAxesOpt{ · Case: 4, · Token: example914.go:1:12: IDENTIFIER "xy", }
Example (Case5) ¶
fmt.Println(exampleAST(915, "set format y"))
Output: &plot.SetFormatAxesOpt{ · Case: 5, · Token: example915.go:1:12: IDENTIFIER "y", }
Example (Case6) ¶
fmt.Println(exampleAST(916, "set format y2"))
Output: &plot.SetFormatAxesOpt{ · Case: 6, · Token: example916.go:1:12: IDENTIFIER "y2", }
Example (Case7) ¶
fmt.Println(exampleAST(917, "set format z"))
Output: &plot.SetFormatAxesOpt{ · Case: 7, · Token: example917.go:1:12: IDENTIFIER "z", }
func (*SetFormatAxesOpt) Pos ¶
func (n *SetFormatAxesOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetFormatAxesOpt) String ¶
func (n *SetFormatAxesOpt) String() string
String implements fmt.Stringer.
type SetFormatModifierOpt ¶
SetFormatModifierOpt represents data reduced by productions:
SetFormatModifierOpt: /* empty */ | "numeric" // Case 1 | "timedate" // Case 2 | "geographic" // Case 3
Example ¶
fmt.Println(exampleAST(919, "set format") == (*SetFormatModifierOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(920, "set format numeric"))
Output: &plot.SetFormatModifierOpt{ · Case: 1, · Token: example920.go:1:12: IDENTIFIER "numeric", }
Example (Case2) ¶
fmt.Println(exampleAST(921, "set format timedate"))
Output: &plot.SetFormatModifierOpt{ · Case: 2, · Token: example921.go:1:12: IDENTIFIER "timedate", }
Example (Case3) ¶
fmt.Println(exampleAST(922, "set format geographic"))
Output: &plot.SetFormatModifierOpt{ · Case: 3, · Token: example922.go:1:12: IDENTIFIER "geographic", }
func (*SetFormatModifierOpt) Pos ¶
func (n *SetFormatModifierOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetFormatModifierOpt) String ¶
func (n *SetFormatModifierOpt) String() string
String implements fmt.Stringer.
type SetFormatSpec ¶
type SetFormatSpec struct { ExpressionOpt *ExpressionOpt SetFormatAxesOpt *SetFormatAxesOpt SetFormatModifierOpt *SetFormatModifierOpt }
SetFormatSpec represents data reduced by production:
SetFormatSpec: SetFormatAxesOpt ExpressionOpt SetFormatModifierOpt
Example ¶
fmt.Println(exampleAST(918, "set format x 'foo' numeric"))
Output: &plot.SetFormatSpec{ · ExpressionOpt: &plot.ExpressionOpt{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 3, · · · · · · Token: example918.go:1:14: STRING_LIT "foo", · · · · · }, · · · · }, · · · }, · · }, · }, · SetFormatAxesOpt: &plot.SetFormatAxesOpt{ · · Case: 2, · · Token: example918.go:1:12: IDENTIFIER "x", · }, · SetFormatModifierOpt: &plot.SetFormatModifierOpt{ · · Case: 1, · · Token: example918.go:1:20: IDENTIFIER "numeric", · }, }
func (*SetFormatSpec) Pos ¶
func (n *SetFormatSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetFormatSpec) String ¶
func (n *SetFormatSpec) String() string
String implements fmt.Stringer.
type SetGridSpecList ¶
type SetGridSpecList struct { Case int SetGridSpecList *SetGridSpecList SetGridSpecListItem *SetGridSpecListItem }
SetGridSpecList represents data reduced by productions:
SetGridSpecList: SetGridSpecListItem | SetGridSpecList SetGridSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(923, "set grid back"))
Output: &plot.SetGridSpecList{ · SetGridSpecListItem: &plot.SetGridSpecListItem{ · · Token: example923.go:1:10: IDENTIFIER "back", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(924, "set grid back back"))
Output: &plot.SetGridSpecList{ · SetGridSpecList: &plot.SetGridSpecList{ · · Case: 1, · · SetGridSpecListItem: &plot.SetGridSpecListItem{ · · · Token: example924.go:1:15: IDENTIFIER "back", · · }, · }, · SetGridSpecListItem: &plot.SetGridSpecListItem{ · · Token: example924.go:1:10: IDENTIFIER "back", · }, }
func (*SetGridSpecList) Pos ¶
func (n *SetGridSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetGridSpecList) String ¶
func (n *SetGridSpecList) String() string
String implements fmt.Stringer.
type SetGridSpecListItem ¶
type SetGridSpecListItem struct { Case int Expression *Expression LineStyleListItem *LineStyleListItem LineStyleListItem2 *LineStyleListItem SetLogscaleAxesListItem *SetLogscaleAxesListItem Token xc.Token }
SetGridSpecListItem represents data reduced by productions:
SetGridSpecListItem: "back" | "cbtics" // Case 1 | "front" // Case 2 | "layerdefault" // Case 3 | "mcb" // Case 4 | "mcbtics" // Case 5 | "mx" // Case 6 | "mx2" // Case 7 | "mx2tics" // Case 8 | "mxtics" // Case 9 | "my" // Case 10 | "my2" // Case 11 | "my2tics" // Case 12 | "mytics" // Case 13 | "mz" // Case 14 | "mztics" // Case 15 | "nocbtics" // Case 16 | "nomcbtics" // Case 17 | "nomx2tics" // Case 18 | "nomxtics" // Case 19 | "nomy2tics" // Case 20 | "nomytics" // Case 21 | "nomztics" // Case 22 | "nox2tics" // Case 23 | "noxtics" // Case 24 | "noy2tics" // Case 25 | "noytics" // Case 26 | "noztics" // Case 27 | "polar" // Case 28 | "polar" Expression // Case 29 | "x2tics" // Case 30 | "xtics" // Case 31 | "y2tics" // Case 32 | "ytics" // Case 33 | "ztics" // Case 34 | LineStyleListItem // Case 35 | LineStyleListItem ',' LineStyleListItem // Case 36 | SetLogscaleAxesListItem // Case 37
Example ¶
fmt.Println(exampleAST(925, "set grid back"))
Output: &plot.SetGridSpecListItem{ · Token: example925.go:1:10: IDENTIFIER "back", }
Example (Case01) ¶
fmt.Println(exampleAST(926, "set grid cbtics"))
Output: &plot.SetGridSpecListItem{ · Case: 1, · Token: example926.go:1:10: IDENTIFIER "cbtics", }
Example (Case02) ¶
fmt.Println(exampleAST(927, "set grid front"))
Output: &plot.SetGridSpecListItem{ · Case: 2, · Token: example927.go:1:10: IDENTIFIER "front", }
Example (Case03) ¶
fmt.Println(exampleAST(928, "set grid layerdefault"))
Output: &plot.SetGridSpecListItem{ · Case: 3, · Token: example928.go:1:10: IDENTIFIER "layerdefault", }
Example (Case04) ¶
fmt.Println(exampleAST(929, "set grid mcb"))
Output: &plot.SetGridSpecListItem{ · Case: 4, · Token: example929.go:1:10: IDENTIFIER "mcb", }
Example (Case05) ¶
fmt.Println(exampleAST(930, "set grid mcbtics"))
Output: &plot.SetGridSpecListItem{ · Case: 5, · Token: example930.go:1:10: IDENTIFIER "mcbtics", }
Example (Case06) ¶
fmt.Println(exampleAST(931, "set grid mx"))
Output: &plot.SetGridSpecListItem{ · Case: 6, · Token: example931.go:1:10: IDENTIFIER "mx", }
Example (Case07) ¶
fmt.Println(exampleAST(932, "set grid mx2"))
Output: &plot.SetGridSpecListItem{ · Case: 7, · Token: example932.go:1:10: IDENTIFIER "mx2", }
Example (Case08) ¶
fmt.Println(exampleAST(933, "set grid mx2tics"))
Output: &plot.SetGridSpecListItem{ · Case: 8, · Token: example933.go:1:10: IDENTIFIER "mx2tics", }
Example (Case09) ¶
fmt.Println(exampleAST(934, "set grid mxtics"))
Output: &plot.SetGridSpecListItem{ · Case: 9, · Token: example934.go:1:10: IDENTIFIER "mxtics", }
Example (Case10) ¶
fmt.Println(exampleAST(935, "set grid my"))
Output: &plot.SetGridSpecListItem{ · Case: 10, · Token: example935.go:1:10: IDENTIFIER "my", }
Example (Case11) ¶
fmt.Println(exampleAST(936, "set grid my2"))
Output: &plot.SetGridSpecListItem{ · Case: 11, · Token: example936.go:1:10: IDENTIFIER "my2", }
Example (Case12) ¶
fmt.Println(exampleAST(937, "set grid my2tics"))
Output: &plot.SetGridSpecListItem{ · Case: 12, · Token: example937.go:1:10: IDENTIFIER "my2tics", }
Example (Case13) ¶
fmt.Println(exampleAST(938, "set grid mytics"))
Output: &plot.SetGridSpecListItem{ · Case: 13, · Token: example938.go:1:10: IDENTIFIER "mytics", }
Example (Case14) ¶
fmt.Println(exampleAST(939, "set grid mz"))
Output: &plot.SetGridSpecListItem{ · Case: 14, · Token: example939.go:1:10: IDENTIFIER "mz", }
Example (Case15) ¶
fmt.Println(exampleAST(940, "set grid mztics"))
Output: &plot.SetGridSpecListItem{ · Case: 15, · Token: example940.go:1:10: IDENTIFIER "mztics", }
Example (Case16) ¶
fmt.Println(exampleAST(941, "set grid nocbtics"))
Output: &plot.SetGridSpecListItem{ · Case: 16, · Token: example941.go:1:10: IDENTIFIER "nocbtics", }
Example (Case17) ¶
fmt.Println(exampleAST(942, "set grid nomcbtics"))
Output: &plot.SetGridSpecListItem{ · Case: 17, · Token: example942.go:1:10: IDENTIFIER "nomcbtics", }
Example (Case18) ¶
fmt.Println(exampleAST(943, "set grid nomx2tics"))
Output: &plot.SetGridSpecListItem{ · Case: 18, · Token: example943.go:1:10: IDENTIFIER "nomx2tics", }
Example (Case19) ¶
fmt.Println(exampleAST(944, "set grid nomxtics"))
Output: &plot.SetGridSpecListItem{ · Case: 19, · Token: example944.go:1:10: IDENTIFIER "nomxtics", }
Example (Case20) ¶
fmt.Println(exampleAST(945, "set grid nomy2tics"))
Output: &plot.SetGridSpecListItem{ · Case: 20, · Token: example945.go:1:10: IDENTIFIER "nomy2tics", }
Example (Case21) ¶
fmt.Println(exampleAST(946, "set grid nomytics"))
Output: &plot.SetGridSpecListItem{ · Case: 21, · Token: example946.go:1:10: IDENTIFIER "nomytics", }
Example (Case22) ¶
fmt.Println(exampleAST(947, "set grid nomztics"))
Output: &plot.SetGridSpecListItem{ · Case: 22, · Token: example947.go:1:10: IDENTIFIER "nomztics", }
Example (Case23) ¶
fmt.Println(exampleAST(948, "set grid nox2tics"))
Output: &plot.SetGridSpecListItem{ · Case: 23, · Token: example948.go:1:10: IDENTIFIER "nox2tics", }
Example (Case24) ¶
fmt.Println(exampleAST(949, "set grid noxtics"))
Output: &plot.SetGridSpecListItem{ · Case: 24, · Token: example949.go:1:10: IDENTIFIER "noxtics", }
Example (Case25) ¶
fmt.Println(exampleAST(950, "set grid noy2tics"))
Output: &plot.SetGridSpecListItem{ · Case: 25, · Token: example950.go:1:10: IDENTIFIER "noy2tics", }
Example (Case26) ¶
fmt.Println(exampleAST(951, "set grid noytics"))
Output: &plot.SetGridSpecListItem{ · Case: 26, · Token: example951.go:1:10: IDENTIFIER "noytics", }
Example (Case27) ¶
fmt.Println(exampleAST(952, "set grid noztics"))
Output: &plot.SetGridSpecListItem{ · Case: 27, · Token: example952.go:1:10: IDENTIFIER "noztics", }
Example (Case28) ¶
fmt.Println(exampleAST(953, "set grid polar"))
Output: &plot.SetGridSpecListItem{ · Case: 28, · Token: example953.go:1:10: IDENTIFIER "polar", }
Example (Case29) ¶
fmt.Println(exampleAST(954, "set grid polar ident_a"))
Output: &plot.SetGridSpecListItem{ · Case: 29, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example954.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example954.go:1:10: IDENTIFIER "polar", }
Example (Case30) ¶
fmt.Println(exampleAST(955, "set grid x2tics"))
Output: &plot.SetGridSpecListItem{ · Case: 30, · Token: example955.go:1:10: IDENTIFIER "x2tics", }
Example (Case31) ¶
fmt.Println(exampleAST(956, "set grid xtics"))
Output: &plot.SetGridSpecListItem{ · Case: 31, · Token: example956.go:1:10: IDENTIFIER "xtics", }
Example (Case32) ¶
fmt.Println(exampleAST(957, "set grid y2tics"))
Output: &plot.SetGridSpecListItem{ · Case: 32, · Token: example957.go:1:10: IDENTIFIER "y2tics", }
Example (Case33) ¶
fmt.Println(exampleAST(958, "set grid ytics"))
Output: &plot.SetGridSpecListItem{ · Case: 33, · Token: example958.go:1:10: IDENTIFIER "ytics", }
Example (Case34) ¶
fmt.Println(exampleAST(959, "set grid ztics"))
Output: &plot.SetGridSpecListItem{ · Case: 34, · Token: example959.go:1:10: IDENTIFIER "ztics", }
Example (Case35) ¶
fmt.Println(exampleAST(960, "set grid nocontours"))
Output: &plot.SetGridSpecListItem{ · Case: 35, · LineStyleListItem: &plot.LineStyleListItem{ · · Case: 15, · · Token: example960.go:1:10: IDENTIFIER "nocontours", · }, }
Example (Case36) ¶
fmt.Println(exampleAST(961, "set grid nocontours , nocontours"))
Output: &plot.SetGridSpecListItem{ · Case: 36, · LineStyleListItem: &plot.LineStyleListItem{ · · Case: 15, · · Token: example961.go:1:10: IDENTIFIER "nocontours", · }, · LineStyleListItem2: &plot.LineStyleListItem{ · · Case: 15, · · Token: example961.go:1:23: IDENTIFIER "nocontours", · }, · Token: example961.go:1:21: ',' ",", }
Example (Case37) ¶
fmt.Println(exampleAST(962, "set grid cb"))
Output: &plot.SetGridSpecListItem{ · Case: 37, · SetLogscaleAxesListItem: &plot.SetLogscaleAxesListItem{ · · Case: 5, · · Token: example962.go:1:10: IDENTIFIER "cb", · }, }
func (*SetGridSpecListItem) Pos ¶
func (n *SetGridSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetGridSpecListItem) String ¶
func (n *SetGridSpecListItem) String() string
String implements fmt.Stringer.
type SetGridSpecListOpt ¶
type SetGridSpecListOpt struct {
SetGridSpecList *SetGridSpecList
}
SetGridSpecListOpt represents data reduced by productions:
SetGridSpecListOpt: /* empty */ | SetGridSpecList // Case 1
Example ¶
fmt.Println(exampleAST(963, "set grid") == (*SetGridSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(964, "set grid back"))
Output: &plot.SetGridSpecListOpt{ · SetGridSpecList: &plot.SetGridSpecList{ · · SetGridSpecListItem: &plot.SetGridSpecListItem{ · · · Token: example964.go:1:10: IDENTIFIER "back", · · }, · }, }
func (*SetGridSpecListOpt) Pos ¶
func (n *SetGridSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetGridSpecListOpt) String ¶
func (n *SetGridSpecListOpt) String() string
String implements fmt.Stringer.
type SetHidden3dSpecList ¶
type SetHidden3dSpecList struct { Case int SetHidden3dSpecList *SetHidden3dSpecList SetHidden3dSpecListItem *SetHidden3dSpecListItem }
SetHidden3dSpecList represents data reduced by productions:
SetHidden3dSpecList: SetHidden3dSpecListItem | SetHidden3dSpecList SetHidden3dSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(965, "set hidden3d altdiagonal"))
Output: &plot.SetHidden3dSpecList{ · SetHidden3dSpecListItem: &plot.SetHidden3dSpecListItem{ · · Case: 8, · · Token: example965.go:1:14: IDENTIFIER "altdiagonal", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(966, "set hidden3d altdiagonal altdiagonal"))
Output: &plot.SetHidden3dSpecList{ · SetHidden3dSpecList: &plot.SetHidden3dSpecList{ · · Case: 1, · · SetHidden3dSpecListItem: &plot.SetHidden3dSpecListItem{ · · · Case: 8, · · · Token: example966.go:1:26: IDENTIFIER "altdiagonal", · · }, · }, · SetHidden3dSpecListItem: &plot.SetHidden3dSpecListItem{ · · Case: 8, · · Token: example966.go:1:14: IDENTIFIER "altdiagonal", · }, }
func (*SetHidden3dSpecList) Pos ¶
func (n *SetHidden3dSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetHidden3dSpecList) String ¶
func (n *SetHidden3dSpecList) String() string
String implements fmt.Stringer.
type SetHidden3dSpecListItem ¶
type SetHidden3dSpecListItem struct { Case int Expression *Expression Token xc.Token }
SetHidden3dSpecListItem represents data reduced by productions:
SetHidden3dSpecListItem: "defaults" | "front" // Case 1 | "back" // Case 2 | "offset" Expression // Case 3 | "nooffset" // Case 4 | "trianglepattern" Expression // Case 5 | "undefined" Expression // Case 6 | "noundefined" // Case 7 | "altdiagonal" // Case 8 | "noaltdiagonal" // Case 9 | "bentover" // Case 10 | "nobentover" // Case 11
Example ¶
fmt.Println(exampleAST(967, "set hidden3d defaults"))
Output: &plot.SetHidden3dSpecListItem{ · Token: example967.go:1:14: IDENTIFIER "defaults", }
Example (Case01) ¶
fmt.Println(exampleAST(968, "set hidden3d front"))
Output: &plot.SetHidden3dSpecListItem{ · Case: 1, · Token: example968.go:1:14: IDENTIFIER "front", }
Example (Case02) ¶
fmt.Println(exampleAST(969, "set hidden3d back"))
Output: &plot.SetHidden3dSpecListItem{ · Case: 2, · Token: example969.go:1:14: IDENTIFIER "back", }
Example (Case03) ¶
fmt.Println(exampleAST(970, "set hidden3d offset ident_a"))
Output: &plot.SetHidden3dSpecListItem{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example970.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example970.go:1:14: IDENTIFIER "offset", }
Example (Case04) ¶
fmt.Println(exampleAST(971, "set hidden3d nooffset"))
Output: &plot.SetHidden3dSpecListItem{ · Case: 4, · Token: example971.go:1:14: IDENTIFIER "nooffset", }
Example (Case05) ¶
fmt.Println(exampleAST(972, "set hidden3d trianglepattern ident_a"))
Output: &plot.SetHidden3dSpecListItem{ · Case: 5, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example972.go:1:30: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example972.go:1:14: IDENTIFIER "trianglepattern", }
Example (Case06) ¶
fmt.Println(exampleAST(973, "set hidden3d undefined ident_a"))
Output: &plot.SetHidden3dSpecListItem{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example973.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example973.go:1:14: IDENTIFIER "undefined", }
Example (Case07) ¶
fmt.Println(exampleAST(974, "set hidden3d noundefined"))
Output: &plot.SetHidden3dSpecListItem{ · Case: 7, · Token: example974.go:1:14: IDENTIFIER "noundefined", }
Example (Case08) ¶
fmt.Println(exampleAST(975, "set hidden3d altdiagonal"))
Output: &plot.SetHidden3dSpecListItem{ · Case: 8, · Token: example975.go:1:14: IDENTIFIER "altdiagonal", }
Example (Case09) ¶
fmt.Println(exampleAST(976, "set hidden3d noaltdiagonal"))
Output: &plot.SetHidden3dSpecListItem{ · Case: 9, · Token: example976.go:1:14: IDENTIFIER "noaltdiagonal", }
Example (Case10) ¶
fmt.Println(exampleAST(977, "set hidden3d bentover"))
Output: &plot.SetHidden3dSpecListItem{ · Case: 10, · Token: example977.go:1:14: IDENTIFIER "bentover", }
Example (Case11) ¶
fmt.Println(exampleAST(978, "set hidden3d nobentover"))
Output: &plot.SetHidden3dSpecListItem{ · Case: 11, · Token: example978.go:1:14: IDENTIFIER "nobentover", }
func (*SetHidden3dSpecListItem) Pos ¶
func (n *SetHidden3dSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetHidden3dSpecListItem) String ¶
func (n *SetHidden3dSpecListItem) String() string
String implements fmt.Stringer.
type SetHidden3dSpecListOpt ¶
type SetHidden3dSpecListOpt struct {
SetHidden3dSpecList *SetHidden3dSpecList
}
SetHidden3dSpecListOpt represents data reduced by productions:
SetHidden3dSpecListOpt: /* empty */ | SetHidden3dSpecList // Case 1
Example ¶
fmt.Println(exampleAST(979, "set hidden3d") == (*SetHidden3dSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(980, "set hidden3d altdiagonal"))
Output: &plot.SetHidden3dSpecListOpt{ · SetHidden3dSpecList: &plot.SetHidden3dSpecList{ · · SetHidden3dSpecListItem: &plot.SetHidden3dSpecListItem{ · · · Case: 8, · · · Token: example980.go:1:14: IDENTIFIER "altdiagonal", · · }, · }, }
func (*SetHidden3dSpecListOpt) Pos ¶
func (n *SetHidden3dSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetHidden3dSpecListOpt) String ¶
func (n *SetHidden3dSpecListOpt) String() string
String implements fmt.Stringer.
type SetHistorySpecList ¶
type SetHistorySpecList struct { Case int SetHistorySpecList *SetHistorySpecList SetHistorySpecListItem *SetHistorySpecListItem }
SetHistorySpecList represents data reduced by productions:
SetHistorySpecList: SetHistorySpecListItem | SetHistorySpecList SetHistorySpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(981, "set history default"))
Output: &plot.SetHistorySpecList{ · SetHistorySpecListItem: &plot.SetHistorySpecListItem{ · · Case: 5, · · Token: example981.go:1:13: IDENTIFIER "default", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(982, "set history default default"))
Output: &plot.SetHistorySpecList{ · SetHistorySpecList: &plot.SetHistorySpecList{ · · Case: 1, · · SetHistorySpecListItem: &plot.SetHistorySpecListItem{ · · · Case: 5, · · · Token: example982.go:1:21: IDENTIFIER "default", · · }, · }, · SetHistorySpecListItem: &plot.SetHistorySpecListItem{ · · Case: 5, · · Token: example982.go:1:13: IDENTIFIER "default", · }, }
func (*SetHistorySpecList) Pos ¶
func (n *SetHistorySpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetHistorySpecList) String ¶
func (n *SetHistorySpecList) String() string
String implements fmt.Stringer.
type SetHistorySpecListItem ¶
type SetHistorySpecListItem struct { Case int Expression *Expression Token xc.Token }
SetHistorySpecListItem represents data reduced by productions:
SetHistorySpecListItem: "size" Expression | "quiet" // Case 1 | "numbers" // Case 2 | "full" // Case 3 | "trim" // Case 4 | "default" // Case 5
Example ¶
fmt.Println(exampleAST(983, "set history size ident_a"))
Output: &plot.SetHistorySpecListItem{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example983.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example983.go:1:13: IDENTIFIER "size", }
Example (Case1) ¶
fmt.Println(exampleAST(984, "set history quiet"))
Output: &plot.SetHistorySpecListItem{ · Case: 1, · Token: example984.go:1:13: IDENTIFIER "quiet", }
Example (Case2) ¶
fmt.Println(exampleAST(985, "set history numbers"))
Output: &plot.SetHistorySpecListItem{ · Case: 2, · Token: example985.go:1:13: IDENTIFIER "numbers", }
Example (Case3) ¶
fmt.Println(exampleAST(986, "set history full"))
Output: &plot.SetHistorySpecListItem{ · Case: 3, · Token: example986.go:1:13: IDENTIFIER "full", }
Example (Case4) ¶
fmt.Println(exampleAST(987, "set history trim"))
Output: &plot.SetHistorySpecListItem{ · Case: 4, · Token: example987.go:1:13: IDENTIFIER "trim", }
Example (Case5) ¶
fmt.Println(exampleAST(988, "set history default"))
Output: &plot.SetHistorySpecListItem{ · Case: 5, · Token: example988.go:1:13: IDENTIFIER "default", }
func (*SetHistorySpecListItem) Pos ¶
func (n *SetHistorySpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetHistorySpecListItem) String ¶
func (n *SetHistorySpecListItem) String() string
String implements fmt.Stringer.
type SetHistorySpecListOpt ¶
type SetHistorySpecListOpt struct {
SetHistorySpecList *SetHistorySpecList
}
SetHistorySpecListOpt represents data reduced by productions:
SetHistorySpecListOpt: /* empty */ | SetHistorySpecList // Case 1
Example ¶
fmt.Println(exampleAST(989, "set history") == (*SetHistorySpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(990, "set history default"))
Output: &plot.SetHistorySpecListOpt{ · SetHistorySpecList: &plot.SetHistorySpecList{ · · SetHistorySpecListItem: &plot.SetHistorySpecListItem{ · · · Case: 5, · · · Token: example990.go:1:13: IDENTIFIER "default", · · }, · }, }
func (*SetHistorySpecListOpt) Pos ¶
func (n *SetHistorySpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetHistorySpecListOpt) String ¶
func (n *SetHistorySpecListOpt) String() string
String implements fmt.Stringer.
type SetKeySpecList ¶
type SetKeySpecList struct { Case int SetKeySpecList *SetKeySpecList SetKeySpecListItem *SetKeySpecListItem }
SetKeySpecList represents data reduced by productions:
SetKeySpecList: SetKeySpecListItem | SetKeySpecList SetKeySpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(991, "set key above"))
Output: &plot.SetKeySpecList{ · SetKeySpecListItem: &plot.SetKeySpecListItem{ · · Case: 6, · · Token: example991.go:1:9: IDENTIFIER "above", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(992, "set key above above"))
Output: &plot.SetKeySpecList{ · SetKeySpecList: &plot.SetKeySpecList{ · · Case: 1, · · SetKeySpecListItem: &plot.SetKeySpecListItem{ · · · Case: 6, · · · Token: example992.go:1:15: IDENTIFIER "above", · · }, · }, · SetKeySpecListItem: &plot.SetKeySpecListItem{ · · Case: 6, · · Token: example992.go:1:9: IDENTIFIER "above", · }, }
func (*SetKeySpecList) Pos ¶
func (n *SetKeySpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetKeySpecList) String ¶
func (n *SetKeySpecList) String() string
String implements fmt.Stringer.
type SetKeySpecListItem ¶
type SetKeySpecListItem struct { Case int ColorSpec *ColorSpec Expression *Expression LineStyleListItem *LineStyleListItem Position *Position Token xc.Token Token2 xc.Token }
SetKeySpecListItem represents data reduced by productions:
SetKeySpecListItem: "on" | "off" // Case 1 | "default" // Case 2 | "inside" // Case 3 | "out" // Case 4 | "outside" // Case 5 | "above" // Case 6 | "below" // Case 7 | "under" // Case 8 | "lmargin" // Case 9 | "rmargin" // Case 10 | "tmargin" // Case 11 | "bmargin" // Case 12 | "at" Position // Case 13 | "left" // Case 14 | "right" // Case 15 | "center" // Case 16 | "top" // Case 17 | "bot" // Case 18 | "bottom" // Case 19 | "vertical" // Case 20 | "horizontal" // Case 21 | "Left" // Case 22 | "Right" // Case 23 | "opaque" // Case 24 | "noopaque" // Case 25 | "reverse" // Case 26 | "noreverse" // Case 27 | "invert" // Case 28 | "noinvert" // Case 29 | "sample" Expression // Case 30 | "samplen" Expression // Case 31 | "spacing" Expression // Case 32 | "width" Expression // Case 33 | "height" Expression // Case 34 | "autotitle" // Case 35 | "column" // Case 36 | "columnhead" // Case 37 | "columnheader" // Case 38 | "noautotitle" // Case 39 | "title" Expression // Case 40 | "enhanced" // Case 41 | "noenhanced" // Case 42 | "font" Expression // Case 43 | "textcolor" ColorSpec // Case 44 | "box" // Case 45 | "nobox" // Case 46 | LineStyleListItem // Case 47 | "maxcols" Expression // Case 48 | "maxcols" "auto" // Case 49 | "maxrows" Expression // Case 50 | "maxrows" "auto" // Case 51
Example ¶
fmt.Println(exampleAST(993, "set key on"))
Output: &plot.SetKeySpecListItem{ · Token: example993.go:1:9: IDENTIFIER "on", }
Example (Case01) ¶
fmt.Println(exampleAST(994, "set key off"))
Output: &plot.SetKeySpecListItem{ · Case: 1, · Token: example994.go:1:9: IDENTIFIER "off", }
Example (Case02) ¶
fmt.Println(exampleAST(995, "set key default"))
Output: &plot.SetKeySpecListItem{ · Case: 2, · Token: example995.go:1:9: IDENTIFIER "default", }
Example (Case03) ¶
fmt.Println(exampleAST(996, "set key inside"))
Output: &plot.SetKeySpecListItem{ · Case: 3, · Token: example996.go:1:9: IDENTIFIER "inside", }
Example (Case04) ¶
fmt.Println(exampleAST(997, "set key out"))
Output: &plot.SetKeySpecListItem{ · Case: 4, · Token: example997.go:1:9: IDENTIFIER "out", }
Example (Case05) ¶
fmt.Println(exampleAST(998, "set key outside"))
Output: &plot.SetKeySpecListItem{ · Case: 5, · Token: example998.go:1:9: IDENTIFIER "outside", }
Example (Case06) ¶
fmt.Println(exampleAST(999, "set key above"))
Output: &plot.SetKeySpecListItem{ · Case: 6, · Token: example999.go:1:9: IDENTIFIER "above", }
Example (Case07) ¶
fmt.Println(exampleAST(1000, "set key below"))
Output: &plot.SetKeySpecListItem{ · Case: 7, · Token: example1000.go:1:9: IDENTIFIER "below", }
Example (Case08) ¶
fmt.Println(exampleAST(1001, "set key under"))
Output: &plot.SetKeySpecListItem{ · Case: 8, · Token: example1001.go:1:9: IDENTIFIER "under", }
Example (Case09) ¶
fmt.Println(exampleAST(1002, "set key lmargin"))
Output: &plot.SetKeySpecListItem{ · Case: 9, · Token: example1002.go:1:9: IDENTIFIER "lmargin", }
Example (Case10) ¶
fmt.Println(exampleAST(1003, "set key rmargin"))
Output: &plot.SetKeySpecListItem{ · Case: 10, · Token: example1003.go:1:9: IDENTIFIER "rmargin", }
Example (Case11) ¶
fmt.Println(exampleAST(1004, "set key tmargin"))
Output: &plot.SetKeySpecListItem{ · Case: 11, · Token: example1004.go:1:9: IDENTIFIER "tmargin", }
Example (Case12) ¶
fmt.Println(exampleAST(1005, "set key bmargin"))
Output: &plot.SetKeySpecListItem{ · Case: 12, · Token: example1005.go:1:9: IDENTIFIER "bmargin", }
Example (Case13) ¶
fmt.Println(exampleAST(1006, "set key at ident_a"))
Output: &plot.SetKeySpecListItem{ · Case: 13, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1006.go:1:12: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1006.go:1:9: IDENTIFIER "at", }
Example (Case14) ¶
fmt.Println(exampleAST(1007, "set key left"))
Output: &plot.SetKeySpecListItem{ · Case: 14, · Token: example1007.go:1:9: IDENTIFIER "left", }
Example (Case15) ¶
fmt.Println(exampleAST(1008, "set key right"))
Output: &plot.SetKeySpecListItem{ · Case: 15, · Token: example1008.go:1:9: IDENTIFIER "right", }
Example (Case16) ¶
fmt.Println(exampleAST(1009, "set key center"))
Output: &plot.SetKeySpecListItem{ · Case: 16, · Token: example1009.go:1:9: IDENTIFIER "center", }
Example (Case17) ¶
fmt.Println(exampleAST(1010, "set key top"))
Output: &plot.SetKeySpecListItem{ · Case: 17, · Token: example1010.go:1:9: IDENTIFIER "top", }
Example (Case18) ¶
fmt.Println(exampleAST(1011, "set key bot"))
Output: &plot.SetKeySpecListItem{ · Case: 18, · Token: example1011.go:1:9: IDENTIFIER "bot", }
Example (Case19) ¶
fmt.Println(exampleAST(1012, "set key bottom"))
Output: &plot.SetKeySpecListItem{ · Case: 19, · Token: example1012.go:1:9: IDENTIFIER "bottom", }
Example (Case20) ¶
fmt.Println(exampleAST(1013, "set key vertical"))
Output: &plot.SetKeySpecListItem{ · Case: 20, · Token: example1013.go:1:9: IDENTIFIER "vertical", }
Example (Case21) ¶
fmt.Println(exampleAST(1014, "set key horizontal"))
Output: &plot.SetKeySpecListItem{ · Case: 21, · Token: example1014.go:1:9: IDENTIFIER "horizontal", }
Example (Case22) ¶
fmt.Println(exampleAST(1015, "set key Left"))
Output: &plot.SetKeySpecListItem{ · Case: 22, · Token: example1015.go:1:9: IDENTIFIER "Left", }
Example (Case23) ¶
fmt.Println(exampleAST(1016, "set key Right"))
Output: &plot.SetKeySpecListItem{ · Case: 23, · Token: example1016.go:1:9: IDENTIFIER "Right", }
Example (Case24) ¶
fmt.Println(exampleAST(1017, "set key opaque"))
Output: &plot.SetKeySpecListItem{ · Case: 24, · Token: example1017.go:1:9: IDENTIFIER "opaque", }
Example (Case25) ¶
fmt.Println(exampleAST(1018, "set key noopaque"))
Output: &plot.SetKeySpecListItem{ · Case: 25, · Token: example1018.go:1:9: IDENTIFIER "noopaque", }
Example (Case26) ¶
fmt.Println(exampleAST(1019, "set key reverse"))
Output: &plot.SetKeySpecListItem{ · Case: 26, · Token: example1019.go:1:9: IDENTIFIER "reverse", }
Example (Case27) ¶
fmt.Println(exampleAST(1020, "set key noreverse"))
Output: &plot.SetKeySpecListItem{ · Case: 27, · Token: example1020.go:1:9: IDENTIFIER "noreverse", }
Example (Case28) ¶
fmt.Println(exampleAST(1021, "set key invert"))
Output: &plot.SetKeySpecListItem{ · Case: 28, · Token: example1021.go:1:9: IDENTIFIER "invert", }
Example (Case29) ¶
fmt.Println(exampleAST(1022, "set key noinvert"))
Output: &plot.SetKeySpecListItem{ · Case: 29, · Token: example1022.go:1:9: IDENTIFIER "noinvert", }
Example (Case30) ¶
fmt.Println(exampleAST(1023, "set key sample ident_a"))
Output: &plot.SetKeySpecListItem{ · Case: 30, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1023.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1023.go:1:9: IDENTIFIER "sample", }
Example (Case31) ¶
fmt.Println(exampleAST(1024, "set key samplen ident_a"))
Output: &plot.SetKeySpecListItem{ · Case: 31, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1024.go:1:17: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1024.go:1:9: IDENTIFIER "samplen", }
Example (Case32) ¶
fmt.Println(exampleAST(1025, "set key spacing ident_a"))
Output: &plot.SetKeySpecListItem{ · Case: 32, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1025.go:1:17: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1025.go:1:9: IDENTIFIER "spacing", }
Example (Case33) ¶
fmt.Println(exampleAST(1026, "set key width ident_a"))
Output: &plot.SetKeySpecListItem{ · Case: 33, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1026.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1026.go:1:9: IDENTIFIER "width", }
Example (Case34) ¶
fmt.Println(exampleAST(1027, "set key height ident_a"))
Output: &plot.SetKeySpecListItem{ · Case: 34, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1027.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1027.go:1:9: IDENTIFIER "height", }
Example (Case35) ¶
fmt.Println(exampleAST(1028, "set key autotitle"))
Output: &plot.SetKeySpecListItem{ · Case: 35, · Token: example1028.go:1:9: IDENTIFIER "autotitle", }
Example (Case36) ¶
fmt.Println(exampleAST(1029, "set key column"))
Output: &plot.SetKeySpecListItem{ · Case: 36, · Token: example1029.go:1:9: IDENTIFIER "column", }
Example (Case37) ¶
fmt.Println(exampleAST(1030, "set key columnhead"))
Output: &plot.SetKeySpecListItem{ · Case: 37, · Token: example1030.go:1:9: IDENTIFIER "columnhead", }
Example (Case38) ¶
fmt.Println(exampleAST(1031, "set key columnheader"))
Output: &plot.SetKeySpecListItem{ · Case: 38, · Token: example1031.go:1:9: IDENTIFIER "columnheader", }
Example (Case39) ¶
fmt.Println(exampleAST(1032, "set key noautotitle"))
Output: &plot.SetKeySpecListItem{ · Case: 39, · Token: example1032.go:1:9: IDENTIFIER "noautotitle", }
Example (Case40) ¶
fmt.Println(exampleAST(1033, "set key title ident_a"))
Output: &plot.SetKeySpecListItem{ · Case: 40, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1033.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1033.go:1:9: IDENTIFIER "title", }
Example (Case41) ¶
fmt.Println(exampleAST(1034, "set key enhanced"))
Output: &plot.SetKeySpecListItem{ · Case: 41, · Token: example1034.go:1:9: IDENTIFIER "enhanced", }
Example (Case42) ¶
fmt.Println(exampleAST(1035, "set key noenhanced"))
Output: &plot.SetKeySpecListItem{ · Case: 42, · Token: example1035.go:1:9: IDENTIFIER "noenhanced", }
Example (Case43) ¶
fmt.Println(exampleAST(1036, "set key font ident_a"))
Output: &plot.SetKeySpecListItem{ · Case: 43, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1036.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1036.go:1:9: IDENTIFIER "font", }
Example (Case44) ¶
fmt.Println(exampleAST(1037, "set key textcolor ident_a"))
Output: &plot.SetKeySpecListItem{ · Case: 44, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1037.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1037.go:1:9: IDENTIFIER "textcolor", }
Example (Case45) ¶
fmt.Println(exampleAST(1038, "set key box"))
Output: &plot.SetKeySpecListItem{ · Case: 45, · Token: example1038.go:1:9: IDENTIFIER "box", }
Example (Case46) ¶
fmt.Println(exampleAST(1039, "set key nobox"))
Output: &plot.SetKeySpecListItem{ · Case: 46, · Token: example1039.go:1:9: IDENTIFIER "nobox", }
Example (Case47) ¶
fmt.Println(exampleAST(1040, "set key nocontours"))
Output: &plot.SetKeySpecListItem{ · Case: 47, · LineStyleListItem: &plot.LineStyleListItem{ · · Case: 15, · · Token: example1040.go:1:9: IDENTIFIER "nocontours", · }, }
Example (Case48) ¶
fmt.Println(exampleAST(1041, "set key maxcols ident_a"))
Output: &plot.SetKeySpecListItem{ · Case: 48, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1041.go:1:17: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1041.go:1:9: IDENTIFIER "maxcols", }
Example (Case49) ¶
fmt.Println(exampleAST(1042, "set key maxcols auto"))
Output: &plot.SetKeySpecListItem{ · Case: 49, · Token: example1042.go:1:9: IDENTIFIER "maxcols", · Token2: example1042.go:1:17: IDENTIFIER "auto", }
Example (Case50) ¶
fmt.Println(exampleAST(1043, "set key maxrows ident_a"))
Output: &plot.SetKeySpecListItem{ · Case: 50, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1043.go:1:17: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1043.go:1:9: IDENTIFIER "maxrows", }
Example (Case51) ¶
fmt.Println(exampleAST(1044, "set key maxrows auto"))
Output: &plot.SetKeySpecListItem{ · Case: 51, · Token: example1044.go:1:9: IDENTIFIER "maxrows", · Token2: example1044.go:1:17: IDENTIFIER "auto", }
func (*SetKeySpecListItem) Pos ¶
func (n *SetKeySpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetKeySpecListItem) String ¶
func (n *SetKeySpecListItem) String() string
String implements fmt.Stringer.
type SetKeySpecListOpt ¶
type SetKeySpecListOpt struct {
SetKeySpecList *SetKeySpecList
}
SetKeySpecListOpt represents data reduced by productions:
SetKeySpecListOpt: /* empty */ | SetKeySpecList // Case 1
Example ¶
fmt.Println(exampleAST(1045, "set key") == (*SetKeySpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1046, "set key above"))
Output: &plot.SetKeySpecListOpt{ · SetKeySpecList: &plot.SetKeySpecList{ · · SetKeySpecListItem: &plot.SetKeySpecListItem{ · · · Case: 6, · · · Token: example1046.go:1:9: IDENTIFIER "above", · · }, · }, }
func (*SetKeySpecListOpt) Pos ¶
func (n *SetKeySpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetKeySpecListOpt) String ¶
func (n *SetKeySpecListOpt) String() string
String implements fmt.Stringer.
type SetLabelSpec ¶
type SetLabelSpec struct { ExpressionOpt *ExpressionOpt SetLabelSpecList *SetLabelSpecList }
SetLabelSpec represents data reduced by production:
SetLabelSpec: ExpressionOpt SetLabelSpecList
Example ¶
fmt.Println(exampleAST(1047, "set label 1 'foo'"))
Output: &plot.SetLabelSpec{ · ExpressionOpt: &plot.ExpressionOpt{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 2, · · · · · · Token: example1047.go:1:11: NUM_LIT "1", · · · · · }, · · · · }, · · · }, · · }, · }, · SetLabelSpecList: &plot.SetLabelSpecList{ · · SetLabelSpecListItem: &plot.SetLabelSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 3, · · · · · · · Token: example1047.go:1:13: STRING_LIT "foo", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetLabelSpec) Pos ¶
func (n *SetLabelSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetLabelSpec) String ¶
func (n *SetLabelSpec) String() string
String implements fmt.Stringer.
type SetLabelSpecList ¶
type SetLabelSpecList struct { Case int SetLabelSpecList *SetLabelSpecList SetLabelSpecListItem *SetLabelSpecListItem }
SetLabelSpecList represents data reduced by productions:
SetLabelSpecList: SetLabelSpecListItem | SetLabelSpecList SetLabelSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1048, "set label 1 'foo'"))
Output: &plot.SetLabelSpecList{ · SetLabelSpecListItem: &plot.SetLabelSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 3, · · · · · · Token: example1048.go:1:13: STRING_LIT "foo", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1049, "set label 1 'foo' left"))
Output: &plot.SetLabelSpecList{ · SetLabelSpecList: &plot.SetLabelSpecList{ · · Case: 1, · · SetLabelSpecListItem: &plot.SetLabelSpecListItem{ · · · Case: 2, · · · Token: example1049.go:1:19: IDENTIFIER "left", · · }, · }, · SetLabelSpecListItem: &plot.SetLabelSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 3, · · · · · · Token: example1049.go:1:13: STRING_LIT "foo", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetLabelSpecList) Pos ¶
func (n *SetLabelSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetLabelSpecList) String ¶
func (n *SetLabelSpecList) String() string
String implements fmt.Stringer.
type SetLabelSpecListItem ¶
type SetLabelSpecListItem struct { Case int ColorSpec *ColorSpec Expression *Expression Expression2 *Expression LineStyleListItem *LineStyleListItem Position *Position SimpleExpression *SimpleExpression Token xc.Token Token2 xc.Token }
SetLabelSpecListItem represents data reduced by productions:
SetLabelSpecListItem: SimpleExpression | "at" Position // Case 1 | "left" // Case 2 | "center" // Case 3 | "right" // Case 4 | "norotate" // Case 5 | "rotate" // Case 6 | "rotate" "by" Expression // Case 7 | "font" Expression // Case 8 | "noenhanced" // Case 9 | "front" // Case 10 | "back" // Case 11 | "textcolor" ColorSpec // Case 12 | "point" // Case 13 | "nopoint" // Case 14 | "offset" Expression // Case 15 | "offset" Expression ',' Expression // Case 16 | "boxed" // Case 17 | "hypertext" // Case 18 | LineStyleListItem // Case 19
Example ¶
fmt.Println(exampleAST(1050, "set label 1 'foo'"))
Output: &plot.SetLabelSpecListItem{ · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 3, · · · · · Token: example1050.go:1:13: STRING_LIT "foo", · · · · }, · · · }, · · }, · }, }
Example (Case01) ¶
fmt.Println(exampleAST(1051, "set label at ident_a"))
Output: &plot.SetLabelSpecListItem{ · Case: 1, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1051.go:1:14: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1051.go:1:11: IDENTIFIER "at", }
Example (Case02) ¶
fmt.Println(exampleAST(1052, "set label left"))
Output: &plot.SetLabelSpecListItem{ · Case: 2, · Token: example1052.go:1:11: IDENTIFIER "left", }
Example (Case03) ¶
fmt.Println(exampleAST(1053, "set label center"))
Output: &plot.SetLabelSpecListItem{ · Case: 3, · Token: example1053.go:1:11: IDENTIFIER "center", }
Example (Case04) ¶
fmt.Println(exampleAST(1054, "set label right"))
Output: &plot.SetLabelSpecListItem{ · Case: 4, · Token: example1054.go:1:11: IDENTIFIER "right", }
Example (Case05) ¶
fmt.Println(exampleAST(1055, "set label norotate"))
Output: &plot.SetLabelSpecListItem{ · Case: 5, · Token: example1055.go:1:11: IDENTIFIER "norotate", }
Example (Case06) ¶
fmt.Println(exampleAST(1056, "set label rotate"))
Output: &plot.SetLabelSpecListItem{ · Case: 6, · Token: example1056.go:1:11: IDENTIFIER "rotate", }
Example (Case07) ¶
fmt.Println(exampleAST(1057, "set label rotate by ident_a"))
Output: &plot.SetLabelSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1057.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1057.go:1:11: IDENTIFIER "rotate", · Token2: example1057.go:1:18: IDENTIFIER "by", }
Example (Case08) ¶
fmt.Println(exampleAST(1058, "set label font ident_a"))
Output: &plot.SetLabelSpecListItem{ · Case: 8, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1058.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1058.go:1:11: IDENTIFIER "font", }
Example (Case09) ¶
fmt.Println(exampleAST(1059, "set label noenhanced"))
Output: &plot.SetLabelSpecListItem{ · Case: 9, · Token: example1059.go:1:11: IDENTIFIER "noenhanced", }
Example (Case10) ¶
fmt.Println(exampleAST(1060, "set label front"))
Output: &plot.SetLabelSpecListItem{ · Case: 10, · Token: example1060.go:1:11: IDENTIFIER "front", }
Example (Case11) ¶
fmt.Println(exampleAST(1061, "set label back"))
Output: &plot.SetLabelSpecListItem{ · Case: 11, · Token: example1061.go:1:11: IDENTIFIER "back", }
Example (Case12) ¶
fmt.Println(exampleAST(1062, "set label textcolor ident_a"))
Output: &plot.SetLabelSpecListItem{ · Case: 12, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1062.go:1:21: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1062.go:1:11: IDENTIFIER "textcolor", }
Example (Case13) ¶
fmt.Println(exampleAST(1063, "set label point"))
Output: &plot.SetLabelSpecListItem{ · Case: 13, · Token: example1063.go:1:11: IDENTIFIER "point", }
Example (Case14) ¶
fmt.Println(exampleAST(1064, "set label nopoint"))
Output: &plot.SetLabelSpecListItem{ · Case: 14, · Token: example1064.go:1:11: IDENTIFIER "nopoint", }
Example (Case15) ¶
fmt.Println(exampleAST(1065, "set label offset ident_a"))
Output: &plot.SetLabelSpecListItem{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1065.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1065.go:1:11: IDENTIFIER "offset", }
Example (Case16) ¶
fmt.Println(exampleAST(1066, "set label offset ident_a , ident_b"))
Output: &plot.SetLabelSpecListItem{ · Case: 16, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1066.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1066.go:1:28: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example1066.go:1:11: IDENTIFIER "offset", · Token2: example1066.go:1:26: ',' ",", }
Example (Case17) ¶
fmt.Println(exampleAST(1067, "set label boxed"))
Output: &plot.SetLabelSpecListItem{ · Case: 17, · Token: example1067.go:1:11: IDENTIFIER "boxed", }
Example (Case18) ¶
fmt.Println(exampleAST(1068, "set label hypertext"))
Output: &plot.SetLabelSpecListItem{ · Case: 18, · Token: example1068.go:1:11: IDENTIFIER "hypertext", }
Example (Case19) ¶
fmt.Println(exampleAST(1069, "set label nocontours"))
Output: &plot.SetLabelSpecListItem{ · Case: 19, · LineStyleListItem: &plot.LineStyleListItem{ · · Case: 15, · · Token: example1069.go:1:11: IDENTIFIER "nocontours", · }, }
func (*SetLabelSpecListItem) Pos ¶
func (n *SetLabelSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetLabelSpecListItem) String ¶
func (n *SetLabelSpecListItem) String() string
String implements fmt.Stringer.
type SetLinkSpecList ¶
type SetLinkSpecList struct { Case int SetLinkSpecList *SetLinkSpecList SetLinkSpecListItem *SetLinkSpecListItem }
SetLinkSpecList represents data reduced by productions:
SetLinkSpecList: SetLinkSpecListItem | SetLinkSpecList SetLinkSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1070, "set link x"))
Output: &plot.SetLinkSpecList{ · SetLinkSpecListItem: &plot.SetLinkSpecListItem{ · · Token: example1070.go:1:10: IDENTIFIER "x", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1071, "set link x x"))
Output: &plot.SetLinkSpecList{ · SetLinkSpecList: &plot.SetLinkSpecList{ · · Case: 1, · · SetLinkSpecListItem: &plot.SetLinkSpecListItem{ · · · Token: example1071.go:1:12: IDENTIFIER "x", · · }, · }, · SetLinkSpecListItem: &plot.SetLinkSpecListItem{ · · Token: example1071.go:1:10: IDENTIFIER "x", · }, }
func (*SetLinkSpecList) Pos ¶
func (n *SetLinkSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetLinkSpecList) String ¶
func (n *SetLinkSpecList) String() string
String implements fmt.Stringer.
type SetLinkSpecListItem ¶
type SetLinkSpecListItem struct { Case int Expression *Expression Expression2 *Expression Token xc.Token Token2 xc.Token }
SetLinkSpecListItem represents data reduced by productions:
SetLinkSpecListItem: "x" | "y" // Case 1 | "x2" // Case 2 | "y2" // Case 3 | "via" Expression "inverse" Expression // Case 4
Example ¶
fmt.Println(exampleAST(1072, "set link x"))
Output: &plot.SetLinkSpecListItem{ · Token: example1072.go:1:10: IDENTIFIER "x", }
Example (Case1) ¶
fmt.Println(exampleAST(1073, "set link y"))
Output: &plot.SetLinkSpecListItem{ · Case: 1, · Token: example1073.go:1:10: IDENTIFIER "y", }
Example (Case2) ¶
fmt.Println(exampleAST(1074, "set link x2"))
Output: &plot.SetLinkSpecListItem{ · Case: 2, · Token: example1074.go:1:10: IDENTIFIER "x2", }
Example (Case3) ¶
fmt.Println(exampleAST(1075, "set link y2"))
Output: &plot.SetLinkSpecListItem{ · Case: 3, · Token: example1075.go:1:10: IDENTIFIER "y2", }
Example (Case4) ¶
fmt.Println(exampleAST(1076, "set link via ident_a inverse ident_b"))
Output: &plot.SetLinkSpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1076.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1076.go:1:30: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example1076.go:1:10: IDENTIFIER "via", · Token2: example1076.go:1:22: IDENTIFIER "inverse", }
func (*SetLinkSpecListItem) Pos ¶
func (n *SetLinkSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetLinkSpecListItem) String ¶
func (n *SetLinkSpecListItem) String() string
String implements fmt.Stringer.
type SetLinkSpecListOpt ¶
type SetLinkSpecListOpt struct {
SetLinkSpecList *SetLinkSpecList
}
SetLinkSpecListOpt represents data reduced by productions:
SetLinkSpecListOpt: /* empty */ | SetLinkSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1077, "set link") == (*SetLinkSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1078, "set link x"))
Output: &plot.SetLinkSpecListOpt{ · SetLinkSpecList: &plot.SetLinkSpecList{ · · SetLinkSpecListItem: &plot.SetLinkSpecListItem{ · · · Token: example1078.go:1:10: IDENTIFIER "x", · · }, · }, }
func (*SetLinkSpecListOpt) Pos ¶
func (n *SetLinkSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetLinkSpecListOpt) String ¶
func (n *SetLinkSpecListOpt) String() string
String implements fmt.Stringer.
type SetLogscaleAxesList ¶
type SetLogscaleAxesList struct { Case int SetLogscaleAxesList *SetLogscaleAxesList SetLogscaleAxesListItem *SetLogscaleAxesListItem }
SetLogscaleAxesList represents data reduced by productions:
SetLogscaleAxesList: SetLogscaleAxesListItem | SetLogscaleAxesList SetLogscaleAxesListItem // Case 1
Example ¶
fmt.Println(exampleAST(1080, "set logscale cb"))
Output: &plot.SetLogscaleAxesList{ · SetLogscaleAxesListItem: &plot.SetLogscaleAxesListItem{ · · Case: 5, · · Token: example1080.go:1:14: IDENTIFIER "cb", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1081, "set logscale cb cb"))
Output: &plot.SetLogscaleAxesList{ · SetLogscaleAxesList: &plot.SetLogscaleAxesList{ · · Case: 1, · · SetLogscaleAxesListItem: &plot.SetLogscaleAxesListItem{ · · · Case: 5, · · · Token: example1081.go:1:17: IDENTIFIER "cb", · · }, · }, · SetLogscaleAxesListItem: &plot.SetLogscaleAxesListItem{ · · Case: 5, · · Token: example1081.go:1:14: IDENTIFIER "cb", · }, }
func (*SetLogscaleAxesList) Pos ¶
func (n *SetLogscaleAxesList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetLogscaleAxesList) String ¶
func (n *SetLogscaleAxesList) String() string
String implements fmt.Stringer.
type SetLogscaleAxesListItem ¶
SetLogscaleAxesListItem represents data reduced by productions:
SetLogscaleAxesListItem: "x" | "x2" // Case 1 | "y" // Case 2 | "y2" // Case 3 | "z" // Case 4 | "cb" // Case 5 | "r" // Case 6
Example ¶
fmt.Println(exampleAST(1082, "unset logscale x"))
Output: &plot.SetLogscaleAxesListItem{ · Token: example1082.go:1:16: IDENTIFIER "x", }
Example (Case1) ¶
fmt.Println(exampleAST(1083, "unset logscale x2"))
Output: &plot.SetLogscaleAxesListItem{ · Case: 1, · Token: example1083.go:1:16: IDENTIFIER "x2", }
Example (Case2) ¶
fmt.Println(exampleAST(1084, "unset logscale y"))
Output: &plot.SetLogscaleAxesListItem{ · Case: 2, · Token: example1084.go:1:16: IDENTIFIER "y", }
Example (Case3) ¶
fmt.Println(exampleAST(1085, "unset logscale y2"))
Output: &plot.SetLogscaleAxesListItem{ · Case: 3, · Token: example1085.go:1:16: IDENTIFIER "y2", }
Example (Case4) ¶
fmt.Println(exampleAST(1086, "unset logscale z"))
Output: &plot.SetLogscaleAxesListItem{ · Case: 4, · Token: example1086.go:1:16: IDENTIFIER "z", }
Example (Case5) ¶
fmt.Println(exampleAST(1087, "unset logscale cb"))
Output: &plot.SetLogscaleAxesListItem{ · Case: 5, · Token: example1087.go:1:16: IDENTIFIER "cb", }
Example (Case6) ¶
fmt.Println(exampleAST(1088, "unset logscale r"))
Output: &plot.SetLogscaleAxesListItem{ · Case: 6, · Token: example1088.go:1:16: IDENTIFIER "r", }
func (*SetLogscaleAxesListItem) Pos ¶
func (n *SetLogscaleAxesListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetLogscaleAxesListItem) String ¶
func (n *SetLogscaleAxesListItem) String() string
String implements fmt.Stringer.
type SetLogscaleAxesListOpt ¶
type SetLogscaleAxesListOpt struct {
SetLogscaleAxesList *SetLogscaleAxesList
}
SetLogscaleAxesListOpt represents data reduced by productions:
SetLogscaleAxesListOpt: /* empty */ | SetLogscaleAxesList // Case 1
Example ¶
fmt.Println(exampleAST(1089, "set log") == (*SetLogscaleAxesListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1090, "set logscale cb"))
Output: &plot.SetLogscaleAxesListOpt{ · SetLogscaleAxesList: &plot.SetLogscaleAxesList{ · · SetLogscaleAxesListItem: &plot.SetLogscaleAxesListItem{ · · · Case: 5, · · · Token: example1090.go:1:14: IDENTIFIER "cb", · · }, · }, }
func (*SetLogscaleAxesListOpt) Pos ¶
func (n *SetLogscaleAxesListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetLogscaleAxesListOpt) String ¶
func (n *SetLogscaleAxesListOpt) String() string
String implements fmt.Stringer.
type SetLogscaleSpec ¶
type SetLogscaleSpec struct { ExpressionOpt *ExpressionOpt SetLogscaleAxesListOpt *SetLogscaleAxesListOpt }
SetLogscaleSpec represents data reduced by production:
SetLogscaleSpec: SetLogscaleAxesListOpt ExpressionOpt
Example ¶
fmt.Println(exampleAST(1079, "set logscale x 10"))
Output: &plot.SetLogscaleSpec{ · ExpressionOpt: &plot.ExpressionOpt{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 2, · · · · · · Token: example1079.go:1:16: NUM_LIT "10", · · · · · }, · · · · }, · · · }, · · }, · }, · SetLogscaleAxesListOpt: &plot.SetLogscaleAxesListOpt{ · · SetLogscaleAxesList: &plot.SetLogscaleAxesList{ · · · SetLogscaleAxesListItem: &plot.SetLogscaleAxesListItem{ · · · · Token: example1079.go:1:14: IDENTIFIER "x", · · · }, · · }, · }, }
func (*SetLogscaleSpec) Pos ¶
func (n *SetLogscaleSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetLogscaleSpec) String ¶
func (n *SetLogscaleSpec) String() string
String implements fmt.Stringer.
type SetMappingSpec ¶
SetMappingSpec represents data reduced by productions:
SetMappingSpec: "cartesian" | "spherical" // Case 1 | "cylindrical" // Case 2
Example ¶
fmt.Println(exampleAST(1091, "set mapping cartesian"))
Output: &plot.SetMappingSpec{ · Token: example1091.go:1:13: IDENTIFIER "cartesian", }
Example (Case1) ¶
fmt.Println(exampleAST(1092, "set mapping spherical"))
Output: &plot.SetMappingSpec{ · Case: 1, · Token: example1092.go:1:13: IDENTIFIER "spherical", }
Example (Case2) ¶
fmt.Println(exampleAST(1093, "set mapping cylindrical"))
Output: &plot.SetMappingSpec{ · Case: 2, · Token: example1093.go:1:13: IDENTIFIER "cylindrical", }
func (*SetMappingSpec) Pos ¶
func (n *SetMappingSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetMappingSpec) String ¶
func (n *SetMappingSpec) String() string
String implements fmt.Stringer.
type SetMonochromeSpecOpt ¶
type SetMonochromeSpecOpt struct { Expression *Expression LineStyleList *LineStyleList Token xc.Token }
SetMonochromeSpecOpt represents data reduced by productions:
SetMonochromeSpecOpt: /* empty */ | "linetype" Expression LineStyleList // Case 1
Example ¶
fmt.Println(exampleAST(1094, "set mono") == (*SetMonochromeSpecOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1095, "set mono linetype ident_a nocontours"))
Output: &plot.SetMonochromeSpecOpt{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1095.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · LineStyleList: &plot.LineStyleList{ · · LineStyleListItem: &plot.LineStyleListItem{ · · · Case: 15, · · · Token: example1095.go:1:27: IDENTIFIER "nocontours", · · }, · }, · Token: example1095.go:1:10: IDENTIFIER "linetype", }
func (*SetMonochromeSpecOpt) Pos ¶
func (n *SetMonochromeSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetMonochromeSpecOpt) String ¶
func (n *SetMonochromeSpecOpt) String() string
String implements fmt.Stringer.
type SetMouseSpecList ¶
type SetMouseSpecList struct { Case int SetMouseSpecList *SetMouseSpecList SetMouseSpecListItem *SetMouseSpecListItem }
SetMouseSpecList represents data reduced by productions:
SetMouseSpecList: SetMouseSpecListItem | SetMouseSpecList SetMouseSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1096, "set mouse labels"))
Output: &plot.SetMouseSpecList{ · SetMouseSpecListItem: &plot.SetMouseSpecListItem{ · · Case: 12, · · Token: example1096.go:1:11: IDENTIFIER "labels", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1097, "set mouse labels labels"))
Output: &plot.SetMouseSpecList{ · SetMouseSpecList: &plot.SetMouseSpecList{ · · Case: 1, · · SetMouseSpecListItem: &plot.SetMouseSpecListItem{ · · · Case: 12, · · · Token: example1097.go:1:18: IDENTIFIER "labels", · · }, · }, · SetMouseSpecListItem: &plot.SetMouseSpecListItem{ · · Case: 12, · · Token: example1097.go:1:11: IDENTIFIER "labels", · }, }
func (*SetMouseSpecList) Pos ¶
func (n *SetMouseSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetMouseSpecList) String ¶
func (n *SetMouseSpecList) String() string
String implements fmt.Stringer.
type SetMouseSpecListItem ¶
type SetMouseSpecListItem struct { Case int Expression *Expression Expression2 *Expression Token xc.Token Token2 xc.Token Token3 xc.Token }
SetMouseSpecListItem represents data reduced by productions:
SetMouseSpecListItem: "doubleclick" Expression | "nodoubleclick" // Case 1 | "zoomcoordinates" // Case 2 | "nozoomcoordinates" // Case 3 | "zoomfactors" Expression ',' Expression // Case 4 | "noruler" // Case 5 | "ruler" "at" Expression ',' Expression // Case 6 | "polardistancedeg" // Case 7 | "polardistancetan" // Case 8 | "nopolardistance" // Case 9 | "format" Expression // Case 10 | "mouseformat" Expression // Case 11 | "labels" // Case 12 | "labels" Expression // Case 13 | "nolabels" // Case 14 | "nolabels" Expression // Case 15 | "zoomjump" // Case 16 | "nozoomjump" // Case 17 | "verbose" // Case 18 | "noverbose" // Case 19
Example ¶
fmt.Println(exampleAST(1098, "set mouse doubleclick ident_a"))
Output: &plot.SetMouseSpecListItem{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1098.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1098.go:1:11: IDENTIFIER "doubleclick", }
Example (Case01) ¶
fmt.Println(exampleAST(1099, "set mouse nodoubleclick"))
Output: &plot.SetMouseSpecListItem{ · Case: 1, · Token: example1099.go:1:11: IDENTIFIER "nodoubleclick", }
Example (Case02) ¶
fmt.Println(exampleAST(1100, "set mouse zoomcoordinates"))
Output: &plot.SetMouseSpecListItem{ · Case: 2, · Token: example1100.go:1:11: IDENTIFIER "zoomcoordinates", }
Example (Case03) ¶
fmt.Println(exampleAST(1101, "set mouse nozoomcoordinates"))
Output: &plot.SetMouseSpecListItem{ · Case: 3, · Token: example1101.go:1:11: IDENTIFIER "nozoomcoordinates", }
Example (Case04) ¶
fmt.Println(exampleAST(1102, "set mouse zoomfactors ident_a , ident_b"))
Output: &plot.SetMouseSpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1102.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1102.go:1:33: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example1102.go:1:11: IDENTIFIER "zoomfactors", · Token2: example1102.go:1:31: ',' ",", }
Example (Case05) ¶
fmt.Println(exampleAST(1103, "set mouse noruler"))
Output: &plot.SetMouseSpecListItem{ · Case: 5, · Token: example1103.go:1:11: IDENTIFIER "noruler", }
Example (Case06) ¶
fmt.Println(exampleAST(1104, "set mouse ruler at ident_a , ident_b"))
Output: &plot.SetMouseSpecListItem{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1104.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1104.go:1:30: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example1104.go:1:11: IDENTIFIER "ruler", · Token2: example1104.go:1:17: IDENTIFIER "at", · Token3: example1104.go:1:28: ',' ",", }
Example (Case07) ¶
fmt.Println(exampleAST(1105, "set mouse polardistancedeg"))
Output: &plot.SetMouseSpecListItem{ · Case: 7, · Token: example1105.go:1:11: IDENTIFIER "polardistancedeg", }
Example (Case08) ¶
fmt.Println(exampleAST(1106, "set mouse polardistancetan"))
Output: &plot.SetMouseSpecListItem{ · Case: 8, · Token: example1106.go:1:11: IDENTIFIER "polardistancetan", }
Example (Case09) ¶
fmt.Println(exampleAST(1107, "set mouse nopolardistance"))
Output: &plot.SetMouseSpecListItem{ · Case: 9, · Token: example1107.go:1:11: IDENTIFIER "nopolardistance", }
Example (Case10) ¶
fmt.Println(exampleAST(1108, "set mouse format ident_a"))
Output: &plot.SetMouseSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1108.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1108.go:1:11: IDENTIFIER "format", }
Example (Case11) ¶
fmt.Println(exampleAST(1109, "set mouse mouseformat ident_a"))
Output: &plot.SetMouseSpecListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1109.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1109.go:1:11: IDENTIFIER "mouseformat", }
Example (Case12) ¶
fmt.Println(exampleAST(1110, "set mouse labels"))
Output: &plot.SetMouseSpecListItem{ · Case: 12, · Token: example1110.go:1:11: IDENTIFIER "labels", }
Example (Case13) ¶
fmt.Println(exampleAST(1111, "set mouse labels ident_a"))
Output: &plot.SetMouseSpecListItem{ · Case: 13, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1111.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1111.go:1:11: IDENTIFIER "labels", }
Example (Case14) ¶
fmt.Println(exampleAST(1112, "set mouse nolabels"))
Output: &plot.SetMouseSpecListItem{ · Case: 14, · Token: example1112.go:1:11: IDENTIFIER "nolabels", }
Example (Case15) ¶
fmt.Println(exampleAST(1113, "set mouse nolabels ident_a"))
Output: &plot.SetMouseSpecListItem{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1113.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1113.go:1:11: IDENTIFIER "nolabels", }
Example (Case16) ¶
fmt.Println(exampleAST(1114, "set mouse zoomjump"))
Output: &plot.SetMouseSpecListItem{ · Case: 16, · Token: example1114.go:1:11: IDENTIFIER "zoomjump", }
Example (Case17) ¶
fmt.Println(exampleAST(1115, "set mouse nozoomjump"))
Output: &plot.SetMouseSpecListItem{ · Case: 17, · Token: example1115.go:1:11: IDENTIFIER "nozoomjump", }
Example (Case18) ¶
fmt.Println(exampleAST(1116, "set mouse verbose"))
Output: &plot.SetMouseSpecListItem{ · Case: 18, · Token: example1116.go:1:11: IDENTIFIER "verbose", }
Example (Case19) ¶
fmt.Println(exampleAST(1117, "set mouse noverbose"))
Output: &plot.SetMouseSpecListItem{ · Case: 19, · Token: example1117.go:1:11: IDENTIFIER "noverbose", }
func (*SetMouseSpecListItem) Pos ¶
func (n *SetMouseSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetMouseSpecListItem) String ¶
func (n *SetMouseSpecListItem) String() string
String implements fmt.Stringer.
type SetMouseSpecListOpt ¶
type SetMouseSpecListOpt struct {
SetMouseSpecList *SetMouseSpecList
}
SetMouseSpecListOpt represents data reduced by productions:
SetMouseSpecListOpt: /* empty */ | SetMouseSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1118, "set mouse") == (*SetMouseSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1119, "set mouse labels"))
Output: &plot.SetMouseSpecListOpt{ · SetMouseSpecList: &plot.SetMouseSpecList{ · · SetMouseSpecListItem: &plot.SetMouseSpecListItem{ · · · Case: 12, · · · Token: example1119.go:1:11: IDENTIFIER "labels", · · }, · }, }
func (*SetMouseSpecListOpt) Pos ¶
func (n *SetMouseSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetMouseSpecListOpt) String ¶
func (n *SetMouseSpecListOpt) String() string
String implements fmt.Stringer.
type SetMultiplotSpecList ¶
type SetMultiplotSpecList struct { Case int SetMultiplotSpecList *SetMultiplotSpecList SetMultiplotSpecListItem *SetMultiplotSpecListItem }
SetMultiplotSpecList represents data reduced by productions:
SetMultiplotSpecList: SetMultiplotSpecListItem | SetMultiplotSpecList SetMultiplotSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1120, "set multiplot columnsfirst"))
Output: &plot.SetMultiplotSpecList{ · SetMultiplotSpecListItem: &plot.SetMultiplotSpecListItem{ · · Case: 6, · · Token: example1120.go:1:15: IDENTIFIER "columnsfirst", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1121, "set multiplot columnsfirst columnsfirst"))
Output: &plot.SetMultiplotSpecList{ · SetMultiplotSpecList: &plot.SetMultiplotSpecList{ · · Case: 1, · · SetMultiplotSpecListItem: &plot.SetMultiplotSpecListItem{ · · · Case: 6, · · · Token: example1121.go:1:28: IDENTIFIER "columnsfirst", · · }, · }, · SetMultiplotSpecListItem: &plot.SetMultiplotSpecListItem{ · · Case: 6, · · Token: example1121.go:1:15: IDENTIFIER "columnsfirst", · }, }
func (*SetMultiplotSpecList) Pos ¶
func (n *SetMultiplotSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetMultiplotSpecList) String ¶
func (n *SetMultiplotSpecList) String() string
String implements fmt.Stringer.
type SetMultiplotSpecListItem ¶
type SetMultiplotSpecListItem struct { Case int Expression *Expression Expression2 *Expression Position *Position Token xc.Token Token2 xc.Token }
SetMultiplotSpecListItem represents data reduced by productions:
SetMultiplotSpecListItem: "title" Expression | "font" Expression // Case 1 | "enhanced" // Case 2 | "noenhanced" // Case 3 | "layout" Expression ',' Expression // Case 4 | "rowsfirst" // Case 5 | "columnsfirst" // Case 6 | "downwards" // Case 7 | "upwards" // Case 8 | "scale" Position // Case 9 | "offset" Position // Case 10 | "margins" Position // Case 11 | "spacing" Position // Case 12 | "next" // Case 13 | "previous" // Case 14
Example ¶
fmt.Println(exampleAST(1122, "set multiplot title ident_a"))
Output: &plot.SetMultiplotSpecListItem{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1122.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1122.go:1:15: IDENTIFIER "title", }
Example (Case01) ¶
fmt.Println(exampleAST(1123, "set multiplot font ident_a"))
Output: &plot.SetMultiplotSpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1123.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1123.go:1:15: IDENTIFIER "font", }
Example (Case02) ¶
fmt.Println(exampleAST(1124, "set multiplot enhanced"))
Output: &plot.SetMultiplotSpecListItem{ · Case: 2, · Token: example1124.go:1:15: IDENTIFIER "enhanced", }
Example (Case03) ¶
fmt.Println(exampleAST(1125, "set multiplot noenhanced"))
Output: &plot.SetMultiplotSpecListItem{ · Case: 3, · Token: example1125.go:1:15: IDENTIFIER "noenhanced", }
Example (Case04) ¶
fmt.Println(exampleAST(1126, "set multiplot layout ident_a , ident_b"))
Output: &plot.SetMultiplotSpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1126.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1126.go:1:32: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example1126.go:1:15: IDENTIFIER "layout", · Token2: example1126.go:1:30: ',' ",", }
Example (Case05) ¶
fmt.Println(exampleAST(1127, "set multiplot rowsfirst"))
Output: &plot.SetMultiplotSpecListItem{ · Case: 5, · Token: example1127.go:1:15: IDENTIFIER "rowsfirst", }
Example (Case06) ¶
fmt.Println(exampleAST(1128, "set multiplot columnsfirst"))
Output: &plot.SetMultiplotSpecListItem{ · Case: 6, · Token: example1128.go:1:15: IDENTIFIER "columnsfirst", }
Example (Case07) ¶
fmt.Println(exampleAST(1129, "set multiplot downwards"))
Output: &plot.SetMultiplotSpecListItem{ · Case: 7, · Token: example1129.go:1:15: IDENTIFIER "downwards", }
Example (Case08) ¶
fmt.Println(exampleAST(1130, "set multiplot upwards"))
Output: &plot.SetMultiplotSpecListItem{ · Case: 8, · Token: example1130.go:1:15: IDENTIFIER "upwards", }
Example (Case09) ¶
fmt.Println(exampleAST(1131, "set multiplot scale ident_a"))
Output: &plot.SetMultiplotSpecListItem{ · Case: 9, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1131.go:1:21: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1131.go:1:15: IDENTIFIER "scale", }
Example (Case10) ¶
fmt.Println(exampleAST(1132, "set multiplot offset ident_a"))
Output: &plot.SetMultiplotSpecListItem{ · Case: 10, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1132.go:1:22: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1132.go:1:15: IDENTIFIER "offset", }
Example (Case11) ¶
fmt.Println(exampleAST(1133, "set multiplot margins ident_a"))
Output: &plot.SetMultiplotSpecListItem{ · Case: 11, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1133.go:1:23: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1133.go:1:15: IDENTIFIER "margins", }
Example (Case12) ¶
fmt.Println(exampleAST(1134, "set multiplot spacing ident_a"))
Output: &plot.SetMultiplotSpecListItem{ · Case: 12, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1134.go:1:23: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1134.go:1:15: IDENTIFIER "spacing", }
Example (Case13) ¶
fmt.Println(exampleAST(1135, "set multiplot next"))
Output: &plot.SetMultiplotSpecListItem{ · Case: 13, · Token: example1135.go:1:15: IDENTIFIER "next", }
Example (Case14) ¶
fmt.Println(exampleAST(1136, "set multiplot previous"))
Output: &plot.SetMultiplotSpecListItem{ · Case: 14, · Token: example1136.go:1:15: IDENTIFIER "previous", }
func (*SetMultiplotSpecListItem) Pos ¶
func (n *SetMultiplotSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetMultiplotSpecListItem) String ¶
func (n *SetMultiplotSpecListItem) String() string
String implements fmt.Stringer.
type SetMultiplotSpecListOpt ¶
type SetMultiplotSpecListOpt struct {
SetMultiplotSpecList *SetMultiplotSpecList
}
SetMultiplotSpecListOpt represents data reduced by productions:
SetMultiplotSpecListOpt: /* empty */ | SetMultiplotSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1137, "set multiplot") == (*SetMultiplotSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1138, "set multiplot columnsfirst"))
Output: &plot.SetMultiplotSpecListOpt{ · SetMultiplotSpecList: &plot.SetMultiplotSpecList{ · · SetMultiplotSpecListItem: &plot.SetMultiplotSpecListItem{ · · · Case: 6, · · · Token: example1138.go:1:15: IDENTIFIER "columnsfirst", · · }, · }, }
func (*SetMultiplotSpecListOpt) Pos ¶
func (n *SetMultiplotSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetMultiplotSpecListOpt) String ¶
func (n *SetMultiplotSpecListOpt) String() string
String implements fmt.Stringer.
type SetMxticsSpecOpt ¶
type SetMxticsSpecOpt struct { Case int Expression *Expression Token xc.Token }
SetMxticsSpecOpt represents data reduced by productions:
SetMxticsSpecOpt: /* empty */ | "default" // Case 1 | Expression // Case 2
Example ¶
fmt.Println(exampleAST(1256, "set mcbtics") == (*SetMxticsSpecOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1257, "set mcbtics default"))
Output: &plot.SetMxticsSpecOpt{ · Case: 1, · Token: example1257.go:1:13: IDENTIFIER "default", }
Example (Case2) ¶
fmt.Println(exampleAST(1258, "set mcbtics ident_a"))
Output: &plot.SetMxticsSpecOpt{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1258.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*SetMxticsSpecOpt) Pos ¶
func (n *SetMxticsSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetMxticsSpecOpt) String ¶
func (n *SetMxticsSpecOpt) String() string
String implements fmt.Stringer.
type SetObjectSpecList ¶
type SetObjectSpecList struct { Case int SetObjectSpecList *SetObjectSpecList SetObjectSpecListItem *SetObjectSpecListItem }
SetObjectSpecList represents data reduced by productions:
SetObjectSpecList: SetObjectSpecListItem | SetObjectSpecList SetObjectSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1139, "set object ident_a back"))
Output: &plot.SetObjectSpecList{ · SetObjectSpecListItem: &plot.SetObjectSpecListItem{ · · Case: 1, · · Token: example1139.go:1:20: IDENTIFIER "back", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1140, "set object ident_a back back"))
Output: &plot.SetObjectSpecList{ · SetObjectSpecList: &plot.SetObjectSpecList{ · · Case: 1, · · SetObjectSpecListItem: &plot.SetObjectSpecListItem{ · · · Case: 1, · · · Token: example1140.go:1:25: IDENTIFIER "back", · · }, · }, · SetObjectSpecListItem: &plot.SetObjectSpecListItem{ · · Case: 1, · · Token: example1140.go:1:20: IDENTIFIER "back", · }, }
func (*SetObjectSpecList) Pos ¶
func (n *SetObjectSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetObjectSpecList) String ¶
func (n *SetObjectSpecList) String() string
String implements fmt.Stringer.
type SetObjectSpecListItem ¶
type SetObjectSpecListItem struct { Case int ColorSpec *ColorSpec DashTypeSpec *DashTypeSpec Expression *Expression Expression2 *Expression Position *Position Position2 *Position SetStyleFillSpecList *SetStyleFillSpecList Token xc.Token Token2 xc.Token Token3 xc.Token Token4 xc.Token }
SetObjectSpecListItem represents data reduced by productions:
SetObjectSpecListItem: "front" | "back" // Case 1 | "behind" // Case 2 | "clip" // Case 3 | "noclip" // Case 4 | "fc" ColorSpec // Case 5 | "fc" "lt" ColorSpec // Case 6 | "fillcolor" ColorSpec // Case 7 | "fillcolor" "lt" ColorSpec // Case 8 | "fs" SetStyleFillSpecList // Case 9 | "fillstyle" SetStyleFillSpecList // Case 10 | "default" // Case 11 | "lw" Expression // Case 12 | "linewidth" Expression // Case 13 | "dt" DashTypeSpec // Case 14 | "dashtype" DashTypeSpec // Case 15 | "rectangle" // Case 16 | "from" Position "to" Position // Case 17 | "from" Position "rto" Position // Case 18 | "center" Position "size" Position // Case 19 | "at" Position "size" Position // Case 20 | "at" Position "radius" Position // Case 21 | "ellipse" // Case 22 | "angle" Expression // Case 23 | "units" "xy" // Case 24 | "units" "xx" // Case 25 | "units" "yy" // Case 26 | "circle" // Case 27 | "arc" '[' Expression ':' Expression ']' // Case 28 | "polygon" // Case 29 | "to" Position // Case 30 | "rto" Position // Case 31
Example ¶
fmt.Println(exampleAST(1141, "set object ident_a front"))
Output: &plot.SetObjectSpecListItem{ · Token: example1141.go:1:20: IDENTIFIER "front", }
Example (Case01) ¶
fmt.Println(exampleAST(1142, "set object ident_a back"))
Output: &plot.SetObjectSpecListItem{ · Case: 1, · Token: example1142.go:1:20: IDENTIFIER "back", }
Example (Case02) ¶
fmt.Println(exampleAST(1143, "set object ident_a behind"))
Output: &plot.SetObjectSpecListItem{ · Case: 2, · Token: example1143.go:1:20: IDENTIFIER "behind", }
Example (Case03) ¶
fmt.Println(exampleAST(1144, "set object ident_a clip"))
Output: &plot.SetObjectSpecListItem{ · Case: 3, · Token: example1144.go:1:20: IDENTIFIER "clip", }
Example (Case04) ¶
fmt.Println(exampleAST(1145, "set object ident_a noclip"))
Output: &plot.SetObjectSpecListItem{ · Case: 4, · Token: example1145.go:1:20: IDENTIFIER "noclip", }
Example (Case05) ¶
fmt.Println(exampleAST(1146, "set object ident_a fc ident_b"))
Output: &plot.SetObjectSpecListItem{ · Case: 5, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1146.go:1:23: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1146.go:1:20: IDENTIFIER "fc", }
Example (Case06) ¶
fmt.Println(exampleAST(1147, "set object ident_a fc lt ident_b"))
Output: &plot.SetObjectSpecListItem{ · Case: 6, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1147.go:1:26: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1147.go:1:20: IDENTIFIER "fc", · Token2: example1147.go:1:23: IDENTIFIER "lt", }
Example (Case07) ¶
fmt.Println(exampleAST(1148, "set object ident_a fillcolor ident_b"))
Output: &plot.SetObjectSpecListItem{ · Case: 7, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1148.go:1:30: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1148.go:1:20: IDENTIFIER "fillcolor", }
Example (Case08) ¶
fmt.Println(exampleAST(1149, "set object ident_a fillcolor lt ident_b"))
Output: &plot.SetObjectSpecListItem{ · Case: 8, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1149.go:1:33: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1149.go:1:20: IDENTIFIER "fillcolor", · Token2: example1149.go:1:30: IDENTIFIER "lt", }
Example (Case09) ¶
fmt.Println(exampleAST(1150, "set object ident_a fs bo"))
Output: &plot.SetObjectSpecListItem{ · Case: 9, · SetStyleFillSpecList: &plot.SetStyleFillSpecList{ · · SetStyleFillSpecListItem: &plot.SetStyleFillSpecListItem{ · · · Case: 5, · · · Token: example1150.go:1:23: IDENTIFIER "bo", · · }, · }, · Token: example1150.go:1:20: IDENTIFIER "fs", }
Example (Case10) ¶
fmt.Println(exampleAST(1151, "set object ident_a fillstyle bo"))
Output: &plot.SetObjectSpecListItem{ · Case: 10, · SetStyleFillSpecList: &plot.SetStyleFillSpecList{ · · SetStyleFillSpecListItem: &plot.SetStyleFillSpecListItem{ · · · Case: 5, · · · Token: example1151.go:1:30: IDENTIFIER "bo", · · }, · }, · Token: example1151.go:1:20: IDENTIFIER "fillstyle", }
Example (Case11) ¶
fmt.Println(exampleAST(1152, "set object ident_a default"))
Output: &plot.SetObjectSpecListItem{ · Case: 11, · Token: example1152.go:1:20: IDENTIFIER "default", }
Example (Case12) ¶
fmt.Println(exampleAST(1153, "set object ident_a lw ident_b"))
Output: &plot.SetObjectSpecListItem{ · Case: 12, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1153.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example1153.go:1:20: IDENTIFIER "lw", }
Example (Case13) ¶
fmt.Println(exampleAST(1154, "set object ident_a linewidth ident_b"))
Output: &plot.SetObjectSpecListItem{ · Case: 13, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1154.go:1:30: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example1154.go:1:20: IDENTIFIER "linewidth", }
Example (Case14) ¶
fmt.Println(exampleAST(1155, "set object ident_a dt ident_b"))
Output: &plot.SetObjectSpecListItem{ · Case: 14, · DashTypeSpec: &plot.DashTypeSpec{ · · Case: 1, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1155.go:1:23: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1155.go:1:20: IDENTIFIER "dt", }
Example (Case15) ¶
fmt.Println(exampleAST(1156, "set object ident_a dashtype ident_b"))
Output: &plot.SetObjectSpecListItem{ · Case: 15, · DashTypeSpec: &plot.DashTypeSpec{ · · Case: 1, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1156.go:1:29: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1156.go:1:20: IDENTIFIER "dashtype", }
Example (Case16) ¶
fmt.Println(exampleAST(1157, "set object ident_a rectangle"))
Output: &plot.SetObjectSpecListItem{ · Case: 16, · Token: example1157.go:1:20: IDENTIFIER "rectangle", }
Example (Case17) ¶
fmt.Println(exampleAST(1158, "set object ident_a from ident_b to ident_c"))
Output: &plot.SetObjectSpecListItem{ · Case: 17, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1158.go:1:25: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Position2: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1158.go:1:36: IDENTIFIER "ident_c", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1158.go:1:20: IDENTIFIER "from", · Token2: example1158.go:1:33: IDENTIFIER "to", }
Example (Case18) ¶
fmt.Println(exampleAST(1159, "set object ident_a from ident_b rto ident_c"))
Output: &plot.SetObjectSpecListItem{ · Case: 18, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1159.go:1:25: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Position2: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1159.go:1:37: IDENTIFIER "ident_c", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1159.go:1:20: IDENTIFIER "from", · Token2: example1159.go:1:33: IDENTIFIER "rto", }
Example (Case19) ¶
fmt.Println(exampleAST(1160, "set object ident_a center ident_b size ident_c"))
Output: &plot.SetObjectSpecListItem{ · Case: 19, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1160.go:1:27: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Position2: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1160.go:1:40: IDENTIFIER "ident_c", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1160.go:1:20: IDENTIFIER "center", · Token2: example1160.go:1:35: IDENTIFIER "size", }
Example (Case20) ¶
fmt.Println(exampleAST(1161, "set object ident_a at ident_b size ident_c"))
Output: &plot.SetObjectSpecListItem{ · Case: 20, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1161.go:1:23: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Position2: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1161.go:1:36: IDENTIFIER "ident_c", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1161.go:1:20: IDENTIFIER "at", · Token2: example1161.go:1:31: IDENTIFIER "size", }
Example (Case21) ¶
fmt.Println(exampleAST(1162, "set object ident_a at ident_b radius ident_c"))
Output: &plot.SetObjectSpecListItem{ · Case: 21, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1162.go:1:23: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Position2: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1162.go:1:38: IDENTIFIER "ident_c", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1162.go:1:20: IDENTIFIER "at", · Token2: example1162.go:1:31: IDENTIFIER "radius", }
Example (Case22) ¶
fmt.Println(exampleAST(1163, "set object ident_a ellipse"))
Output: &plot.SetObjectSpecListItem{ · Case: 22, · Token: example1163.go:1:20: IDENTIFIER "ellipse", }
Example (Case23) ¶
fmt.Println(exampleAST(1164, "set object ident_a angle ident_b"))
Output: &plot.SetObjectSpecListItem{ · Case: 23, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1164.go:1:26: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example1164.go:1:20: IDENTIFIER "angle", }
Example (Case24) ¶
fmt.Println(exampleAST(1165, "set object ident_a units xy"))
Output: &plot.SetObjectSpecListItem{ · Case: 24, · Token: example1165.go:1:20: IDENTIFIER "units", · Token2: example1165.go:1:26: IDENTIFIER "xy", }
Example (Case25) ¶
fmt.Println(exampleAST(1166, "set object ident_a units xx"))
Output: &plot.SetObjectSpecListItem{ · Case: 25, · Token: example1166.go:1:20: IDENTIFIER "units", · Token2: example1166.go:1:26: IDENTIFIER "xx", }
Example (Case26) ¶
fmt.Println(exampleAST(1167, "set object ident_a units yy"))
Output: &plot.SetObjectSpecListItem{ · Case: 26, · Token: example1167.go:1:20: IDENTIFIER "units", · Token2: example1167.go:1:26: IDENTIFIER "yy", }
Example (Case27) ¶
fmt.Println(exampleAST(1168, "set object ident_a circle"))
Output: &plot.SetObjectSpecListItem{ · Case: 27, · Token: example1168.go:1:20: IDENTIFIER "circle", }
Example (Case28) ¶
fmt.Println(exampleAST(1169, "set object ident_a arc [ ident_b : ident_c ]"))
Output: &plot.SetObjectSpecListItem{ · Case: 28, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1169.go:1:26: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1169.go:1:36: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example1169.go:1:20: IDENTIFIER "arc", · Token2: example1169.go:1:24: '[' "[", · Token3: example1169.go:1:34: ':' ":", · Token4: example1169.go:1:44: ']' "]", }
Example (Case29) ¶
fmt.Println(exampleAST(1170, "set object ident_a polygon"))
Output: &plot.SetObjectSpecListItem{ · Case: 29, · Token: example1170.go:1:20: IDENTIFIER "polygon", }
Example (Case30) ¶
fmt.Println(exampleAST(1171, "set object ident_a to ident_b"))
Output: &plot.SetObjectSpecListItem{ · Case: 30, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1171.go:1:23: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1171.go:1:20: IDENTIFIER "to", }
Example (Case31) ¶
fmt.Println(exampleAST(1172, "set object ident_a rto ident_b"))
Output: &plot.SetObjectSpecListItem{ · Case: 31, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1172.go:1:24: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1172.go:1:20: IDENTIFIER "rto", }
func (*SetObjectSpecListItem) Pos ¶
func (n *SetObjectSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetObjectSpecListItem) String ¶
func (n *SetObjectSpecListItem) String() string
String implements fmt.Stringer.
type SetOffsetsSpecOpt ¶
type SetOffsetsSpecOpt struct { Case int Expression *Expression Expression2 *Expression Expression3 *Expression Expression4 *Expression Token xc.Token Token2 xc.Token Token3 xc.Token }
SetOffsetsSpecOpt represents data reduced by productions:
SetOffsetsSpecOpt: /* empty */ | Expression ',' Expression // Case 1 | Expression ',' Expression ',' Expression ',' Expression // Case 2
Example ¶
fmt.Println(exampleAST(1173, "set offset") == (*SetOffsetsSpecOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1174, "set offset ident_a , ident_b"))
Output: &plot.SetOffsetsSpecOpt{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1174.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1174.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example1174.go:1:20: ',' ",", }
Example (Case2) ¶
fmt.Println(exampleAST(1175, "set offset ident_a , ident_b , ident_c , ident_d"))
Output: &plot.SetOffsetsSpecOpt{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1175.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1175.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression3: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1175.go:1:32: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Expression4: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1175.go:1:42: IDENTIFIER "ident_d", · · · · }, · · · }, · · }, · }, · Token: example1175.go:1:20: ',' ",", · Token2: example1175.go:1:30: ',' ",", · Token3: example1175.go:1:40: ',' ",", }
func (*SetOffsetsSpecOpt) Pos ¶
func (n *SetOffsetsSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetOffsetsSpecOpt) String ¶
func (n *SetOffsetsSpecOpt) String() string
String implements fmt.Stringer.
type SetPaletteSpecList ¶
type SetPaletteSpecList struct { Case int SetPaletteSpecList *SetPaletteSpecList SetPaletteSpecListItem *SetPaletteSpecListItem }
SetPaletteSpecList represents data reduced by productions:
SetPaletteSpecList: SetPaletteSpecListItem | SetPaletteSpecList SetPaletteSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1176, "set pal color"))
Output: &plot.SetPaletteSpecList{ · SetPaletteSpecListItem: &plot.SetPaletteSpecListItem{ · · Case: 1, · · Token: example1176.go:1:9: IDENTIFIER "color", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1177, "set pal color color"))
Output: &plot.SetPaletteSpecList{ · SetPaletteSpecList: &plot.SetPaletteSpecList{ · · Case: 1, · · SetPaletteSpecListItem: &plot.SetPaletteSpecListItem{ · · · Case: 1, · · · Token: example1177.go:1:15: IDENTIFIER "color", · · }, · }, · SetPaletteSpecListItem: &plot.SetPaletteSpecListItem{ · · Case: 1, · · Token: example1177.go:1:9: IDENTIFIER "color", · }, }
func (*SetPaletteSpecList) Pos ¶
func (n *SetPaletteSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetPaletteSpecList) String ¶
func (n *SetPaletteSpecList) String() string
String implements fmt.Stringer.
type SetPaletteSpecListItem ¶
type SetPaletteSpecListItem struct { Data []byte // Content of the inline data block. Case int DatafileModifiersListOpt *DatafileModifiersListOpt Expression *Expression Expression2 *Expression Expression3 *Expression SetPalleteDefinedColorList *SetPalleteDefinedColorList Token xc.Token Token2 xc.Token Token3 xc.Token }
SetPaletteSpecListItem represents data reduced by productions:
SetPaletteSpecListItem: "gray" | "color" // Case 1 | "gamma" Expression // Case 2 | "rgb" Expression ',' Expression ',' Expression // Case 3 | "rgbformulae" Expression ',' Expression ',' Expression // Case 4 | "defined" // Case 5 | "defined" '(' SetPalleteDefinedColorList ')' // Case 6 | "file" Expression DatafileModifiersListOpt // Case 7 | "func" Expression ',' Expression ',' Expression // Case 8 | "functions" Expression ',' Expression ',' Expression // Case 9 | "cubehelix" // Case 10 | "start" Expression // Case 11 | "cycles" Expression // Case 12 | "saturation" Expression // Case 13 | "mode" "RGB" // Case 14 | "mode" "HSV" // Case 15 | "mode" "CMY" // Case 16 | "mode" "YIQ" // Case 17 | "mode" "XYZ" // Case 18 | "model" "RGB" // Case 19 | "model" "HSV" // Case 20 | "model" "CMY" // Case 21 | "model" "YIQ" // Case 22 | "model" "XYZ" // Case 23 | "positive" // Case 24 | "negative" // Case 25 | "nops_allcF" // Case 26 | "ps_allcF" // Case 27 | "maxcolors" Expression // Case 28
Example ¶
fmt.Println(exampleAST(1178, "set pal gray"))
Output: &plot.SetPaletteSpecListItem{ · Token: example1178.go:1:9: IDENTIFIER "gray", }
Example (Case01) ¶
fmt.Println(exampleAST(1179, "set pal color"))
Output: &plot.SetPaletteSpecListItem{ · Case: 1, · Token: example1179.go:1:9: IDENTIFIER "color", }
Example (Case02) ¶
fmt.Println(exampleAST(1180, "set pal gamma ident_a"))
Output: &plot.SetPaletteSpecListItem{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1180.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1180.go:1:9: IDENTIFIER "gamma", }
Example (Case03) ¶
fmt.Println(exampleAST(1181, "set pal rgb ident_a , ident_b , ident_c"))
Output: &plot.SetPaletteSpecListItem{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1181.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1181.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression3: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1181.go:1:33: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example1181.go:1:9: IDENTIFIER "rgb", · Token2: example1181.go:1:21: ',' ",", · Token3: example1181.go:1:31: ',' ",", }
Example (Case04) ¶
fmt.Println(exampleAST(1182, "set pal rgbformulae ident_a , ident_b , ident_c"))
Output: &plot.SetPaletteSpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1182.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1182.go:1:31: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression3: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1182.go:1:41: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example1182.go:1:9: IDENTIFIER "rgbformulae", · Token2: example1182.go:1:29: ',' ",", · Token3: example1182.go:1:39: ',' ",", }
Example (Case05) ¶
fmt.Println(exampleAST(1183, "set pal defined"))
Output: &plot.SetPaletteSpecListItem{ · Case: 5, · Token: example1183.go:1:9: IDENTIFIER "defined", }
Example (Case06) ¶
fmt.Println(exampleAST(1184, "set pal defined ( ident_a ident_b )"))
Output: &plot.SetPaletteSpecListItem{ · Case: 6, · SetPalleteDefinedColorList: &plot.SetPalleteDefinedColorList{ · · SetPalleteDefinedColorListItem: &plot.SetPalleteDefinedColorListItem{ · · · Case: 1, · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1184.go:1:19: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1184.go:1:27: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1184.go:1:9: IDENTIFIER "defined", · Token2: example1184.go:1:17: '(' "(", · Token3: example1184.go:1:35: ')' ")", }
Example (Case07) ¶
fmt.Println(exampleAST(1185, "set pal file ident_a"))
Output: &plot.SetPaletteSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1185.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1185.go:1:9: IDENTIFIER "file", }
Example (Case08) ¶
fmt.Println(exampleAST(1186, "set pal func ident_a , ident_b , ident_c"))
Output: &plot.SetPaletteSpecListItem{ · Case: 8, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1186.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1186.go:1:24: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression3: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1186.go:1:34: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example1186.go:1:9: IDENTIFIER "func", · Token2: example1186.go:1:22: ',' ",", · Token3: example1186.go:1:32: ',' ",", }
Example (Case09) ¶
fmt.Println(exampleAST(1187, "set pal functions ident_a , ident_b , ident_c"))
Output: &plot.SetPaletteSpecListItem{ · Case: 9, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1187.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1187.go:1:29: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression3: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1187.go:1:39: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example1187.go:1:9: IDENTIFIER "functions", · Token2: example1187.go:1:27: ',' ",", · Token3: example1187.go:1:37: ',' ",", }
Example (Case10) ¶
fmt.Println(exampleAST(1188, "set pal cubehelix"))
Output: &plot.SetPaletteSpecListItem{ · Case: 10, · Token: example1188.go:1:9: IDENTIFIER "cubehelix", }
Example (Case11) ¶
fmt.Println(exampleAST(1189, "set palette start ident_a"))
Output: &plot.SetPaletteSpecListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1189.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1189.go:1:13: IDENTIFIER "start", }
Example (Case12) ¶
fmt.Println(exampleAST(1190, "set pal cycles ident_a"))
Output: &plot.SetPaletteSpecListItem{ · Case: 12, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1190.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1190.go:1:9: IDENTIFIER "cycles", }
Example (Case13) ¶
fmt.Println(exampleAST(1191, "set palette saturation ident_a"))
Output: &plot.SetPaletteSpecListItem{ · Case: 13, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1191.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1191.go:1:13: IDENTIFIER "saturation", }
Example (Case14) ¶
fmt.Println(exampleAST(1192, "set pal mode RGB"))
Output: &plot.SetPaletteSpecListItem{ · Case: 14, · Token: example1192.go:1:9: IDENTIFIER "mode", · Token2: example1192.go:1:14: IDENTIFIER "RGB", }
Example (Case15) ¶
fmt.Println(exampleAST(1193, "set pal mode HSV"))
Output: &plot.SetPaletteSpecListItem{ · Case: 15, · Token: example1193.go:1:9: IDENTIFIER "mode", · Token2: example1193.go:1:14: IDENTIFIER "HSV", }
Example (Case16) ¶
fmt.Println(exampleAST(1194, "set pal mode CMY"))
Output: &plot.SetPaletteSpecListItem{ · Case: 16, · Token: example1194.go:1:9: IDENTIFIER "mode", · Token2: example1194.go:1:14: IDENTIFIER "CMY", }
Example (Case17) ¶
fmt.Println(exampleAST(1195, "set pal mode YIQ"))
Output: &plot.SetPaletteSpecListItem{ · Case: 17, · Token: example1195.go:1:9: IDENTIFIER "mode", · Token2: example1195.go:1:14: IDENTIFIER "YIQ", }
Example (Case18) ¶
fmt.Println(exampleAST(1196, "set pal mode XYZ"))
Output: &plot.SetPaletteSpecListItem{ · Case: 18, · Token: example1196.go:1:9: IDENTIFIER "mode", · Token2: example1196.go:1:14: IDENTIFIER "XYZ", }
Example (Case19) ¶
fmt.Println(exampleAST(1197, "set pal model RGB"))
Output: &plot.SetPaletteSpecListItem{ · Case: 19, · Token: example1197.go:1:9: IDENTIFIER "model", · Token2: example1197.go:1:15: IDENTIFIER "RGB", }
Example (Case20) ¶
fmt.Println(exampleAST(1198, "set pal model HSV"))
Output: &plot.SetPaletteSpecListItem{ · Case: 20, · Token: example1198.go:1:9: IDENTIFIER "model", · Token2: example1198.go:1:15: IDENTIFIER "HSV", }
Example (Case21) ¶
fmt.Println(exampleAST(1199, "set pal model CMY"))
Output: &plot.SetPaletteSpecListItem{ · Case: 21, · Token: example1199.go:1:9: IDENTIFIER "model", · Token2: example1199.go:1:15: IDENTIFIER "CMY", }
Example (Case22) ¶
fmt.Println(exampleAST(1200, "set pal model YIQ"))
Output: &plot.SetPaletteSpecListItem{ · Case: 22, · Token: example1200.go:1:9: IDENTIFIER "model", · Token2: example1200.go:1:15: IDENTIFIER "YIQ", }
Example (Case23) ¶
fmt.Println(exampleAST(1201, "set pal model XYZ"))
Output: &plot.SetPaletteSpecListItem{ · Case: 23, · Token: example1201.go:1:9: IDENTIFIER "model", · Token2: example1201.go:1:15: IDENTIFIER "XYZ", }
Example (Case24) ¶
fmt.Println(exampleAST(1202, "set pal positive"))
Output: &plot.SetPaletteSpecListItem{ · Case: 24, · Token: example1202.go:1:9: IDENTIFIER "positive", }
Example (Case25) ¶
fmt.Println(exampleAST(1203, "set palette negative"))
Output: &plot.SetPaletteSpecListItem{ · Case: 25, · Token: example1203.go:1:13: IDENTIFIER "negative", }
Example (Case26) ¶
fmt.Println(exampleAST(1204, "set palette nops_allcF"))
Output: &plot.SetPaletteSpecListItem{ · Case: 26, · Token: example1204.go:1:13: IDENTIFIER "nops_allcF", }
Example (Case27) ¶
fmt.Println(exampleAST(1205, "set pal ps_allcF"))
Output: &plot.SetPaletteSpecListItem{ · Case: 27, · Token: example1205.go:1:9: IDENTIFIER "ps_allcF", }
Example (Case28) ¶
fmt.Println(exampleAST(1206, "set pal maxcolors ident_a"))
Output: &plot.SetPaletteSpecListItem{ · Case: 28, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1206.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1206.go:1:9: IDENTIFIER "maxcolors", }
func (*SetPaletteSpecListItem) Pos ¶
func (n *SetPaletteSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetPaletteSpecListItem) String ¶
func (n *SetPaletteSpecListItem) String() string
String implements fmt.Stringer.
type SetPaletteSpecListOpt ¶
type SetPaletteSpecListOpt struct {
SetPaletteSpecList *SetPaletteSpecList
}
SetPaletteSpecListOpt represents data reduced by productions:
SetPaletteSpecListOpt: /* empty */ | SetPaletteSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1207, "set pal") == (*SetPaletteSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1208, "set pal color"))
Output: &plot.SetPaletteSpecListOpt{ · SetPaletteSpecList: &plot.SetPaletteSpecList{ · · SetPaletteSpecListItem: &plot.SetPaletteSpecListItem{ · · · Case: 1, · · · Token: example1208.go:1:9: IDENTIFIER "color", · · }, · }, }
func (*SetPaletteSpecListOpt) Pos ¶
func (n *SetPaletteSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetPaletteSpecListOpt) String ¶
func (n *SetPaletteSpecListOpt) String() string
String implements fmt.Stringer.
type SetPalleteDefinedColorList ¶
type SetPalleteDefinedColorList struct { Case int SetPalleteDefinedColorList *SetPalleteDefinedColorList SetPalleteDefinedColorListItem *SetPalleteDefinedColorListItem Token xc.Token }
SetPalleteDefinedColorList represents data reduced by productions:
SetPalleteDefinedColorList: SetPalleteDefinedColorListItem | SetPalleteDefinedColorList ',' SetPalleteDefinedColorListItem // Case 1
Example ¶
fmt.Println(exampleAST(1209, "set pal defined ( ident_a ident_b )"))
Output: &plot.SetPalleteDefinedColorList{ · SetPalleteDefinedColorListItem: &plot.SetPalleteDefinedColorListItem{ · · Case: 1, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1209.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1209.go:1:27: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1210, "set pal defined ( ident_a ident_b , ident_c ident_d )"))
Output: &plot.SetPalleteDefinedColorList{ · SetPalleteDefinedColorList: &plot.SetPalleteDefinedColorList{ · · Case: 1, · · SetPalleteDefinedColorListItem: &plot.SetPalleteDefinedColorListItem{ · · · Case: 1, · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1210.go:1:37: IDENTIFIER "ident_c", · · · · · · }, · · · · · }, · · · · }, · · · }, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1210.go:1:45: IDENTIFIER "ident_d", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · · Token: example1210.go:1:35: ',' ",", · }, · SetPalleteDefinedColorListItem: &plot.SetPalleteDefinedColorListItem{ · · Case: 1, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1210.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1210.go:1:27: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetPalleteDefinedColorList) Pos ¶
func (n *SetPalleteDefinedColorList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetPalleteDefinedColorList) String ¶
func (n *SetPalleteDefinedColorList) String() string
String implements fmt.Stringer.
type SetPalleteDefinedColorListItem ¶
type SetPalleteDefinedColorListItem struct { Case int Expression *Expression SimpleExpression *SimpleExpression SimpleExpression2 *SimpleExpression SimpleExpression3 *SimpleExpression }
SetPalleteDefinedColorListItem represents data reduced by productions:
SetPalleteDefinedColorListItem: Expression SimpleExpression SimpleExpression SimpleExpression | Expression SimpleExpression // Case 1
Example ¶
fmt.Println(exampleAST(1211, "set pal defined ( ident_a ident_b ident_c ident_d )"))
Output: &plot.SetPalleteDefinedColorListItem{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1211.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1211.go:1:27: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1211.go:1:35: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · SimpleExpression3: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1211.go:1:43: IDENTIFIER "ident_d", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1212, "set pal defined ( ident_a ident_b )"))
Output: &plot.SetPalleteDefinedColorListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1212.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1212.go:1:27: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, }
func (*SetPalleteDefinedColorListItem) Pos ¶
func (n *SetPalleteDefinedColorListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetPalleteDefinedColorListItem) String ¶
func (n *SetPalleteDefinedColorListItem) String() string
String implements fmt.Stringer.
type SetPaxisSpecList ¶
type SetPaxisSpecList struct { Case int SetPaxisSpecList *SetPaxisSpecList SetPaxisSpecListItem *SetPaxisSpecListItem }
SetPaxisSpecList represents data reduced by productions:
SetPaxisSpecList: SetPaxisSpecListItem | SetPaxisSpecList SetPaxisSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1213, "set paxis ident_a tics"))
Output: &plot.SetPaxisSpecList{ · SetPaxisSpecListItem: &plot.SetPaxisSpecListItem{ · · Case: 1, · · Token: example1213.go:1:19: IDENTIFIER "tics", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1214, "set paxis ident_a tics tics"))
Output: &plot.SetPaxisSpecList{ · SetPaxisSpecList: &plot.SetPaxisSpecList{ · · Case: 1, · · SetPaxisSpecListItem: &plot.SetPaxisSpecListItem{ · · · Case: 1, · · · Token: example1214.go:1:24: IDENTIFIER "tics", · · }, · }, · SetPaxisSpecListItem: &plot.SetPaxisSpecListItem{ · · Case: 1, · · Token: example1214.go:1:19: IDENTIFIER "tics", · }, }
func (*SetPaxisSpecList) Pos ¶
func (n *SetPaxisSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetPaxisSpecList) String ¶
func (n *SetPaxisSpecList) String() string
String implements fmt.Stringer.
type SetPaxisSpecListItem ¶
type SetPaxisSpecListItem struct { Case int SetRangeSpecList *SetRangeSpecList SetXTicsSpecListOpt *SetXTicsSpecListOpt Token xc.Token }
SetPaxisSpecListItem represents data reduced by productions:
SetPaxisSpecListItem: "range" SetRangeSpecList | "tics" SetXTicsSpecListOpt // Case 1
Example ¶
fmt.Println(exampleAST(1215, "set paxis ident_a range extend"))
Output: &plot.SetPaxisSpecListItem{ · SetRangeSpecList: &plot.SetRangeSpecList{ · · SetRangeSpecListItem: &plot.SetRangeSpecListItem{ · · · Case: 4, · · · Token: example1215.go:1:25: IDENTIFIER "extend", · · }, · }, · Token: example1215.go:1:19: IDENTIFIER "range", }
Example (Case1) ¶
fmt.Println(exampleAST(1216, "set paxis ident_a tics"))
Output: &plot.SetPaxisSpecListItem{ · Case: 1, · Token: example1216.go:1:19: IDENTIFIER "tics", }
func (*SetPaxisSpecListItem) Pos ¶
func (n *SetPaxisSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetPaxisSpecListItem) String ¶
func (n *SetPaxisSpecListItem) String() string
String implements fmt.Stringer.
type SetPaxisSpecListOpt ¶
type SetPaxisSpecListOpt struct {
SetPaxisSpecList *SetPaxisSpecList
}
SetPaxisSpecListOpt represents data reduced by productions:
SetPaxisSpecListOpt: /* empty */ | SetPaxisSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1217, "set paxis ident_a") == (*SetPaxisSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1218, "set paxis ident_a tics"))
Output: &plot.SetPaxisSpecListOpt{ · SetPaxisSpecList: &plot.SetPaxisSpecList{ · · SetPaxisSpecListItem: &plot.SetPaxisSpecListItem{ · · · Case: 1, · · · Token: example1218.go:1:19: IDENTIFIER "tics", · · }, · }, }
func (*SetPaxisSpecListOpt) Pos ¶
func (n *SetPaxisSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetPaxisSpecListOpt) String ¶
func (n *SetPaxisSpecListOpt) String() string
String implements fmt.Stringer.
type SetPm3dSpecList ¶
type SetPm3dSpecList struct { Case int SetPm3dSpecList *SetPm3dSpecList SetPm3dSpecListItem *SetPm3dSpecListItem }
SetPm3dSpecList represents data reduced by productions:
SetPm3dSpecList: SetPm3dSpecListItem | SetPm3dSpecList SetPm3dSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1219, "set pm3d begin"))
Output: &plot.SetPm3dSpecList{ · SetPm3dSpecListItem: &plot.SetPm3dSpecListItem{ · · Case: 7, · · Token: example1219.go:1:10: IDENTIFIER "begin", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1220, "set pm3d begin begin"))
Output: &plot.SetPm3dSpecList{ · SetPm3dSpecList: &plot.SetPm3dSpecList{ · · Case: 1, · · SetPm3dSpecListItem: &plot.SetPm3dSpecListItem{ · · · Case: 7, · · · Token: example1220.go:1:16: IDENTIFIER "begin", · · }, · }, · SetPm3dSpecListItem: &plot.SetPm3dSpecListItem{ · · Case: 7, · · Token: example1220.go:1:10: IDENTIFIER "begin", · }, }
func (*SetPm3dSpecList) Pos ¶
func (n *SetPm3dSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetPm3dSpecList) String ¶
func (n *SetPm3dSpecList) String() string
String implements fmt.Stringer.
type SetPm3dSpecListItem ¶
type SetPm3dSpecListItem struct { Case int Expression *Expression Expression2 *Expression LineStyleListItem *LineStyleListItem Position *Position Token xc.Token Token2 xc.Token }
SetPm3dSpecListItem represents data reduced by productions:
SetPm3dSpecListItem: "at" Position | "interpolate" Expression ',' Expression // Case 1 | "scansautomatic" // Case 2 | "scansforward" // Case 3 | "scansbackward" // Case 4 | "depthorder" // Case 5 | "flush" // Case 6 | "begin" // Case 7 | "center" // Case 8 | "end" // Case 9 | "ftriangles" // Case 10 | "noftriangles" // Case 11 | "clip1in" // Case 12 | "clip4in" // Case 13 | "corners2color" // Case 14 | "mean" // Case 15 | "geomean" // Case 16 | "harmean" // Case 17 | "rms" // Case 18 | "median" // Case 19 | "min" // Case 20 | "max" // Case 21 | "c1" // Case 22 | "c2" // Case 23 | "c3" // Case 24 | "c4" // Case 25 | "hidden3d" // Case 26 | "hidden3d" Expression // Case 27 | "implicit" // Case 28 | "explicit" // Case 29 | "map" // Case 30 | "border" // Case 31 | LineStyleListItem // Case 32
Example ¶
fmt.Println(exampleAST(1221, "set pm3d at ident_a"))
Output: &plot.SetPm3dSpecListItem{ · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1221.go:1:13: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1221.go:1:10: IDENTIFIER "at", }
Example (Case01) ¶
fmt.Println(exampleAST(1222, "set pm3d interpolate ident_a , ident_b"))
Output: &plot.SetPm3dSpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1222.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1222.go:1:32: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example1222.go:1:10: IDENTIFIER "interpolate", · Token2: example1222.go:1:30: ',' ",", }
Example (Case02) ¶
fmt.Println(exampleAST(1223, "set pm3d scansautomatic"))
Output: &plot.SetPm3dSpecListItem{ · Case: 2, · Token: example1223.go:1:10: IDENTIFIER "scansautomatic", }
Example (Case03) ¶
fmt.Println(exampleAST(1224, "set pm3d scansforward"))
Output: &plot.SetPm3dSpecListItem{ · Case: 3, · Token: example1224.go:1:10: IDENTIFIER "scansforward", }
Example (Case04) ¶
fmt.Println(exampleAST(1225, "set pm3d scansbackward"))
Output: &plot.SetPm3dSpecListItem{ · Case: 4, · Token: example1225.go:1:10: IDENTIFIER "scansbackward", }
Example (Case05) ¶
fmt.Println(exampleAST(1226, "set pm3d depthorder"))
Output: &plot.SetPm3dSpecListItem{ · Case: 5, · Token: example1226.go:1:10: IDENTIFIER "depthorder", }
Example (Case06) ¶
fmt.Println(exampleAST(1227, "set pm3d flush"))
Output: &plot.SetPm3dSpecListItem{ · Case: 6, · Token: example1227.go:1:10: IDENTIFIER "flush", }
Example (Case07) ¶
fmt.Println(exampleAST(1228, "set pm3d begin"))
Output: &plot.SetPm3dSpecListItem{ · Case: 7, · Token: example1228.go:1:10: IDENTIFIER "begin", }
Example (Case08) ¶
fmt.Println(exampleAST(1229, "set pm3d center"))
Output: &plot.SetPm3dSpecListItem{ · Case: 8, · Token: example1229.go:1:10: IDENTIFIER "center", }
Example (Case09) ¶
fmt.Println(exampleAST(1230, "set pm3d end"))
Output: &plot.SetPm3dSpecListItem{ · Case: 9, · Token: example1230.go:1:10: IDENTIFIER "end", }
Example (Case10) ¶
fmt.Println(exampleAST(1231, "set pm3d ftriangles"))
Output: &plot.SetPm3dSpecListItem{ · Case: 10, · Token: example1231.go:1:10: IDENTIFIER "ftriangles", }
Example (Case11) ¶
fmt.Println(exampleAST(1232, "set pm3d noftriangles"))
Output: &plot.SetPm3dSpecListItem{ · Case: 11, · Token: example1232.go:1:10: IDENTIFIER "noftriangles", }
Example (Case12) ¶
fmt.Println(exampleAST(1233, "set pm3d clip1in"))
Output: &plot.SetPm3dSpecListItem{ · Case: 12, · Token: example1233.go:1:10: IDENTIFIER "clip1in", }
Example (Case13) ¶
fmt.Println(exampleAST(1234, "set pm3d clip4in"))
Output: &plot.SetPm3dSpecListItem{ · Case: 13, · Token: example1234.go:1:10: IDENTIFIER "clip4in", }
Example (Case14) ¶
fmt.Println(exampleAST(1235, "set pm3d corners2color"))
Output: &plot.SetPm3dSpecListItem{ · Case: 14, · Token: example1235.go:1:10: IDENTIFIER "corners2color", }
Example (Case15) ¶
fmt.Println(exampleAST(1236, "set pm3d mean"))
Output: &plot.SetPm3dSpecListItem{ · Case: 15, · Token: example1236.go:1:10: IDENTIFIER "mean", }
Example (Case16) ¶
fmt.Println(exampleAST(1237, "set pm3d geomean"))
Output: &plot.SetPm3dSpecListItem{ · Case: 16, · Token: example1237.go:1:10: IDENTIFIER "geomean", }
Example (Case17) ¶
fmt.Println(exampleAST(1238, "set pm3d harmean"))
Output: &plot.SetPm3dSpecListItem{ · Case: 17, · Token: example1238.go:1:10: IDENTIFIER "harmean", }
Example (Case18) ¶
fmt.Println(exampleAST(1239, "set pm3d rms"))
Output: &plot.SetPm3dSpecListItem{ · Case: 18, · Token: example1239.go:1:10: IDENTIFIER "rms", }
Example (Case19) ¶
fmt.Println(exampleAST(1240, "set pm3d median"))
Output: &plot.SetPm3dSpecListItem{ · Case: 19, · Token: example1240.go:1:10: IDENTIFIER "median", }
Example (Case20) ¶
fmt.Println(exampleAST(1241, "set pm3d min"))
Output: &plot.SetPm3dSpecListItem{ · Case: 20, · Token: example1241.go:1:10: IDENTIFIER "min", }
Example (Case21) ¶
fmt.Println(exampleAST(1242, "set pm3d max"))
Output: &plot.SetPm3dSpecListItem{ · Case: 21, · Token: example1242.go:1:10: IDENTIFIER "max", }
Example (Case22) ¶
fmt.Println(exampleAST(1243, "set pm3d c1"))
Output: &plot.SetPm3dSpecListItem{ · Case: 22, · Token: example1243.go:1:10: IDENTIFIER "c1", }
Example (Case23) ¶
fmt.Println(exampleAST(1244, "set pm3d c2"))
Output: &plot.SetPm3dSpecListItem{ · Case: 23, · Token: example1244.go:1:10: IDENTIFIER "c2", }
Example (Case24) ¶
fmt.Println(exampleAST(1245, "set pm3d c3"))
Output: &plot.SetPm3dSpecListItem{ · Case: 24, · Token: example1245.go:1:10: IDENTIFIER "c3", }
Example (Case25) ¶
fmt.Println(exampleAST(1246, "set pm3d c4"))
Output: &plot.SetPm3dSpecListItem{ · Case: 25, · Token: example1246.go:1:10: IDENTIFIER "c4", }
Example (Case26) ¶
fmt.Println(exampleAST(1247, "set pm3d hidden3d"))
Output: &plot.SetPm3dSpecListItem{ · Case: 26, · Token: example1247.go:1:10: IDENTIFIER "hidden3d", }
Example (Case27) ¶
fmt.Println(exampleAST(1248, "set pm3d hidden3d ident_a"))
Output: &plot.SetPm3dSpecListItem{ · Case: 27, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1248.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1248.go:1:10: IDENTIFIER "hidden3d", }
Example (Case28) ¶
fmt.Println(exampleAST(1249, "set pm3d implicit"))
Output: &plot.SetPm3dSpecListItem{ · Case: 28, · Token: example1249.go:1:10: IDENTIFIER "implicit", }
Example (Case29) ¶
fmt.Println(exampleAST(1250, "set pm3d explicit"))
Output: &plot.SetPm3dSpecListItem{ · Case: 29, · Token: example1250.go:1:10: IDENTIFIER "explicit", }
Example (Case30) ¶
fmt.Println(exampleAST(1251, "set pm3d map"))
Output: &plot.SetPm3dSpecListItem{ · Case: 30, · Token: example1251.go:1:10: IDENTIFIER "map", }
Example (Case31) ¶
fmt.Println(exampleAST(1252, "set pm3d border"))
Output: &plot.SetPm3dSpecListItem{ · Case: 31, · Token: example1252.go:1:10: IDENTIFIER "border", }
Example (Case32) ¶
fmt.Println(exampleAST(1253, "set pm3d nocontours"))
Output: &plot.SetPm3dSpecListItem{ · Case: 32, · LineStyleListItem: &plot.LineStyleListItem{ · · Case: 15, · · Token: example1253.go:1:10: IDENTIFIER "nocontours", · }, }
func (*SetPm3dSpecListItem) Pos ¶
func (n *SetPm3dSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetPm3dSpecListItem) String ¶
func (n *SetPm3dSpecListItem) String() string
String implements fmt.Stringer.
type SetPm3dSpecListOpt ¶
type SetPm3dSpecListOpt struct {
SetPm3dSpecList *SetPm3dSpecList
}
SetPm3dSpecListOpt represents data reduced by productions:
SetPm3dSpecListOpt: /* empty */ | SetPm3dSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1254, "set pm3d") == (*SetPm3dSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1255, "set pm3d begin"))
Output: &plot.SetPm3dSpecListOpt{ · SetPm3dSpecList: &plot.SetPm3dSpecList{ · · SetPm3dSpecListItem: &plot.SetPm3dSpecListItem{ · · · Case: 7, · · · Token: example1255.go:1:10: IDENTIFIER "begin", · · }, · }, }
func (*SetPm3dSpecListOpt) Pos ¶
func (n *SetPm3dSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetPm3dSpecListOpt) String ¶
func (n *SetPm3dSpecListOpt) String() string
String implements fmt.Stringer.
type SetPrintSpecOpt ¶
type SetPrintSpecOpt struct { Case int Expression *Expression Token xc.Token }
SetPrintSpecOpt represents data reduced by productions:
SetPrintSpecOpt: /* empty */ | Expression // Case 1 | Expression "append" // Case 2
Example ¶
fmt.Println(exampleAST(1259, "set print") == (*SetPrintSpecOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1260, "set print ident_a"))
Output: &plot.SetPrintSpecOpt{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1260.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case2) ¶
fmt.Println(exampleAST(1261, "set print ident_a append"))
Output: &plot.SetPrintSpecOpt{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1261.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1261.go:1:19: IDENTIFIER "append", }
func (*SetPrintSpecOpt) Pos ¶
func (n *SetPrintSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetPrintSpecOpt) String ¶
func (n *SetPrintSpecOpt) String() string
String implements fmt.Stringer.
type SetRangeSpec ¶
type SetRangeSpec struct { Case int Range *Range SetRangeSpecListOpt *SetRangeSpecListOpt Token xc.Token }
SetRangeSpec represents data reduced by productions:
SetRangeSpec: Range SetRangeSpecListOpt | "restore" // Case 1
Example ¶
fmt.Println(exampleAST(1262, "set zrange [ ]"))
Output: &plot.SetRangeSpec{ · Range: &plot.Range{ · · Case: 2, · · Token: example1262.go:1:12: '[' "[", · · Token2: example1262.go:1:14: ']' "]", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1263, "set vrange restore"))
Output: &plot.SetRangeSpec{ · Case: 1, · Token: example1263.go:1:12: IDENTIFIER "restore", }
func (*SetRangeSpec) Pos ¶
func (n *SetRangeSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetRangeSpec) String ¶
func (n *SetRangeSpec) String() string
String implements fmt.Stringer.
type SetRangeSpecList ¶
type SetRangeSpecList struct { Case int SetRangeSpecList *SetRangeSpecList SetRangeSpecListItem *SetRangeSpecListItem }
SetRangeSpecList represents data reduced by productions:
SetRangeSpecList: SetRangeSpecListItem | SetRangeSpecList SetRangeSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1264, "set zrange [ ] extend"))
Output: &plot.SetRangeSpecList{ · SetRangeSpecListItem: &plot.SetRangeSpecListItem{ · · Case: 4, · · Token: example1264.go:1:16: IDENTIFIER "extend", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1265, "set zrange [ ] extend extend"))
Output: &plot.SetRangeSpecList{ · SetRangeSpecList: &plot.SetRangeSpecList{ · · Case: 1, · · SetRangeSpecListItem: &plot.SetRangeSpecListItem{ · · · Case: 4, · · · Token: example1265.go:1:23: IDENTIFIER "extend", · · }, · }, · SetRangeSpecListItem: &plot.SetRangeSpecListItem{ · · Case: 4, · · Token: example1265.go:1:16: IDENTIFIER "extend", · }, }
func (*SetRangeSpecList) Pos ¶
func (n *SetRangeSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetRangeSpecList) String ¶
func (n *SetRangeSpecList) String() string
String implements fmt.Stringer.
type SetRangeSpecListItem ¶
SetRangeSpecListItem represents data reduced by productions:
SetRangeSpecListItem: "reverse" | "noreverse" // Case 1 | "writeback" // Case 2 | "nowriteback" // Case 3 | "extend" // Case 4 | "noextend" // Case 5 | Range // Case 6
Example ¶
fmt.Println(exampleAST(1266, "set zrange [ ] reverse"))
Output: &plot.SetRangeSpecListItem{ · Token: example1266.go:1:16: IDENTIFIER "reverse", }
Example (Case1) ¶
fmt.Println(exampleAST(1267, "set zrange [ ] noreverse"))
Output: &plot.SetRangeSpecListItem{ · Case: 1, · Token: example1267.go:1:16: IDENTIFIER "noreverse", }
Example (Case2) ¶
fmt.Println(exampleAST(1268, "set zrange [ ] writeback"))
Output: &plot.SetRangeSpecListItem{ · Case: 2, · Token: example1268.go:1:16: IDENTIFIER "writeback", }
Example (Case3) ¶
fmt.Println(exampleAST(1269, "set zrange [ ] nowriteback"))
Output: &plot.SetRangeSpecListItem{ · Case: 3, · Token: example1269.go:1:16: IDENTIFIER "nowriteback", }
Example (Case4) ¶
fmt.Println(exampleAST(1270, "set zrange [ ] extend"))
Output: &plot.SetRangeSpecListItem{ · Case: 4, · Token: example1270.go:1:16: IDENTIFIER "extend", }
Example (Case5) ¶
fmt.Println(exampleAST(1271, "set zrange [ ] noextend"))
Output: &plot.SetRangeSpecListItem{ · Case: 5, · Token: example1271.go:1:16: IDENTIFIER "noextend", }
Example (Case6) ¶
fmt.Println(exampleAST(1272, "set zrange [ ] [ ]"))
Output: &plot.SetRangeSpecListItem{ · Case: 6, · Range: &plot.Range{ · · Case: 2, · · Token: example1272.go:1:16: '[' "[", · · Token2: example1272.go:1:18: ']' "]", · }, }
func (*SetRangeSpecListItem) Pos ¶
func (n *SetRangeSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetRangeSpecListItem) String ¶
func (n *SetRangeSpecListItem) String() string
String implements fmt.Stringer.
type SetRangeSpecListOpt ¶
type SetRangeSpecListOpt struct {
SetRangeSpecList *SetRangeSpecList
}
SetRangeSpecListOpt represents data reduced by productions:
SetRangeSpecListOpt: /* empty */ | SetRangeSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1273, "set zrange [ ]") == (*SetRangeSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1274, "set zrange [ ] extend"))
Output: &plot.SetRangeSpecListOpt{ · SetRangeSpecList: &plot.SetRangeSpecList{ · · SetRangeSpecListItem: &plot.SetRangeSpecListItem{ · · · Case: 4, · · · Token: example1274.go:1:16: IDENTIFIER "extend", · · }, · }, }
func (*SetRangeSpecListOpt) Pos ¶
func (n *SetRangeSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetRangeSpecListOpt) String ¶
func (n *SetRangeSpecListOpt) String() string
String implements fmt.Stringer.
type SetSizeSpecList ¶
type SetSizeSpecList struct { Case int SetSizeSpecList *SetSizeSpecList SetSizeSpecListItem *SetSizeSpecListItem }
SetSizeSpecList represents data reduced by productions:
SetSizeSpecList: SetSizeSpecListItem | SetSizeSpecList SetSizeSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1275, "set size noratio"))
Output: &plot.SetSizeSpecList{ · SetSizeSpecListItem: &plot.SetSizeSpecListItem{ · · Case: 3, · · Token: example1275.go:1:10: IDENTIFIER "noratio", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1276, "set size noratio noratio"))
Output: &plot.SetSizeSpecList{ · SetSizeSpecList: &plot.SetSizeSpecList{ · · Case: 1, · · SetSizeSpecListItem: &plot.SetSizeSpecListItem{ · · · Case: 3, · · · Token: example1276.go:1:18: IDENTIFIER "noratio", · · }, · }, · SetSizeSpecListItem: &plot.SetSizeSpecListItem{ · · Case: 3, · · Token: example1276.go:1:10: IDENTIFIER "noratio", · }, }
func (*SetSizeSpecList) Pos ¶
func (n *SetSizeSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetSizeSpecList) String ¶
func (n *SetSizeSpecList) String() string
String implements fmt.Stringer.
type SetSizeSpecListItem ¶
type SetSizeSpecListItem struct { Case int Expression *Expression SimpleExpression *SimpleExpression Token xc.Token }
SetSizeSpecListItem represents data reduced by productions:
SetSizeSpecListItem: "square" | "nosquare" // Case 1 | "ratio" Expression // Case 2 | "noratio" // Case 3 | SimpleExpression ',' Expression // Case 4
Example ¶
fmt.Println(exampleAST(1277, "set size square"))
Output: &plot.SetSizeSpecListItem{ · Token: example1277.go:1:10: IDENTIFIER "square", }
Example (Case1) ¶
fmt.Println(exampleAST(1278, "set size nosquare"))
Output: &plot.SetSizeSpecListItem{ · Case: 1, · Token: example1278.go:1:10: IDENTIFIER "nosquare", }
Example (Case2) ¶
fmt.Println(exampleAST(1279, "set size ratio ident_a"))
Output: &plot.SetSizeSpecListItem{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1279.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1279.go:1:10: IDENTIFIER "ratio", }
Example (Case3) ¶
fmt.Println(exampleAST(1280, "set size noratio"))
Output: &plot.SetSizeSpecListItem{ · Case: 3, · Token: example1280.go:1:10: IDENTIFIER "noratio", }
Example (Case4) ¶
fmt.Println(exampleAST(1281, "set size ident_a , ident_b"))
Output: &plot.SetSizeSpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1281.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1281.go:1:10: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1281.go:1:18: ',' ",", }
func (*SetSizeSpecListItem) Pos ¶
func (n *SetSizeSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetSizeSpecListItem) String ¶
func (n *SetSizeSpecListItem) String() string
String implements fmt.Stringer.
type SetSpec ¶
type SetSpec struct { Case int DashTypeSpec *DashTypeSpec Expression *Expression Expression2 *Expression ExpressionList *ExpressionList ExpressionOpt *ExpressionOpt IdentifierOptList *IdentifierOptList LineStyleList *LineStyleList SetAnglesSpec *SetAnglesSpec SetArrowSpec *SetArrowSpec SetAutoscaleSpecListOpt *SetAutoscaleSpecListOpt SetBarsSpecListOpt *SetBarsSpecListOpt SetBmarginSpecOpt *SetBmarginSpecOpt SetBorderSpec *SetBorderSpec SetBoxwidthSpec *SetBoxwidthSpec SetClipSpecOpt *SetClipSpecOpt SetCntrlabelSpecList *SetCntrlabelSpecList SetCntrparamSpecList *SetCntrparamSpecList SetColorboxSpecListOpt *SetColorboxSpecListOpt SetColorsequenceSpecOpt *SetColorsequenceSpecOpt SetContourSpec *SetContourSpec SetDatafileSpec *SetDatafileSpec SetDecimalsignSpecOpt *SetDecimalsignSpecOpt SetDgrid3dSpecListOpt *SetDgrid3dSpecListOpt SetEncodingSpec *SetEncodingSpec SetFitSpecList *SetFitSpecList SetFontPathSpecOpt *SetFontPathSpecOpt SetFormatSpec *SetFormatSpec SetGridSpecListOpt *SetGridSpecListOpt SetHidden3dSpecListOpt *SetHidden3dSpecListOpt SetHistorySpecListOpt *SetHistorySpecListOpt SetKeySpecListOpt *SetKeySpecListOpt SetLabelSpec *SetLabelSpec SetLinkSpecListOpt *SetLinkSpecListOpt SetLogscaleSpec *SetLogscaleSpec SetMappingSpec *SetMappingSpec SetMonochromeSpecOpt *SetMonochromeSpecOpt SetMouseSpecListOpt *SetMouseSpecListOpt SetMultiplotSpecListOpt *SetMultiplotSpecListOpt SetMxticsSpecOpt *SetMxticsSpecOpt SetObjectSpecList *SetObjectSpecList SetOffsetsSpecOpt *SetOffsetsSpecOpt SetPaletteSpecListOpt *SetPaletteSpecListOpt SetPaxisSpecListOpt *SetPaxisSpecListOpt SetPm3dSpecListOpt *SetPm3dSpecListOpt SetPrintSpecOpt *SetPrintSpecOpt SetRangeSpec *SetRangeSpec SetSizeSpecList *SetSizeSpecList SetStyleSpec *SetStyleSpec SetSurfaceSpecOpt *SetSurfaceSpecOpt SetTableSpecOpt *SetTableSpecOpt SetTerminalSpec *SetTerminalSpec SetTermoptionSpec *SetTermoptionSpec SetTimestampSpecListOpt *SetTimestampSpecListOpt SetTitleSpecOpt *SetTitleSpecOpt SetViewSpec *SetViewSpec SetXLabelSpecOpt *SetXLabelSpecOpt SetXTicsSpecListOpt *SetXTicsSpecListOpt SetXyplaneSpec *SetXyplaneSpec SetZeroaxisSpecListOpt *SetZeroaxisSpecListOpt Token xc.Token Token2 xc.Token }
SetSpec represents data reduced by productions:
SetSpec: "angle" SetAnglesSpec | "angles" SetAnglesSpec // Case 1 | "arrow" SetArrowSpec // Case 2 | "auto" SetAutoscaleSpecListOpt // Case 3 | "autoscale" SetAutoscaleSpecListOpt // Case 4 | "bars" SetBarsSpecListOpt // Case 5 | "bmargin" SetBmarginSpecOpt // Case 6 | "border" SetBorderSpec // Case 7 | "boxwidth" SetBoxwidthSpec // Case 8 | "cbdata" "time" // Case 9 | "cbdtics" // Case 10 | "cblabel" SetXLabelSpecOpt // Case 11 | "cbmtics" // Case 12 | "cbrange" SetRangeSpec // Case 13 | "cbtics" SetXTicsSpecListOpt // Case 14 | "clabel" Expression // Case 15 | "clip" SetClipSpecOpt // Case 16 | "cntrlabel" SetCntrlabelSpecList // Case 17 | "cntrp" SetCntrparamSpecList // Case 18 | "cntrparam" SetCntrparamSpecList // Case 19 | "colorbox" SetColorboxSpecListOpt // Case 20 | "colorsequence" SetColorsequenceSpecOpt // Case 21 | "contour" SetContourSpec // Case 22 | "dashtype" DashTypeSpec // Case 23 | "datafile" SetDatafileSpec // Case 24 | "decimalsign" SetDecimalsignSpecOpt // Case 25 | "dgrid3d" SetDgrid3dSpecListOpt // Case 26 | "dummy" IdentifierOptList // Case 27 | "encoding" SetEncodingSpec // Case 28 | "fit" SetFitSpecList // Case 29 | "fontpath" SetFontPathSpecOpt // Case 30 | "format" SetFormatSpec // Case 31 | "grid" SetGridSpecListOpt // Case 32 | "hidden3d" SetHidden3dSpecListOpt // Case 33 | "history" SetHistorySpecListOpt // Case 34 | "iso" ExpressionList // Case 35 | "isosamples" ExpressionList // Case 36 | "key" SetKeySpecListOpt // Case 37 | "label" SetLabelSpec // Case 38 | "linetype" Expression LineStyleList // Case 39 | "link" SetLinkSpecListOpt // Case 40 | "lmargin" SetBmarginSpecOpt // Case 41 | "loadpath" SetFontPathSpecOpt // Case 42 | "locale" // Case 43 | "locale" Expression // Case 44 | "log" SetLogscaleSpec // Case 45 | "logscale" SetLogscaleSpec // Case 46 | "macros" // Case 47 | "mapping" SetMappingSpec // Case 48 | "margins" ExpressionList // Case 49 | "mcbtics" SetMxticsSpecOpt // Case 50 | "mono" SetMonochromeSpecOpt // Case 51 | "monochrome" SetMonochromeSpecOpt // Case 52 | "mouse" SetMouseSpecListOpt // Case 53 | "multiplot" SetMultiplotSpecListOpt // Case 54 | "mx2tics" SetMxticsSpecOpt // Case 55 | "mxtics" SetMxticsSpecOpt // Case 56 | "my2tics" SetMxticsSpecOpt // Case 57 | "mytics" SetMxticsSpecOpt // Case 58 | "mztics" SetMxticsSpecOpt // Case 59 | "noxtics" // Case 60 | "noytics" // Case 61 | "object" Expression SetObjectSpecList // Case 62 | "offset" SetOffsetsSpecOpt // Case 63 | "offsets" SetOffsetsSpecOpt // Case 64 | "origin" Expression ',' Expression // Case 65 | "output" ExpressionOpt // Case 66 | "pal" SetPaletteSpecListOpt // Case 67 | "palette" SetPaletteSpecListOpt // Case 68 | "para" // Case 69 | "parametric" // Case 70 | "paxis" Expression SetPaxisSpecListOpt // Case 71 | "pm3d" SetPm3dSpecListOpt // Case 72 | "pointintervalbox" Expression // Case 73 | "pointsize" Expression // Case 74 | "polar" // Case 75 | "print" SetPrintSpecOpt // Case 76 | "psdir" Expression // Case 77 | "raxis" // Case 78 | "rmargin" SetBmarginSpecOpt // Case 79 | "rrange" SetRangeSpec // Case 80 | "rtics" SetXTicsSpecListOpt // Case 81 | "sam" ExpressionList // Case 82 | "sample" ExpressionList // Case 83 | "samples" ExpressionList // Case 84 | "size" SetSizeSpecList // Case 85 | "style" SetStyleSpec // Case 86 | "surface" SetSurfaceSpecOpt // Case 87 | "table" SetTableSpecOpt // Case 88 | "term" SetTerminalSpec // Case 89 | "terminal" SetTerminalSpec // Case 90 | "termoption" SetTermoptionSpec // Case 91 | "tic" SetXTicsSpecListOpt // Case 92 | "tics" SetXTicsSpecListOpt // Case 93 | "ticslevel" Expression // Case 94 | "time" // Case 95 | "timefmt" Expression // Case 96 | "timestamp" SetTimestampSpecListOpt // Case 97 | "title" SetTitleSpecOpt // Case 98 | "tmargin" SetBmarginSpecOpt // Case 99 | "trange" SetRangeSpec // Case 100 | "urange" SetRangeSpec // Case 101 | "vi" SetViewSpec // Case 102 | "view" SetViewSpec // Case 103 | "vrange" SetRangeSpec // Case 104 | "x2data" "time" // Case 105 | "x2dtics" // Case 106 | "x2label" SetXLabelSpecOpt // Case 107 | "x2mtics" // Case 108 | "x2range" SetRangeSpec // Case 109 | "x2tics" SetXTicsSpecListOpt // Case 110 | "x2zeroaxis" SetZeroaxisSpecListOpt // Case 111 | "xdata" "time" // Case 112 | "xdtics" // Case 113 | "xlabel" SetXLabelSpecOpt // Case 114 | "xmtics" // Case 115 | "xrange" SetRangeSpec // Case 116 | "xtics" SetXTicsSpecListOpt // Case 117 | "xyplane" SetXyplaneSpec // Case 118 | "xzeroaxis" SetZeroaxisSpecListOpt // Case 119 | "y2data" "time" // Case 120 | "y2dtics" // Case 121 | "y2label" SetXLabelSpecOpt // Case 122 | "y2mtics" // Case 123 | "y2range" SetRangeSpec // Case 124 | "y2tics" SetXTicsSpecListOpt // Case 125 | "y2zeroaxis" SetZeroaxisSpecListOpt // Case 126 | "ydata" "time" // Case 127 | "ydtics" // Case 128 | "ylabel" SetXLabelSpecOpt // Case 129 | "ymtics" // Case 130 | "yrange" SetRangeSpec // Case 131 | "ytics" SetXTicsSpecListOpt // Case 132 | "yzeroaxis" SetZeroaxisSpecListOpt // Case 133 | "zdata" "time" // Case 134 | "zdtics" // Case 135 | "zero" Expression // Case 136 | "zeroaxis" SetZeroaxisSpecListOpt // Case 137 | "zlabel" SetXLabelSpecOpt // Case 138 | "zmtics" // Case 139 | "zrange" SetRangeSpec // Case 140 | "ztics" SetXTicsSpecListOpt // Case 141 | "zzeroaxis" SetZeroaxisSpecListOpt // Case 142
Example ¶
fmt.Println(exampleAST(534, "set angle degrees"))
Output: &plot.SetSpec{ · SetAnglesSpec: &plot.SetAnglesSpec{ · · Token: example534.go:1:11: IDENTIFIER "degrees", · }, · Token: example534.go:1:5: IDENTIFIER "angle", }
Example (Case001) ¶
fmt.Println(exampleAST(535, "set angles degrees"))
Output: &plot.SetSpec{ · Case: 1, · SetAnglesSpec: &plot.SetAnglesSpec{ · · Token: example535.go:1:12: IDENTIFIER "degrees", · }, · Token: example535.go:1:5: IDENTIFIER "angles", }
Example (Case002) ¶
fmt.Println(exampleAST(536, "set arrow arrowstyle"))
Output: &plot.SetSpec{ · Case: 2, · SetArrowSpec: &plot.SetArrowSpec{ · · SetArrowSpecList: &plot.SetArrowSpecList{ · · · SetArrowSpecListItem: &plot.SetArrowSpecListItem{ · · · · Case: 17, · · · · Token: example536.go:1:11: IDENTIFIER "arrowstyle", · · · }, · · }, · }, · Token: example536.go:1:5: IDENTIFIER "arrow", }
Example (Case003) ¶
fmt.Println(exampleAST(537, "set auto"))
Output: &plot.SetSpec{ · Case: 3, · Token: example537.go:1:5: IDENTIFIER "auto", }
Example (Case004) ¶
fmt.Println(exampleAST(538, "set autoscale"))
Output: &plot.SetSpec{ · Case: 4, · Token: example538.go:1:5: IDENTIFIER "autoscale", }
Example (Case005) ¶
fmt.Println(exampleAST(539, "set bars"))
Output: &plot.SetSpec{ · Case: 5, · Token: example539.go:1:5: IDENTIFIER "bars", }
Example (Case006) ¶
fmt.Println(exampleAST(540, "set bmargin"))
Output: &plot.SetSpec{ · Case: 6, · Token: example540.go:1:5: IDENTIFIER "bmargin", }
Example (Case007) ¶
fmt.Println(exampleAST(541, "set border"))
Output: &plot.SetSpec{ · Case: 7, · Token: example541.go:1:5: IDENTIFIER "border", }
Example (Case008) ¶
fmt.Println(exampleAST(542, "set boxwidth ident_a"))
Output: &plot.SetSpec{ · Case: 8, · SetBoxwidthSpec: &plot.SetBoxwidthSpec{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example542.go:1:14: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example542.go:1:5: IDENTIFIER "boxwidth", }
Example (Case009) ¶
fmt.Println(exampleAST(543, "set cbdata time"))
Output: &plot.SetSpec{ · Case: 9, · Token: example543.go:1:5: IDENTIFIER "cbdata", · Token2: example543.go:1:12: IDENTIFIER "time", }
Example (Case010) ¶
fmt.Println(exampleAST(544, "set cbdtics"))
Output: &plot.SetSpec{ · Case: 10, · Token: example544.go:1:5: IDENTIFIER "cbdtics", }
Example (Case011) ¶
fmt.Println(exampleAST(545, "set cblabel"))
Output: &plot.SetSpec{ · Case: 11, · Token: example545.go:1:5: IDENTIFIER "cblabel", }
Example (Case012) ¶
fmt.Println(exampleAST(546, "set cbmtics"))
Output: &plot.SetSpec{ · Case: 12, · Token: example546.go:1:5: IDENTIFIER "cbmtics", }
Example (Case013) ¶
fmt.Println(exampleAST(547, "set cbrange restore"))
Output: &plot.SetSpec{ · Case: 13, · SetRangeSpec: &plot.SetRangeSpec{ · · Case: 1, · · Token: example547.go:1:13: IDENTIFIER "restore", · }, · Token: example547.go:1:5: IDENTIFIER "cbrange", }
Example (Case014) ¶
fmt.Println(exampleAST(548, "set cbtics"))
Output: &plot.SetSpec{ · Case: 14, · Token: example548.go:1:5: IDENTIFIER "cbtics", }
Example (Case015) ¶
fmt.Println(exampleAST(549, "set clabel ident_a"))
Output: &plot.SetSpec{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example549.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example549.go:1:5: IDENTIFIER "clabel", }
Example (Case016) ¶
fmt.Println(exampleAST(550, "set clip"))
Output: &plot.SetSpec{ · Case: 16, · Token: example550.go:1:5: IDENTIFIER "clip", }
Example (Case017) ¶
fmt.Println(exampleAST(551, "set cntrlabel onecolor"))
Output: &plot.SetSpec{ · Case: 17, · SetCntrlabelSpecList: &plot.SetCntrlabelSpecList{ · · SetCntrlabelSpecListItem: &plot.SetCntrlabelSpecListItem{ · · · Case: 4, · · · Token: example551.go:1:15: IDENTIFIER "onecolor", · · }, · }, · Token: example551.go:1:5: IDENTIFIER "cntrlabel", }
Example (Case018) ¶
fmt.Println(exampleAST(552, "set cntrp bspline"))
Output: &plot.SetSpec{ · Case: 18, · SetCntrparamSpecList: &plot.SetCntrparamSpecList{ · · SetCntrparamSpecListItem: &plot.SetCntrparamSpecListItem{ · · · Case: 2, · · · Token: example552.go:1:11: IDENTIFIER "bspline", · · }, · }, · Token: example552.go:1:5: IDENTIFIER "cntrp", }
Example (Case019) ¶
fmt.Println(exampleAST(553, "set cntrparam bspline"))
Output: &plot.SetSpec{ · Case: 19, · SetCntrparamSpecList: &plot.SetCntrparamSpecList{ · · SetCntrparamSpecListItem: &plot.SetCntrparamSpecListItem{ · · · Case: 2, · · · Token: example553.go:1:15: IDENTIFIER "bspline", · · }, · }, · Token: example553.go:1:5: IDENTIFIER "cntrparam", }
Example (Case020) ¶
fmt.Println(exampleAST(554, "set colorbox"))
Output: &plot.SetSpec{ · Case: 20, · Token: example554.go:1:5: IDENTIFIER "colorbox", }
Example (Case021) ¶
fmt.Println(exampleAST(555, "set colorsequence"))
Output: &plot.SetSpec{ · Case: 21, · Token: example555.go:1:5: IDENTIFIER "colorsequence", }
Example (Case022) ¶
fmt.Println(exampleAST(556, "set contour"))
Output: &plot.SetSpec{ · Case: 22, · Token: example556.go:1:5: IDENTIFIER "contour", }
Example (Case023) ¶
fmt.Println(exampleAST(557, "set dashtype ident_a"))
Output: &plot.SetSpec{ · Case: 23, · DashTypeSpec: &plot.DashTypeSpec{ · · Case: 1, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example557.go:1:14: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example557.go:1:5: IDENTIFIER "dashtype", }
Example (Case024) ¶
fmt.Println(exampleAST(558, "set datafile binary"))
Output: &plot.SetSpec{ · Case: 24, · SetDatafileSpec: &plot.SetDatafileSpec{ · · Case: 7, · · Token: example558.go:1:14: IDENTIFIER "binary", · }, · Token: example558.go:1:5: IDENTIFIER "datafile", }
Example (Case025) ¶
fmt.Println(exampleAST(559, "set decimalsign"))
Output: &plot.SetSpec{ · Case: 25, · Token: example559.go:1:5: IDENTIFIER "decimalsign", }
Example (Case026) ¶
fmt.Println(exampleAST(560, "set dgrid3d"))
Output: &plot.SetSpec{ · Case: 26, · Token: example560.go:1:5: IDENTIFIER "dgrid3d", }
Example (Case027) ¶
fmt.Println(exampleAST(561, "set dummy"))
Output: &plot.SetSpec{ · Case: 27, · Token: example561.go:1:5: IDENTIFIER "dummy", }
Example (Case028) ¶
fmt.Println(exampleAST(562, "set encoding ident_a"))
Output: &plot.SetSpec{ · Case: 28, · SetEncodingSpec: &plot.SetEncodingSpec{ · · Case: 18, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example562.go:1:14: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example562.go:1:5: IDENTIFIER "encoding", }
Example (Case029) ¶
fmt.Println(exampleAST(563, "set fit brief"))
Output: &plot.SetSpec{ · Case: 29, · SetFitSpecList: &plot.SetFitSpecList{ · · SetFitSpecListItem: &plot.SetFitSpecListItem{ · · · Case: 6, · · · Token: example563.go:1:9: IDENTIFIER "brief", · · }, · }, · Token: example563.go:1:5: IDENTIFIER "fit", }
Example (Case030) ¶
fmt.Println(exampleAST(564, "set fontpath"))
Output: &plot.SetSpec{ · Case: 30, · Token: example564.go:1:5: IDENTIFIER "fontpath", }
Example (Case031) ¶
fmt.Println(exampleAST(565, "set format"))
Output: &plot.SetSpec{ · Case: 31, · Token: example565.go:1:5: IDENTIFIER "format", }
Example (Case032) ¶
fmt.Println(exampleAST(566, "set grid"))
Output: &plot.SetSpec{ · Case: 32, · Token: example566.go:1:5: IDENTIFIER "grid", }
Example (Case033) ¶
fmt.Println(exampleAST(567, "set hidden3d"))
Output: &plot.SetSpec{ · Case: 33, · Token: example567.go:1:5: IDENTIFIER "hidden3d", }
Example (Case034) ¶
fmt.Println(exampleAST(568, "set history"))
Output: &plot.SetSpec{ · Case: 34, · Token: example568.go:1:5: IDENTIFIER "history", }
Example (Case035) ¶
fmt.Println(exampleAST(569, "set iso ident_a"))
Output: &plot.SetSpec{ · Case: 35, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example569.go:1:9: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example569.go:1:5: IDENTIFIER "iso", }
Example (Case036) ¶
fmt.Println(exampleAST(570, "set isosamples ident_a"))
Output: &plot.SetSpec{ · Case: 36, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example570.go:1:16: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example570.go:1:5: IDENTIFIER "isosamples", }
Example (Case037) ¶
fmt.Println(exampleAST(571, "set key"))
Output: &plot.SetSpec{ · Case: 37, · Token: example571.go:1:5: IDENTIFIER "key", }
Example (Case038) ¶
fmt.Println(exampleAST(572, "set label 1 'foo'"))
Output: &plot.SetSpec{ · Case: 38, · SetLabelSpec: &plot.SetLabelSpec{ · · ExpressionOpt: &plot.ExpressionOpt{ · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 2, · · · · · · · Token: example572.go:1:11: NUM_LIT "1", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · · SetLabelSpecList: &plot.SetLabelSpecList{ · · · SetLabelSpecListItem: &plot.SetLabelSpecListItem{ · · · · SimpleExpression: &plot.SimpleExpression{ · · · · · Case: 24, · · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · · Operand: &plot.Operand{ · · · · · · · · Case: 3, · · · · · · · · Token: example572.go:1:13: STRING_LIT "foo", · · · · · · · }, · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example572.go:1:5: IDENTIFIER "label", }
Example (Case039) ¶
fmt.Println(exampleAST(573, "set linetype ident_a nocontours"))
Output: &plot.SetSpec{ · Case: 39, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example573.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · LineStyleList: &plot.LineStyleList{ · · LineStyleListItem: &plot.LineStyleListItem{ · · · Case: 15, · · · Token: example573.go:1:22: IDENTIFIER "nocontours", · · }, · }, · Token: example573.go:1:5: IDENTIFIER "linetype", }
Example (Case040) ¶
fmt.Println(exampleAST(574, "set link"))
Output: &plot.SetSpec{ · Case: 40, · Token: example574.go:1:5: IDENTIFIER "link", }
Example (Case041) ¶
fmt.Println(exampleAST(575, "set lmargin"))
Output: &plot.SetSpec{ · Case: 41, · Token: example575.go:1:5: IDENTIFIER "lmargin", }
Example (Case042) ¶
fmt.Println(exampleAST(576, "set loadpath"))
Output: &plot.SetSpec{ · Case: 42, · Token: example576.go:1:5: IDENTIFIER "loadpath", }
Example (Case043) ¶
fmt.Println(exampleAST(577, "set locale"))
Output: &plot.SetSpec{ · Case: 43, · Token: example577.go:1:5: IDENTIFIER "locale", }
Example (Case044) ¶
fmt.Println(exampleAST(578, "set locale ident_a"))
Output: &plot.SetSpec{ · Case: 44, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example578.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example578.go:1:5: IDENTIFIER "locale", }
Example (Case045) ¶
fmt.Println(exampleAST(579, "set log"))
Output: &plot.SetSpec{ · Case: 45, · Token: example579.go:1:5: IDENTIFIER "log", }
Example (Case046) ¶
fmt.Println(exampleAST(580, "set logscale"))
Output: &plot.SetSpec{ · Case: 46, · Token: example580.go:1:5: IDENTIFIER "logscale", }
Example (Case047) ¶
fmt.Println(exampleAST(581, "set macros"))
Output: &plot.SetSpec{ · Case: 47, · Token: example581.go:1:5: IDENTIFIER "macros", }
Example (Case048) ¶
fmt.Println(exampleAST(582, "set mapping cartesian"))
Output: &plot.SetSpec{ · Case: 48, · SetMappingSpec: &plot.SetMappingSpec{ · · Token: example582.go:1:13: IDENTIFIER "cartesian", · }, · Token: example582.go:1:5: IDENTIFIER "mapping", }
Example (Case049) ¶
fmt.Println(exampleAST(583, "set margins ident_a"))
Output: &plot.SetSpec{ · Case: 49, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example583.go:1:13: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example583.go:1:5: IDENTIFIER "margins", }
Example (Case050) ¶
fmt.Println(exampleAST(584, "set mcbtics"))
Output: &plot.SetSpec{ · Case: 50, · Token: example584.go:1:5: IDENTIFIER "mcbtics", }
Example (Case051) ¶
fmt.Println(exampleAST(585, "set mono"))
Output: &plot.SetSpec{ · Case: 51, · Token: example585.go:1:5: IDENTIFIER "mono", }
Example (Case052) ¶
fmt.Println(exampleAST(586, "set monochrome"))
Output: &plot.SetSpec{ · Case: 52, · Token: example586.go:1:5: IDENTIFIER "monochrome", }
Example (Case053) ¶
fmt.Println(exampleAST(587, "set mouse"))
Output: &plot.SetSpec{ · Case: 53, · Token: example587.go:1:5: IDENTIFIER "mouse", }
Example (Case054) ¶
fmt.Println(exampleAST(588, "set multiplot"))
Output: &plot.SetSpec{ · Case: 54, · Token: example588.go:1:5: IDENTIFIER "multiplot", }
Example (Case055) ¶
fmt.Println(exampleAST(589, "set mx2tics"))
Output: &plot.SetSpec{ · Case: 55, · Token: example589.go:1:5: IDENTIFIER "mx2tics", }
Example (Case056) ¶
fmt.Println(exampleAST(590, "set mxtics"))
Output: &plot.SetSpec{ · Case: 56, · Token: example590.go:1:5: IDENTIFIER "mxtics", }
Example (Case057) ¶
fmt.Println(exampleAST(591, "set my2tics"))
Output: &plot.SetSpec{ · Case: 57, · Token: example591.go:1:5: IDENTIFIER "my2tics", }
Example (Case058) ¶
fmt.Println(exampleAST(592, "set mytics"))
Output: &plot.SetSpec{ · Case: 58, · Token: example592.go:1:5: IDENTIFIER "mytics", }
Example (Case059) ¶
fmt.Println(exampleAST(593, "set mztics"))
Output: &plot.SetSpec{ · Case: 59, · Token: example593.go:1:5: IDENTIFIER "mztics", }
Example (Case060) ¶
fmt.Println(exampleAST(594, "set noxtics"))
Output: &plot.SetSpec{ · Case: 60, · Token: example594.go:1:5: IDENTIFIER "noxtics", }
Example (Case061) ¶
fmt.Println(exampleAST(595, "set noytics"))
Output: &plot.SetSpec{ · Case: 61, · Token: example595.go:1:5: IDENTIFIER "noytics", }
Example (Case062) ¶
fmt.Println(exampleAST(596, "set object ident_a back"))
Output: &plot.SetSpec{ · Case: 62, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example596.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SetObjectSpecList: &plot.SetObjectSpecList{ · · SetObjectSpecListItem: &plot.SetObjectSpecListItem{ · · · Case: 1, · · · Token: example596.go:1:20: IDENTIFIER "back", · · }, · }, · Token: example596.go:1:5: IDENTIFIER "object", }
Example (Case063) ¶
fmt.Println(exampleAST(597, "set offset"))
Output: &plot.SetSpec{ · Case: 63, · Token: example597.go:1:5: IDENTIFIER "offset", }
Example (Case064) ¶
fmt.Println(exampleAST(598, "set offsets"))
Output: &plot.SetSpec{ · Case: 64, · Token: example598.go:1:5: IDENTIFIER "offsets", }
Example (Case065) ¶
fmt.Println(exampleAST(599, "set origin ident_a , ident_b"))
Output: &plot.SetSpec{ · Case: 65, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example599.go:1:12: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example599.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example599.go:1:5: IDENTIFIER "origin", · Token2: example599.go:1:20: ',' ",", }
Example (Case066) ¶
fmt.Println(exampleAST(600, "set output"))
Output: &plot.SetSpec{ · Case: 66, · Token: example600.go:1:5: IDENTIFIER "output", }
Example (Case067) ¶
fmt.Println(exampleAST(601, "set pal"))
Output: &plot.SetSpec{ · Case: 67, · Token: example601.go:1:5: IDENTIFIER "pal", }
Example (Case068) ¶
fmt.Println(exampleAST(602, "set palette"))
Output: &plot.SetSpec{ · Case: 68, · Token: example602.go:1:5: IDENTIFIER "palette", }
Example (Case069) ¶
fmt.Println(exampleAST(603, "set para"))
Output: &plot.SetSpec{ · Case: 69, · Token: example603.go:1:5: IDENTIFIER "para", }
Example (Case070) ¶
fmt.Println(exampleAST(604, "set parametric"))
Output: &plot.SetSpec{ · Case: 70, · Token: example604.go:1:5: IDENTIFIER "parametric", }
Example (Case071) ¶
fmt.Println(exampleAST(605, "set paxis ident_a"))
Output: &plot.SetSpec{ · Case: 71, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example605.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example605.go:1:5: IDENTIFIER "paxis", }
Example (Case072) ¶
fmt.Println(exampleAST(606, "set pm3d"))
Output: &plot.SetSpec{ · Case: 72, · Token: example606.go:1:5: IDENTIFIER "pm3d", }
Example (Case073) ¶
fmt.Println(exampleAST(607, "set pointintervalbox ident_a"))
Output: &plot.SetSpec{ · Case: 73, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example607.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example607.go:1:5: IDENTIFIER "pointintervalbox", }
Example (Case074) ¶
fmt.Println(exampleAST(608, "set pointsize ident_a"))
Output: &plot.SetSpec{ · Case: 74, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example608.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example608.go:1:5: IDENTIFIER "pointsize", }
Example (Case075) ¶
fmt.Println(exampleAST(609, "set polar"))
Output: &plot.SetSpec{ · Case: 75, · Token: example609.go:1:5: IDENTIFIER "polar", }
Example (Case076) ¶
fmt.Println(exampleAST(610, "set print"))
Output: &plot.SetSpec{ · Case: 76, · Token: example610.go:1:5: IDENTIFIER "print", }
Example (Case077) ¶
fmt.Println(exampleAST(611, "set psdir ident_a"))
Output: &plot.SetSpec{ · Case: 77, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example611.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example611.go:1:5: IDENTIFIER "psdir", }
Example (Case078) ¶
fmt.Println(exampleAST(612, "set raxis"))
Output: &plot.SetSpec{ · Case: 78, · Token: example612.go:1:5: IDENTIFIER "raxis", }
Example (Case079) ¶
fmt.Println(exampleAST(613, "set rmargin"))
Output: &plot.SetSpec{ · Case: 79, · Token: example613.go:1:5: IDENTIFIER "rmargin", }
Example (Case080) ¶
fmt.Println(exampleAST(614, "set rrange restore"))
Output: &plot.SetSpec{ · Case: 80, · SetRangeSpec: &plot.SetRangeSpec{ · · Case: 1, · · Token: example614.go:1:12: IDENTIFIER "restore", · }, · Token: example614.go:1:5: IDENTIFIER "rrange", }
Example (Case081) ¶
fmt.Println(exampleAST(615, "set rtics"))
Output: &plot.SetSpec{ · Case: 81, · Token: example615.go:1:5: IDENTIFIER "rtics", }
Example (Case082) ¶
fmt.Println(exampleAST(616, "set sam ident_a"))
Output: &plot.SetSpec{ · Case: 82, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example616.go:1:9: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example616.go:1:5: IDENTIFIER "sam", }
Example (Case083) ¶
fmt.Println(exampleAST(617, "set sample ident_a"))
Output: &plot.SetSpec{ · Case: 83, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example617.go:1:12: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example617.go:1:5: IDENTIFIER "sample", }
Example (Case084) ¶
fmt.Println(exampleAST(618, "set samples ident_a"))
Output: &plot.SetSpec{ · Case: 84, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example618.go:1:13: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example618.go:1:5: IDENTIFIER "samples", }
Example (Case085) ¶
fmt.Println(exampleAST(619, "set size noratio"))
Output: &plot.SetSpec{ · Case: 85, · SetSizeSpecList: &plot.SetSizeSpecList{ · · SetSizeSpecListItem: &plot.SetSizeSpecListItem{ · · · Case: 3, · · · Token: example619.go:1:10: IDENTIFIER "noratio", · · }, · }, · Token: example619.go:1:5: IDENTIFIER "size", }
Example (Case086) ¶
fmt.Println(exampleAST(620, "set style circle"))
Output: &plot.SetSpec{ · Case: 86, · SetStyleSpec: &plot.SetStyleSpec{ · · Case: 8, · · Token: example620.go:1:11: IDENTIFIER "circle", · }, · Token: example620.go:1:5: IDENTIFIER "style", }
Example (Case087) ¶
fmt.Println(exampleAST(621, "set surface"))
Output: &plot.SetSpec{ · Case: 87, · Token: example621.go:1:5: IDENTIFIER "surface", }
Example (Case088) ¶
fmt.Println(exampleAST(622, "set table"))
Output: &plot.SetSpec{ · Case: 88, · Token: example622.go:1:5: IDENTIFIER "table", }
Example (Case089) ¶
fmt.Println(exampleAST(623, "set term aifm"))
Output: &plot.SetSpec{ · Case: 89, · SetTerminalSpec: &plot.SetTerminalSpec{ · · SetTerminalInner: &plot.SetTerminalInner{ · · · Token: example623.go:1:10: IDENTIFIER "aifm", · · }, · }, · Token: example623.go:1:5: IDENTIFIER "term", }
Example (Case090) ¶
fmt.Println(exampleAST(624, "set terminal aifm"))
Output: &plot.SetSpec{ · Case: 90, · SetTerminalSpec: &plot.SetTerminalSpec{ · · SetTerminalInner: &plot.SetTerminalInner{ · · · Token: example624.go:1:14: IDENTIFIER "aifm", · · }, · }, · Token: example624.go:1:5: IDENTIFIER "terminal", }
Example (Case091) ¶
fmt.Println(exampleAST(625, "set termoption dash"))
Output: &plot.SetSpec{ · Case: 91, · SetTermoptionSpec: &plot.SetTermoptionSpec{ · · Case: 5, · · Token: example625.go:1:16: IDENTIFIER "dash", · }, · Token: example625.go:1:5: IDENTIFIER "termoption", }
Example (Case092) ¶
fmt.Println(exampleAST(626, "set tic"))
Output: &plot.SetSpec{ · Case: 92, · Token: example626.go:1:5: IDENTIFIER "tic", }
Example (Case093) ¶
fmt.Println(exampleAST(627, "set tics"))
Output: &plot.SetSpec{ · Case: 93, · Token: example627.go:1:5: IDENTIFIER "tics", }
Example (Case094) ¶
fmt.Println(exampleAST(628, "set ticslevel ident_a"))
Output: &plot.SetSpec{ · Case: 94, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example628.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example628.go:1:5: IDENTIFIER "ticslevel", }
Example (Case095) ¶
fmt.Println(exampleAST(629, "set time"))
Output: &plot.SetSpec{ · Case: 95, · Token: example629.go:1:5: IDENTIFIER "time", }
Example (Case096) ¶
fmt.Println(exampleAST(630, "set timefmt ident_a"))
Output: &plot.SetSpec{ · Case: 96, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example630.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example630.go:1:5: IDENTIFIER "timefmt", }
Example (Case097) ¶
fmt.Println(exampleAST(631, "set timestamp"))
Output: &plot.SetSpec{ · Case: 97, · Token: example631.go:1:5: IDENTIFIER "timestamp", }
Example (Case098) ¶
fmt.Println(exampleAST(632, "set title"))
Output: &plot.SetSpec{ · Case: 98, · Token: example632.go:1:5: IDENTIFIER "title", }
Example (Case099) ¶
fmt.Println(exampleAST(633, "set tmargin"))
Output: &plot.SetSpec{ · Case: 99, · Token: example633.go:1:5: IDENTIFIER "tmargin", }
Example (Case100) ¶
fmt.Println(exampleAST(634, "set trange restore"))
Output: &plot.SetSpec{ · Case: 100, · SetRangeSpec: &plot.SetRangeSpec{ · · Case: 1, · · Token: example634.go:1:12: IDENTIFIER "restore", · }, · Token: example634.go:1:5: IDENTIFIER "trange", }
Example (Case101) ¶
fmt.Println(exampleAST(635, "set urange restore"))
Output: &plot.SetSpec{ · Case: 101, · SetRangeSpec: &plot.SetRangeSpec{ · · Case: 1, · · Token: example635.go:1:12: IDENTIFIER "restore", · }, · Token: example635.go:1:5: IDENTIFIER "urange", }
Example (Case102) ¶
fmt.Println(exampleAST(636, "set vi"))
Output: &plot.SetSpec{ · Case: 102, · Token: example636.go:1:5: IDENTIFIER "vi", }
Example (Case103) ¶
fmt.Println(exampleAST(637, "set view"))
Output: &plot.SetSpec{ · Case: 103, · Token: example637.go:1:5: IDENTIFIER "view", }
Example (Case104) ¶
fmt.Println(exampleAST(638, "set vrange restore"))
Output: &plot.SetSpec{ · Case: 104, · SetRangeSpec: &plot.SetRangeSpec{ · · Case: 1, · · Token: example638.go:1:12: IDENTIFIER "restore", · }, · Token: example638.go:1:5: IDENTIFIER "vrange", }
Example (Case105) ¶
fmt.Println(exampleAST(639, "set x2data time"))
Output: &plot.SetSpec{ · Case: 105, · Token: example639.go:1:5: IDENTIFIER "x2data", · Token2: example639.go:1:12: IDENTIFIER "time", }
Example (Case106) ¶
fmt.Println(exampleAST(640, "set x2dtics"))
Output: &plot.SetSpec{ · Case: 106, · Token: example640.go:1:5: IDENTIFIER "x2dtics", }
Example (Case107) ¶
fmt.Println(exampleAST(641, "set x2label"))
Output: &plot.SetSpec{ · Case: 107, · Token: example641.go:1:5: IDENTIFIER "x2label", }
Example (Case108) ¶
fmt.Println(exampleAST(642, "set x2mtics"))
Output: &plot.SetSpec{ · Case: 108, · Token: example642.go:1:5: IDENTIFIER "x2mtics", }
Example (Case109) ¶
fmt.Println(exampleAST(643, "set x2range restore"))
Output: &plot.SetSpec{ · Case: 109, · SetRangeSpec: &plot.SetRangeSpec{ · · Case: 1, · · Token: example643.go:1:13: IDENTIFIER "restore", · }, · Token: example643.go:1:5: IDENTIFIER "x2range", }
Example (Case110) ¶
fmt.Println(exampleAST(644, "set x2tics"))
Output: &plot.SetSpec{ · Case: 110, · Token: example644.go:1:5: IDENTIFIER "x2tics", }
Example (Case111) ¶
fmt.Println(exampleAST(645, "set x2zeroaxis"))
Output: &plot.SetSpec{ · Case: 111, · Token: example645.go:1:5: IDENTIFIER "x2zeroaxis", }
Example (Case112) ¶
fmt.Println(exampleAST(646, "set xdata time"))
Output: &plot.SetSpec{ · Case: 112, · Token: example646.go:1:5: IDENTIFIER "xdata", · Token2: example646.go:1:11: IDENTIFIER "time", }
Example (Case113) ¶
fmt.Println(exampleAST(647, "set xdtics"))
Output: &plot.SetSpec{ · Case: 113, · Token: example647.go:1:5: IDENTIFIER "xdtics", }
Example (Case114) ¶
fmt.Println(exampleAST(648, "set xlabel"))
Output: &plot.SetSpec{ · Case: 114, · Token: example648.go:1:5: IDENTIFIER "xlabel", }
Example (Case115) ¶
fmt.Println(exampleAST(649, "set xmtics"))
Output: &plot.SetSpec{ · Case: 115, · Token: example649.go:1:5: IDENTIFIER "xmtics", }
Example (Case116) ¶
fmt.Println(exampleAST(650, "set xrange restore"))
Output: &plot.SetSpec{ · Case: 116, · SetRangeSpec: &plot.SetRangeSpec{ · · Case: 1, · · Token: example650.go:1:12: IDENTIFIER "restore", · }, · Token: example650.go:1:5: IDENTIFIER "xrange", }
Example (Case117) ¶
fmt.Println(exampleAST(651, "set xtics"))
Output: &plot.SetSpec{ · Case: 117, · Token: example651.go:1:5: IDENTIFIER "xtics", }
Example (Case118) ¶
fmt.Println(exampleAST(652, "set xyplane ident_a"))
Output: &plot.SetSpec{ · Case: 118, · SetXyplaneSpec: &plot.SetXyplaneSpec{ · · Case: 2, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example652.go:1:13: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example652.go:1:5: IDENTIFIER "xyplane", }
Example (Case119) ¶
fmt.Println(exampleAST(653, "set xzeroaxis"))
Output: &plot.SetSpec{ · Case: 119, · Token: example653.go:1:5: IDENTIFIER "xzeroaxis", }
Example (Case120) ¶
fmt.Println(exampleAST(654, "set y2data time"))
Output: &plot.SetSpec{ · Case: 120, · Token: example654.go:1:5: IDENTIFIER "y2data", · Token2: example654.go:1:12: IDENTIFIER "time", }
Example (Case121) ¶
fmt.Println(exampleAST(655, "set y2dtics"))
Output: &plot.SetSpec{ · Case: 121, · Token: example655.go:1:5: IDENTIFIER "y2dtics", }
Example (Case122) ¶
fmt.Println(exampleAST(656, "set y2label"))
Output: &plot.SetSpec{ · Case: 122, · Token: example656.go:1:5: IDENTIFIER "y2label", }
Example (Case123) ¶
fmt.Println(exampleAST(657, "set y2mtics"))
Output: &plot.SetSpec{ · Case: 123, · Token: example657.go:1:5: IDENTIFIER "y2mtics", }
Example (Case124) ¶
fmt.Println(exampleAST(658, "set y2range restore"))
Output: &plot.SetSpec{ · Case: 124, · SetRangeSpec: &plot.SetRangeSpec{ · · Case: 1, · · Token: example658.go:1:13: IDENTIFIER "restore", · }, · Token: example658.go:1:5: IDENTIFIER "y2range", }
Example (Case125) ¶
fmt.Println(exampleAST(659, "set y2tics"))
Output: &plot.SetSpec{ · Case: 125, · Token: example659.go:1:5: IDENTIFIER "y2tics", }
Example (Case126) ¶
fmt.Println(exampleAST(660, "set y2zeroaxis"))
Output: &plot.SetSpec{ · Case: 126, · Token: example660.go:1:5: IDENTIFIER "y2zeroaxis", }
Example (Case127) ¶
fmt.Println(exampleAST(661, "set ydata time"))
Output: &plot.SetSpec{ · Case: 127, · Token: example661.go:1:5: IDENTIFIER "ydata", · Token2: example661.go:1:11: IDENTIFIER "time", }
Example (Case128) ¶
fmt.Println(exampleAST(662, "set ydtics"))
Output: &plot.SetSpec{ · Case: 128, · Token: example662.go:1:5: IDENTIFIER "ydtics", }
Example (Case129) ¶
fmt.Println(exampleAST(663, "set ylabel"))
Output: &plot.SetSpec{ · Case: 129, · Token: example663.go:1:5: IDENTIFIER "ylabel", }
Example (Case130) ¶
fmt.Println(exampleAST(664, "set ymtics"))
Output: &plot.SetSpec{ · Case: 130, · Token: example664.go:1:5: IDENTIFIER "ymtics", }
Example (Case131) ¶
fmt.Println(exampleAST(665, "set yrange restore"))
Output: &plot.SetSpec{ · Case: 131, · SetRangeSpec: &plot.SetRangeSpec{ · · Case: 1, · · Token: example665.go:1:12: IDENTIFIER "restore", · }, · Token: example665.go:1:5: IDENTIFIER "yrange", }
Example (Case132) ¶
fmt.Println(exampleAST(666, "set ytics"))
Output: &plot.SetSpec{ · Case: 132, · Token: example666.go:1:5: IDENTIFIER "ytics", }
Example (Case133) ¶
fmt.Println(exampleAST(667, "set yzeroaxis"))
Output: &plot.SetSpec{ · Case: 133, · Token: example667.go:1:5: IDENTIFIER "yzeroaxis", }
Example (Case134) ¶
fmt.Println(exampleAST(668, "set zdata time"))
Output: &plot.SetSpec{ · Case: 134, · Token: example668.go:1:5: IDENTIFIER "zdata", · Token2: example668.go:1:11: IDENTIFIER "time", }
Example (Case135) ¶
fmt.Println(exampleAST(669, "set zdtics"))
Output: &plot.SetSpec{ · Case: 135, · Token: example669.go:1:5: IDENTIFIER "zdtics", }
Example (Case136) ¶
fmt.Println(exampleAST(670, "set zero ident_a"))
Output: &plot.SetSpec{ · Case: 136, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example670.go:1:10: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example670.go:1:5: IDENTIFIER "zero", }
Example (Case137) ¶
fmt.Println(exampleAST(671, "set zeroaxis"))
Output: &plot.SetSpec{ · Case: 137, · Token: example671.go:1:5: IDENTIFIER "zeroaxis", }
Example (Case138) ¶
fmt.Println(exampleAST(672, "set zlabel"))
Output: &plot.SetSpec{ · Case: 138, · Token: example672.go:1:5: IDENTIFIER "zlabel", }
Example (Case139) ¶
fmt.Println(exampleAST(673, "set zmtics"))
Output: &plot.SetSpec{ · Case: 139, · Token: example673.go:1:5: IDENTIFIER "zmtics", }
Example (Case140) ¶
fmt.Println(exampleAST(674, "set zrange restore"))
Output: &plot.SetSpec{ · Case: 140, · SetRangeSpec: &plot.SetRangeSpec{ · · Case: 1, · · Token: example674.go:1:12: IDENTIFIER "restore", · }, · Token: example674.go:1:5: IDENTIFIER "zrange", }
Example (Case141) ¶
fmt.Println(exampleAST(675, "set ztics"))
Output: &plot.SetSpec{ · Case: 141, · Token: example675.go:1:5: IDENTIFIER "ztics", }
Example (Case142) ¶
fmt.Println(exampleAST(676, "set zzeroaxis"))
Output: &plot.SetSpec{ · Case: 142, · Token: example676.go:1:5: IDENTIFIER "zzeroaxis", }
type SetStyleBoxplotSpecList ¶
type SetStyleBoxplotSpecList struct { Case int SetStyleBoxplotSpecList *SetStyleBoxplotSpecList SetStyleBoxplotSpecListItem *SetStyleBoxplotSpecListItem }
SetStyleBoxplotSpecList represents data reduced by productions:
SetStyleBoxplotSpecList: SetStyleBoxplotSpecListItem | SetStyleBoxplotSpecList SetStyleBoxplotSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1282, "set style boxplot candlesticks"))
Output: &plot.SetStyleBoxplotSpecList{ · SetStyleBoxplotSpecListItem: &plot.SetStyleBoxplotSpecListItem{ · · Case: 5, · · Token: example1282.go:1:19: IDENTIFIER "candlesticks", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1283, "set style boxplot candlesticks candlesticks"))
Output: &plot.SetStyleBoxplotSpecList{ · SetStyleBoxplotSpecList: &plot.SetStyleBoxplotSpecList{ · · Case: 1, · · SetStyleBoxplotSpecListItem: &plot.SetStyleBoxplotSpecListItem{ · · · Case: 5, · · · Token: example1283.go:1:32: IDENTIFIER "candlesticks", · · }, · }, · SetStyleBoxplotSpecListItem: &plot.SetStyleBoxplotSpecListItem{ · · Case: 5, · · Token: example1283.go:1:19: IDENTIFIER "candlesticks", · }, }
func (*SetStyleBoxplotSpecList) Pos ¶
func (n *SetStyleBoxplotSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleBoxplotSpecList) String ¶
func (n *SetStyleBoxplotSpecList) String() string
String implements fmt.Stringer.
type SetStyleBoxplotSpecListItem ¶
type SetStyleBoxplotSpecListItem struct { Case int Expression *Expression Token xc.Token Token2 xc.Token }
SetStyleBoxplotSpecListItem represents data reduced by productions:
SetStyleBoxplotSpecListItem: "range" Expression | "fraction" Expression // Case 1 | "outliers" // Case 2 | "nooutliers" // Case 3 | "pointtype" Expression // Case 4 | "candlesticks" // Case 5 | "financebars" // Case 6 | "separation" Expression // Case 7 | "labels" "off" // Case 8 | "labels" "auto" // Case 9 | "labels" "x" // Case 10 | "labels" "x2" // Case 11 | "sorted" // Case 12 | "unsorted" // Case 13
Example ¶
fmt.Println(exampleAST(1284, "set style boxplot range ident_a"))
Output: &plot.SetStyleBoxplotSpecListItem{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1284.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1284.go:1:19: IDENTIFIER "range", }
Example (Case01) ¶
fmt.Println(exampleAST(1285, "set style boxplot fraction ident_a"))
Output: &plot.SetStyleBoxplotSpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1285.go:1:28: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1285.go:1:19: IDENTIFIER "fraction", }
Example (Case02) ¶
fmt.Println(exampleAST(1286, "set style boxplot outliers"))
Output: &plot.SetStyleBoxplotSpecListItem{ · Case: 2, · Token: example1286.go:1:19: IDENTIFIER "outliers", }
Example (Case03) ¶
fmt.Println(exampleAST(1287, "set style boxplot nooutliers"))
Output: &plot.SetStyleBoxplotSpecListItem{ · Case: 3, · Token: example1287.go:1:19: IDENTIFIER "nooutliers", }
Example (Case04) ¶
fmt.Println(exampleAST(1288, "set style boxplot pointtype ident_a"))
Output: &plot.SetStyleBoxplotSpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1288.go:1:29: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1288.go:1:19: IDENTIFIER "pointtype", }
Example (Case05) ¶
fmt.Println(exampleAST(1289, "set style boxplot candlesticks"))
Output: &plot.SetStyleBoxplotSpecListItem{ · Case: 5, · Token: example1289.go:1:19: IDENTIFIER "candlesticks", }
Example (Case06) ¶
fmt.Println(exampleAST(1290, "set style boxplot financebars"))
Output: &plot.SetStyleBoxplotSpecListItem{ · Case: 6, · Token: example1290.go:1:19: IDENTIFIER "financebars", }
Example (Case07) ¶
fmt.Println(exampleAST(1291, "set style boxplot separation ident_a"))
Output: &plot.SetStyleBoxplotSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1291.go:1:30: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1291.go:1:19: IDENTIFIER "separation", }
Example (Case08) ¶
fmt.Println(exampleAST(1292, "set style boxplot labels off"))
Output: &plot.SetStyleBoxplotSpecListItem{ · Case: 8, · Token: example1292.go:1:19: IDENTIFIER "labels", · Token2: example1292.go:1:26: IDENTIFIER "off", }
Example (Case09) ¶
fmt.Println(exampleAST(1293, "set style boxplot labels auto"))
Output: &plot.SetStyleBoxplotSpecListItem{ · Case: 9, · Token: example1293.go:1:19: IDENTIFIER "labels", · Token2: example1293.go:1:26: IDENTIFIER "auto", }
Example (Case10) ¶
fmt.Println(exampleAST(1294, "set style boxplot labels x"))
Output: &plot.SetStyleBoxplotSpecListItem{ · Case: 10, · Token: example1294.go:1:19: IDENTIFIER "labels", · Token2: example1294.go:1:26: IDENTIFIER "x", }
Example (Case11) ¶
fmt.Println(exampleAST(1295, "set style boxplot labels x2"))
Output: &plot.SetStyleBoxplotSpecListItem{ · Case: 11, · Token: example1295.go:1:19: IDENTIFIER "labels", · Token2: example1295.go:1:26: IDENTIFIER "x2", }
Example (Case12) ¶
fmt.Println(exampleAST(1296, "set style boxplot sorted"))
Output: &plot.SetStyleBoxplotSpecListItem{ · Case: 12, · Token: example1296.go:1:19: IDENTIFIER "sorted", }
Example (Case13) ¶
fmt.Println(exampleAST(1297, "set style boxplot unsorted"))
Output: &plot.SetStyleBoxplotSpecListItem{ · Case: 13, · Token: example1297.go:1:19: IDENTIFIER "unsorted", }
func (*SetStyleBoxplotSpecListItem) Pos ¶
func (n *SetStyleBoxplotSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleBoxplotSpecListItem) String ¶
func (n *SetStyleBoxplotSpecListItem) String() string
String implements fmt.Stringer.
type SetStyleCircleSpecList ¶
type SetStyleCircleSpecList struct { Case int SetStyleCircleSpecList *SetStyleCircleSpecList SetStyleCircleSpecListItem *SetStyleCircleSpecListItem }
SetStyleCircleSpecList represents data reduced by productions:
SetStyleCircleSpecList: SetStyleCircleSpecListItem | SetStyleCircleSpecList SetStyleCircleSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1328, "set style circle clip"))
Output: &plot.SetStyleCircleSpecList{ · SetStyleCircleSpecListItem: &plot.SetStyleCircleSpecListItem{ · · Case: 3, · · Token: example1328.go:1:18: IDENTIFIER "clip", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1329, "set style circle clip clip"))
Output: &plot.SetStyleCircleSpecList{ · SetStyleCircleSpecList: &plot.SetStyleCircleSpecList{ · · Case: 1, · · SetStyleCircleSpecListItem: &plot.SetStyleCircleSpecListItem{ · · · Case: 3, · · · Token: example1329.go:1:23: IDENTIFIER "clip", · · }, · }, · SetStyleCircleSpecListItem: &plot.SetStyleCircleSpecListItem{ · · Case: 3, · · Token: example1329.go:1:18: IDENTIFIER "clip", · }, }
func (*SetStyleCircleSpecList) Pos ¶
func (n *SetStyleCircleSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleCircleSpecList) String ¶
func (n *SetStyleCircleSpecList) String() string
String implements fmt.Stringer.
type SetStyleCircleSpecListItem ¶
SetStyleCircleSpecListItem represents data reduced by productions:
SetStyleCircleSpecListItem: "radius" Position | "wedge" // Case 1 | "nowedge" // Case 2 | "clip" // Case 3 | "noclip" // Case 4
Example ¶
fmt.Println(exampleAST(1330, "set style circle radius ident_a"))
Output: &plot.SetStyleCircleSpecListItem{ · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1330.go:1:25: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1330.go:1:18: IDENTIFIER "radius", }
Example (Case1) ¶
fmt.Println(exampleAST(1331, "set style circle wedge"))
Output: &plot.SetStyleCircleSpecListItem{ · Case: 1, · Token: example1331.go:1:18: IDENTIFIER "wedge", }
Example (Case2) ¶
fmt.Println(exampleAST(1332, "set style circle nowedge"))
Output: &plot.SetStyleCircleSpecListItem{ · Case: 2, · Token: example1332.go:1:18: IDENTIFIER "nowedge", }
Example (Case3) ¶
fmt.Println(exampleAST(1333, "set style circle clip"))
Output: &plot.SetStyleCircleSpecListItem{ · Case: 3, · Token: example1333.go:1:18: IDENTIFIER "clip", }
Example (Case4) ¶
fmt.Println(exampleAST(1334, "set style circle noclip"))
Output: &plot.SetStyleCircleSpecListItem{ · Case: 4, · Token: example1334.go:1:18: IDENTIFIER "noclip", }
func (*SetStyleCircleSpecListItem) Pos ¶
func (n *SetStyleCircleSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleCircleSpecListItem) String ¶
func (n *SetStyleCircleSpecListItem) String() string
String implements fmt.Stringer.
type SetStyleCircleSpecListOpt ¶
type SetStyleCircleSpecListOpt struct {
SetStyleCircleSpecList *SetStyleCircleSpecList
}
SetStyleCircleSpecListOpt represents data reduced by productions:
SetStyleCircleSpecListOpt: /* empty */ | SetStyleCircleSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1335, "set style circle") == (*SetStyleCircleSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1336, "set style circle clip"))
Output: &plot.SetStyleCircleSpecListOpt{ · SetStyleCircleSpecList: &plot.SetStyleCircleSpecList{ · · SetStyleCircleSpecListItem: &plot.SetStyleCircleSpecListItem{ · · · Case: 3, · · · Token: example1336.go:1:18: IDENTIFIER "clip", · · }, · }, }
func (*SetStyleCircleSpecListOpt) Pos ¶
func (n *SetStyleCircleSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleCircleSpecListOpt) String ¶
func (n *SetStyleCircleSpecListOpt) String() string
String implements fmt.Stringer.
type SetStyleEllipseSpecList ¶
type SetStyleEllipseSpecList struct { Case int SetStyleEllipseSpecList *SetStyleEllipseSpecList SetStyleEllipseSpecListItem *SetStyleEllipseSpecListItem }
SetStyleEllipseSpecList represents data reduced by productions:
SetStyleEllipseSpecList: SetStyleEllipseSpecListItem | SetStyleEllipseSpecList SetStyleEllipseSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1337, "set style ellipse clip"))
Output: &plot.SetStyleEllipseSpecList{ · SetStyleEllipseSpecListItem: &plot.SetStyleEllipseSpecListItem{ · · Case: 5, · · Token: example1337.go:1:19: IDENTIFIER "clip", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1338, "set style ellipse clip clip"))
Output: &plot.SetStyleEllipseSpecList{ · SetStyleEllipseSpecList: &plot.SetStyleEllipseSpecList{ · · Case: 1, · · SetStyleEllipseSpecListItem: &plot.SetStyleEllipseSpecListItem{ · · · Case: 5, · · · Token: example1338.go:1:24: IDENTIFIER "clip", · · }, · }, · SetStyleEllipseSpecListItem: &plot.SetStyleEllipseSpecListItem{ · · Case: 5, · · Token: example1338.go:1:19: IDENTIFIER "clip", · }, }
func (*SetStyleEllipseSpecList) Pos ¶
func (n *SetStyleEllipseSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleEllipseSpecList) String ¶
func (n *SetStyleEllipseSpecList) String() string
String implements fmt.Stringer.
type SetStyleEllipseSpecListItem ¶
type SetStyleEllipseSpecListItem struct { Case int Expression *Expression Position *Position Token xc.Token Token2 xc.Token }
SetStyleEllipseSpecListItem represents data reduced by productions:
SetStyleEllipseSpecListItem: "units" "xx" | "units" "xy" // Case 1 | "units" "yy" // Case 2 | "size" Position // Case 3 | "angle" Expression // Case 4 | "clip" // Case 5 | "noclip" // Case 6
Example ¶
fmt.Println(exampleAST(1339, "set style ellipse units xx"))
Output: &plot.SetStyleEllipseSpecListItem{ · Token: example1339.go:1:19: IDENTIFIER "units", · Token2: example1339.go:1:25: IDENTIFIER "xx", }
Example (Case1) ¶
fmt.Println(exampleAST(1340, "set style ellipse units xy"))
Output: &plot.SetStyleEllipseSpecListItem{ · Case: 1, · Token: example1340.go:1:19: IDENTIFIER "units", · Token2: example1340.go:1:25: IDENTIFIER "xy", }
Example (Case2) ¶
fmt.Println(exampleAST(1341, "set style ellipse units yy"))
Output: &plot.SetStyleEllipseSpecListItem{ · Case: 2, · Token: example1341.go:1:19: IDENTIFIER "units", · Token2: example1341.go:1:25: IDENTIFIER "yy", }
Example (Case3) ¶
fmt.Println(exampleAST(1342, "set style ellipse size ident_a"))
Output: &plot.SetStyleEllipseSpecListItem{ · Case: 3, · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1342.go:1:24: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1342.go:1:19: IDENTIFIER "size", }
Example (Case4) ¶
fmt.Println(exampleAST(1343, "set style ellipse angle ident_a"))
Output: &plot.SetStyleEllipseSpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1343.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1343.go:1:19: IDENTIFIER "angle", }
Example (Case5) ¶
fmt.Println(exampleAST(1344, "set style ellipse clip"))
Output: &plot.SetStyleEllipseSpecListItem{ · Case: 5, · Token: example1344.go:1:19: IDENTIFIER "clip", }
Example (Case6) ¶
fmt.Println(exampleAST(1345, "set style ellipse noclip"))
Output: &plot.SetStyleEllipseSpecListItem{ · Case: 6, · Token: example1345.go:1:19: IDENTIFIER "noclip", }
func (*SetStyleEllipseSpecListItem) Pos ¶
func (n *SetStyleEllipseSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleEllipseSpecListItem) String ¶
func (n *SetStyleEllipseSpecListItem) String() string
String implements fmt.Stringer.
type SetStyleEllipseSpecListOpt ¶
type SetStyleEllipseSpecListOpt struct {
SetStyleEllipseSpecList *SetStyleEllipseSpecList
}
SetStyleEllipseSpecListOpt represents data reduced by productions:
SetStyleEllipseSpecListOpt: /* empty */ | SetStyleEllipseSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1346, "set style ellipse") == (*SetStyleEllipseSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1347, "set style ellipse clip"))
Output: &plot.SetStyleEllipseSpecListOpt{ · SetStyleEllipseSpecList: &plot.SetStyleEllipseSpecList{ · · SetStyleEllipseSpecListItem: &plot.SetStyleEllipseSpecListItem{ · · · Case: 5, · · · Token: example1347.go:1:19: IDENTIFIER "clip", · · }, · }, }
func (*SetStyleEllipseSpecListOpt) Pos ¶
func (n *SetStyleEllipseSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleEllipseSpecListOpt) String ¶
func (n *SetStyleEllipseSpecListOpt) String() string
String implements fmt.Stringer.
type SetStyleFillSpecList ¶
type SetStyleFillSpecList struct { Case int SetStyleFillSpecList *SetStyleFillSpecList SetStyleFillSpecListItem *SetStyleFillSpecListItem }
SetStyleFillSpecList represents data reduced by productions:
SetStyleFillSpecList: SetStyleFillSpecListItem | SetStyleFillSpecList SetStyleFillSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1298, "plot ident_a fill bo"))
Output: &plot.SetStyleFillSpecList{ · SetStyleFillSpecListItem: &plot.SetStyleFillSpecListItem{ · · Case: 5, · · Token: example1298.go:1:19: IDENTIFIER "bo", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1299, "plot ident_a fs bo bo"))
Output: &plot.SetStyleFillSpecList{ · SetStyleFillSpecList: &plot.SetStyleFillSpecList{ · · Case: 1, · · SetStyleFillSpecListItem: &plot.SetStyleFillSpecListItem{ · · · Case: 5, · · · Token: example1299.go:1:20: IDENTIFIER "bo", · · }, · }, · SetStyleFillSpecListItem: &plot.SetStyleFillSpecListItem{ · · Case: 5, · · Token: example1299.go:1:17: IDENTIFIER "bo", · }, }
func (*SetStyleFillSpecList) Pos ¶
func (n *SetStyleFillSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleFillSpecList) String ¶
func (n *SetStyleFillSpecList) String() string
String implements fmt.Stringer.
type SetStyleFillSpecListItem ¶
type SetStyleFillSpecListItem struct { Case int ColorSpec *ColorSpec Expression *Expression Token xc.Token }
SetStyleFillSpecListItem represents data reduced by productions:
SetStyleFillSpecListItem: "empty" | "transparent" // Case 1 | "solid" // Case 2 | "solid" Expression // Case 3 | "pattern" Expression // Case 4 | "bo" // Case 5 | "bo" ColorSpec // Case 6 | "border" // Case 7 | "border" ColorSpec // Case 8 | "lt" ColorSpec // Case 9 | "lc" ColorSpec // Case 10 | "noborder" // Case 11
Example ¶
fmt.Println(exampleAST(1300, "plot ident_a fill empty"))
Output: &plot.SetStyleFillSpecListItem{ · Token: example1300.go:1:19: IDENTIFIER "empty", }
Example (Case01) ¶
fmt.Println(exampleAST(1301, "plot ident_a fill transparent"))
Output: &plot.SetStyleFillSpecListItem{ · Case: 1, · Token: example1301.go:1:19: IDENTIFIER "transparent", }
Example (Case02) ¶
fmt.Println(exampleAST(1302, "plot ident_a fill solid"))
Output: &plot.SetStyleFillSpecListItem{ · Case: 2, · Token: example1302.go:1:19: IDENTIFIER "solid", }
Example (Case03) ¶
fmt.Println(exampleAST(1303, "plot ident_a fill solid ident_b"))
Output: &plot.SetStyleFillSpecListItem{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1303.go:1:25: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example1303.go:1:19: IDENTIFIER "solid", }
Example (Case04) ¶
fmt.Println(exampleAST(1304, "plot ident_a fs pattern ident_b"))
Output: &plot.SetStyleFillSpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1304.go:1:25: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example1304.go:1:17: IDENTIFIER "pattern", }
Example (Case05) ¶
fmt.Println(exampleAST(1305, "plot ident_a fill bo"))
Output: &plot.SetStyleFillSpecListItem{ · Case: 5, · Token: example1305.go:1:19: IDENTIFIER "bo", }
Example (Case06) ¶
fmt.Println(exampleAST(1306, "plot ident_a fill bo ident_b"))
Output: &plot.SetStyleFillSpecListItem{ · Case: 6, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1306.go:1:22: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1306.go:1:19: IDENTIFIER "bo", }
Example (Case07) ¶
fmt.Println(exampleAST(1307, "plot ident_a fill border"))
Output: &plot.SetStyleFillSpecListItem{ · Case: 7, · Token: example1307.go:1:19: IDENTIFIER "border", }
Example (Case08) ¶
fmt.Println(exampleAST(1308, "plot ident_a fill border ident_b"))
Output: &plot.SetStyleFillSpecListItem{ · Case: 8, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1308.go:1:26: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1308.go:1:19: IDENTIFIER "border", }
Example (Case09) ¶
fmt.Println(exampleAST(1309, "plot ident_a fill lt ident_b"))
Output: &plot.SetStyleFillSpecListItem{ · Case: 9, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1309.go:1:22: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1309.go:1:19: IDENTIFIER "lt", }
Example (Case10) ¶
fmt.Println(exampleAST(1310, "plot ident_a fill lc ident_b"))
Output: &plot.SetStyleFillSpecListItem{ · Case: 10, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1310.go:1:22: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1310.go:1:19: IDENTIFIER "lc", }
Example (Case11) ¶
fmt.Println(exampleAST(1311, "plot ident_a fill noborder"))
Output: &plot.SetStyleFillSpecListItem{ · Case: 11, · Token: example1311.go:1:19: IDENTIFIER "noborder", }
func (*SetStyleFillSpecListItem) Pos ¶
func (n *SetStyleFillSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleFillSpecListItem) String ¶
func (n *SetStyleFillSpecListItem) String() string
String implements fmt.Stringer.
type SetStyleRectangleSpecList ¶
type SetStyleRectangleSpecList struct { Case int SetStyleRectangleSpecList *SetStyleRectangleSpecList SetStyleRectangleSpecListItem *SetStyleRectangleSpecListItem }
SetStyleRectangleSpecList represents data reduced by productions:
SetStyleRectangleSpecList: SetStyleRectangleSpecListItem | SetStyleRectangleSpecList SetStyleRectangleSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1348, "set style rectangle back"))
Output: &plot.SetStyleRectangleSpecList{ · SetStyleRectangleSpecListItem: &plot.SetStyleRectangleSpecListItem{ · · Case: 1, · · Token: example1348.go:1:21: IDENTIFIER "back", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1349, "set style rectangle back back"))
Output: &plot.SetStyleRectangleSpecList{ · SetStyleRectangleSpecList: &plot.SetStyleRectangleSpecList{ · · Case: 1, · · SetStyleRectangleSpecListItem: &plot.SetStyleRectangleSpecListItem{ · · · Case: 1, · · · Token: example1349.go:1:26: IDENTIFIER "back", · · }, · }, · SetStyleRectangleSpecListItem: &plot.SetStyleRectangleSpecListItem{ · · Case: 1, · · Token: example1349.go:1:21: IDENTIFIER "back", · }, }
func (*SetStyleRectangleSpecList) Pos ¶
func (n *SetStyleRectangleSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleRectangleSpecList) String ¶
func (n *SetStyleRectangleSpecList) String() string
String implements fmt.Stringer.
type SetStyleRectangleSpecListItem ¶
type SetStyleRectangleSpecListItem struct { Case int ColorSpec *ColorSpec Expression *Expression SetStyleFillSpecList *SetStyleFillSpecList Token xc.Token }
SetStyleRectangleSpecListItem represents data reduced by productions:
SetStyleRectangleSpecListItem: "front" | "back" // Case 1 | "lw" Expression // Case 2 | "linewidth" Expression // Case 3 | "fillcolor" ColorSpec // Case 4 | "fc" ColorSpec // Case 5 | "fs" SetStyleFillSpecList // Case 6
Example ¶
fmt.Println(exampleAST(1350, "set style rectangle front"))
Output: &plot.SetStyleRectangleSpecListItem{ · Token: example1350.go:1:21: IDENTIFIER "front", }
Example (Case1) ¶
fmt.Println(exampleAST(1351, "set style rectangle back"))
Output: &plot.SetStyleRectangleSpecListItem{ · Case: 1, · Token: example1351.go:1:21: IDENTIFIER "back", }
Example (Case2) ¶
fmt.Println(exampleAST(1352, "set style rectangle lw ident_a"))
Output: &plot.SetStyleRectangleSpecListItem{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1352.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1352.go:1:21: IDENTIFIER "lw", }
Example (Case3) ¶
fmt.Println(exampleAST(1353, "set style rectangle linewidth ident_a"))
Output: &plot.SetStyleRectangleSpecListItem{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1353.go:1:31: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1353.go:1:21: IDENTIFIER "linewidth", }
Example (Case4) ¶
fmt.Println(exampleAST(1354, "set style rectangle fillcolor ident_a"))
Output: &plot.SetStyleRectangleSpecListItem{ · Case: 4, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1354.go:1:31: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1354.go:1:21: IDENTIFIER "fillcolor", }
Example (Case5) ¶
fmt.Println(exampleAST(1355, "set style rectangle fc ident_a"))
Output: &plot.SetStyleRectangleSpecListItem{ · Case: 5, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1355.go:1:24: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1355.go:1:21: IDENTIFIER "fc", }
Example (Case6) ¶
fmt.Println(exampleAST(1356, "set style rectangle fs bo"))
Output: &plot.SetStyleRectangleSpecListItem{ · Case: 6, · SetStyleFillSpecList: &plot.SetStyleFillSpecList{ · · SetStyleFillSpecListItem: &plot.SetStyleFillSpecListItem{ · · · Case: 5, · · · Token: example1356.go:1:24: IDENTIFIER "bo", · · }, · }, · Token: example1356.go:1:21: IDENTIFIER "fs", }
func (*SetStyleRectangleSpecListItem) Pos ¶
func (n *SetStyleRectangleSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleRectangleSpecListItem) String ¶
func (n *SetStyleRectangleSpecListItem) String() string
String implements fmt.Stringer.
type SetStyleRectangleSpecListOpt ¶
type SetStyleRectangleSpecListOpt struct {
SetStyleRectangleSpecList *SetStyleRectangleSpecList
}
SetStyleRectangleSpecListOpt represents data reduced by productions:
SetStyleRectangleSpecListOpt: /* empty */ | SetStyleRectangleSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1357, "set style rectangle") == (*SetStyleRectangleSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1358, "set style rectangle back"))
Output: &plot.SetStyleRectangleSpecListOpt{ · SetStyleRectangleSpecList: &plot.SetStyleRectangleSpecList{ · · SetStyleRectangleSpecListItem: &plot.SetStyleRectangleSpecListItem{ · · · Case: 1, · · · Token: example1358.go:1:21: IDENTIFIER "back", · · }, · }, }
func (*SetStyleRectangleSpecListOpt) Pos ¶
func (n *SetStyleRectangleSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleRectangleSpecListOpt) String ¶
func (n *SetStyleRectangleSpecListOpt) String() string
String implements fmt.Stringer.
type SetStyleSpec ¶
type SetStyleSpec struct { ArrowStyleList *ArrowStyleList Case int Expression *Expression LineStyleList *LineStyleList PlotElementStyle *PlotElementStyle PlotElementStyleHistogramsListOpt *PlotElementStyleHistogramsListOpt SetStyleBoxplotSpecList *SetStyleBoxplotSpecList SetStyleCircleSpecListOpt *SetStyleCircleSpecListOpt SetStyleEllipseSpecListOpt *SetStyleEllipseSpecListOpt SetStyleFillSpecList *SetStyleFillSpecList SetStyleRectangleSpecListOpt *SetStyleRectangleSpecListOpt SetStyleTextboxSpecListOpt *SetStyleTextboxSpecListOpt Token xc.Token Token2 xc.Token }
SetStyleSpec represents data reduced by productions:
SetStyleSpec: "arrow" Expression "default" | "arrow" Expression ArrowStyleList // Case 1 | "boxplot" SetStyleBoxplotSpecList // Case 2 | "data" PlotElementStyle // Case 3 | "fill" SetStyleFillSpecList // Case 4 | "func" PlotElementStyle // Case 5 | "function" PlotElementStyle // Case 6 | "line" Expression LineStyleList // Case 7 | "circle" SetStyleCircleSpecListOpt // Case 8 | "ellipse" SetStyleEllipseSpecListOpt // Case 9 | "histogram" PlotElementStyleHistogramsListOpt // Case 10 | "increment" // Case 11 | "increment" "default" // Case 12 | "increment" "userstyles" // Case 13 | "rectangle" SetStyleRectangleSpecListOpt // Case 14 | "textbox" SetStyleTextboxSpecListOpt // Case 15
Example ¶
fmt.Println(exampleAST(1312, "set style arrow ident_a default"))
Output: &plot.SetStyleSpec{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1312.go:1:17: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1312.go:1:11: IDENTIFIER "arrow", · Token2: example1312.go:1:25: IDENTIFIER "default", }
Example (Case01) ¶
fmt.Println(exampleAST(1313, "set style arrow ident_a empty"))
Output: &plot.SetStyleSpec{ · ArrowStyleList: &plot.ArrowStyleList{ · · ArrowStyleListItem: &plot.ArrowStyleListItem{ · · · Case: 6, · · · Token: example1313.go:1:25: IDENTIFIER "empty", · · }, · }, · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1313.go:1:17: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1313.go:1:11: IDENTIFIER "arrow", }
Example (Case02) ¶
fmt.Println(exampleAST(1314, "set style boxplot candlesticks"))
Output: &plot.SetStyleSpec{ · Case: 2, · SetStyleBoxplotSpecList: &plot.SetStyleBoxplotSpecList{ · · SetStyleBoxplotSpecListItem: &plot.SetStyleBoxplotSpecListItem{ · · · Case: 5, · · · Token: example1314.go:1:19: IDENTIFIER "candlesticks", · · }, · }, · Token: example1314.go:1:11: IDENTIFIER "boxplot", }
Example (Case03) ¶
fmt.Println(exampleAST(1315, "set style data boxerrorbars"))
Output: &plot.SetStyleSpec{ · Case: 3, · PlotElementStyle: &plot.PlotElementStyle{ · · Token: example1315.go:1:16: IDENTIFIER "boxerrorbars", · }, · Token: example1315.go:1:11: IDENTIFIER "data", }
Example (Case04) ¶
fmt.Println(exampleAST(1316, "set style fill bo"))
Output: &plot.SetStyleSpec{ · Case: 4, · SetStyleFillSpecList: &plot.SetStyleFillSpecList{ · · SetStyleFillSpecListItem: &plot.SetStyleFillSpecListItem{ · · · Case: 5, · · · Token: example1316.go:1:16: IDENTIFIER "bo", · · }, · }, · Token: example1316.go:1:11: IDENTIFIER "fill", }
Example (Case05) ¶
fmt.Println(exampleAST(1317, "set style func boxerrorbars"))
Output: &plot.SetStyleSpec{ · Case: 5, · PlotElementStyle: &plot.PlotElementStyle{ · · Token: example1317.go:1:16: IDENTIFIER "boxerrorbars", · }, · Token: example1317.go:1:11: IDENTIFIER "func", }
Example (Case06) ¶
fmt.Println(exampleAST(1318, "set style function boxerrorbars"))
Output: &plot.SetStyleSpec{ · Case: 6, · PlotElementStyle: &plot.PlotElementStyle{ · · Token: example1318.go:1:20: IDENTIFIER "boxerrorbars", · }, · Token: example1318.go:1:11: IDENTIFIER "function", }
Example (Case07) ¶
fmt.Println(exampleAST(1319, "set style line ident_a nocontours"))
Output: &plot.SetStyleSpec{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1319.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · LineStyleList: &plot.LineStyleList{ · · LineStyleListItem: &plot.LineStyleListItem{ · · · Case: 15, · · · Token: example1319.go:1:24: IDENTIFIER "nocontours", · · }, · }, · Token: example1319.go:1:11: IDENTIFIER "line", }
Example (Case08) ¶
fmt.Println(exampleAST(1320, "set style circle"))
Output: &plot.SetStyleSpec{ · Case: 8, · Token: example1320.go:1:11: IDENTIFIER "circle", }
Example (Case09) ¶
fmt.Println(exampleAST(1321, "set style ellipse"))
Output: &plot.SetStyleSpec{ · Case: 9, · Token: example1321.go:1:11: IDENTIFIER "ellipse", }
Example (Case10) ¶
fmt.Println(exampleAST(1322, "set style histogram"))
Output: &plot.SetStyleSpec{ · Case: 10, · Token: example1322.go:1:11: IDENTIFIER "histogram", }
Example (Case11) ¶
fmt.Println(exampleAST(1323, "set style increment"))
Output: &plot.SetStyleSpec{ · Case: 11, · Token: example1323.go:1:11: IDENTIFIER "increment", }
Example (Case12) ¶
fmt.Println(exampleAST(1324, "set style increment default"))
Output: &plot.SetStyleSpec{ · Case: 12, · Token: example1324.go:1:11: IDENTIFIER "increment", · Token2: example1324.go:1:21: IDENTIFIER "default", }
Example (Case13) ¶
fmt.Println(exampleAST(1325, "set style increment userstyles"))
Output: &plot.SetStyleSpec{ · Case: 13, · Token: example1325.go:1:11: IDENTIFIER "increment", · Token2: example1325.go:1:21: IDENTIFIER "userstyles", }
Example (Case14) ¶
fmt.Println(exampleAST(1326, "set style rectangle"))
Output: &plot.SetStyleSpec{ · Case: 14, · Token: example1326.go:1:11: IDENTIFIER "rectangle", }
Example (Case15) ¶
fmt.Println(exampleAST(1327, "set style textbox"))
Output: &plot.SetStyleSpec{ · Case: 15, · Token: example1327.go:1:11: IDENTIFIER "textbox", }
func (*SetStyleSpec) Pos ¶
func (n *SetStyleSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleSpec) String ¶
func (n *SetStyleSpec) String() string
String implements fmt.Stringer.
type SetStyleTextboxSpecList ¶
type SetStyleTextboxSpecList struct { Case int SetStyleTextboxSpecList *SetStyleTextboxSpecList SetStyleTextboxSpecListItem *SetStyleTextboxSpecListItem }
SetStyleTextboxSpecList represents data reduced by productions:
SetStyleTextboxSpecList: SetStyleTextboxSpecListItem | SetStyleTextboxSpecList SetStyleTextboxSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1359, "set style textbox border"))
Output: &plot.SetStyleTextboxSpecList{ · SetStyleTextboxSpecListItem: &plot.SetStyleTextboxSpecListItem{ · · Case: 2, · · Token: example1359.go:1:19: IDENTIFIER "border", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1360, "set style textbox border border"))
Output: &plot.SetStyleTextboxSpecList{ · SetStyleTextboxSpecList: &plot.SetStyleTextboxSpecList{ · · Case: 1, · · SetStyleTextboxSpecListItem: &plot.SetStyleTextboxSpecListItem{ · · · Case: 2, · · · Token: example1360.go:1:26: IDENTIFIER "border", · · }, · }, · SetStyleTextboxSpecListItem: &plot.SetStyleTextboxSpecListItem{ · · Case: 2, · · Token: example1360.go:1:19: IDENTIFIER "border", · }, }
func (*SetStyleTextboxSpecList) Pos ¶
func (n *SetStyleTextboxSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleTextboxSpecList) String ¶
func (n *SetStyleTextboxSpecList) String() string
String implements fmt.Stringer.
type SetStyleTextboxSpecListItem ¶
type SetStyleTextboxSpecListItem struct { Case int Expression *Expression Expression2 *Expression Token xc.Token Token2 xc.Token }
SetStyleTextboxSpecListItem represents data reduced by productions:
SetStyleTextboxSpecListItem: "opaque" | "transparent" // Case 1 | "border" // Case 2 | "noborder" // Case 3 | "margins" Expression ',' Expression // Case 4
Example ¶
fmt.Println(exampleAST(1361, "set style textbox opaque"))
Output: &plot.SetStyleTextboxSpecListItem{ · Token: example1361.go:1:19: IDENTIFIER "opaque", }
Example (Case1) ¶
fmt.Println(exampleAST(1362, "set style textbox transparent"))
Output: &plot.SetStyleTextboxSpecListItem{ · Case: 1, · Token: example1362.go:1:19: IDENTIFIER "transparent", }
Example (Case2) ¶
fmt.Println(exampleAST(1363, "set style textbox border"))
Output: &plot.SetStyleTextboxSpecListItem{ · Case: 2, · Token: example1363.go:1:19: IDENTIFIER "border", }
Example (Case3) ¶
fmt.Println(exampleAST(1364, "set style textbox noborder"))
Output: &plot.SetStyleTextboxSpecListItem{ · Case: 3, · Token: example1364.go:1:19: IDENTIFIER "noborder", }
Example (Case4) ¶
fmt.Println(exampleAST(1365, "set style textbox margins ident_a , ident_b"))
Output: &plot.SetStyleTextboxSpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1365.go:1:27: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1365.go:1:37: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example1365.go:1:19: IDENTIFIER "margins", · Token2: example1365.go:1:35: ',' ",", }
func (*SetStyleTextboxSpecListItem) Pos ¶
func (n *SetStyleTextboxSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleTextboxSpecListItem) String ¶
func (n *SetStyleTextboxSpecListItem) String() string
String implements fmt.Stringer.
type SetStyleTextboxSpecListOpt ¶
type SetStyleTextboxSpecListOpt struct {
SetStyleTextboxSpecList *SetStyleTextboxSpecList
}
SetStyleTextboxSpecListOpt represents data reduced by productions:
SetStyleTextboxSpecListOpt: /* empty */ | SetStyleTextboxSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1366, "set style textbox") == (*SetStyleTextboxSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1367, "set style textbox border"))
Output: &plot.SetStyleTextboxSpecListOpt{ · SetStyleTextboxSpecList: &plot.SetStyleTextboxSpecList{ · · SetStyleTextboxSpecListItem: &plot.SetStyleTextboxSpecListItem{ · · · Case: 2, · · · Token: example1367.go:1:19: IDENTIFIER "border", · · }, · }, }
func (*SetStyleTextboxSpecListOpt) Pos ¶
func (n *SetStyleTextboxSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetStyleTextboxSpecListOpt) String ¶
func (n *SetStyleTextboxSpecListOpt) String() string
String implements fmt.Stringer.
type SetSurfaceSpecOpt ¶
SetSurfaceSpecOpt represents data reduced by productions:
SetSurfaceSpecOpt: /* empty */ | "implicit" // Case 1 | "explicit" // Case 2
Example ¶
fmt.Println(exampleAST(1368, "set surface") == (*SetSurfaceSpecOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1369, "set surface implicit"))
Output: &plot.SetSurfaceSpecOpt{ · Case: 1, · Token: example1369.go:1:13: IDENTIFIER "implicit", }
Example (Case2) ¶
fmt.Println(exampleAST(1370, "set surface explicit"))
Output: &plot.SetSurfaceSpecOpt{ · Case: 2, · Token: example1370.go:1:13: IDENTIFIER "explicit", }
func (*SetSurfaceSpecOpt) Pos ¶
func (n *SetSurfaceSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetSurfaceSpecOpt) String ¶
func (n *SetSurfaceSpecOpt) String() string
String implements fmt.Stringer.
type SetTableSpecOpt ¶
type SetTableSpecOpt struct {
Expression *Expression
}
SetTableSpecOpt represents data reduced by productions:
SetTableSpecOpt: /* empty */ | Expression // Case 1
Example ¶
fmt.Println(exampleAST(1371, "set table") == (*SetTableSpecOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1372, "set table ident_a"))
Output: &plot.SetTableSpecOpt{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1372.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*SetTableSpecOpt) Pos ¶
func (n *SetTableSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTableSpecOpt) String ¶
func (n *SetTableSpecOpt) String() string
String implements fmt.Stringer.
type SetTerminalAifmSpecList ¶
type SetTerminalAifmSpecList struct { Case int SetTerminalAifmSpecList *SetTerminalAifmSpecList SetTerminalAifmSpecListItem *SetTerminalAifmSpecListItem }
SetTerminalAifmSpecList represents data reduced by productions:
SetTerminalAifmSpecList: SetTerminalAifmSpecListItem | SetTerminalAifmSpecList SetTerminalAifmSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1483, "set term aifm ident_a"))
Output: &plot.SetTerminalAifmSpecList{ · SetTerminalAifmSpecListItem: &plot.SetTerminalAifmSpecListItem{ · · Case: 2, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1483.go:1:15: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1484, "set term aifm ident_a ident_b"))
Output: &plot.SetTerminalAifmSpecList{ · SetTerminalAifmSpecList: &plot.SetTerminalAifmSpecList{ · · Case: 1, · · SetTerminalAifmSpecListItem: &plot.SetTerminalAifmSpecListItem{ · · · Case: 2, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1484.go:1:23: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalAifmSpecListItem: &plot.SetTerminalAifmSpecListItem{ · · Case: 2, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1484.go:1:15: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalAifmSpecList) Pos ¶
func (n *SetTerminalAifmSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalAifmSpecList) String ¶
func (n *SetTerminalAifmSpecList) String() string
String implements fmt.Stringer.
type SetTerminalAifmSpecListItem ¶
type SetTerminalAifmSpecListItem struct { Case int SimpleExpression *SimpleExpression Token xc.Token }
SetTerminalAifmSpecListItem represents data reduced by productions:
SetTerminalAifmSpecListItem: "color" | "monochrome" // Case 1 | SimpleExpression // Case 2
Example ¶
fmt.Println(exampleAST(1485, "set term aifm color"))
Output: &plot.SetTerminalAifmSpecListItem{ · Token: example1485.go:1:15: IDENTIFIER "color", }
Example (Case1) ¶
fmt.Println(exampleAST(1486, "set term aifm monochrome"))
Output: &plot.SetTerminalAifmSpecListItem{ · Case: 1, · Token: example1486.go:1:15: IDENTIFIER "monochrome", }
Example (Case2) ¶
fmt.Println(exampleAST(1487, "set term aifm ident_a"))
Output: &plot.SetTerminalAifmSpecListItem{ · Case: 2, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1487.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*SetTerminalAifmSpecListItem) Pos ¶
func (n *SetTerminalAifmSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalAifmSpecListItem) String ¶
func (n *SetTerminalAifmSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalAifmSpecListOpt ¶
type SetTerminalAifmSpecListOpt struct {
SetTerminalAifmSpecList *SetTerminalAifmSpecList
}
SetTerminalAifmSpecListOpt represents data reduced by productions:
SetTerminalAifmSpecListOpt: /* empty */ | SetTerminalAifmSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1488, "set term aifm") == (*SetTerminalAifmSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1489, "set term aifm ident_a"))
Output: &plot.SetTerminalAifmSpecListOpt{ · SetTerminalAifmSpecList: &plot.SetTerminalAifmSpecList{ · · SetTerminalAifmSpecListItem: &plot.SetTerminalAifmSpecListItem{ · · · Case: 2, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1489.go:1:15: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalAifmSpecListOpt) Pos ¶
func (n *SetTerminalAifmSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalAifmSpecListOpt) String ¶
func (n *SetTerminalAifmSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalAquaSpecList ¶
type SetTerminalAquaSpecList struct { Case int SetTerminalAquaSpecList *SetTerminalAquaSpecList SetTerminalAquaSpecListItem *SetTerminalAquaSpecListItem }
SetTerminalAquaSpecList represents data reduced by productions:
SetTerminalAquaSpecList: SetTerminalAquaSpecListItem | SetTerminalAquaSpecList SetTerminalAquaSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1490, "set term aqua ident_a"))
Output: &plot.SetTerminalAquaSpecList{ · SetTerminalAquaSpecListItem: &plot.SetTerminalAquaSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1490.go:1:15: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1491, "set term aqua ident_a ident_b"))
Output: &plot.SetTerminalAquaSpecList{ · SetTerminalAquaSpecList: &plot.SetTerminalAquaSpecList{ · · Case: 1, · · SetTerminalAquaSpecListItem: &plot.SetTerminalAquaSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1491.go:1:23: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalAquaSpecListItem: &plot.SetTerminalAquaSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1491.go:1:15: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalAquaSpecList) Pos ¶
func (n *SetTerminalAquaSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalAquaSpecList) String ¶
func (n *SetTerminalAquaSpecList) String() string
String implements fmt.Stringer.
type SetTerminalAquaSpecListItem ¶
type SetTerminalAquaSpecListItem struct { Case int Expression *Expression SimpleExpression *SimpleExpression Token xc.Token }
SetTerminalAquaSpecListItem represents data reduced by productions:
SetTerminalAquaSpecListItem: SimpleExpression | "title" Expression // Case 1 | "size" // Case 2 | "font" Expression // Case 3 | "enhanced" // Case 4 | "noenhanced" // Case 5 | "solid" // Case 6 | "dashed" // Case 7 | "dl" Expression // Case 8
Example ¶
fmt.Println(exampleAST(1492, "set term aqua ident_a"))
Output: &plot.SetTerminalAquaSpecListItem{ · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1492.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1493, "set term aqua title ident_a"))
Output: &plot.SetTerminalAquaSpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1493.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1493.go:1:15: IDENTIFIER "title", }
Example (Case2) ¶
fmt.Println(exampleAST(1494, "set term aqua size"))
Output: &plot.SetTerminalAquaSpecListItem{ · Case: 2, · Token: example1494.go:1:15: IDENTIFIER "size", }
Example (Case3) ¶
fmt.Println(exampleAST(1495, "set term aqua font ident_a"))
Output: &plot.SetTerminalAquaSpecListItem{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1495.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1495.go:1:15: IDENTIFIER "font", }
Example (Case4) ¶
fmt.Println(exampleAST(1496, "set term aqua enhanced"))
Output: &plot.SetTerminalAquaSpecListItem{ · Case: 4, · Token: example1496.go:1:15: IDENTIFIER "enhanced", }
Example (Case5) ¶
fmt.Println(exampleAST(1497, "set term aqua noenhanced"))
Output: &plot.SetTerminalAquaSpecListItem{ · Case: 5, · Token: example1497.go:1:15: IDENTIFIER "noenhanced", }
Example (Case6) ¶
fmt.Println(exampleAST(1498, "set term aqua solid"))
Output: &plot.SetTerminalAquaSpecListItem{ · Case: 6, · Token: example1498.go:1:15: IDENTIFIER "solid", }
Example (Case7) ¶
fmt.Println(exampleAST(1499, "set term aqua dashed"))
Output: &plot.SetTerminalAquaSpecListItem{ · Case: 7, · Token: example1499.go:1:15: IDENTIFIER "dashed", }
Example (Case8) ¶
fmt.Println(exampleAST(1500, "set term aqua dl ident_a"))
Output: &plot.SetTerminalAquaSpecListItem{ · Case: 8, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1500.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1500.go:1:15: IDENTIFIER "dl", }
func (*SetTerminalAquaSpecListItem) Pos ¶
func (n *SetTerminalAquaSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalAquaSpecListItem) String ¶
func (n *SetTerminalAquaSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalAquaSpecListOpt ¶
type SetTerminalAquaSpecListOpt struct {
SetTerminalAquaSpecList *SetTerminalAquaSpecList
}
SetTerminalAquaSpecListOpt represents data reduced by productions:
SetTerminalAquaSpecListOpt: /* empty */ | SetTerminalAquaSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1501, "set term aqua") == (*SetTerminalAquaSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1502, "set term aqua ident_a"))
Output: &plot.SetTerminalAquaSpecListOpt{ · SetTerminalAquaSpecList: &plot.SetTerminalAquaSpecList{ · · SetTerminalAquaSpecListItem: &plot.SetTerminalAquaSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1502.go:1:15: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalAquaSpecListOpt) Pos ¶
func (n *SetTerminalAquaSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalAquaSpecListOpt) String ¶
func (n *SetTerminalAquaSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalBeSpecList ¶
type SetTerminalBeSpecList struct { Case int SetTerminalBeSpecList *SetTerminalBeSpecList SetTerminalBeSpecListItem *SetTerminalBeSpecListItem }
SetTerminalBeSpecList represents data reduced by productions:
SetTerminalBeSpecList: SetTerminalBeSpecListItem | SetTerminalBeSpecList SetTerminalBeSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1503, "set term be ident_a"))
Output: &plot.SetTerminalBeSpecList{ · SetTerminalBeSpecListItem: &plot.SetTerminalBeSpecListItem{ · · Case: 1, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1503.go:1:13: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1504, "set term be ident_a ident_b"))
Output: &plot.SetTerminalBeSpecList{ · SetTerminalBeSpecList: &plot.SetTerminalBeSpecList{ · · Case: 1, · · SetTerminalBeSpecListItem: &plot.SetTerminalBeSpecListItem{ · · · Case: 1, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1504.go:1:21: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalBeSpecListItem: &plot.SetTerminalBeSpecListItem{ · · Case: 1, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1504.go:1:13: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalBeSpecList) Pos ¶
func (n *SetTerminalBeSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalBeSpecList) String ¶
func (n *SetTerminalBeSpecList) String() string
String implements fmt.Stringer.
type SetTerminalBeSpecListItem ¶
type SetTerminalBeSpecListItem struct { Case int SimpleExpression *SimpleExpression Token xc.Token }
SetTerminalBeSpecListItem represents data reduced by productions:
SetTerminalBeSpecListItem: "reset" | SimpleExpression // Case 1
Example ¶
fmt.Println(exampleAST(1505, "set term be reset"))
Output: &plot.SetTerminalBeSpecListItem{ · Token: example1505.go:1:13: IDENTIFIER "reset", }
Example (Case1) ¶
fmt.Println(exampleAST(1506, "set term be ident_a"))
Output: &plot.SetTerminalBeSpecListItem{ · Case: 1, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1506.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*SetTerminalBeSpecListItem) Pos ¶
func (n *SetTerminalBeSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalBeSpecListItem) String ¶
func (n *SetTerminalBeSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalBeSpecListOpt ¶
type SetTerminalBeSpecListOpt struct {
SetTerminalBeSpecList *SetTerminalBeSpecList
}
SetTerminalBeSpecListOpt represents data reduced by productions:
SetTerminalBeSpecListOpt: /* empty */ | SetTerminalBeSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1507, "set term be") == (*SetTerminalBeSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1508, "set term be ident_a"))
Output: &plot.SetTerminalBeSpecListOpt{ · SetTerminalBeSpecList: &plot.SetTerminalBeSpecList{ · · SetTerminalBeSpecListItem: &plot.SetTerminalBeSpecListItem{ · · · Case: 1, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1508.go:1:13: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalBeSpecListOpt) Pos ¶
func (n *SetTerminalBeSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalBeSpecListOpt) String ¶
func (n *SetTerminalBeSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalCairolatexSpecList ¶
type SetTerminalCairolatexSpecList struct { Case int SetTerminalCairolatexSpecList *SetTerminalCairolatexSpecList SetTerminalCairolatexSpecListItem *SetTerminalCairolatexSpecListItem }
SetTerminalCairolatexSpecList represents data reduced by productions:
SetTerminalCairolatexSpecList: SetTerminalCairolatexSpecListItem | SetTerminalCairolatexSpecList SetTerminalCairolatexSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1509, "set term cairolatex blacktext"))
Output: &plot.SetTerminalCairolatexSpecList{ · SetTerminalCairolatexSpecListItem: &plot.SetTerminalCairolatexSpecListItem{ · · Case: 4, · · Token: example1509.go:1:21: IDENTIFIER "blacktext", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1510, "set term cairolatex blacktext blacktext"))
Output: &plot.SetTerminalCairolatexSpecList{ · SetTerminalCairolatexSpecList: &plot.SetTerminalCairolatexSpecList{ · · Case: 1, · · SetTerminalCairolatexSpecListItem: &plot.SetTerminalCairolatexSpecListItem{ · · · Case: 4, · · · Token: example1510.go:1:31: IDENTIFIER "blacktext", · · }, · }, · SetTerminalCairolatexSpecListItem: &plot.SetTerminalCairolatexSpecListItem{ · · Case: 4, · · Token: example1510.go:1:21: IDENTIFIER "blacktext", · }, }
func (*SetTerminalCairolatexSpecList) Pos ¶
func (n *SetTerminalCairolatexSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalCairolatexSpecList) String ¶
func (n *SetTerminalCairolatexSpecList) String() string
String implements fmt.Stringer.
type SetTerminalCairolatexSpecListItem ¶
type SetTerminalCairolatexSpecListItem struct { Case int Expression *Expression ExpressionUnitList *ExpressionUnitList Token xc.Token }
SetTerminalCairolatexSpecListItem represents data reduced by productions:
SetTerminalCairolatexSpecListItem: "eps" | "pdf" // Case 1 | "standalone" // Case 2 | "input" // Case 3 | "blacktext" // Case 4 | "colortext" // Case 5 | "colourtext" // Case 6 | "header" Expression // Case 7 | "noheader" // Case 8 | "mono" // Case 9 | "color" // Case 10 | "transparent" // Case 11 | "notransparent" // Case 12 | "crop" // Case 13 | "nocrop" // Case 14 | "background" Expression // Case 15 | "font" Expression // Case 16 | "fontscale" Expression // Case 17 | "linewidth" Expression // Case 18 | "rounded" // Case 19 | "butt" // Case 20 | "square" // Case 21 | "dashlength" Expression // Case 22 | "size" ExpressionUnitList // Case 23
Example ¶
fmt.Println(exampleAST(1511, "set term cairolatex eps"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Token: example1511.go:1:21: IDENTIFIER "eps", }
Example (Case01) ¶
fmt.Println(exampleAST(1512, "set term cairolatex pdf"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 1, · Token: example1512.go:1:21: IDENTIFIER "pdf", }
Example (Case02) ¶
fmt.Println(exampleAST(1513, "set term cairolatex standalone"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 2, · Token: example1513.go:1:21: IDENTIFIER "standalone", }
Example (Case03) ¶
fmt.Println(exampleAST(1514, "set term cairolatex input"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 3, · Token: example1514.go:1:21: IDENTIFIER "input", }
Example (Case04) ¶
fmt.Println(exampleAST(1515, "set term cairolatex blacktext"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 4, · Token: example1515.go:1:21: IDENTIFIER "blacktext", }
Example (Case05) ¶
fmt.Println(exampleAST(1516, "set term cairolatex colortext"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 5, · Token: example1516.go:1:21: IDENTIFIER "colortext", }
Example (Case06) ¶
fmt.Println(exampleAST(1517, "set term cairolatex colourtext"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 6, · Token: example1517.go:1:21: IDENTIFIER "colourtext", }
Example (Case07) ¶
fmt.Println(exampleAST(1518, "set term cairolatex header ident_a"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1518.go:1:28: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1518.go:1:21: IDENTIFIER "header", }
Example (Case08) ¶
fmt.Println(exampleAST(1519, "set term cairolatex noheader"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 8, · Token: example1519.go:1:21: IDENTIFIER "noheader", }
Example (Case09) ¶
fmt.Println(exampleAST(1520, "set term cairolatex mono"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 9, · Token: example1520.go:1:21: IDENTIFIER "mono", }
Example (Case10) ¶
fmt.Println(exampleAST(1521, "set term cairolatex color"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 10, · Token: example1521.go:1:21: IDENTIFIER "color", }
Example (Case11) ¶
fmt.Println(exampleAST(1522, "set term cairolatex transparent"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 11, · Token: example1522.go:1:21: IDENTIFIER "transparent", }
Example (Case12) ¶
fmt.Println(exampleAST(1523, "set term cairolatex notransparent"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 12, · Token: example1523.go:1:21: IDENTIFIER "notransparent", }
Example (Case13) ¶
fmt.Println(exampleAST(1524, "set term cairolatex crop"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 13, · Token: example1524.go:1:21: IDENTIFIER "crop", }
Example (Case14) ¶
fmt.Println(exampleAST(1525, "set term cairolatex nocrop"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 14, · Token: example1525.go:1:21: IDENTIFIER "nocrop", }
Example (Case15) ¶
fmt.Println(exampleAST(1526, "set term cairolatex background ident_a"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1526.go:1:32: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1526.go:1:21: IDENTIFIER "background", }
Example (Case16) ¶
fmt.Println(exampleAST(1527, "set term cairolatex font ident_a"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 16, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1527.go:1:26: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1527.go:1:21: IDENTIFIER "font", }
Example (Case17) ¶
fmt.Println(exampleAST(1528, "set term cairolatex fontscale ident_a"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 17, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1528.go:1:31: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1528.go:1:21: IDENTIFIER "fontscale", }
Example (Case18) ¶
fmt.Println(exampleAST(1529, "set term cairolatex linewidth ident_a"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 18, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1529.go:1:31: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1529.go:1:21: IDENTIFIER "linewidth", }
Example (Case19) ¶
fmt.Println(exampleAST(1530, "set term cairolatex rounded"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 19, · Token: example1530.go:1:21: IDENTIFIER "rounded", }
Example (Case20) ¶
fmt.Println(exampleAST(1531, "set term cairolatex butt"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 20, · Token: example1531.go:1:21: IDENTIFIER "butt", }
Example (Case21) ¶
fmt.Println(exampleAST(1532, "set term cairolatex square"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 21, · Token: example1532.go:1:21: IDENTIFIER "square", }
Example (Case22) ¶
fmt.Println(exampleAST(1533, "set term cairolatex dashlength ident_a"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 22, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1533.go:1:32: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1533.go:1:21: IDENTIFIER "dashlength", }
Example (Case23) ¶
fmt.Println(exampleAST(1534, "set term cairolatex size ident_a"))
Output: &plot.SetTerminalCairolatexSpecListItem{ · Case: 23, · ExpressionUnitList: &plot.ExpressionUnitList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1534.go:1:26: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1534.go:1:21: IDENTIFIER "size", }
func (*SetTerminalCairolatexSpecListItem) Pos ¶
func (n *SetTerminalCairolatexSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalCairolatexSpecListItem) String ¶
func (n *SetTerminalCairolatexSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalCairolatexSpecListOpt ¶
type SetTerminalCairolatexSpecListOpt struct {
SetTerminalCairolatexSpecList *SetTerminalCairolatexSpecList
}
SetTerminalCairolatexSpecListOpt represents data reduced by productions:
SetTerminalCairolatexSpecListOpt: /* empty */ | SetTerminalCairolatexSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1535, "set term cairolatex") == (*SetTerminalCairolatexSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1536, "set term cairolatex blacktext"))
Output: &plot.SetTerminalCairolatexSpecListOpt{ · SetTerminalCairolatexSpecList: &plot.SetTerminalCairolatexSpecList{ · · SetTerminalCairolatexSpecListItem: &plot.SetTerminalCairolatexSpecListItem{ · · · Case: 4, · · · Token: example1536.go:1:21: IDENTIFIER "blacktext", · · }, · }, }
func (*SetTerminalCairolatexSpecListOpt) Pos ¶
func (n *SetTerminalCairolatexSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalCairolatexSpecListOpt) String ¶
func (n *SetTerminalCairolatexSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalCanvasSpecList ¶
type SetTerminalCanvasSpecList struct { Case int SetTerminalCanvasSpecList *SetTerminalCanvasSpecList SetTerminalCanvasSpecListItem *SetTerminalCanvasSpecListItem }
SetTerminalCanvasSpecList represents data reduced by productions:
SetTerminalCanvasSpecList: SetTerminalCanvasSpecListItem | SetTerminalCanvasSpecList SetTerminalCanvasSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(2127, "set term canvas butt"))
Output: &plot.SetTerminalCanvasSpecList{ · SetTerminalCanvasSpecListItem: &plot.SetTerminalCanvasSpecListItem{ · · Case: 8, · · Token: example2127.go:1:17: IDENTIFIER "butt", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2128, "set term canvas butt butt"))
Output: &plot.SetTerminalCanvasSpecList{ · SetTerminalCanvasSpecList: &plot.SetTerminalCanvasSpecList{ · · Case: 1, · · SetTerminalCanvasSpecListItem: &plot.SetTerminalCanvasSpecListItem{ · · · Case: 8, · · · Token: example2128.go:1:22: IDENTIFIER "butt", · · }, · }, · SetTerminalCanvasSpecListItem: &plot.SetTerminalCanvasSpecListItem{ · · Case: 8, · · Token: example2128.go:1:17: IDENTIFIER "butt", · }, }
func (*SetTerminalCanvasSpecList) Pos ¶
func (n *SetTerminalCanvasSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalCanvasSpecList) String ¶
func (n *SetTerminalCanvasSpecList) String() string
String implements fmt.Stringer.
type SetTerminalCanvasSpecListItem ¶
type SetTerminalCanvasSpecListItem struct { Case int Expression *Expression Expression2 *Expression Token xc.Token Token2 xc.Token }
SetTerminalCanvasSpecListItem represents data reduced by productions:
SetTerminalCanvasSpecListItem: "size" Expression ',' Expression | "background" Expression // Case 1 | "fsize" Expression // Case 2 | "enhanced" // Case 3 | "noenhanced" // Case 4 | "linewidth" Expression // Case 5 | "lw" Expression // Case 6 | "rounded" // Case 7 | "butt" // Case 8 | "square" // Case 9 | "dashlength" Expression // Case 10 | "standalone" // Case 11 | "mousing" // Case 12 | "name" Expression // Case 13 | "jsdir" Expression // Case 14 | "title" Expression // Case 15
Example ¶
fmt.Println(exampleAST(2129, "set term canvas size ident_a , ident_b"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2129.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2129.go:1:32: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2129.go:1:17: IDENTIFIER "size", · Token2: example2129.go:1:30: ',' ",", }
Example (Case01) ¶
fmt.Println(exampleAST(2130, "set term canvas background ident_a"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2130.go:1:28: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2130.go:1:17: IDENTIFIER "background", }
Example (Case02) ¶
fmt.Println(exampleAST(2131, "set term canvas fsize ident_a"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2131.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2131.go:1:17: IDENTIFIER "fsize", }
Example (Case03) ¶
fmt.Println(exampleAST(2132, "set term canvas enhanced"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Case: 3, · Token: example2132.go:1:17: IDENTIFIER "enhanced", }
Example (Case04) ¶
fmt.Println(exampleAST(2133, "set term canvas noenhanced"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Case: 4, · Token: example2133.go:1:17: IDENTIFIER "noenhanced", }
Example (Case05) ¶
fmt.Println(exampleAST(2134, "set term canvas linewidth ident_a"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Case: 5, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2134.go:1:27: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2134.go:1:17: IDENTIFIER "linewidth", }
Example (Case06) ¶
fmt.Println(exampleAST(2135, "set term canvas lw ident_a"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2135.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2135.go:1:17: IDENTIFIER "lw", }
Example (Case07) ¶
fmt.Println(exampleAST(2136, "set term canvas rounded"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Case: 7, · Token: example2136.go:1:17: IDENTIFIER "rounded", }
Example (Case08) ¶
fmt.Println(exampleAST(2137, "set term canvas butt"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Case: 8, · Token: example2137.go:1:17: IDENTIFIER "butt", }
Example (Case09) ¶
fmt.Println(exampleAST(2138, "set term canvas square"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Case: 9, · Token: example2138.go:1:17: IDENTIFIER "square", }
Example (Case10) ¶
fmt.Println(exampleAST(2139, "set term canvas dashlength ident_a"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2139.go:1:28: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2139.go:1:17: IDENTIFIER "dashlength", }
Example (Case11) ¶
fmt.Println(exampleAST(2140, "set term canvas standalone"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Case: 11, · Token: example2140.go:1:17: IDENTIFIER "standalone", }
Example (Case12) ¶
fmt.Println(exampleAST(2141, "set term canvas mousing"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Case: 12, · Token: example2141.go:1:17: IDENTIFIER "mousing", }
Example (Case13) ¶
fmt.Println(exampleAST(2142, "set term canvas name ident_a"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Case: 13, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2142.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2142.go:1:17: IDENTIFIER "name", }
Example (Case14) ¶
fmt.Println(exampleAST(2143, "set term canvas jsdir ident_a"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Case: 14, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2143.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2143.go:1:17: IDENTIFIER "jsdir", }
Example (Case15) ¶
fmt.Println(exampleAST(2144, "set term canvas title ident_a"))
Output: &plot.SetTerminalCanvasSpecListItem{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2144.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2144.go:1:17: IDENTIFIER "title", }
func (*SetTerminalCanvasSpecListItem) Pos ¶
func (n *SetTerminalCanvasSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalCanvasSpecListItem) String ¶
func (n *SetTerminalCanvasSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalCanvasSpecListOpt ¶
type SetTerminalCanvasSpecListOpt struct {
SetTerminalCanvasSpecList *SetTerminalCanvasSpecList
}
SetTerminalCanvasSpecListOpt represents data reduced by productions:
SetTerminalCanvasSpecListOpt: /* empty */ | SetTerminalCanvasSpecList // Case 1
Example ¶
fmt.Println(exampleAST(2145, "set term canvas") == (*SetTerminalCanvasSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2146, "set term canvas butt"))
Output: &plot.SetTerminalCanvasSpecListOpt{ · SetTerminalCanvasSpecList: &plot.SetTerminalCanvasSpecList{ · · SetTerminalCanvasSpecListItem: &plot.SetTerminalCanvasSpecListItem{ · · · Case: 8, · · · Token: example2146.go:1:17: IDENTIFIER "butt", · · }, · }, }
func (*SetTerminalCanvasSpecListOpt) Pos ¶
func (n *SetTerminalCanvasSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalCanvasSpecListOpt) String ¶
func (n *SetTerminalCanvasSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalCgmSpecList ¶
type SetTerminalCgmSpecList struct { Case int SetTerminalCgmSpecList *SetTerminalCgmSpecList SetTerminalCgmSpecListItem *SetTerminalCgmSpecListItem }
SetTerminalCgmSpecList represents data reduced by productions:
SetTerminalCgmSpecList: SetTerminalCgmSpecListItem | SetTerminalCgmSpecList SetTerminalCgmSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1537, "set term cgm ident_a"))
Output: &plot.SetTerminalCgmSpecList{ · SetTerminalCgmSpecListItem: &plot.SetTerminalCgmSpecListItem{ · · Case: 6, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1537.go:1:14: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1538, "set term cgm ident_a ident_b"))
Output: &plot.SetTerminalCgmSpecList{ · SetTerminalCgmSpecList: &plot.SetTerminalCgmSpecList{ · · Case: 1, · · SetTerminalCgmSpecListItem: &plot.SetTerminalCgmSpecListItem{ · · · Case: 6, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1538.go:1:22: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalCgmSpecListItem: &plot.SetTerminalCgmSpecListItem{ · · Case: 6, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1538.go:1:14: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalCgmSpecList) Pos ¶
func (n *SetTerminalCgmSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalCgmSpecList) String ¶
func (n *SetTerminalCgmSpecList) String() string
String implements fmt.Stringer.
type SetTerminalCgmSpecListItem ¶
type SetTerminalCgmSpecListItem struct { Case int Expression *Expression SimpleExpression *SimpleExpression Token xc.Token }
SetTerminalCgmSpecListItem represents data reduced by productions:
SetTerminalCgmSpecListItem: "color" | "monochrome" // Case 1 | "solid" // Case 2 | "dashed" // Case 3 | "rotate" // Case 4 | "norotate" // Case 5 | SimpleExpression // Case 6 | "width" Expression // Case 7 | "linewidth" Expression // Case 8 | "font" Expression // Case 9 | "background" Expression // Case 10
Example ¶
fmt.Println(exampleAST(1539, "set term cgm color"))
Output: &plot.SetTerminalCgmSpecListItem{ · Token: example1539.go:1:14: IDENTIFIER "color", }
Example (Case01) ¶
fmt.Println(exampleAST(1540, "set term cgm monochrome"))
Output: &plot.SetTerminalCgmSpecListItem{ · Case: 1, · Token: example1540.go:1:14: IDENTIFIER "monochrome", }
Example (Case02) ¶
fmt.Println(exampleAST(1541, "set term cgm solid"))
Output: &plot.SetTerminalCgmSpecListItem{ · Case: 2, · Token: example1541.go:1:14: IDENTIFIER "solid", }
Example (Case03) ¶
fmt.Println(exampleAST(1542, "set term cgm dashed"))
Output: &plot.SetTerminalCgmSpecListItem{ · Case: 3, · Token: example1542.go:1:14: IDENTIFIER "dashed", }
Example (Case04) ¶
fmt.Println(exampleAST(1543, "set term cgm rotate"))
Output: &plot.SetTerminalCgmSpecListItem{ · Case: 4, · Token: example1543.go:1:14: IDENTIFIER "rotate", }
Example (Case05) ¶
fmt.Println(exampleAST(1544, "set term cgm norotate"))
Output: &plot.SetTerminalCgmSpecListItem{ · Case: 5, · Token: example1544.go:1:14: IDENTIFIER "norotate", }
Example (Case06) ¶
fmt.Println(exampleAST(1545, "set term cgm ident_a"))
Output: &plot.SetTerminalCgmSpecListItem{ · Case: 6, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1545.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case07) ¶
fmt.Println(exampleAST(1546, "set term cgm width ident_a"))
Output: &plot.SetTerminalCgmSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1546.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1546.go:1:14: IDENTIFIER "width", }
Example (Case08) ¶
fmt.Println(exampleAST(1547, "set term cgm linewidth ident_a"))
Output: &plot.SetTerminalCgmSpecListItem{ · Case: 8, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1547.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1547.go:1:14: IDENTIFIER "linewidth", }
Example (Case09) ¶
fmt.Println(exampleAST(1548, "set term cgm font ident_a"))
Output: &plot.SetTerminalCgmSpecListItem{ · Case: 9, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1548.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1548.go:1:14: IDENTIFIER "font", }
Example (Case10) ¶
fmt.Println(exampleAST(1549, "set term cgm background ident_a"))
Output: &plot.SetTerminalCgmSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1549.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1549.go:1:14: IDENTIFIER "background", }
func (*SetTerminalCgmSpecListItem) Pos ¶
func (n *SetTerminalCgmSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalCgmSpecListItem) String ¶
func (n *SetTerminalCgmSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalCgmSpecListOpt ¶
type SetTerminalCgmSpecListOpt struct {
SetTerminalCgmSpecList *SetTerminalCgmSpecList
}
SetTerminalCgmSpecListOpt represents data reduced by productions:
SetTerminalCgmSpecListOpt: /* empty */ | SetTerminalCgmSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1550, "set term cgm") == (*SetTerminalCgmSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1551, "set term cgm ident_a"))
Output: &plot.SetTerminalCgmSpecListOpt{ · SetTerminalCgmSpecList: &plot.SetTerminalCgmSpecList{ · · SetTerminalCgmSpecListItem: &plot.SetTerminalCgmSpecListItem{ · · · Case: 6, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1551.go:1:14: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalCgmSpecListOpt) Pos ¶
func (n *SetTerminalCgmSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalCgmSpecListOpt) String ¶
func (n *SetTerminalCgmSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalContextSpecList ¶
type SetTerminalContextSpecList struct { Case int SetTerminalContextSpecList *SetTerminalContextSpecList SetTerminalContextSpecListItem *SetTerminalContextSpecListItem }
SetTerminalContextSpecList represents data reduced by productions:
SetTerminalContextSpecList: SetTerminalContextSpecListItem | SetTerminalContextSpecList SetTerminalContextSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1552, "set term context beveled"))
Output: &plot.SetTerminalContextSpecList{ · SetTerminalContextSpecListItem: &plot.SetTerminalContextSpecListItem{ · · Case: 14, · · Token: example1552.go:1:18: IDENTIFIER "beveled", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1553, "set term context beveled beveled"))
Output: &plot.SetTerminalContextSpecList{ · SetTerminalContextSpecList: &plot.SetTerminalContextSpecList{ · · Case: 1, · · SetTerminalContextSpecListItem: &plot.SetTerminalContextSpecListItem{ · · · Case: 14, · · · Token: example1553.go:1:26: IDENTIFIER "beveled", · · }, · }, · SetTerminalContextSpecListItem: &plot.SetTerminalContextSpecListItem{ · · Case: 14, · · Token: example1553.go:1:18: IDENTIFIER "beveled", · }, }
func (*SetTerminalContextSpecList) Pos ¶
func (n *SetTerminalContextSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalContextSpecList) String ¶
func (n *SetTerminalContextSpecList) String() string
String implements fmt.Stringer.
type SetTerminalContextSpecListItem ¶
type SetTerminalContextSpecListItem struct { Case int Expression *Expression ExpressionUnitList *ExpressionUnitList Token xc.Token }
SetTerminalContextSpecListItem represents data reduced by productions:
SetTerminalContextSpecListItem: "default" | "defaultsize" Expression // Case 1 | "size" ExpressionUnitList // Case 2 | "input" // Case 3 | "standalone" // Case 4 | "timestamp" // Case 5 | "notimestamp" // Case 6 | "header" Expression // Case 7 | "noheader" // Case 8 | "color" // Case 9 | "colour" // Case 10 | "monochrome" // Case 11 | "rounded" // Case 12 | "mitered" // Case 13 | "beveled" // Case 14 | "round" // Case 15 | "butt" // Case 16 | "squared" // Case 17 | "dashed" // Case 18 | "solid" // Case 19 | "dashlength" Expression // Case 20 | "dl" Expression // Case 21 | "linewidth" Expression // Case 22 | "lw" Expression // Case 23 | "fontscale" Expression // Case 24 | "mppoints" // Case 25 | "texpoints" // Case 26 | "inlineimages" // Case 27 | "externalimages" // Case 28 | "defaultfont" // Case 29 | "font" Expression // Case 30
Example ¶
fmt.Println(exampleAST(1554, "set term context default"))
Output: &plot.SetTerminalContextSpecListItem{ · Token: example1554.go:1:18: IDENTIFIER "default", }
Example (Case01) ¶
fmt.Println(exampleAST(1555, "set term context defaultsize ident_a"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1555.go:1:30: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1555.go:1:18: IDENTIFIER "defaultsize", }
Example (Case02) ¶
fmt.Println(exampleAST(1556, "set term context size ident_a"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 2, · ExpressionUnitList: &plot.ExpressionUnitList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1556.go:1:23: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1556.go:1:18: IDENTIFIER "size", }
Example (Case03) ¶
fmt.Println(exampleAST(1557, "set term context input"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 3, · Token: example1557.go:1:18: IDENTIFIER "input", }
Example (Case04) ¶
fmt.Println(exampleAST(1558, "set term context standalone"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 4, · Token: example1558.go:1:18: IDENTIFIER "standalone", }
Example (Case05) ¶
fmt.Println(exampleAST(1559, "set term context timestamp"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 5, · Token: example1559.go:1:18: IDENTIFIER "timestamp", }
Example (Case06) ¶
fmt.Println(exampleAST(1560, "set term context notimestamp"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 6, · Token: example1560.go:1:18: IDENTIFIER "notimestamp", }
Example (Case07) ¶
fmt.Println(exampleAST(1561, "set term context header ident_a"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1561.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1561.go:1:18: IDENTIFIER "header", }
Example (Case08) ¶
fmt.Println(exampleAST(1562, "set term context noheader"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 8, · Token: example1562.go:1:18: IDENTIFIER "noheader", }
Example (Case09) ¶
fmt.Println(exampleAST(1563, "set term context color"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 9, · Token: example1563.go:1:18: IDENTIFIER "color", }
Example (Case10) ¶
fmt.Println(exampleAST(1564, "set term context colour"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 10, · Token: example1564.go:1:18: IDENTIFIER "colour", }
Example (Case11) ¶
fmt.Println(exampleAST(1565, "set term context monochrome"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 11, · Token: example1565.go:1:18: IDENTIFIER "monochrome", }
Example (Case12) ¶
fmt.Println(exampleAST(1566, "set term context rounded"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 12, · Token: example1566.go:1:18: IDENTIFIER "rounded", }
Example (Case13) ¶
fmt.Println(exampleAST(1567, "set term context mitered"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 13, · Token: example1567.go:1:18: IDENTIFIER "mitered", }
Example (Case14) ¶
fmt.Println(exampleAST(1568, "set term context beveled"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 14, · Token: example1568.go:1:18: IDENTIFIER "beveled", }
Example (Case15) ¶
fmt.Println(exampleAST(1569, "set term context round"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 15, · Token: example1569.go:1:18: IDENTIFIER "round", }
Example (Case16) ¶
fmt.Println(exampleAST(1570, "set term context butt"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 16, · Token: example1570.go:1:18: IDENTIFIER "butt", }
Example (Case17) ¶
fmt.Println(exampleAST(1571, "set term context squared"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 17, · Token: example1571.go:1:18: IDENTIFIER "squared", }
Example (Case18) ¶
fmt.Println(exampleAST(1572, "set term context dashed"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 18, · Token: example1572.go:1:18: IDENTIFIER "dashed", }
Example (Case19) ¶
fmt.Println(exampleAST(1573, "set term context solid"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 19, · Token: example1573.go:1:18: IDENTIFIER "solid", }
Example (Case20) ¶
fmt.Println(exampleAST(1574, "set term context dashlength ident_a"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 20, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1574.go:1:29: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1574.go:1:18: IDENTIFIER "dashlength", }
Example (Case21) ¶
fmt.Println(exampleAST(1575, "set term context dl ident_a"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 21, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1575.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1575.go:1:18: IDENTIFIER "dl", }
Example (Case22) ¶
fmt.Println(exampleAST(1576, "set term context linewidth ident_a"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 22, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1576.go:1:28: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1576.go:1:18: IDENTIFIER "linewidth", }
Example (Case23) ¶
fmt.Println(exampleAST(1577, "set term context lw ident_a"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 23, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1577.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1577.go:1:18: IDENTIFIER "lw", }
Example (Case24) ¶
fmt.Println(exampleAST(1578, "set term context fontscale ident_a"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 24, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1578.go:1:28: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1578.go:1:18: IDENTIFIER "fontscale", }
Example (Case25) ¶
fmt.Println(exampleAST(1579, "set term context mppoints"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 25, · Token: example1579.go:1:18: IDENTIFIER "mppoints", }
Example (Case26) ¶
fmt.Println(exampleAST(1580, "set term context texpoints"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 26, · Token: example1580.go:1:18: IDENTIFIER "texpoints", }
Example (Case27) ¶
fmt.Println(exampleAST(1581, "set term context inlineimages"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 27, · Token: example1581.go:1:18: IDENTIFIER "inlineimages", }
Example (Case28) ¶
fmt.Println(exampleAST(1582, "set term context externalimages"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 28, · Token: example1582.go:1:18: IDENTIFIER "externalimages", }
Example (Case29) ¶
fmt.Println(exampleAST(1583, "set term context defaultfont"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 29, · Token: example1583.go:1:18: IDENTIFIER "defaultfont", }
Example (Case30) ¶
fmt.Println(exampleAST(1584, "set term context font ident_a"))
Output: &plot.SetTerminalContextSpecListItem{ · Case: 30, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1584.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1584.go:1:18: IDENTIFIER "font", }
func (*SetTerminalContextSpecListItem) Pos ¶
func (n *SetTerminalContextSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalContextSpecListItem) String ¶
func (n *SetTerminalContextSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalContextSpecListOpt ¶
type SetTerminalContextSpecListOpt struct {
SetTerminalContextSpecList *SetTerminalContextSpecList
}
SetTerminalContextSpecListOpt represents data reduced by productions:
SetTerminalContextSpecListOpt: /* empty */ | SetTerminalContextSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1585, "set term context") == (*SetTerminalContextSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1586, "set term context beveled"))
Output: &plot.SetTerminalContextSpecListOpt{ · SetTerminalContextSpecList: &plot.SetTerminalContextSpecList{ · · SetTerminalContextSpecListItem: &plot.SetTerminalContextSpecListItem{ · · · Case: 14, · · · Token: example1586.go:1:18: IDENTIFIER "beveled", · · }, · }, }
func (*SetTerminalContextSpecListOpt) Pos ¶
func (n *SetTerminalContextSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalContextSpecListOpt) String ¶
func (n *SetTerminalContextSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalCorelSpecList ¶
type SetTerminalCorelSpecList struct { Case int SetTerminalCorelSpecList *SetTerminalCorelSpecList SetTerminalCorelSpecListItem *SetTerminalCorelSpecListItem }
SetTerminalCorelSpecList represents data reduced by productions:
SetTerminalCorelSpecList: SetTerminalCorelSpecListItem | SetTerminalCorelSpecList SetTerminalCorelSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1587, "set term corel ident_a"))
Output: &plot.SetTerminalCorelSpecList{ · SetTerminalCorelSpecListItem: &plot.SetTerminalCorelSpecListItem{ · · Case: 3, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1587.go:1:16: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1588, "set term corel ident_a ident_b"))
Output: &plot.SetTerminalCorelSpecList{ · SetTerminalCorelSpecList: &plot.SetTerminalCorelSpecList{ · · Case: 1, · · SetTerminalCorelSpecListItem: &plot.SetTerminalCorelSpecListItem{ · · · Case: 3, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1588.go:1:24: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalCorelSpecListItem: &plot.SetTerminalCorelSpecListItem{ · · Case: 3, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1588.go:1:16: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalCorelSpecList) Pos ¶
func (n *SetTerminalCorelSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalCorelSpecList) String ¶
func (n *SetTerminalCorelSpecList) String() string
String implements fmt.Stringer.
type SetTerminalCorelSpecListItem ¶
type SetTerminalCorelSpecListItem struct { Case int SimpleExpression *SimpleExpression Token xc.Token }
SetTerminalCorelSpecListItem represents data reduced by productions:
SetTerminalCorelSpecListItem: "default" | "monochrome" // Case 1 | "color" // Case 2 | SimpleExpression // Case 3
Example ¶
fmt.Println(exampleAST(1589, "set term corel default"))
Output: &plot.SetTerminalCorelSpecListItem{ · Token: example1589.go:1:16: IDENTIFIER "default", }
Example (Case1) ¶
fmt.Println(exampleAST(1590, "set term corel monochrome"))
Output: &plot.SetTerminalCorelSpecListItem{ · Case: 1, · Token: example1590.go:1:16: IDENTIFIER "monochrome", }
Example (Case2) ¶
fmt.Println(exampleAST(1591, "set term corel color"))
Output: &plot.SetTerminalCorelSpecListItem{ · Case: 2, · Token: example1591.go:1:16: IDENTIFIER "color", }
Example (Case3) ¶
fmt.Println(exampleAST(1592, "set term corel ident_a"))
Output: &plot.SetTerminalCorelSpecListItem{ · Case: 3, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1592.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*SetTerminalCorelSpecListItem) Pos ¶
func (n *SetTerminalCorelSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalCorelSpecListItem) String ¶
func (n *SetTerminalCorelSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalCorelSpecListOpt ¶
type SetTerminalCorelSpecListOpt struct {
SetTerminalCorelSpecList *SetTerminalCorelSpecList
}
SetTerminalCorelSpecListOpt represents data reduced by productions:
SetTerminalCorelSpecListOpt: /* empty */ | SetTerminalCorelSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1593, "set term corel") == (*SetTerminalCorelSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1594, "set term corel ident_a"))
Output: &plot.SetTerminalCorelSpecListOpt{ · SetTerminalCorelSpecList: &plot.SetTerminalCorelSpecList{ · · SetTerminalCorelSpecListItem: &plot.SetTerminalCorelSpecListItem{ · · · Case: 3, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1594.go:1:16: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalCorelSpecListOpt) Pos ¶
func (n *SetTerminalCorelSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalCorelSpecListOpt) String ¶
func (n *SetTerminalCorelSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalDpu414SpecList ¶
type SetTerminalDpu414SpecList struct { Case int SetTerminalDpu414SpecList *SetTerminalDpu414SpecList SetTerminalDpu414SpecListItem *SetTerminalDpu414SpecListItem }
SetTerminalDpu414SpecList represents data reduced by productions:
SetTerminalDpu414SpecList: SetTerminalDpu414SpecListItem | SetTerminalDpu414SpecList SetTerminalDpu414SpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1640, "set term dpu414 draft"))
Output: &plot.SetTerminalDpu414SpecList{ · SetTerminalDpu414SpecListItem: &plot.SetTerminalDpu414SpecListItem{ · · Case: 4, · · Token: example1640.go:1:17: IDENTIFIER "draft", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1641, "set term dpu414 draft draft"))
Output: &plot.SetTerminalDpu414SpecList{ · SetTerminalDpu414SpecList: &plot.SetTerminalDpu414SpecList{ · · Case: 1, · · SetTerminalDpu414SpecListItem: &plot.SetTerminalDpu414SpecListItem{ · · · Case: 4, · · · Token: example1641.go:1:23: IDENTIFIER "draft", · · }, · }, · SetTerminalDpu414SpecListItem: &plot.SetTerminalDpu414SpecListItem{ · · Case: 4, · · Token: example1641.go:1:17: IDENTIFIER "draft", · }, }
func (*SetTerminalDpu414SpecList) Pos ¶
func (n *SetTerminalDpu414SpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalDpu414SpecList) String ¶
func (n *SetTerminalDpu414SpecList) String() string
String implements fmt.Stringer.
type SetTerminalDpu414SpecListItem ¶
SetTerminalDpu414SpecListItem represents data reduced by productions:
SetTerminalDpu414SpecListItem: "small" | "medium" // Case 1 | "large" // Case 2 | "normal" // Case 3 | "draft" // Case 4
Example ¶
fmt.Println(exampleAST(1642, "set term dpu414 small"))
Output: &plot.SetTerminalDpu414SpecListItem{ · Token: example1642.go:1:17: IDENTIFIER "small", }
Example (Case1) ¶
fmt.Println(exampleAST(1643, "set term dpu414 medium"))
Output: &plot.SetTerminalDpu414SpecListItem{ · Case: 1, · Token: example1643.go:1:17: IDENTIFIER "medium", }
Example (Case2) ¶
fmt.Println(exampleAST(1644, "set term dpu414 large"))
Output: &plot.SetTerminalDpu414SpecListItem{ · Case: 2, · Token: example1644.go:1:17: IDENTIFIER "large", }
Example (Case3) ¶
fmt.Println(exampleAST(1645, "set term dpu414 normal"))
Output: &plot.SetTerminalDpu414SpecListItem{ · Case: 3, · Token: example1645.go:1:17: IDENTIFIER "normal", }
Example (Case4) ¶
fmt.Println(exampleAST(1646, "set term dpu414 draft"))
Output: &plot.SetTerminalDpu414SpecListItem{ · Case: 4, · Token: example1646.go:1:17: IDENTIFIER "draft", }
func (*SetTerminalDpu414SpecListItem) Pos ¶
func (n *SetTerminalDpu414SpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalDpu414SpecListItem) String ¶
func (n *SetTerminalDpu414SpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalDpu414SpecListOpt ¶
type SetTerminalDpu414SpecListOpt struct {
SetTerminalDpu414SpecList *SetTerminalDpu414SpecList
}
SetTerminalDpu414SpecListOpt represents data reduced by productions:
SetTerminalDpu414SpecListOpt: /* empty */ | SetTerminalDpu414SpecList // Case 1
Example ¶
fmt.Println(exampleAST(1647, "set term dpu414") == (*SetTerminalDpu414SpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1648, "set term dpu414 draft"))
Output: &plot.SetTerminalDpu414SpecListOpt{ · SetTerminalDpu414SpecList: &plot.SetTerminalDpu414SpecList{ · · SetTerminalDpu414SpecListItem: &plot.SetTerminalDpu414SpecListItem{ · · · Case: 4, · · · Token: example1648.go:1:17: IDENTIFIER "draft", · · }, · }, }
func (*SetTerminalDpu414SpecListOpt) Pos ¶
func (n *SetTerminalDpu414SpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalDpu414SpecListOpt) String ¶
func (n *SetTerminalDpu414SpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalDumbSpecList ¶
type SetTerminalDumbSpecList struct { Case int SetTerminalDumbSpecList *SetTerminalDumbSpecList SetTerminalDumbSpecListItem *SetTerminalDumbSpecListItem }
SetTerminalDumbSpecList represents data reduced by productions:
SetTerminalDumbSpecList: SetTerminalDumbSpecListItem | SetTerminalDumbSpecList SetTerminalDumbSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1595, "set term dumb enhanced"))
Output: &plot.SetTerminalDumbSpecList{ · SetTerminalDumbSpecListItem: &plot.SetTerminalDumbSpecListItem{ · · Case: 4, · · Token: example1595.go:1:15: IDENTIFIER "enhanced", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1596, "set term dumb enhanced enhanced"))
Output: &plot.SetTerminalDumbSpecList{ · SetTerminalDumbSpecList: &plot.SetTerminalDumbSpecList{ · · Case: 1, · · SetTerminalDumbSpecListItem: &plot.SetTerminalDumbSpecListItem{ · · · Case: 4, · · · Token: example1596.go:1:24: IDENTIFIER "enhanced", · · }, · }, · SetTerminalDumbSpecListItem: &plot.SetTerminalDumbSpecListItem{ · · Case: 4, · · Token: example1596.go:1:15: IDENTIFIER "enhanced", · }, }
func (*SetTerminalDumbSpecList) Pos ¶
func (n *SetTerminalDumbSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalDumbSpecList) String ¶
func (n *SetTerminalDumbSpecList) String() string
String implements fmt.Stringer.
type SetTerminalDumbSpecListItem ¶
type SetTerminalDumbSpecListItem struct { Case int ExpressionList *ExpressionList Token xc.Token }
SetTerminalDumbSpecListItem represents data reduced by productions:
SetTerminalDumbSpecListItem: "size" ExpressionList | "feed" // Case 1 | "nofeed" // Case 2 | "aspect" ExpressionList // Case 3 | "enhanced" // Case 4 | "noenhanced" // Case 5
Example ¶
fmt.Println(exampleAST(1597, "set term dumb size ident_a"))
Output: &plot.SetTerminalDumbSpecListItem{ · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1597.go:1:20: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1597.go:1:15: IDENTIFIER "size", }
Example (Case1) ¶
fmt.Println(exampleAST(1598, "set term dumb feed"))
Output: &plot.SetTerminalDumbSpecListItem{ · Case: 1, · Token: example1598.go:1:15: IDENTIFIER "feed", }
Example (Case2) ¶
fmt.Println(exampleAST(1599, "set term dumb nofeed"))
Output: &plot.SetTerminalDumbSpecListItem{ · Case: 2, · Token: example1599.go:1:15: IDENTIFIER "nofeed", }
Example (Case3) ¶
fmt.Println(exampleAST(1600, "set term dumb aspect ident_a"))
Output: &plot.SetTerminalDumbSpecListItem{ · Case: 3, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1600.go:1:22: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1600.go:1:15: IDENTIFIER "aspect", }
Example (Case4) ¶
fmt.Println(exampleAST(1601, "set term dumb enhanced"))
Output: &plot.SetTerminalDumbSpecListItem{ · Case: 4, · Token: example1601.go:1:15: IDENTIFIER "enhanced", }
Example (Case5) ¶
fmt.Println(exampleAST(1602, "set term dumb noenhanced"))
Output: &plot.SetTerminalDumbSpecListItem{ · Case: 5, · Token: example1602.go:1:15: IDENTIFIER "noenhanced", }
func (*SetTerminalDumbSpecListItem) Pos ¶
func (n *SetTerminalDumbSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalDumbSpecListItem) String ¶
func (n *SetTerminalDumbSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalDumbSpecListOpt ¶
type SetTerminalDumbSpecListOpt struct {
SetTerminalDumbSpecList *SetTerminalDumbSpecList
}
SetTerminalDumbSpecListOpt represents data reduced by productions:
SetTerminalDumbSpecListOpt: /* empty */ | SetTerminalDumbSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1603, "set term dumb") == (*SetTerminalDumbSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1604, "set term dumb enhanced"))
Output: &plot.SetTerminalDumbSpecListOpt{ · SetTerminalDumbSpecList: &plot.SetTerminalDumbSpecList{ · · SetTerminalDumbSpecListItem: &plot.SetTerminalDumbSpecListItem{ · · · Case: 4, · · · Token: example1604.go:1:15: IDENTIFIER "enhanced", · · }, · }, }
func (*SetTerminalDumbSpecListOpt) Pos ¶
func (n *SetTerminalDumbSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalDumbSpecListOpt) String ¶
func (n *SetTerminalDumbSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalEepicSpecList ¶
type SetTerminalEepicSpecList struct { Case int SetTerminalEepicSpecList *SetTerminalEepicSpecList SetTerminalEepicSpecListItem *SetTerminalEepicSpecListItem }
SetTerminalEepicSpecList represents data reduced by productions:
SetTerminalEepicSpecList: SetTerminalEepicSpecListItem | SetTerminalEepicSpecList SetTerminalEepicSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1605, "set term eepic ident_a"))
Output: &plot.SetTerminalEepicSpecList{ · SetTerminalEepicSpecListItem: &plot.SetTerminalEepicSpecListItem{ · · Case: 7, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1605.go:1:16: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1606, "set term eepic ident_a ident_b"))
Output: &plot.SetTerminalEepicSpecList{ · SetTerminalEepicSpecList: &plot.SetTerminalEepicSpecList{ · · Case: 1, · · SetTerminalEepicSpecListItem: &plot.SetTerminalEepicSpecListItem{ · · · Case: 7, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1606.go:1:24: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalEepicSpecListItem: &plot.SetTerminalEepicSpecListItem{ · · Case: 7, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1606.go:1:16: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalEepicSpecList) Pos ¶
func (n *SetTerminalEepicSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalEepicSpecList) String ¶
func (n *SetTerminalEepicSpecList) String() string
String implements fmt.Stringer.
type SetTerminalEepicSpecListItem ¶
type SetTerminalEepicSpecListItem struct { Case int ExpressionList *ExpressionList SimpleExpression *SimpleExpression Token xc.Token }
SetTerminalEepicSpecListItem represents data reduced by productions:
SetTerminalEepicSpecListItem: "default" | "color" // Case 1 | "dashed" // Case 2 | "rotate" // Case 3 | "size" ExpressionList // Case 4 | "small" // Case 5 | "tiny" // Case 6 | SimpleExpression // Case 7
Example ¶
fmt.Println(exampleAST(1607, "set term eepic default"))
Output: &plot.SetTerminalEepicSpecListItem{ · Token: example1607.go:1:16: IDENTIFIER "default", }
Example (Case1) ¶
fmt.Println(exampleAST(1608, "set term eepic color"))
Output: &plot.SetTerminalEepicSpecListItem{ · Case: 1, · Token: example1608.go:1:16: IDENTIFIER "color", }
Example (Case2) ¶
fmt.Println(exampleAST(1609, "set term eepic dashed"))
Output: &plot.SetTerminalEepicSpecListItem{ · Case: 2, · Token: example1609.go:1:16: IDENTIFIER "dashed", }
Example (Case3) ¶
fmt.Println(exampleAST(1610, "set term eepic rotate"))
Output: &plot.SetTerminalEepicSpecListItem{ · Case: 3, · Token: example1610.go:1:16: IDENTIFIER "rotate", }
Example (Case4) ¶
fmt.Println(exampleAST(1611, "set term eepic size ident_a"))
Output: &plot.SetTerminalEepicSpecListItem{ · Case: 4, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1611.go:1:21: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1611.go:1:16: IDENTIFIER "size", }
Example (Case5) ¶
fmt.Println(exampleAST(1612, "set term eepic small"))
Output: &plot.SetTerminalEepicSpecListItem{ · Case: 5, · Token: example1612.go:1:16: IDENTIFIER "small", }
Example (Case6) ¶
fmt.Println(exampleAST(1613, "set term eepic tiny"))
Output: &plot.SetTerminalEepicSpecListItem{ · Case: 6, · Token: example1613.go:1:16: IDENTIFIER "tiny", }
Example (Case7) ¶
fmt.Println(exampleAST(1614, "set term eepic ident_a"))
Output: &plot.SetTerminalEepicSpecListItem{ · Case: 7, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1614.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*SetTerminalEepicSpecListItem) Pos ¶
func (n *SetTerminalEepicSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalEepicSpecListItem) String ¶
func (n *SetTerminalEepicSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalEepicSpecListOpt ¶
type SetTerminalEepicSpecListOpt struct {
SetTerminalEepicSpecList *SetTerminalEepicSpecList
}
SetTerminalEepicSpecListOpt represents data reduced by productions:
SetTerminalEepicSpecListOpt: /* empty */ | SetTerminalEepicSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1615, "set term eepic") == (*SetTerminalEepicSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1616, "set term eepic ident_a"))
Output: &plot.SetTerminalEepicSpecListOpt{ · SetTerminalEepicSpecList: &plot.SetTerminalEepicSpecList{ · · SetTerminalEepicSpecListItem: &plot.SetTerminalEepicSpecListItem{ · · · Case: 7, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1616.go:1:16: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalEepicSpecListOpt) Pos ¶
func (n *SetTerminalEepicSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalEepicSpecListOpt) String ¶
func (n *SetTerminalEepicSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalEmfSpecList ¶
type SetTerminalEmfSpecList struct { Case int SetTerminalEmfSpecList *SetTerminalEmfSpecList SetTerminalEmfSpecListItem *SetTerminalEmfSpecListItem }
SetTerminalEmfSpecList represents data reduced by productions:
SetTerminalEmfSpecList: SetTerminalEmfSpecListItem | SetTerminalEmfSpecList SetTerminalEmfSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1617, "set term emf butt"))
Output: &plot.SetTerminalEmfSpecList{ · SetTerminalEmfSpecListItem: &plot.SetTerminalEmfSpecListItem{ · · Case: 5, · · Token: example1617.go:1:14: IDENTIFIER "butt", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1618, "set term emf butt butt"))
Output: &plot.SetTerminalEmfSpecList{ · SetTerminalEmfSpecList: &plot.SetTerminalEmfSpecList{ · · Case: 1, · · SetTerminalEmfSpecListItem: &plot.SetTerminalEmfSpecListItem{ · · · Case: 5, · · · Token: example1618.go:1:19: IDENTIFIER "butt", · · }, · }, · SetTerminalEmfSpecListItem: &plot.SetTerminalEmfSpecListItem{ · · Case: 5, · · Token: example1618.go:1:14: IDENTIFIER "butt", · }, }
func (*SetTerminalEmfSpecList) Pos ¶
func (n *SetTerminalEmfSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalEmfSpecList) String ¶
func (n *SetTerminalEmfSpecList) String() string
String implements fmt.Stringer.
type SetTerminalEmfSpecListItem ¶
type SetTerminalEmfSpecListItem struct { Case int Expression *Expression ExpressionList *ExpressionList Token xc.Token }
SetTerminalEmfSpecListItem represents data reduced by productions:
SetTerminalEmfSpecListItem: "color" | "monochrome" // Case 1 | "enhanced" // Case 2 | "noproportional" // Case 3 | "rounded" // Case 4 | "butt" // Case 5 | "linewidth" Expression // Case 6 | "dashlength" Expression // Case 7 | "size" ExpressionList // Case 8 | "background" Expression // Case 9 | "font" Expression // Case 10 | "fontscale" Expression // Case 11
Example ¶
fmt.Println(exampleAST(1619, "set term emf color"))
Output: &plot.SetTerminalEmfSpecListItem{ · Token: example1619.go:1:14: IDENTIFIER "color", }
Example (Case01) ¶
fmt.Println(exampleAST(1620, "set term emf monochrome"))
Output: &plot.SetTerminalEmfSpecListItem{ · Case: 1, · Token: example1620.go:1:14: IDENTIFIER "monochrome", }
Example (Case02) ¶
fmt.Println(exampleAST(1621, "set term emf enhanced"))
Output: &plot.SetTerminalEmfSpecListItem{ · Case: 2, · Token: example1621.go:1:14: IDENTIFIER "enhanced", }
Example (Case03) ¶
fmt.Println(exampleAST(1622, "set term emf noproportional"))
Output: &plot.SetTerminalEmfSpecListItem{ · Case: 3, · Token: example1622.go:1:14: IDENTIFIER "noproportional", }
Example (Case04) ¶
fmt.Println(exampleAST(1623, "set term emf rounded"))
Output: &plot.SetTerminalEmfSpecListItem{ · Case: 4, · Token: example1623.go:1:14: IDENTIFIER "rounded", }
Example (Case05) ¶
fmt.Println(exampleAST(1624, "set term emf butt"))
Output: &plot.SetTerminalEmfSpecListItem{ · Case: 5, · Token: example1624.go:1:14: IDENTIFIER "butt", }
Example (Case06) ¶
fmt.Println(exampleAST(1625, "set term emf linewidth ident_a"))
Output: &plot.SetTerminalEmfSpecListItem{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1625.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1625.go:1:14: IDENTIFIER "linewidth", }
Example (Case07) ¶
fmt.Println(exampleAST(1626, "set term emf dashlength ident_a"))
Output: &plot.SetTerminalEmfSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1626.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1626.go:1:14: IDENTIFIER "dashlength", }
Example (Case08) ¶
fmt.Println(exampleAST(1627, "set term emf size ident_a"))
Output: &plot.SetTerminalEmfSpecListItem{ · Case: 8, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1627.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1627.go:1:14: IDENTIFIER "size", }
Example (Case09) ¶
fmt.Println(exampleAST(1628, "set term emf background ident_a"))
Output: &plot.SetTerminalEmfSpecListItem{ · Case: 9, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1628.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1628.go:1:14: IDENTIFIER "background", }
Example (Case10) ¶
fmt.Println(exampleAST(1629, "set term emf font ident_a"))
Output: &plot.SetTerminalEmfSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1629.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1629.go:1:14: IDENTIFIER "font", }
Example (Case11) ¶
fmt.Println(exampleAST(1630, "set term emf fontscale ident_a"))
Output: &plot.SetTerminalEmfSpecListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1630.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1630.go:1:14: IDENTIFIER "fontscale", }
func (*SetTerminalEmfSpecListItem) Pos ¶
func (n *SetTerminalEmfSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalEmfSpecListItem) String ¶
func (n *SetTerminalEmfSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalEmfSpecListOpt ¶
type SetTerminalEmfSpecListOpt struct {
SetTerminalEmfSpecList *SetTerminalEmfSpecList
}
SetTerminalEmfSpecListOpt represents data reduced by productions:
SetTerminalEmfSpecListOpt: /* empty */ | SetTerminalEmfSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1631, "set term emf") == (*SetTerminalEmfSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1632, "set term emf butt"))
Output: &plot.SetTerminalEmfSpecListOpt{ · SetTerminalEmfSpecList: &plot.SetTerminalEmfSpecList{ · · SetTerminalEmfSpecListItem: &plot.SetTerminalEmfSpecListItem{ · · · Case: 5, · · · Token: example1632.go:1:14: IDENTIFIER "butt", · · }, · }, }
func (*SetTerminalEmfSpecListOpt) Pos ¶
func (n *SetTerminalEmfSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalEmfSpecListOpt) String ¶
func (n *SetTerminalEmfSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalEpslatexSpecList ¶
type SetTerminalEpslatexSpecList struct { Case int SetTerminalEpslatexSpecList *SetTerminalEpslatexSpecList SetTerminalEpslatexSpecListItem *SetTerminalEpslatexSpecListItem }
SetTerminalEpslatexSpecList represents data reduced by productions:
SetTerminalEpslatexSpecList: SetTerminalEpslatexSpecListItem | SetTerminalEpslatexSpecList SetTerminalEpslatexSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(2192, "set term epslatex ident_a"))
Output: &plot.SetTerminalEpslatexSpecList{ · SetTerminalEpslatexSpecListItem: &plot.SetTerminalEpslatexSpecListItem{ · · Case: 29, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2192.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2193, "set term epslatex ident_a ident_b"))
Output: &plot.SetTerminalEpslatexSpecList{ · SetTerminalEpslatexSpecList: &plot.SetTerminalEpslatexSpecList{ · · Case: 1, · · SetTerminalEpslatexSpecListItem: &plot.SetTerminalEpslatexSpecListItem{ · · · Case: 29, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2193.go:1:27: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalEpslatexSpecListItem: &plot.SetTerminalEpslatexSpecListItem{ · · Case: 29, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2193.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalEpslatexSpecList) Pos ¶
func (n *SetTerminalEpslatexSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalEpslatexSpecList) String ¶
func (n *SetTerminalEpslatexSpecList) String() string
String implements fmt.Stringer.
type SetTerminalEpslatexSpecListItem ¶
type SetTerminalEpslatexSpecListItem struct { Case int Expression *Expression Expression2 *Expression ExpressionUnitList *ExpressionUnitList SimpleExpression *SimpleExpression Token xc.Token Token2 xc.Token }
SetTerminalEpslatexSpecListItem represents data reduced by productions:
SetTerminalEpslatexSpecListItem: "default" | "standalone" // Case 1 | "input" // Case 2 | "oldstyle" // Case 3 | "newstyle" // Case 4 | "level1" // Case 5 | "leveldefault" // Case 6 | "level3" // Case 7 | "color" // Case 8 | "colour" // Case 9 | "monochrome" // Case 10 | "background" Expression // Case 11 | "nobackground" // Case 12 | "dashlength" Expression // Case 13 | "dl" Expression // Case 14 | "linewidth" Expression // Case 15 | "lw" Expression // Case 16 | "rounded" // Case 17 | "butt" // Case 18 | "clip" // Case 19 | "noclip" // Case 20 | "palfuncparam" Expression // Case 21 | "palfuncparam" Expression ',' Expression // Case 22 | "size" ExpressionUnitList // Case 23 | "header" Expression // Case 24 | "noheader" // Case 25 | "blacktext" // Case 26 | "colortext" // Case 27 | "colourtext" // Case 28 | SimpleExpression // Case 29 | "font" Expression // Case 30 | "fontscale" Expression // Case 31
Example ¶
fmt.Println(exampleAST(2194, "set term epslatex default"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Token: example2194.go:1:19: IDENTIFIER "default", }
Example (Case01) ¶
fmt.Println(exampleAST(2195, "set term epslatex standalone"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 1, · Token: example2195.go:1:19: IDENTIFIER "standalone", }
Example (Case02) ¶
fmt.Println(exampleAST(2196, "set term epslatex input"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 2, · Token: example2196.go:1:19: IDENTIFIER "input", }
Example (Case03) ¶
fmt.Println(exampleAST(2197, "set term epslatex oldstyle"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 3, · Token: example2197.go:1:19: IDENTIFIER "oldstyle", }
Example (Case04) ¶
fmt.Println(exampleAST(2198, "set term epslatex newstyle"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 4, · Token: example2198.go:1:19: IDENTIFIER "newstyle", }
Example (Case05) ¶
fmt.Println(exampleAST(2199, "set term epslatex level1"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 5, · Token: example2199.go:1:19: IDENTIFIER "level1", }
Example (Case06) ¶
fmt.Println(exampleAST(2200, "set term epslatex leveldefault"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 6, · Token: example2200.go:1:19: IDENTIFIER "leveldefault", }
Example (Case07) ¶
fmt.Println(exampleAST(2201, "set term epslatex level3"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 7, · Token: example2201.go:1:19: IDENTIFIER "level3", }
Example (Case08) ¶
fmt.Println(exampleAST(2202, "set term epslatex color"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 8, · Token: example2202.go:1:19: IDENTIFIER "color", }
Example (Case09) ¶
fmt.Println(exampleAST(2203, "set term epslatex colour"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 9, · Token: example2203.go:1:19: IDENTIFIER "colour", }
Example (Case10) ¶
fmt.Println(exampleAST(2204, "set term epslatex monochrome"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 10, · Token: example2204.go:1:19: IDENTIFIER "monochrome", }
Example (Case11) ¶
fmt.Println(exampleAST(2205, "set term epslatex background ident_a"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2205.go:1:30: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2205.go:1:19: IDENTIFIER "background", }
Example (Case12) ¶
fmt.Println(exampleAST(2206, "set term epslatex nobackground"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 12, · Token: example2206.go:1:19: IDENTIFIER "nobackground", }
Example (Case13) ¶
fmt.Println(exampleAST(2207, "set term epslatex dashlength ident_a"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 13, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2207.go:1:30: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2207.go:1:19: IDENTIFIER "dashlength", }
Example (Case14) ¶
fmt.Println(exampleAST(2208, "set term epslatex dl ident_a"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 14, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2208.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2208.go:1:19: IDENTIFIER "dl", }
Example (Case15) ¶
fmt.Println(exampleAST(2209, "set term epslatex linewidth ident_a"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2209.go:1:29: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2209.go:1:19: IDENTIFIER "linewidth", }
Example (Case16) ¶
fmt.Println(exampleAST(2210, "set term epslatex lw ident_a"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 16, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2210.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2210.go:1:19: IDENTIFIER "lw", }
Example (Case17) ¶
fmt.Println(exampleAST(2211, "set term epslatex rounded"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 17, · Token: example2211.go:1:19: IDENTIFIER "rounded", }
Example (Case18) ¶
fmt.Println(exampleAST(2212, "set term epslatex butt"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 18, · Token: example2212.go:1:19: IDENTIFIER "butt", }
Example (Case19) ¶
fmt.Println(exampleAST(2213, "set term epslatex clip"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 19, · Token: example2213.go:1:19: IDENTIFIER "clip", }
Example (Case20) ¶
fmt.Println(exampleAST(2214, "set term epslatex noclip"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 20, · Token: example2214.go:1:19: IDENTIFIER "noclip", }
Example (Case21) ¶
fmt.Println(exampleAST(2215, "set term epslatex palfuncparam ident_a"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 21, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2215.go:1:32: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2215.go:1:19: IDENTIFIER "palfuncparam", }
Example (Case22) ¶
fmt.Println(exampleAST(2216, "set term epslatex palfuncparam ident_a , ident_b"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 22, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2216.go:1:32: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2216.go:1:42: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2216.go:1:19: IDENTIFIER "palfuncparam", · Token2: example2216.go:1:40: ',' ",", }
Example (Case23) ¶
fmt.Println(exampleAST(2217, "set term epslatex size ident_a"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 23, · ExpressionUnitList: &plot.ExpressionUnitList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2217.go:1:24: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2217.go:1:19: IDENTIFIER "size", }
Example (Case24) ¶
fmt.Println(exampleAST(2218, "set term epslatex header ident_a"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 24, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2218.go:1:26: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2218.go:1:19: IDENTIFIER "header", }
Example (Case25) ¶
fmt.Println(exampleAST(2219, "set term epslatex noheader"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 25, · Token: example2219.go:1:19: IDENTIFIER "noheader", }
Example (Case26) ¶
fmt.Println(exampleAST(2220, "set term epslatex blacktext"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 26, · Token: example2220.go:1:19: IDENTIFIER "blacktext", }
Example (Case27) ¶
fmt.Println(exampleAST(2221, "set term epslatex colortext"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 27, · Token: example2221.go:1:19: IDENTIFIER "colortext", }
Example (Case28) ¶
fmt.Println(exampleAST(2222, "set term epslatex colourtext"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 28, · Token: example2222.go:1:19: IDENTIFIER "colourtext", }
Example (Case29) ¶
fmt.Println(exampleAST(2223, "set term epslatex ident_a"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 29, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2223.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case30) ¶
fmt.Println(exampleAST(2224, "set term epslatex font ident_a"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 30, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2224.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2224.go:1:19: IDENTIFIER "font", }
Example (Case31) ¶
fmt.Println(exampleAST(2225, "set term epslatex fontscale ident_a"))
Output: &plot.SetTerminalEpslatexSpecListItem{ · Case: 31, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2225.go:1:29: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2225.go:1:19: IDENTIFIER "fontscale", }
func (*SetTerminalEpslatexSpecListItem) Pos ¶
func (n *SetTerminalEpslatexSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalEpslatexSpecListItem) String ¶
func (n *SetTerminalEpslatexSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalEpslatexSpecListOpt ¶
type SetTerminalEpslatexSpecListOpt struct {
SetTerminalEpslatexSpecList *SetTerminalEpslatexSpecList
}
SetTerminalEpslatexSpecListOpt represents data reduced by productions:
SetTerminalEpslatexSpecListOpt: /* empty */ | SetTerminalEpslatexSpecList // Case 1
Example ¶
fmt.Println(exampleAST(2226, "set term epslatex") == (*SetTerminalEpslatexSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2227, "set term epslatex ident_a"))
Output: &plot.SetTerminalEpslatexSpecListOpt{ · SetTerminalEpslatexSpecList: &plot.SetTerminalEpslatexSpecList{ · · SetTerminalEpslatexSpecListItem: &plot.SetTerminalEpslatexSpecListItem{ · · · Case: 29, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2227.go:1:19: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalEpslatexSpecListOpt) Pos ¶
func (n *SetTerminalEpslatexSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalEpslatexSpecListOpt) String ¶
func (n *SetTerminalEpslatexSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalFigSpecList ¶
type SetTerminalFigSpecList struct { Case int SetTerminalFigSpecList *SetTerminalFigSpecList SetTerminalFigSpecListItem *SetTerminalFigSpecListItem }
SetTerminalFigSpecList represents data reduced by productions:
SetTerminalFigSpecList: SetTerminalFigSpecListItem | SetTerminalFigSpecList SetTerminalFigSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1649, "set term fig big"))
Output: &plot.SetTerminalFigSpecList{ · SetTerminalFigSpecListItem: &plot.SetTerminalFigSpecListItem{ · · Case: 3, · · Token: example1649.go:1:14: IDENTIFIER "big", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1650, "set term fig big big"))
Output: &plot.SetTerminalFigSpecList{ · SetTerminalFigSpecList: &plot.SetTerminalFigSpecList{ · · Case: 1, · · SetTerminalFigSpecListItem: &plot.SetTerminalFigSpecListItem{ · · · Case: 3, · · · Token: example1650.go:1:18: IDENTIFIER "big", · · }, · }, · SetTerminalFigSpecListItem: &plot.SetTerminalFigSpecListItem{ · · Case: 3, · · Token: example1650.go:1:14: IDENTIFIER "big", · }, }
func (*SetTerminalFigSpecList) Pos ¶
func (n *SetTerminalFigSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalFigSpecList) String ¶
func (n *SetTerminalFigSpecList) String() string
String implements fmt.Stringer.
type SetTerminalFigSpecListItem ¶
type SetTerminalFigSpecListItem struct { Case int Expression *Expression SimpleExpression *SimpleExpression Token xc.Token }
SetTerminalFigSpecListItem represents data reduced by productions:
SetTerminalFigSpecListItem: "monochrome" | "color" // Case 1 | "landscape" // Case 2 | "big" // Case 3 | "size" Expression SimpleExpression // Case 4 | "metric" // Case 5 | "inches" // Case 6 | "pointsmax" Expression // Case 7 | "solid" // Case 8 | "dashed" // Case 9 | "font" Expression // Case 10 | "textnormal" // Case 11 | "textspecial" // Case 12 | "texthidden" // Case 13 | "textrigid" // Case 14 | "thickness" Expression // Case 15 | "linewidth" Expression // Case 16 | "depth" Expression // Case 17 | "version" Expression // Case 18
Example ¶
fmt.Println(exampleAST(1651, "set term fig monochrome"))
Output: &plot.SetTerminalFigSpecListItem{ · Token: example1651.go:1:14: IDENTIFIER "monochrome", }
Example (Case01) ¶
fmt.Println(exampleAST(1652, "set term fig color"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 1, · Token: example1652.go:1:14: IDENTIFIER "color", }
Example (Case02) ¶
fmt.Println(exampleAST(1653, "set term fig landscape"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 2, · Token: example1653.go:1:14: IDENTIFIER "landscape", }
Example (Case03) ¶
fmt.Println(exampleAST(1654, "set term fig big"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 3, · Token: example1654.go:1:14: IDENTIFIER "big", }
Example (Case04) ¶
fmt.Println(exampleAST(1655, "set term fig size ident_a ident_b"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1655.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1655.go:1:27: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example1655.go:1:14: IDENTIFIER "size", }
Example (Case05) ¶
fmt.Println(exampleAST(1656, "set term fig metric"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 5, · Token: example1656.go:1:14: IDENTIFIER "metric", }
Example (Case06) ¶
fmt.Println(exampleAST(1657, "set term fig inches"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 6, · Token: example1657.go:1:14: IDENTIFIER "inches", }
Example (Case07) ¶
fmt.Println(exampleAST(1658, "set term fig pointsmax ident_a"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1658.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1658.go:1:14: IDENTIFIER "pointsmax", }
Example (Case08) ¶
fmt.Println(exampleAST(1659, "set term fig solid"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 8, · Token: example1659.go:1:14: IDENTIFIER "solid", }
Example (Case09) ¶
fmt.Println(exampleAST(1660, "set term fig dashed"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 9, · Token: example1660.go:1:14: IDENTIFIER "dashed", }
Example (Case10) ¶
fmt.Println(exampleAST(1661, "set term fig font ident_a"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1661.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1661.go:1:14: IDENTIFIER "font", }
Example (Case11) ¶
fmt.Println(exampleAST(1662, "set term fig textnormal"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 11, · Token: example1662.go:1:14: IDENTIFIER "textnormal", }
Example (Case12) ¶
fmt.Println(exampleAST(1663, "set term fig textspecial"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 12, · Token: example1663.go:1:14: IDENTIFIER "textspecial", }
Example (Case13) ¶
fmt.Println(exampleAST(1664, "set term fig texthidden"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 13, · Token: example1664.go:1:14: IDENTIFIER "texthidden", }
Example (Case14) ¶
fmt.Println(exampleAST(1665, "set term fig textrigid"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 14, · Token: example1665.go:1:14: IDENTIFIER "textrigid", }
Example (Case15) ¶
fmt.Println(exampleAST(1666, "set term fig thickness ident_a"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1666.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1666.go:1:14: IDENTIFIER "thickness", }
Example (Case16) ¶
fmt.Println(exampleAST(1667, "set term fig linewidth ident_a"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 16, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1667.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1667.go:1:14: IDENTIFIER "linewidth", }
Example (Case17) ¶
fmt.Println(exampleAST(1668, "set term fig depth ident_a"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 17, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1668.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1668.go:1:14: IDENTIFIER "depth", }
Example (Case18) ¶
fmt.Println(exampleAST(1669, "set term fig version ident_a"))
Output: &plot.SetTerminalFigSpecListItem{ · Case: 18, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1669.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1669.go:1:14: IDENTIFIER "version", }
func (*SetTerminalFigSpecListItem) Pos ¶
func (n *SetTerminalFigSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalFigSpecListItem) String ¶
func (n *SetTerminalFigSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalFigSpecListOpt ¶
type SetTerminalFigSpecListOpt struct {
SetTerminalFigSpecList *SetTerminalFigSpecList
}
SetTerminalFigSpecListOpt represents data reduced by productions:
SetTerminalFigSpecListOpt: /* empty */ | SetTerminalFigSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1670, "set term fig") == (*SetTerminalFigSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1671, "set term fig big"))
Output: &plot.SetTerminalFigSpecListOpt{ · SetTerminalFigSpecList: &plot.SetTerminalFigSpecList{ · · SetTerminalFigSpecListItem: &plot.SetTerminalFigSpecListItem{ · · · Case: 3, · · · Token: example1671.go:1:14: IDENTIFIER "big", · · }, · }, }
func (*SetTerminalFigSpecListOpt) Pos ¶
func (n *SetTerminalFigSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalFigSpecListOpt) String ¶
func (n *SetTerminalFigSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalGgiSpecList ¶
type SetTerminalGgiSpecList struct { Case int SetTerminalGgiSpecList *SetTerminalGgiSpecList SetTerminalGgiSpecListItem *SetTerminalGgiSpecListItem }
SetTerminalGgiSpecList represents data reduced by productions:
SetTerminalGgiSpecList: SetTerminalGgiSpecListItem | SetTerminalGgiSpecList SetTerminalGgiSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1672, "set term ggi acceleration ident_a"))
Output: &plot.SetTerminalGgiSpecList{ · SetTerminalGgiSpecListItem: &plot.SetTerminalGgiSpecListItem{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1672.go:1:27: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Token: example1672.go:1:14: IDENTIFIER "acceleration", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1673, "set term ggi acceleration ident_a acceleration ident_b"))
Output: &plot.SetTerminalGgiSpecList{ · SetTerminalGgiSpecList: &plot.SetTerminalGgiSpecList{ · · Case: 1, · · SetTerminalGgiSpecListItem: &plot.SetTerminalGgiSpecListItem{ · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1673.go:1:48: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · · Token: example1673.go:1:35: IDENTIFIER "acceleration", · · }, · }, · SetTerminalGgiSpecListItem: &plot.SetTerminalGgiSpecListItem{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1673.go:1:27: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Token: example1673.go:1:14: IDENTIFIER "acceleration", · }, }
func (*SetTerminalGgiSpecList) Pos ¶
func (n *SetTerminalGgiSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalGgiSpecList) String ¶
func (n *SetTerminalGgiSpecList) String() string
String implements fmt.Stringer.
type SetTerminalGgiSpecListItem ¶
type SetTerminalGgiSpecListItem struct { Case int Expression *Expression Token xc.Token }
SetTerminalGgiSpecListItem represents data reduced by productions:
SetTerminalGgiSpecListItem: "acceleration" Expression | "mode" Expression // Case 1
Example ¶
fmt.Println(exampleAST(1674, "set term ggi acceleration ident_a"))
Output: &plot.SetTerminalGgiSpecListItem{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1674.go:1:27: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1674.go:1:14: IDENTIFIER "acceleration", }
Example (Case1) ¶
fmt.Println(exampleAST(1675, "set term ggi mode ident_a"))
Output: &plot.SetTerminalGgiSpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1675.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1675.go:1:14: IDENTIFIER "mode", }
func (*SetTerminalGgiSpecListItem) Pos ¶
func (n *SetTerminalGgiSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalGgiSpecListItem) String ¶
func (n *SetTerminalGgiSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalGgiSpecListOpt ¶
type SetTerminalGgiSpecListOpt struct {
SetTerminalGgiSpecList *SetTerminalGgiSpecList
}
SetTerminalGgiSpecListOpt represents data reduced by productions:
SetTerminalGgiSpecListOpt: /* empty */ | SetTerminalGgiSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1676, "set term ggi") == (*SetTerminalGgiSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1677, "set term ggi acceleration ident_a"))
Output: &plot.SetTerminalGgiSpecListOpt{ · SetTerminalGgiSpecList: &plot.SetTerminalGgiSpecList{ · · SetTerminalGgiSpecListItem: &plot.SetTerminalGgiSpecListItem{ · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1677.go:1:27: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · · Token: example1677.go:1:14: IDENTIFIER "acceleration", · · }, · }, }
func (*SetTerminalGgiSpecListOpt) Pos ¶
func (n *SetTerminalGgiSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalGgiSpecListOpt) String ¶
func (n *SetTerminalGgiSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalGifSpecList ¶
type SetTerminalGifSpecList struct { Case int SetTerminalGifSpecList *SetTerminalGifSpecList SetTerminalGifSpecListItem *SetTerminalGifSpecListItem }
SetTerminalGifSpecList represents data reduced by productions:
SetTerminalGifSpecList: SetTerminalGifSpecListItem | SetTerminalGifSpecList SetTerminalGifSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1678, "set term gif animate"))
Output: &plot.SetTerminalGifSpecList{ · SetTerminalGifSpecListItem: &plot.SetTerminalGifSpecListItem{ · · Case: 18, · · Token: example1678.go:1:14: IDENTIFIER "animate", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1679, "set term gif animate animate"))
Output: &plot.SetTerminalGifSpecList{ · SetTerminalGifSpecList: &plot.SetTerminalGifSpecList{ · · Case: 1, · · SetTerminalGifSpecListItem: &plot.SetTerminalGifSpecListItem{ · · · Case: 18, · · · Token: example1679.go:1:22: IDENTIFIER "animate", · · }, · }, · SetTerminalGifSpecListItem: &plot.SetTerminalGifSpecListItem{ · · Case: 18, · · Token: example1679.go:1:14: IDENTIFIER "animate", · }, }
func (*SetTerminalGifSpecList) Pos ¶
func (n *SetTerminalGifSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalGifSpecList) String ¶
func (n *SetTerminalGifSpecList) String() string
String implements fmt.Stringer.
type SetTerminalGifSpecListItem ¶
type SetTerminalGifSpecListItem struct { Case int Expression *Expression ExpressionList *ExpressionList ExpressionOpt *ExpressionOpt Token xc.Token }
SetTerminalGifSpecListItem represents data reduced by productions:
SetTerminalGifSpecListItem: "enhanced" | "noenhanced" // Case 1 | "transparent" // Case 2 | "notransparent" // Case 3 | "rounded" // Case 4 | "butt" // Case 5 | "linewidth" Expression // Case 6 | "dashlength" Expression // Case 7 | "tiny" // Case 8 | "small" // Case 9 | "medium" // Case 10 | "large" // Case 11 | "giant" // Case 12 | "font" Expression // Case 13 | "fontscale" Expression // Case 14 | "size" ExpressionList // Case 15 | "crop" // Case 16 | "nocrop" // Case 17 | "animate" ExpressionOpt // Case 18 | "loop" Expression // Case 19 | "optimize" // Case 20 | "nooptimize" // Case 21 | "background" Expression // Case 22
Example ¶
fmt.Println(exampleAST(1680, "set term gif enhanced"))
Output: &plot.SetTerminalGifSpecListItem{ · Token: example1680.go:1:14: IDENTIFIER "enhanced", }
Example (Case01) ¶
fmt.Println(exampleAST(1681, "set term gif noenhanced"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 1, · Token: example1681.go:1:14: IDENTIFIER "noenhanced", }
Example (Case02) ¶
fmt.Println(exampleAST(1682, "set term gif transparent"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 2, · Token: example1682.go:1:14: IDENTIFIER "transparent", }
Example (Case03) ¶
fmt.Println(exampleAST(1683, "set term gif notransparent"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 3, · Token: example1683.go:1:14: IDENTIFIER "notransparent", }
Example (Case04) ¶
fmt.Println(exampleAST(1684, "set term gif rounded"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 4, · Token: example1684.go:1:14: IDENTIFIER "rounded", }
Example (Case05) ¶
fmt.Println(exampleAST(1685, "set term gif butt"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 5, · Token: example1685.go:1:14: IDENTIFIER "butt", }
Example (Case06) ¶
fmt.Println(exampleAST(1686, "set term gif linewidth ident_a"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1686.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1686.go:1:14: IDENTIFIER "linewidth", }
Example (Case07) ¶
fmt.Println(exampleAST(1687, "set term gif dashlength ident_a"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1687.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1687.go:1:14: IDENTIFIER "dashlength", }
Example (Case08) ¶
fmt.Println(exampleAST(1688, "set term gif tiny"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 8, · Token: example1688.go:1:14: IDENTIFIER "tiny", }
Example (Case09) ¶
fmt.Println(exampleAST(1689, "set term gif small"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 9, · Token: example1689.go:1:14: IDENTIFIER "small", }
Example (Case10) ¶
fmt.Println(exampleAST(1690, "set term gif medium"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 10, · Token: example1690.go:1:14: IDENTIFIER "medium", }
Example (Case11) ¶
fmt.Println(exampleAST(1691, "set term gif large"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 11, · Token: example1691.go:1:14: IDENTIFIER "large", }
Example (Case12) ¶
fmt.Println(exampleAST(1692, "set term gif giant"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 12, · Token: example1692.go:1:14: IDENTIFIER "giant", }
Example (Case13) ¶
fmt.Println(exampleAST(1693, "set term gif font ident_a"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 13, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1693.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1693.go:1:14: IDENTIFIER "font", }
Example (Case14) ¶
fmt.Println(exampleAST(1694, "set term gif fontscale ident_a"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 14, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1694.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1694.go:1:14: IDENTIFIER "fontscale", }
Example (Case15) ¶
fmt.Println(exampleAST(1695, "set term gif size ident_a"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 15, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1695.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1695.go:1:14: IDENTIFIER "size", }
Example (Case16) ¶
fmt.Println(exampleAST(1696, "set term gif crop"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 16, · Token: example1696.go:1:14: IDENTIFIER "crop", }
Example (Case17) ¶
fmt.Println(exampleAST(1697, "set term gif nocrop"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 17, · Token: example1697.go:1:14: IDENTIFIER "nocrop", }
Example (Case18) ¶
fmt.Println(exampleAST(1698, "set term gif animate"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 18, · Token: example1698.go:1:14: IDENTIFIER "animate", }
Example (Case19) ¶
fmt.Println(exampleAST(1699, "set term gif loop ident_a"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 19, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1699.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1699.go:1:14: IDENTIFIER "loop", }
Example (Case20) ¶
fmt.Println(exampleAST(1700, "set term gif optimize"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 20, · Token: example1700.go:1:14: IDENTIFIER "optimize", }
Example (Case21) ¶
fmt.Println(exampleAST(1701, "set term gif nooptimize"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 21, · Token: example1701.go:1:14: IDENTIFIER "nooptimize", }
Example (Case22) ¶
fmt.Println(exampleAST(1702, "set term gif background ident_a"))
Output: &plot.SetTerminalGifSpecListItem{ · Case: 22, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1702.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1702.go:1:14: IDENTIFIER "background", }
func (*SetTerminalGifSpecListItem) Pos ¶
func (n *SetTerminalGifSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalGifSpecListItem) String ¶
func (n *SetTerminalGifSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalGifSpecListOpt ¶
type SetTerminalGifSpecListOpt struct {
SetTerminalGifSpecList *SetTerminalGifSpecList
}
SetTerminalGifSpecListOpt represents data reduced by productions:
SetTerminalGifSpecListOpt: /* empty */ | SetTerminalGifSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1703, "set term gif") == (*SetTerminalGifSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1704, "set term gif animate"))
Output: &plot.SetTerminalGifSpecListOpt{ · SetTerminalGifSpecList: &plot.SetTerminalGifSpecList{ · · SetTerminalGifSpecListItem: &plot.SetTerminalGifSpecListItem{ · · · Case: 18, · · · Token: example1704.go:1:14: IDENTIFIER "animate", · · }, · }, }
func (*SetTerminalGifSpecListOpt) Pos ¶
func (n *SetTerminalGifSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalGifSpecListOpt) String ¶
func (n *SetTerminalGifSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalHpglSpecList ¶
type SetTerminalHpglSpecList struct { Case int SetTerminalHpglSpecList *SetTerminalHpglSpecList SetTerminalHpglSpecListItem *SetTerminalHpglSpecListItem }
SetTerminalHpglSpecList represents data reduced by productions:
SetTerminalHpglSpecList: SetTerminalHpglSpecListItem | SetTerminalHpglSpecList SetTerminalHpglSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1705, "set term hpgl ident_a"))
Output: &plot.SetTerminalHpglSpecList{ · SetTerminalHpglSpecListItem: &plot.SetTerminalHpglSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1705.go:1:15: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1706, "set term hpgl ident_a ident_b"))
Output: &plot.SetTerminalHpglSpecList{ · SetTerminalHpglSpecList: &plot.SetTerminalHpglSpecList{ · · Case: 1, · · SetTerminalHpglSpecListItem: &plot.SetTerminalHpglSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1706.go:1:23: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalHpglSpecListItem: &plot.SetTerminalHpglSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1706.go:1:15: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalHpglSpecList) Pos ¶
func (n *SetTerminalHpglSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalHpglSpecList) String ¶
func (n *SetTerminalHpglSpecList) String() string
String implements fmt.Stringer.
type SetTerminalHpglSpecListItem ¶
type SetTerminalHpglSpecListItem struct { Case int SimpleExpression *SimpleExpression Token xc.Token }
SetTerminalHpglSpecListItem represents data reduced by productions:
SetTerminalHpglSpecListItem: SimpleExpression | "eject" // Case 1
Example ¶
fmt.Println(exampleAST(1707, "set term hpgl ident_a"))
Output: &plot.SetTerminalHpglSpecListItem{ · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1707.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1708, "set term hpgl eject"))
Output: &plot.SetTerminalHpglSpecListItem{ · Case: 1, · Token: example1708.go:1:15: IDENTIFIER "eject", }
func (*SetTerminalHpglSpecListItem) Pos ¶
func (n *SetTerminalHpglSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalHpglSpecListItem) String ¶
func (n *SetTerminalHpglSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalHpglSpecListOpt ¶
type SetTerminalHpglSpecListOpt struct {
SetTerminalHpglSpecList *SetTerminalHpglSpecList
}
SetTerminalHpglSpecListOpt represents data reduced by productions:
SetTerminalHpglSpecListOpt: /* empty */ | SetTerminalHpglSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1709, "set term hpgl") == (*SetTerminalHpglSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1710, "set term hpgl ident_a"))
Output: &plot.SetTerminalHpglSpecListOpt{ · SetTerminalHpglSpecList: &plot.SetTerminalHpglSpecList{ · · SetTerminalHpglSpecListItem: &plot.SetTerminalHpglSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1710.go:1:15: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalHpglSpecListOpt) Pos ¶
func (n *SetTerminalHpglSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalHpglSpecListOpt) String ¶
func (n *SetTerminalHpglSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalHppjSpecOpt ¶
SetTerminalHppjSpecOpt represents data reduced by productions:
SetTerminalHppjSpecOpt: "FNT5X9" | "FNT9X17" // Case 1 | "FNT13X25" // Case 2
Example ¶
fmt.Println(exampleAST(1712, "set terminal hppj FNT5X9"))
Output: &plot.SetTerminalHppjSpecOpt{ · Token: example1712.go:1:19: IDENTIFIER "FNT5X9", }
Example (Case1) ¶
fmt.Println(exampleAST(1713, "set terminal hppj FNT9X17"))
Output: &plot.SetTerminalHppjSpecOpt{ · Case: 1, · Token: example1713.go:1:19: IDENTIFIER "FNT9X17", }
Example (Case2) ¶
fmt.Println(exampleAST(1714, "set terminal hppj FNT13X25"))
Output: &plot.SetTerminalHppjSpecOpt{ · Case: 2, · Token: example1714.go:1:19: IDENTIFIER "FNT13X25", }
func (*SetTerminalHppjSpecOpt) Pos ¶
func (n *SetTerminalHppjSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalHppjSpecOpt) String ¶
func (n *SetTerminalHppjSpecOpt) String() string
String implements fmt.Stringer.
type SetTerminalImagenSpecList ¶
type SetTerminalImagenSpecList struct { Case int SetTerminalImagenSpecList *SetTerminalImagenSpecList SetTerminalImagenSpecListItem *SetTerminalImagenSpecListItem }
SetTerminalImagenSpecList represents data reduced by productions:
SetTerminalImagenSpecList: SetTerminalImagenSpecListItem | SetTerminalImagenSpecList SetTerminalImagenSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1715, "set terminal imagen ident_a"))
Output: &plot.SetTerminalImagenSpecList{ · SetTerminalImagenSpecListItem: &plot.SetTerminalImagenSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1715.go:1:21: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1716, "set terminal imagen ident_a ident_b"))
Output: &plot.SetTerminalImagenSpecList{ · SetTerminalImagenSpecList: &plot.SetTerminalImagenSpecList{ · · Case: 1, · · SetTerminalImagenSpecListItem: &plot.SetTerminalImagenSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1716.go:1:29: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalImagenSpecListItem: &plot.SetTerminalImagenSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1716.go:1:21: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalImagenSpecList) Pos ¶
func (n *SetTerminalImagenSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalImagenSpecList) String ¶
func (n *SetTerminalImagenSpecList) String() string
String implements fmt.Stringer.
type SetTerminalImagenSpecListItem ¶
type SetTerminalImagenSpecListItem struct { Case int ExpressionList *ExpressionList SimpleExpression *SimpleExpression Token xc.Token Token2 xc.Token }
SetTerminalImagenSpecListItem represents data reduced by productions:
SetTerminalImagenSpecListItem: SimpleExpression | "portrait" // Case 1 | "landscape" // Case 2 | '[' ExpressionList ']' // Case 3
Example ¶
fmt.Println(exampleAST(1717, "set terminal imagen ident_a"))
Output: &plot.SetTerminalImagenSpecListItem{ · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1717.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1718, "set terminal imagen portrait"))
Output: &plot.SetTerminalImagenSpecListItem{ · Case: 1, · Token: example1718.go:1:21: IDENTIFIER "portrait", }
Example (Case2) ¶
fmt.Println(exampleAST(1719, "set terminal imagen landscape"))
Output: &plot.SetTerminalImagenSpecListItem{ · Case: 2, · Token: example1719.go:1:21: IDENTIFIER "landscape", }
Example (Case3) ¶
fmt.Println(exampleAST(1720, "set terminal imagen [ ident_a ]"))
Output: &plot.SetTerminalImagenSpecListItem{ · Case: 3, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1720.go:1:23: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1720.go:1:21: '[' "[", · Token2: example1720.go:1:31: ']' "]", }
func (*SetTerminalImagenSpecListItem) Pos ¶
func (n *SetTerminalImagenSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalImagenSpecListItem) String ¶
func (n *SetTerminalImagenSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalImagenSpecListOpt ¶
type SetTerminalImagenSpecListOpt struct {
SetTerminalImagenSpecList *SetTerminalImagenSpecList
}
SetTerminalImagenSpecListOpt represents data reduced by productions:
SetTerminalImagenSpecListOpt: /* empty */ | SetTerminalImagenSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1721, "set terminal imagen") == (*SetTerminalImagenSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1722, "set terminal imagen ident_a"))
Output: &plot.SetTerminalImagenSpecListOpt{ · SetTerminalImagenSpecList: &plot.SetTerminalImagenSpecList{ · · SetTerminalImagenSpecListItem: &plot.SetTerminalImagenSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1722.go:1:21: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalImagenSpecListOpt) Pos ¶
func (n *SetTerminalImagenSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalImagenSpecListOpt) String ¶
func (n *SetTerminalImagenSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalInner ¶
type SetTerminalInner struct { Case int Expression *Expression ExpressionOpt *ExpressionOpt SetTerminalAifmSpecListOpt *SetTerminalAifmSpecListOpt SetTerminalAquaSpecListOpt *SetTerminalAquaSpecListOpt SetTerminalBeSpecListOpt *SetTerminalBeSpecListOpt SetTerminalCairolatexSpecListOpt *SetTerminalCairolatexSpecListOpt SetTerminalCanvasSpecListOpt *SetTerminalCanvasSpecListOpt SetTerminalCgmSpecListOpt *SetTerminalCgmSpecListOpt SetTerminalContextSpecListOpt *SetTerminalContextSpecListOpt SetTerminalCorelSpecListOpt *SetTerminalCorelSpecListOpt SetTerminalDpu414SpecListOpt *SetTerminalDpu414SpecListOpt SetTerminalDumbSpecListOpt *SetTerminalDumbSpecListOpt SetTerminalEepicSpecListOpt *SetTerminalEepicSpecListOpt SetTerminalEmfSpecListOpt *SetTerminalEmfSpecListOpt SetTerminalEpslatexSpecListOpt *SetTerminalEpslatexSpecListOpt SetTerminalFigSpecListOpt *SetTerminalFigSpecListOpt SetTerminalGgiSpecListOpt *SetTerminalGgiSpecListOpt SetTerminalGifSpecListOpt *SetTerminalGifSpecListOpt SetTerminalHpglSpecListOpt *SetTerminalHpglSpecListOpt SetTerminalHppjSpecOpt *SetTerminalHppjSpecOpt SetTerminalImagenSpecListOpt *SetTerminalImagenSpecListOpt SetTerminalJpegSpecListOpt *SetTerminalJpegSpecListOpt SetTerminalLatexSpecListOpt *SetTerminalLatexSpecListOpt SetTerminalLuatikzSpecListOpt *SetTerminalLuatikzSpecListOpt SetTerminalMifSpecListOpt *SetTerminalMifSpecListOpt SetTerminalMpSpecListOpt *SetTerminalMpSpecListOpt SetTerminalNeccp6SpecListOpt *SetTerminalNeccp6SpecListOpt SetTerminalNextSpecListOpt *SetTerminalNextSpecListOpt SetTerminalPbmSpecListOpt *SetTerminalPbmSpecListOpt SetTerminalPdfSpecListOpt *SetTerminalPdfSpecListOpt SetTerminalPdfcairoSpecListOpt *SetTerminalPdfcairoSpecListOpt SetTerminalPmSpecListOpt *SetTerminalPmSpecListOpt SetTerminalPngSpecListOpt *SetTerminalPngSpecListOpt SetTerminalPngcairoSpecListOpt *SetTerminalPngcairoSpecListOpt SetTerminalPostscriptSpecListOpt *SetTerminalPostscriptSpecListOpt SetTerminalPstexSpecListOpt *SetTerminalPstexSpecListOpt SetTerminalPstricksSpecListOpt *SetTerminalPstricksSpecListOpt SetTerminalQtSpecListOpt *SetTerminalQtSpecListOpt SetTerminalSvgSpecListOpt *SetTerminalSvgSpecListOpt SetTerminalTgifSpecListOpt *SetTerminalTgifSpecListOpt SetTerminalTkcanvasSpecListOpt *SetTerminalTkcanvasSpecListOpt SetTerminalVgaglSpecListOpt *SetTerminalVgaglSpecListOpt SetTerminalWindowsSpecListOpt *SetTerminalWindowsSpecListOpt SetTerminalWxtSpecListOpt *SetTerminalWxtSpecListOpt SetTerminalX11SpecListOpt *SetTerminalX11SpecListOpt SimpleExpression *SimpleExpression SimpleExpression2 *SimpleExpression SimpleExpressionList *SimpleExpressionList Token xc.Token Token2 xc.Token }
SetTerminalInner represents data reduced by productions:
SetTerminalInner: "aifm" SetTerminalAifmSpecListOpt | "aqua" SetTerminalAquaSpecListOpt // Case 1 | "be" SetTerminalBeSpecListOpt // Case 2 | "cairolatex" SetTerminalCairolatexSpecListOpt // Case 3 | "canvas" SetTerminalCanvasSpecListOpt // Case 4 | "cgm" SetTerminalCgmSpecListOpt // Case 5 | "context" SetTerminalContextSpecListOpt // Case 6 | "corel" SetTerminalCorelSpecListOpt // Case 7 | "debug" // Case 8 | "dpu414" SetTerminalDpu414SpecListOpt // Case 9 | "dumb" SetTerminalDumbSpecListOpt // Case 10 | "dxf" // Case 11 | "dxy800a" // Case 12 | "eepic" SetTerminalEepicSpecListOpt // Case 13 | "emf" SetTerminalEmfSpecListOpt // Case 14 | "emtex" SetTerminalLatexSpecListOpt // Case 15 | "emxvesa" Expression // Case 16 | "emxvga" // Case 17 | "epslatex" SetTerminalEpslatexSpecListOpt // Case 18 | "epson_180dpi" // Case 19 | "epson_60dpi" // Case 20 | "excl" // Case 21 | "fig" SetTerminalFigSpecListOpt // Case 22 | "ggi" SetTerminalGgiSpecListOpt // Case 23 | "gif" SetTerminalGifSpecListOpt // Case 24 | "gpic" // Case 25 | "gpic" SimpleExpressionList // Case 26 | "grass" // Case 27 | "hp2623a" // Case 28 | "hp2648" // Case 29 | "hp500c" // Case 30 | "hpdj" ExpressionOpt // Case 31 | "hpgl" SetTerminalHpglSpecListOpt // Case 32 | "hpljii" ExpressionOpt // Case 33 | "hppj" SetTerminalHppjSpecOpt // Case 34 | "imagen" SetTerminalImagenSpecListOpt // Case 35 | "jpeg" SetTerminalJpegSpecListOpt // Case 36 | "kyo" // Case 37 | "latex" SetTerminalLatexSpecListOpt // Case 38 | "linux" // Case 39 | "lua" "tiks" SetTerminalLuatikzSpecListOpt // Case 40 | "mf" // Case 41 | "mif" SetTerminalMifSpecListOpt // Case 42 | "mp" SetTerminalMpSpecListOpt // Case 43 | "nec_cp6" SetTerminalNeccp6SpecListOpt // Case 44 | "next" SetTerminalNextSpecListOpt // Case 45 | "okidata" // Case 46 | "openstep" SetTerminalNextSpecListOpt // Case 47 | "pbm" SetTerminalPbmSpecListOpt // Case 48 | "pdf" SetTerminalPdfSpecListOpt // Case 49 | "pdfcairo" SetTerminalPdfcairoSpecListOpt // Case 50 | "pm" SetTerminalPmSpecListOpt // Case 51 | "png" SetTerminalPngSpecListOpt // Case 52 | "pngcairo" SetTerminalPngcairoSpecListOpt // Case 53 | "postscript" SetTerminalPostscriptSpecListOpt // Case 54 | "prescribe" // Case 55 | "pslatex" SetTerminalPstexSpecListOpt // Case 56 | "pstex" SetTerminalPstexSpecListOpt // Case 57 | "pstricks" SetTerminalPstricksSpecListOpt // Case 58 | "qms" // Case 59 | "qt" SetTerminalQtSpecListOpt // Case 60 | "regis" ExpressionOpt // Case 61 | "sun" // Case 62 | "svg" SetTerminalSvgSpecListOpt // Case 63 | "svga" // Case 64 | "svga" Expression // Case 65 | "tek40" // Case 66 | "tek410x" // Case 67 | "texdraw" // Case 68 | "tgif" SetTerminalTgifSpecListOpt // Case 69 | "tikz" // Case 70 | "tkcanvas" SetTerminalTkcanvasSpecListOpt // Case 71 | "tpic" Expression SimpleExpression SimpleExpression // Case 72 | "vgagl" SetTerminalVgaglSpecListOpt // Case 73 | "vgal" // Case 74 | "vws" // Case 75 | "windows" SetTerminalWindowsSpecListOpt // Case 76 | "wxt" SetTerminalWxtSpecListOpt // Case 77 | "x11" SetTerminalX11SpecListOpt // Case 78
Example ¶
fmt.Println(exampleAST(1404, "set term aifm"))
Output: &plot.SetTerminalInner{ · Token: example1404.go:1:10: IDENTIFIER "aifm", }
Example (Case01) ¶
fmt.Println(exampleAST(1405, "set term aqua"))
Output: &plot.SetTerminalInner{ · Case: 1, · Token: example1405.go:1:10: IDENTIFIER "aqua", }
Example (Case02) ¶
fmt.Println(exampleAST(1406, "set term be"))
Output: &plot.SetTerminalInner{ · Case: 2, · Token: example1406.go:1:10: IDENTIFIER "be", }
Example (Case03) ¶
fmt.Println(exampleAST(1407, "set term cairolatex"))
Output: &plot.SetTerminalInner{ · Case: 3, · Token: example1407.go:1:10: IDENTIFIER "cairolatex", }
Example (Case04) ¶
fmt.Println(exampleAST(1408, "set term canvas"))
Output: &plot.SetTerminalInner{ · Case: 4, · Token: example1408.go:1:10: IDENTIFIER "canvas", }
Example (Case05) ¶
fmt.Println(exampleAST(1409, "set term cgm"))
Output: &plot.SetTerminalInner{ · Case: 5, · Token: example1409.go:1:10: IDENTIFIER "cgm", }
Example (Case06) ¶
fmt.Println(exampleAST(1410, "set term context"))
Output: &plot.SetTerminalInner{ · Case: 6, · Token: example1410.go:1:10: IDENTIFIER "context", }
Example (Case07) ¶
fmt.Println(exampleAST(1411, "set term corel"))
Output: &plot.SetTerminalInner{ · Case: 7, · Token: example1411.go:1:10: IDENTIFIER "corel", }
Example (Case08) ¶
fmt.Println(exampleAST(1412, "set term debug"))
Output: &plot.SetTerminalInner{ · Case: 8, · Token: example1412.go:1:10: IDENTIFIER "debug", }
Example (Case09) ¶
fmt.Println(exampleAST(1413, "set term dpu414"))
Output: &plot.SetTerminalInner{ · Case: 9, · Token: example1413.go:1:10: IDENTIFIER "dpu414", }
Example (Case10) ¶
fmt.Println(exampleAST(1414, "set term dumb"))
Output: &plot.SetTerminalInner{ · Case: 10, · Token: example1414.go:1:10: IDENTIFIER "dumb", }
Example (Case11) ¶
fmt.Println(exampleAST(1415, "set term dxf"))
Output: &plot.SetTerminalInner{ · Case: 11, · Token: example1415.go:1:10: IDENTIFIER "dxf", }
Example (Case12) ¶
fmt.Println(exampleAST(1416, "set term dxy800a"))
Output: &plot.SetTerminalInner{ · Case: 12, · Token: example1416.go:1:10: IDENTIFIER "dxy800a", }
Example (Case13) ¶
fmt.Println(exampleAST(1417, "set term eepic"))
Output: &plot.SetTerminalInner{ · Case: 13, · Token: example1417.go:1:10: IDENTIFIER "eepic", }
Example (Case14) ¶
fmt.Println(exampleAST(1418, "set term emf"))
Output: &plot.SetTerminalInner{ · Case: 14, · Token: example1418.go:1:10: IDENTIFIER "emf", }
Example (Case15) ¶
fmt.Println(exampleAST(1419, "set term emtex"))
Output: &plot.SetTerminalInner{ · Case: 15, · Token: example1419.go:1:10: IDENTIFIER "emtex", }
Example (Case16) ¶
fmt.Println(exampleAST(1420, "set term emxvesa ident_a"))
Output: &plot.SetTerminalInner{ · Case: 16, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1420.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1420.go:1:10: IDENTIFIER "emxvesa", }
Example (Case17) ¶
fmt.Println(exampleAST(1421, "set term emxvga"))
Output: &plot.SetTerminalInner{ · Case: 17, · Token: example1421.go:1:10: IDENTIFIER "emxvga", }
Example (Case18) ¶
fmt.Println(exampleAST(1422, "set term epslatex"))
Output: &plot.SetTerminalInner{ · Case: 18, · Token: example1422.go:1:10: IDENTIFIER "epslatex", }
Example (Case19) ¶
fmt.Println(exampleAST(1423, "set term epson_180dpi"))
Output: &plot.SetTerminalInner{ · Case: 19, · Token: example1423.go:1:10: IDENTIFIER "epson_180dpi", }
Example (Case20) ¶
fmt.Println(exampleAST(1424, "set term epson_60dpi"))
Output: &plot.SetTerminalInner{ · Case: 20, · Token: example1424.go:1:10: IDENTIFIER "epson_60dpi", }
Example (Case21) ¶
fmt.Println(exampleAST(1425, "set term excl"))
Output: &plot.SetTerminalInner{ · Case: 21, · Token: example1425.go:1:10: IDENTIFIER "excl", }
Example (Case22) ¶
fmt.Println(exampleAST(1426, "set term fig"))
Output: &plot.SetTerminalInner{ · Case: 22, · Token: example1426.go:1:10: IDENTIFIER "fig", }
Example (Case23) ¶
fmt.Println(exampleAST(1427, "set term ggi"))
Output: &plot.SetTerminalInner{ · Case: 23, · Token: example1427.go:1:10: IDENTIFIER "ggi", }
Example (Case24) ¶
fmt.Println(exampleAST(1428, "set term gif"))
Output: &plot.SetTerminalInner{ · Case: 24, · Token: example1428.go:1:10: IDENTIFIER "gif", }
Example (Case25) ¶
fmt.Println(exampleAST(1429, "set term gpic"))
Output: &plot.SetTerminalInner{ · Case: 25, · Token: example1429.go:1:10: IDENTIFIER "gpic", }
Example (Case26) ¶
fmt.Println(exampleAST(1430, "set term gpic ident_a"))
Output: &plot.SetTerminalInner{ · Case: 26, · SimpleExpressionList: &plot.SimpleExpressionList{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1430.go:1:15: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1430.go:1:10: IDENTIFIER "gpic", }
Example (Case27) ¶
fmt.Println(exampleAST(1431, "set term grass"))
Output: &plot.SetTerminalInner{ · Case: 27, · Token: example1431.go:1:10: IDENTIFIER "grass", }
Example (Case28) ¶
fmt.Println(exampleAST(1432, "set term hp2623a"))
Output: &plot.SetTerminalInner{ · Case: 28, · Token: example1432.go:1:10: IDENTIFIER "hp2623a", }
Example (Case29) ¶
fmt.Println(exampleAST(1433, "set terminal hp2648"))
Output: &plot.SetTerminalInner{ · Case: 29, · Token: example1433.go:1:14: IDENTIFIER "hp2648", }
Example (Case30) ¶
fmt.Println(exampleAST(1434, "set term hp500c"))
Output: &plot.SetTerminalInner{ · Case: 30, · Token: example1434.go:1:10: IDENTIFIER "hp500c", }
Example (Case31) ¶
fmt.Println(exampleAST(1435, "set term hpdj"))
Output: &plot.SetTerminalInner{ · Case: 31, · Token: example1435.go:1:10: IDENTIFIER "hpdj", }
Example (Case32) ¶
fmt.Println(exampleAST(1436, "set term hpgl"))
Output: &plot.SetTerminalInner{ · Case: 32, · Token: example1436.go:1:10: IDENTIFIER "hpgl", }
Example (Case33) ¶
fmt.Println(exampleAST(1437, "set terminal hpljii"))
Output: &plot.SetTerminalInner{ · Case: 33, · Token: example1437.go:1:14: IDENTIFIER "hpljii", }
Example (Case34) ¶
fmt.Println(exampleAST(1438, "set terminal hppj FNT13X25"))
Output: &plot.SetTerminalInner{ · Case: 34, · SetTerminalHppjSpecOpt: &plot.SetTerminalHppjSpecOpt{ · · Case: 2, · · Token: example1438.go:1:19: IDENTIFIER "FNT13X25", · }, · Token: example1438.go:1:14: IDENTIFIER "hppj", }
Example (Case35) ¶
fmt.Println(exampleAST(1439, "set terminal imagen"))
Output: &plot.SetTerminalInner{ · Case: 35, · Token: example1439.go:1:14: IDENTIFIER "imagen", }
Example (Case36) ¶
fmt.Println(exampleAST(1440, "set term jpeg"))
Output: &plot.SetTerminalInner{ · Case: 36, · Token: example1440.go:1:10: IDENTIFIER "jpeg", }
Example (Case37) ¶
fmt.Println(exampleAST(1441, "set terminal kyo"))
Output: &plot.SetTerminalInner{ · Case: 37, · Token: example1441.go:1:14: IDENTIFIER "kyo", }
Example (Case38) ¶
fmt.Println(exampleAST(1442, "set term latex"))
Output: &plot.SetTerminalInner{ · Case: 38, · Token: example1442.go:1:10: IDENTIFIER "latex", }
Example (Case39) ¶
fmt.Println(exampleAST(1443, "set term linux"))
Output: &plot.SetTerminalInner{ · Case: 39, · Token: example1443.go:1:10: IDENTIFIER "linux", }
Example (Case40) ¶
fmt.Println(exampleAST(1444, "set term lua tiks"))
Output: &plot.SetTerminalInner{ · Case: 40, · Token: example1444.go:1:10: IDENTIFIER "lua", · Token2: example1444.go:1:14: IDENTIFIER "tiks", }
Example (Case41) ¶
fmt.Println(exampleAST(1445, "set terminal mf"))
Output: &plot.SetTerminalInner{ · Case: 41, · Token: example1445.go:1:14: IDENTIFIER "mf", }
Example (Case42) ¶
fmt.Println(exampleAST(1446, "set term mif"))
Output: &plot.SetTerminalInner{ · Case: 42, · Token: example1446.go:1:10: IDENTIFIER "mif", }
Example (Case43) ¶
fmt.Println(exampleAST(1447, "set term mp"))
Output: &plot.SetTerminalInner{ · Case: 43, · Token: example1447.go:1:10: IDENTIFIER "mp", }
Example (Case44) ¶
fmt.Println(exampleAST(1448, "set term nec_cp6"))
Output: &plot.SetTerminalInner{ · Case: 44, · Token: example1448.go:1:10: IDENTIFIER "nec_cp6", }
Example (Case45) ¶
fmt.Println(exampleAST(1449, "set terminal next"))
Output: &plot.SetTerminalInner{ · Case: 45, · Token: example1449.go:1:14: IDENTIFIER "next", }
Example (Case46) ¶
fmt.Println(exampleAST(1450, "set term okidata"))
Output: &plot.SetTerminalInner{ · Case: 46, · Token: example1450.go:1:10: IDENTIFIER "okidata", }
Example (Case47) ¶
fmt.Println(exampleAST(1451, "set term openstep"))
Output: &plot.SetTerminalInner{ · Case: 47, · Token: example1451.go:1:10: IDENTIFIER "openstep", }
Example (Case48) ¶
fmt.Println(exampleAST(1452, "set term pbm"))
Output: &plot.SetTerminalInner{ · Case: 48, · Token: example1452.go:1:10: IDENTIFIER "pbm", }
Example (Case49) ¶
fmt.Println(exampleAST(1453, "set term pdf"))
Output: &plot.SetTerminalInner{ · Case: 49, · Token: example1453.go:1:10: IDENTIFIER "pdf", }
Example (Case50) ¶
fmt.Println(exampleAST(1454, "set term pdfcairo"))
Output: &plot.SetTerminalInner{ · Case: 50, · Token: example1454.go:1:10: IDENTIFIER "pdfcairo", }
Example (Case51) ¶
fmt.Println(exampleAST(1455, "set term pm"))
Output: &plot.SetTerminalInner{ · Case: 51, · Token: example1455.go:1:10: IDENTIFIER "pm", }
Example (Case52) ¶
fmt.Println(exampleAST(1456, "set term png"))
Output: &plot.SetTerminalInner{ · Case: 52, · Token: example1456.go:1:10: IDENTIFIER "png", }
Example (Case53) ¶
fmt.Println(exampleAST(1457, "set term pngcairo"))
Output: &plot.SetTerminalInner{ · Case: 53, · Token: example1457.go:1:10: IDENTIFIER "pngcairo", }
Example (Case54) ¶
fmt.Println(exampleAST(1458, "set term postscript"))
Output: &plot.SetTerminalInner{ · Case: 54, · Token: example1458.go:1:10: IDENTIFIER "postscript", }
Example (Case55) ¶
fmt.Println(exampleAST(1459, "set terminal prescribe"))
Output: &plot.SetTerminalInner{ · Case: 55, · Token: example1459.go:1:14: IDENTIFIER "prescribe", }
Example (Case56) ¶
fmt.Println(exampleAST(1460, "set term pslatex"))
Output: &plot.SetTerminalInner{ · Case: 56, · Token: example1460.go:1:10: IDENTIFIER "pslatex", }
Example (Case57) ¶
fmt.Println(exampleAST(1461, "set term pstex"))
Output: &plot.SetTerminalInner{ · Case: 57, · Token: example1461.go:1:10: IDENTIFIER "pstex", }
Example (Case58) ¶
fmt.Println(exampleAST(1462, "set term pstricks"))
Output: &plot.SetTerminalInner{ · Case: 58, · Token: example1462.go:1:10: IDENTIFIER "pstricks", }
Example (Case59) ¶
fmt.Println(exampleAST(1463, "set term qms"))
Output: &plot.SetTerminalInner{ · Case: 59, · Token: example1463.go:1:10: IDENTIFIER "qms", }
Example (Case60) ¶
fmt.Println(exampleAST(1464, "set term qt"))
Output: &plot.SetTerminalInner{ · Case: 60, · Token: example1464.go:1:10: IDENTIFIER "qt", }
Example (Case61) ¶
fmt.Println(exampleAST(1465, "set terminal regis"))
Output: &plot.SetTerminalInner{ · Case: 61, · Token: example1465.go:1:14: IDENTIFIER "regis", }
Example (Case62) ¶
fmt.Println(exampleAST(1466, "set term sun"))
Output: &plot.SetTerminalInner{ · Case: 62, · Token: example1466.go:1:10: IDENTIFIER "sun", }
Example (Case63) ¶
fmt.Println(exampleAST(1467, "set term svg"))
Output: &plot.SetTerminalInner{ · Case: 63, · Token: example1467.go:1:10: IDENTIFIER "svg", }
Example (Case64) ¶
fmt.Println(exampleAST(1468, "set term svga"))
Output: &plot.SetTerminalInner{ · Case: 64, · Token: example1468.go:1:10: IDENTIFIER "svga", }
Example (Case65) ¶
fmt.Println(exampleAST(1469, "set term svga ident_a"))
Output: &plot.SetTerminalInner{ · Case: 65, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1469.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1469.go:1:10: IDENTIFIER "svga", }
Example (Case66) ¶
fmt.Println(exampleAST(1470, "set term tek40"))
Output: &plot.SetTerminalInner{ · Case: 66, · Token: example1470.go:1:10: IDENTIFIER "tek40", }
Example (Case67) ¶
fmt.Println(exampleAST(1471, "set term tek410x"))
Output: &plot.SetTerminalInner{ · Case: 67, · Token: example1471.go:1:10: IDENTIFIER "tek410x", }
Example (Case68) ¶
fmt.Println(exampleAST(1472, "set term texdraw"))
Output: &plot.SetTerminalInner{ · Case: 68, · Token: example1472.go:1:10: IDENTIFIER "texdraw", }
Example (Case69) ¶
fmt.Println(exampleAST(1473, "set term tgif"))
Output: &plot.SetTerminalInner{ · Case: 69, · Token: example1473.go:1:10: IDENTIFIER "tgif", }
Example (Case70) ¶
fmt.Println(exampleAST(1474, "set term tikz"))
Output: &plot.SetTerminalInner{ · Case: 70, · Token: example1474.go:1:10: IDENTIFIER "tikz", }
Example (Case71) ¶
fmt.Println(exampleAST(1475, "set term tkcanvas"))
Output: &plot.SetTerminalInner{ · Case: 71, · Token: example1475.go:1:10: IDENTIFIER "tkcanvas", }
Example (Case72) ¶
fmt.Println(exampleAST(1476, "set term tpic ident_a ident_b ident_c"))
Output: &plot.SetTerminalInner{ · Case: 72, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1476.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1476.go:1:23: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1476.go:1:31: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example1476.go:1:10: IDENTIFIER "tpic", }
Example (Case73) ¶
fmt.Println(exampleAST(1477, "set term vgagl"))
Output: &plot.SetTerminalInner{ · Case: 73, · Token: example1477.go:1:10: IDENTIFIER "vgagl", }
Example (Case74) ¶
fmt.Println(exampleAST(1478, "set term vgal"))
Output: &plot.SetTerminalInner{ · Case: 74, · Token: example1478.go:1:10: IDENTIFIER "vgal", }
Example (Case75) ¶
fmt.Println(exampleAST(1479, "set term vws"))
Output: &plot.SetTerminalInner{ · Case: 75, · Token: example1479.go:1:10: IDENTIFIER "vws", }
Example (Case76) ¶
fmt.Println(exampleAST(1480, "set term windows"))
Output: &plot.SetTerminalInner{ · Case: 76, · Token: example1480.go:1:10: IDENTIFIER "windows", }
Example (Case77) ¶
fmt.Println(exampleAST(1481, "set term wxt"))
Output: &plot.SetTerminalInner{ · Case: 77, · Token: example1481.go:1:10: IDENTIFIER "wxt", }
Example (Case78) ¶
fmt.Println(exampleAST(1482, "set term x11"))
Output: &plot.SetTerminalInner{ · Case: 78, · Token: example1482.go:1:10: IDENTIFIER "x11", }
func (*SetTerminalInner) Pos ¶
func (n *SetTerminalInner) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalInner) String ¶
func (n *SetTerminalInner) String() string
String implements fmt.Stringer.
type SetTerminalJpegSpecList ¶
type SetTerminalJpegSpecList struct { Case int SetTerminalJpegSpecList *SetTerminalJpegSpecList SetTerminalJpegSpecListItem *SetTerminalJpegSpecListItem }
SetTerminalJpegSpecList represents data reduced by productions:
SetTerminalJpegSpecList: SetTerminalJpegSpecListItem | SetTerminalJpegSpecList SetTerminalJpegSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1723, "set term jpeg butt"))
Output: &plot.SetTerminalJpegSpecList{ · SetTerminalJpegSpecListItem: &plot.SetTerminalJpegSpecListItem{ · · Case: 5, · · Token: example1723.go:1:15: IDENTIFIER "butt", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1724, "set term jpeg butt butt"))
Output: &plot.SetTerminalJpegSpecList{ · SetTerminalJpegSpecList: &plot.SetTerminalJpegSpecList{ · · Case: 1, · · SetTerminalJpegSpecListItem: &plot.SetTerminalJpegSpecListItem{ · · · Case: 5, · · · Token: example1724.go:1:20: IDENTIFIER "butt", · · }, · }, · SetTerminalJpegSpecListItem: &plot.SetTerminalJpegSpecListItem{ · · Case: 5, · · Token: example1724.go:1:15: IDENTIFIER "butt", · }, }
func (*SetTerminalJpegSpecList) Pos ¶
func (n *SetTerminalJpegSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalJpegSpecList) String ¶
func (n *SetTerminalJpegSpecList) String() string
String implements fmt.Stringer.
type SetTerminalJpegSpecListItem ¶
type SetTerminalJpegSpecListItem struct { Case int Expression *Expression ExpressionList *ExpressionList Token xc.Token }
SetTerminalJpegSpecListItem represents data reduced by productions:
SetTerminalJpegSpecListItem: "enhanced" | "noenhanced" // Case 1 | "linewidth" Expression // Case 2 | "dashlength" Expression // Case 3 | "rounded" // Case 4 | "butt" // Case 5 | "tiny" // Case 6 | "small" // Case 7 | "medium" // Case 8 | "large" // Case 9 | "giant" // Case 10 | "font" Expression // Case 11 | "fontscale" Expression // Case 12 | "size" ExpressionList // Case 13 | "crop" // Case 14 | "nocrop" // Case 15 | "background" Expression // Case 16
Example ¶
fmt.Println(exampleAST(1725, "set term jpeg enhanced"))
Output: &plot.SetTerminalJpegSpecListItem{ · Token: example1725.go:1:15: IDENTIFIER "enhanced", }
Example (Case01) ¶
fmt.Println(exampleAST(1726, "set term jpeg noenhanced"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 1, · Token: example1726.go:1:15: IDENTIFIER "noenhanced", }
Example (Case02) ¶
fmt.Println(exampleAST(1727, "set term jpeg linewidth ident_a"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1727.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1727.go:1:15: IDENTIFIER "linewidth", }
Example (Case03) ¶
fmt.Println(exampleAST(1728, "set term jpeg dashlength ident_a"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1728.go:1:26: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1728.go:1:15: IDENTIFIER "dashlength", }
Example (Case04) ¶
fmt.Println(exampleAST(1729, "set term jpeg rounded"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 4, · Token: example1729.go:1:15: IDENTIFIER "rounded", }
Example (Case05) ¶
fmt.Println(exampleAST(1730, "set term jpeg butt"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 5, · Token: example1730.go:1:15: IDENTIFIER "butt", }
Example (Case06) ¶
fmt.Println(exampleAST(1731, "set term jpeg tiny"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 6, · Token: example1731.go:1:15: IDENTIFIER "tiny", }
Example (Case07) ¶
fmt.Println(exampleAST(1732, "set term jpeg small"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 7, · Token: example1732.go:1:15: IDENTIFIER "small", }
Example (Case08) ¶
fmt.Println(exampleAST(1733, "set term jpeg medium"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 8, · Token: example1733.go:1:15: IDENTIFIER "medium", }
Example (Case09) ¶
fmt.Println(exampleAST(1734, "set term jpeg large"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 9, · Token: example1734.go:1:15: IDENTIFIER "large", }
Example (Case10) ¶
fmt.Println(exampleAST(1735, "set term jpeg giant"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 10, · Token: example1735.go:1:15: IDENTIFIER "giant", }
Example (Case11) ¶
fmt.Println(exampleAST(1736, "set term jpeg font ident_a"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1736.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1736.go:1:15: IDENTIFIER "font", }
Example (Case12) ¶
fmt.Println(exampleAST(1737, "set term jpeg fontscale ident_a"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 12, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1737.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1737.go:1:15: IDENTIFIER "fontscale", }
Example (Case13) ¶
fmt.Println(exampleAST(1738, "set term jpeg size ident_a"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 13, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1738.go:1:20: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1738.go:1:15: IDENTIFIER "size", }
Example (Case14) ¶
fmt.Println(exampleAST(1739, "set term jpeg crop"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 14, · Token: example1739.go:1:15: IDENTIFIER "crop", }
Example (Case15) ¶
fmt.Println(exampleAST(1740, "set term jpeg nocrop"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 15, · Token: example1740.go:1:15: IDENTIFIER "nocrop", }
Example (Case16) ¶
fmt.Println(exampleAST(1741, "set term jpeg background ident_a"))
Output: &plot.SetTerminalJpegSpecListItem{ · Case: 16, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1741.go:1:26: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1741.go:1:15: IDENTIFIER "background", }
func (*SetTerminalJpegSpecListItem) Pos ¶
func (n *SetTerminalJpegSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalJpegSpecListItem) String ¶
func (n *SetTerminalJpegSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalJpegSpecListOpt ¶
type SetTerminalJpegSpecListOpt struct {
SetTerminalJpegSpecList *SetTerminalJpegSpecList
}
SetTerminalJpegSpecListOpt represents data reduced by productions:
SetTerminalJpegSpecListOpt: /* empty */ | SetTerminalJpegSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1742, "set term jpeg") == (*SetTerminalJpegSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1743, "set term jpeg butt"))
Output: &plot.SetTerminalJpegSpecListOpt{ · SetTerminalJpegSpecList: &plot.SetTerminalJpegSpecList{ · · SetTerminalJpegSpecListItem: &plot.SetTerminalJpegSpecListItem{ · · · Case: 5, · · · Token: example1743.go:1:15: IDENTIFIER "butt", · · }, · }, }
func (*SetTerminalJpegSpecListOpt) Pos ¶
func (n *SetTerminalJpegSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalJpegSpecListOpt) String ¶
func (n *SetTerminalJpegSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalLatexSpecList ¶
type SetTerminalLatexSpecList struct { Case int SetTerminalLatexSpecList *SetTerminalLatexSpecList SetTerminalLatexSpecListItem *SetTerminalLatexSpecListItem }
SetTerminalLatexSpecList represents data reduced by productions:
SetTerminalLatexSpecList: SetTerminalLatexSpecListItem | SetTerminalLatexSpecList SetTerminalLatexSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1744, "set term latex courier"))
Output: &plot.SetTerminalLatexSpecList{ · SetTerminalLatexSpecListItem: &plot.SetTerminalLatexSpecListItem{ · · Case: 1, · · Token: example1744.go:1:16: IDENTIFIER "courier", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1745, "set term latex courier courier"))
Output: &plot.SetTerminalLatexSpecList{ · SetTerminalLatexSpecList: &plot.SetTerminalLatexSpecList{ · · Case: 1, · · SetTerminalLatexSpecListItem: &plot.SetTerminalLatexSpecListItem{ · · · Case: 1, · · · Token: example1745.go:1:24: IDENTIFIER "courier", · · }, · }, · SetTerminalLatexSpecListItem: &plot.SetTerminalLatexSpecListItem{ · · Case: 1, · · Token: example1745.go:1:16: IDENTIFIER "courier", · }, }
func (*SetTerminalLatexSpecList) Pos ¶
func (n *SetTerminalLatexSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalLatexSpecList) String ¶
func (n *SetTerminalLatexSpecList) String() string
String implements fmt.Stringer.
type SetTerminalLatexSpecListItem ¶
type SetTerminalLatexSpecListItem struct { Case int ExpressionOpt *ExpressionOpt ExpressionUnitList *ExpressionUnitList Token xc.Token }
SetTerminalLatexSpecListItem represents data reduced by productions:
SetTerminalLatexSpecListItem: "default" | "courier" ExpressionOpt // Case 1 | "roman" ExpressionOpt // Case 2 | "size" ExpressionUnitList // Case 3 | "rotate" // Case 4 | "norotate" // Case 5
Example ¶
fmt.Println(exampleAST(1746, "set term latex default"))
Output: &plot.SetTerminalLatexSpecListItem{ · Token: example1746.go:1:16: IDENTIFIER "default", }
Example (Case1) ¶
fmt.Println(exampleAST(1747, "set term latex courier"))
Output: &plot.SetTerminalLatexSpecListItem{ · Case: 1, · Token: example1747.go:1:16: IDENTIFIER "courier", }
Example (Case2) ¶
fmt.Println(exampleAST(1748, "set term emtex roman"))
Output: &plot.SetTerminalLatexSpecListItem{ · Case: 2, · Token: example1748.go:1:16: IDENTIFIER "roman", }
Example (Case3) ¶
fmt.Println(exampleAST(1749, "set term latex size ident_a"))
Output: &plot.SetTerminalLatexSpecListItem{ · Case: 3, · ExpressionUnitList: &plot.ExpressionUnitList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1749.go:1:21: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1749.go:1:16: IDENTIFIER "size", }
Example (Case4) ¶
fmt.Println(exampleAST(1750, "set term emtex rotate"))
Output: &plot.SetTerminalLatexSpecListItem{ · Case: 4, · Token: example1750.go:1:16: IDENTIFIER "rotate", }
Example (Case5) ¶
fmt.Println(exampleAST(1751, "set term emtex norotate"))
Output: &plot.SetTerminalLatexSpecListItem{ · Case: 5, · Token: example1751.go:1:16: IDENTIFIER "norotate", }
func (*SetTerminalLatexSpecListItem) Pos ¶
func (n *SetTerminalLatexSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalLatexSpecListItem) String ¶
func (n *SetTerminalLatexSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalLatexSpecListOpt ¶
type SetTerminalLatexSpecListOpt struct {
SetTerminalLatexSpecList *SetTerminalLatexSpecList
}
SetTerminalLatexSpecListOpt represents data reduced by productions:
SetTerminalLatexSpecListOpt: /* empty */ | SetTerminalLatexSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1752, "set term emtex") == (*SetTerminalLatexSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1753, "set term latex courier"))
Output: &plot.SetTerminalLatexSpecListOpt{ · SetTerminalLatexSpecList: &plot.SetTerminalLatexSpecList{ · · SetTerminalLatexSpecListItem: &plot.SetTerminalLatexSpecListItem{ · · · Case: 1, · · · Token: example1753.go:1:16: IDENTIFIER "courier", · · }, · }, }
func (*SetTerminalLatexSpecListOpt) Pos ¶
func (n *SetTerminalLatexSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalLatexSpecListOpt) String ¶
func (n *SetTerminalLatexSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalLuatikzSpecList ¶
type SetTerminalLuatikzSpecList struct { Case int SetTerminalLuatikzSpecList *SetTerminalLuatikzSpecList SetTerminalLuatikzSpecListItem *SetTerminalLuatikzSpecListItem }
SetTerminalLuatikzSpecList represents data reduced by productions:
SetTerminalLuatikzSpecList: SetTerminalLuatikzSpecListItem | SetTerminalLuatikzSpecList SetTerminalLuatikzSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1754, "set term lua tiks bitmap"))
Output: &plot.SetTerminalLuatikzSpecList{ · SetTerminalLuatikzSpecListItem: &plot.SetTerminalLuatikzSpecListItem{ · · Case: 42, · · Token: example1754.go:1:19: IDENTIFIER "bitmap", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1755, "set term lua tiks bitmap bitmap"))
Output: &plot.SetTerminalLuatikzSpecList{ · SetTerminalLuatikzSpecList: &plot.SetTerminalLuatikzSpecList{ · · Case: 1, · · SetTerminalLuatikzSpecListItem: &plot.SetTerminalLuatikzSpecListItem{ · · · Case: 42, · · · Token: example1755.go:1:26: IDENTIFIER "bitmap", · · }, · }, · SetTerminalLuatikzSpecListItem: &plot.SetTerminalLuatikzSpecListItem{ · · Case: 42, · · Token: example1755.go:1:19: IDENTIFIER "bitmap", · }, }
func (*SetTerminalLuatikzSpecList) Pos ¶
func (n *SetTerminalLuatikzSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalLuatikzSpecList) String ¶
func (n *SetTerminalLuatikzSpecList) String() string
String implements fmt.Stringer.
type SetTerminalLuatikzSpecListItem ¶
type SetTerminalLuatikzSpecListItem struct { Case int Expression *Expression ExpressionList *ExpressionList ExpressionUnitList *ExpressionUnitList IdentifierList *IdentifierList Token xc.Token }
SetTerminalLuatikzSpecListItem represents data reduced by productions:
SetTerminalLuatikzSpecListItem: "latex" | "tex" // Case 1 | "context" // Case 2 | "color" // Case 3 | "monochrome" // Case 4 | "originreset" // Case 5 | "nooriginreset" // Case 6 | "gparrows" // Case 7 | "nogparrows" // Case 8 | "gppoints" // Case 9 | "nogppoints" // Case 10 | "picenvironment" // Case 11 | "nopicenvironment" // Case 12 | "clip" // Case 13 | "noclip" // Case 14 | "tightboundingbox" // Case 15 | "notightboundingbox" // Case 16 | "background" Expression // Case 17 | "size" ExpressionUnitList // Case 18 | "scale" ExpressionList // Case 19 | "plotsize" ExpressionUnitList // Case 20 | "charsize" ExpressionUnitList // Case 21 | "font" Expression // Case 22 | "fontscale" Expression // Case 23 | "textscale" Expression // Case 24 | "dashlength" Expression // Case 25 | "dl" Expression // Case 26 | "linewidth" Expression // Case 27 | "lw" Expression // Case 28 | "nofulldoc" // Case 29 | "fulldoc" // Case 30 | "standalone" // Case 31 | "nostandalone" // Case 32 | "preamble" Expression // Case 33 | "header" Expression // Case 34 | "tikzplot" ExpressionList // Case 35 | "notikzarrows" // Case 36 | "tikzarrows" // Case 37 | "rgbimages" // Case 38 | "cmykimages" // Case 39 | "externalimages" // Case 40 | "noexternalimages" // Case 41 | "bitmap" // Case 42 | "nobitmap" // Case 43 | "providevars" IdentifierList // Case 44 | "createstyle" // Case 45 | "help" // Case 46
Example ¶
fmt.Println(exampleAST(1756, "set term lua tiks latex"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Token: example1756.go:1:19: IDENTIFIER "latex", }
Example (Case01) ¶
fmt.Println(exampleAST(1757, "set term lua tiks tex"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 1, · Token: example1757.go:1:19: IDENTIFIER "tex", }
Example (Case02) ¶
fmt.Println(exampleAST(1758, "set term lua tiks context"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 2, · Token: example1758.go:1:19: IDENTIFIER "context", }
Example (Case03) ¶
fmt.Println(exampleAST(1759, "set term lua tiks color"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 3, · Token: example1759.go:1:19: IDENTIFIER "color", }
Example (Case04) ¶
fmt.Println(exampleAST(1760, "set term lua tiks monochrome"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 4, · Token: example1760.go:1:19: IDENTIFIER "monochrome", }
Example (Case05) ¶
fmt.Println(exampleAST(1761, "set term lua tiks originreset"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 5, · Token: example1761.go:1:19: IDENTIFIER "originreset", }
Example (Case06) ¶
fmt.Println(exampleAST(1762, "set term lua tiks nooriginreset"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 6, · Token: example1762.go:1:19: IDENTIFIER "nooriginreset", }
Example (Case07) ¶
fmt.Println(exampleAST(1763, "set term lua tiks gparrows"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 7, · Token: example1763.go:1:19: IDENTIFIER "gparrows", }
Example (Case08) ¶
fmt.Println(exampleAST(1764, "set term lua tiks nogparrows"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 8, · Token: example1764.go:1:19: IDENTIFIER "nogparrows", }
Example (Case09) ¶
fmt.Println(exampleAST(1765, "set term lua tiks gppoints"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 9, · Token: example1765.go:1:19: IDENTIFIER "gppoints", }
Example (Case10) ¶
fmt.Println(exampleAST(1766, "set term lua tiks nogppoints"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 10, · Token: example1766.go:1:19: IDENTIFIER "nogppoints", }
Example (Case11) ¶
fmt.Println(exampleAST(1767, "set term lua tiks picenvironment"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 11, · Token: example1767.go:1:19: IDENTIFIER "picenvironment", }
Example (Case12) ¶
fmt.Println(exampleAST(1768, "set term lua tiks nopicenvironment"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 12, · Token: example1768.go:1:19: IDENTIFIER "nopicenvironment", }
Example (Case13) ¶
fmt.Println(exampleAST(1769, "set term lua tiks clip"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 13, · Token: example1769.go:1:19: IDENTIFIER "clip", }
Example (Case14) ¶
fmt.Println(exampleAST(1770, "set term lua tiks noclip"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 14, · Token: example1770.go:1:19: IDENTIFIER "noclip", }
Example (Case15) ¶
fmt.Println(exampleAST(1771, "set term lua tiks tightboundingbox"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 15, · Token: example1771.go:1:19: IDENTIFIER "tightboundingbox", }
Example (Case16) ¶
fmt.Println(exampleAST(1772, "set term lua tiks notightboundingbox"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 16, · Token: example1772.go:1:19: IDENTIFIER "notightboundingbox", }
Example (Case17) ¶
fmt.Println(exampleAST(1773, "set term lua tiks background ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 17, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1773.go:1:30: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1773.go:1:19: IDENTIFIER "background", }
Example (Case18) ¶
fmt.Println(exampleAST(1774, "set term lua tiks size ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 18, · ExpressionUnitList: &plot.ExpressionUnitList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1774.go:1:24: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1774.go:1:19: IDENTIFIER "size", }
Example (Case19) ¶
fmt.Println(exampleAST(1775, "set term lua tiks scale ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 19, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1775.go:1:25: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1775.go:1:19: IDENTIFIER "scale", }
Example (Case20) ¶
fmt.Println(exampleAST(1776, "set term lua tiks plotsize ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 20, · ExpressionUnitList: &plot.ExpressionUnitList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1776.go:1:28: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1776.go:1:19: IDENTIFIER "plotsize", }
Example (Case21) ¶
fmt.Println(exampleAST(1777, "set term lua tiks charsize ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 21, · ExpressionUnitList: &plot.ExpressionUnitList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1777.go:1:28: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1777.go:1:19: IDENTIFIER "charsize", }
Example (Case22) ¶
fmt.Println(exampleAST(1778, "set term lua tiks font ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 22, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1778.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1778.go:1:19: IDENTIFIER "font", }
Example (Case23) ¶
fmt.Println(exampleAST(1779, "set term lua tiks fontscale ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 23, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1779.go:1:29: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1779.go:1:19: IDENTIFIER "fontscale", }
Example (Case24) ¶
fmt.Println(exampleAST(1780, "set term lua tiks textscale ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 24, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1780.go:1:29: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1780.go:1:19: IDENTIFIER "textscale", }
Example (Case25) ¶
fmt.Println(exampleAST(1781, "set term lua tiks dashlength ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 25, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1781.go:1:30: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1781.go:1:19: IDENTIFIER "dashlength", }
Example (Case26) ¶
fmt.Println(exampleAST(1782, "set term lua tiks dl ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 26, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1782.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1782.go:1:19: IDENTIFIER "dl", }
Example (Case27) ¶
fmt.Println(exampleAST(1783, "set term lua tiks linewidth ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 27, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1783.go:1:29: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1783.go:1:19: IDENTIFIER "linewidth", }
Example (Case28) ¶
fmt.Println(exampleAST(1784, "set term lua tiks lw ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 28, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1784.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1784.go:1:19: IDENTIFIER "lw", }
Example (Case29) ¶
fmt.Println(exampleAST(1785, "set term lua tiks nofulldoc"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 29, · Token: example1785.go:1:19: IDENTIFIER "nofulldoc", }
Example (Case30) ¶
fmt.Println(exampleAST(1786, "set term lua tiks fulldoc"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 30, · Token: example1786.go:1:19: IDENTIFIER "fulldoc", }
Example (Case31) ¶
fmt.Println(exampleAST(1787, "set term lua tiks standalone"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 31, · Token: example1787.go:1:19: IDENTIFIER "standalone", }
Example (Case32) ¶
fmt.Println(exampleAST(1788, "set term lua tiks nostandalone"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 32, · Token: example1788.go:1:19: IDENTIFIER "nostandalone", }
Example (Case33) ¶
fmt.Println(exampleAST(1789, "set term lua tiks preamble ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 33, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1789.go:1:28: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1789.go:1:19: IDENTIFIER "preamble", }
Example (Case34) ¶
fmt.Println(exampleAST(1790, "set term lua tiks header ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 34, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1790.go:1:26: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1790.go:1:19: IDENTIFIER "header", }
Example (Case35) ¶
fmt.Println(exampleAST(1791, "set term lua tiks tikzplot ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 35, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1791.go:1:28: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1791.go:1:19: IDENTIFIER "tikzplot", }
Example (Case36) ¶
fmt.Println(exampleAST(1792, "set term lua tiks notikzarrows"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 36, · Token: example1792.go:1:19: IDENTIFIER "notikzarrows", }
Example (Case37) ¶
fmt.Println(exampleAST(1793, "set term lua tiks tikzarrows"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 37, · Token: example1793.go:1:19: IDENTIFIER "tikzarrows", }
Example (Case38) ¶
fmt.Println(exampleAST(1794, "set term lua tiks rgbimages"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 38, · Token: example1794.go:1:19: IDENTIFIER "rgbimages", }
Example (Case39) ¶
fmt.Println(exampleAST(1795, "set term lua tiks cmykimages"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 39, · Token: example1795.go:1:19: IDENTIFIER "cmykimages", }
Example (Case40) ¶
fmt.Println(exampleAST(1796, "set term lua tiks externalimages"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 40, · Token: example1796.go:1:19: IDENTIFIER "externalimages", }
Example (Case41) ¶
fmt.Println(exampleAST(1797, "set term lua tiks noexternalimages"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 41, · Token: example1797.go:1:19: IDENTIFIER "noexternalimages", }
Example (Case42) ¶
fmt.Println(exampleAST(1798, "set term lua tiks bitmap"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 42, · Token: example1798.go:1:19: IDENTIFIER "bitmap", }
Example (Case43) ¶
fmt.Println(exampleAST(1799, "set term lua tiks nobitmap"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 43, · Token: example1799.go:1:19: IDENTIFIER "nobitmap", }
Example (Case44) ¶
fmt.Println(exampleAST(1800, "set term lua tiks providevars ident_a"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 44, · IdentifierList: &plot.IdentifierList{ · · Token: example1800.go:1:31: IDENTIFIER "ident_a", · }, · Token: example1800.go:1:19: IDENTIFIER "providevars", }
Example (Case45) ¶
fmt.Println(exampleAST(1801, "set term lua tiks createstyle"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 45, · Token: example1801.go:1:19: IDENTIFIER "createstyle", }
Example (Case46) ¶
fmt.Println(exampleAST(1802, "set term lua tiks help"))
Output: &plot.SetTerminalLuatikzSpecListItem{ · Case: 46, · Token: example1802.go:1:19: IDENTIFIER "help", }
func (*SetTerminalLuatikzSpecListItem) Pos ¶
func (n *SetTerminalLuatikzSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalLuatikzSpecListItem) String ¶
func (n *SetTerminalLuatikzSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalLuatikzSpecListOpt ¶
type SetTerminalLuatikzSpecListOpt struct {
SetTerminalLuatikzSpecList *SetTerminalLuatikzSpecList
}
SetTerminalLuatikzSpecListOpt represents data reduced by productions:
SetTerminalLuatikzSpecListOpt: /* empty */ | SetTerminalLuatikzSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1803, "set term lua tiks") == (*SetTerminalLuatikzSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1804, "set term lua tiks bitmap"))
Output: &plot.SetTerminalLuatikzSpecListOpt{ · SetTerminalLuatikzSpecList: &plot.SetTerminalLuatikzSpecList{ · · SetTerminalLuatikzSpecListItem: &plot.SetTerminalLuatikzSpecListItem{ · · · Case: 42, · · · Token: example1804.go:1:19: IDENTIFIER "bitmap", · · }, · }, }
func (*SetTerminalLuatikzSpecListOpt) Pos ¶
func (n *SetTerminalLuatikzSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalLuatikzSpecListOpt) String ¶
func (n *SetTerminalLuatikzSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalMifSpecList ¶
type SetTerminalMifSpecList struct { Case int SetTerminalMifSpecList *SetTerminalMifSpecList SetTerminalMifSpecListItem *SetTerminalMifSpecListItem }
SetTerminalMifSpecList represents data reduced by productions:
SetTerminalMifSpecList: SetTerminalMifSpecListItem | SetTerminalMifSpecList SetTerminalMifSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1805, "set term mif ?"))
Output: &plot.SetTerminalMifSpecList{ · SetTerminalMifSpecListItem: &plot.SetTerminalMifSpecListItem{ · · Case: 6, · · Token: example1805.go:1:14: '?' "?", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1806, "set term mif ? ?"))
Output: &plot.SetTerminalMifSpecList{ · SetTerminalMifSpecList: &plot.SetTerminalMifSpecList{ · · Case: 1, · · SetTerminalMifSpecListItem: &plot.SetTerminalMifSpecListItem{ · · · Case: 6, · · · Token: example1806.go:1:16: '?' "?", · · }, · }, · SetTerminalMifSpecListItem: &plot.SetTerminalMifSpecListItem{ · · Case: 6, · · Token: example1806.go:1:14: '?' "?", · }, }
func (*SetTerminalMifSpecList) Pos ¶
func (n *SetTerminalMifSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalMifSpecList) String ¶
func (n *SetTerminalMifSpecList) String() string
String implements fmt.Stringer.
type SetTerminalMifSpecListItem ¶
SetTerminalMifSpecListItem represents data reduced by productions:
SetTerminalMifSpecListItem: "color" | "colour" // Case 1 | "monochrome" // Case 2 | "polyline" // Case 3 | "vectors" // Case 4 | "help" // Case 5 | '?' // Case 6
Example ¶
fmt.Println(exampleAST(1807, "set term mif color"))
Output: &plot.SetTerminalMifSpecListItem{ · Token: example1807.go:1:14: IDENTIFIER "color", }
Example (Case1) ¶
fmt.Println(exampleAST(1808, "set term mif colour"))
Output: &plot.SetTerminalMifSpecListItem{ · Case: 1, · Token: example1808.go:1:14: IDENTIFIER "colour", }
Example (Case2) ¶
fmt.Println(exampleAST(1809, "set term mif monochrome"))
Output: &plot.SetTerminalMifSpecListItem{ · Case: 2, · Token: example1809.go:1:14: IDENTIFIER "monochrome", }
Example (Case3) ¶
fmt.Println(exampleAST(1810, "set term mif polyline"))
Output: &plot.SetTerminalMifSpecListItem{ · Case: 3, · Token: example1810.go:1:14: IDENTIFIER "polyline", }
Example (Case4) ¶
fmt.Println(exampleAST(1811, "set term mif vectors"))
Output: &plot.SetTerminalMifSpecListItem{ · Case: 4, · Token: example1811.go:1:14: IDENTIFIER "vectors", }
Example (Case5) ¶
fmt.Println(exampleAST(1812, "set term mif help"))
Output: &plot.SetTerminalMifSpecListItem{ · Case: 5, · Token: example1812.go:1:14: IDENTIFIER "help", }
Example (Case6) ¶
fmt.Println(exampleAST(1813, "set term mif ?"))
Output: &plot.SetTerminalMifSpecListItem{ · Case: 6, · Token: example1813.go:1:14: '?' "?", }
func (*SetTerminalMifSpecListItem) Pos ¶
func (n *SetTerminalMifSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalMifSpecListItem) String ¶
func (n *SetTerminalMifSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalMifSpecListOpt ¶
type SetTerminalMifSpecListOpt struct {
SetTerminalMifSpecList *SetTerminalMifSpecList
}
SetTerminalMifSpecListOpt represents data reduced by productions:
SetTerminalMifSpecListOpt: /* empty */ | SetTerminalMifSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1814, "set term mif") == (*SetTerminalMifSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1815, "set term mif ?"))
Output: &plot.SetTerminalMifSpecListOpt{ · SetTerminalMifSpecList: &plot.SetTerminalMifSpecList{ · · SetTerminalMifSpecListItem: &plot.SetTerminalMifSpecListItem{ · · · Case: 6, · · · Token: example1815.go:1:14: '?' "?", · · }, · }, }
func (*SetTerminalMifSpecListOpt) Pos ¶
func (n *SetTerminalMifSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalMifSpecListOpt) String ¶
func (n *SetTerminalMifSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalMpSpecList ¶
type SetTerminalMpSpecList struct { Case int SetTerminalMpSpecList *SetTerminalMpSpecList SetTerminalMpSpecListItem *SetTerminalMpSpecListItem }
SetTerminalMpSpecList represents data reduced by productions:
SetTerminalMpSpecList: SetTerminalMpSpecListItem | SetTerminalMpSpecList SetTerminalMpSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1816, "set term mp ident_a"))
Output: &plot.SetTerminalMpSpecList{ · SetTerminalMpSpecListItem: &plot.SetTerminalMpSpecListItem{ · · Case: 15, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1816.go:1:13: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1817, "set term mp ident_a ident_b"))
Output: &plot.SetTerminalMpSpecList{ · SetTerminalMpSpecList: &plot.SetTerminalMpSpecList{ · · Case: 1, · · SetTerminalMpSpecListItem: &plot.SetTerminalMpSpecListItem{ · · · Case: 15, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1817.go:1:21: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalMpSpecListItem: &plot.SetTerminalMpSpecListItem{ · · Case: 15, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1817.go:1:13: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalMpSpecList) Pos ¶
func (n *SetTerminalMpSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalMpSpecList) String ¶
func (n *SetTerminalMpSpecList) String() string
String implements fmt.Stringer.
type SetTerminalMpSpecListItem ¶
type SetTerminalMpSpecListItem struct { Case int Expression *Expression SimpleExpression *SimpleExpression Token xc.Token }
SetTerminalMpSpecListItem represents data reduced by productions:
SetTerminalMpSpecListItem: "color" | "colour" // Case 1 | "monochrome" // Case 2 | "solid" // Case 3 | "dashed" // Case 4 | "notex" // Case 5 | "tex" // Case 6 | "latex" // Case 7 | "magnification" Expression // Case 8 | "psnfss" // Case 9 | "psnfss_version7" // Case 10 | "nopsnfss" // Case 11 | "prologues" Expression // Case 12 | "a4paper" // Case 13 | "amstex" // Case 14 | SimpleExpression // Case 15
Example ¶
fmt.Println(exampleAST(1818, "set term mp color"))
Output: &plot.SetTerminalMpSpecListItem{ · Token: example1818.go:1:13: IDENTIFIER "color", }
Example (Case01) ¶
fmt.Println(exampleAST(1819, "set term mp colour"))
Output: &plot.SetTerminalMpSpecListItem{ · Case: 1, · Token: example1819.go:1:13: IDENTIFIER "colour", }
Example (Case02) ¶
fmt.Println(exampleAST(1820, "set term mp monochrome"))
Output: &plot.SetTerminalMpSpecListItem{ · Case: 2, · Token: example1820.go:1:13: IDENTIFIER "monochrome", }
Example (Case03) ¶
fmt.Println(exampleAST(1821, "set term mp solid"))
Output: &plot.SetTerminalMpSpecListItem{ · Case: 3, · Token: example1821.go:1:13: IDENTIFIER "solid", }
Example (Case04) ¶
fmt.Println(exampleAST(1822, "set term mp dashed"))
Output: &plot.SetTerminalMpSpecListItem{ · Case: 4, · Token: example1822.go:1:13: IDENTIFIER "dashed", }
Example (Case05) ¶
fmt.Println(exampleAST(1823, "set term mp notex"))
Output: &plot.SetTerminalMpSpecListItem{ · Case: 5, · Token: example1823.go:1:13: IDENTIFIER "notex", }
Example (Case06) ¶
fmt.Println(exampleAST(1824, "set term mp tex"))
Output: &plot.SetTerminalMpSpecListItem{ · Case: 6, · Token: example1824.go:1:13: IDENTIFIER "tex", }
Example (Case07) ¶
fmt.Println(exampleAST(1825, "set term mp latex"))
Output: &plot.SetTerminalMpSpecListItem{ · Case: 7, · Token: example1825.go:1:13: IDENTIFIER "latex", }
Example (Case08) ¶
fmt.Println(exampleAST(1826, "set term mp magnification ident_a"))
Output: &plot.SetTerminalMpSpecListItem{ · Case: 8, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1826.go:1:27: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1826.go:1:13: IDENTIFIER "magnification", }
Example (Case09) ¶
fmt.Println(exampleAST(1827, "set term mp psnfss"))
Output: &plot.SetTerminalMpSpecListItem{ · Case: 9, · Token: example1827.go:1:13: IDENTIFIER "psnfss", }
Example (Case10) ¶
fmt.Println(exampleAST(1828, "set term mp psnfss_version7"))
Output: &plot.SetTerminalMpSpecListItem{ · Case: 10, · Token: example1828.go:1:13: IDENTIFIER "psnfss_version7", }
Example (Case11) ¶
fmt.Println(exampleAST(1829, "set term mp nopsnfss"))
Output: &plot.SetTerminalMpSpecListItem{ · Case: 11, · Token: example1829.go:1:13: IDENTIFIER "nopsnfss", }
Example (Case12) ¶
fmt.Println(exampleAST(1830, "set term mp prologues ident_a"))
Output: &plot.SetTerminalMpSpecListItem{ · Case: 12, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1830.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1830.go:1:13: IDENTIFIER "prologues", }
Example (Case13) ¶
fmt.Println(exampleAST(1831, "set term mp a4paper"))
Output: &plot.SetTerminalMpSpecListItem{ · Case: 13, · Token: example1831.go:1:13: IDENTIFIER "a4paper", }
Example (Case14) ¶
fmt.Println(exampleAST(1832, "set term mp amstex"))
Output: &plot.SetTerminalMpSpecListItem{ · Case: 14, · Token: example1832.go:1:13: IDENTIFIER "amstex", }
Example (Case15) ¶
fmt.Println(exampleAST(1833, "set term mp ident_a"))
Output: &plot.SetTerminalMpSpecListItem{ · Case: 15, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1833.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*SetTerminalMpSpecListItem) Pos ¶
func (n *SetTerminalMpSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalMpSpecListItem) String ¶
func (n *SetTerminalMpSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalMpSpecListOpt ¶
type SetTerminalMpSpecListOpt struct {
SetTerminalMpSpecList *SetTerminalMpSpecList
}
SetTerminalMpSpecListOpt represents data reduced by productions:
SetTerminalMpSpecListOpt: /* empty */ | SetTerminalMpSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1834, "set term mp") == (*SetTerminalMpSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1835, "set term mp ident_a"))
Output: &plot.SetTerminalMpSpecListOpt{ · SetTerminalMpSpecList: &plot.SetTerminalMpSpecList{ · · SetTerminalMpSpecListItem: &plot.SetTerminalMpSpecListItem{ · · · Case: 15, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1835.go:1:13: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalMpSpecListOpt) Pos ¶
func (n *SetTerminalMpSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalMpSpecListOpt) String ¶
func (n *SetTerminalMpSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalNeccp6SpecList ¶
type SetTerminalNeccp6SpecList struct { Case int SetTerminalNeccp6SpecList *SetTerminalNeccp6SpecList SetTerminalNeccp6SpecListItem *SetTerminalNeccp6SpecListItem }
SetTerminalNeccp6SpecList represents data reduced by productions:
SetTerminalNeccp6SpecList: SetTerminalNeccp6SpecListItem | SetTerminalNeccp6SpecList SetTerminalNeccp6SpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1633, "set term nec_cp6 colour"))
Output: &plot.SetTerminalNeccp6SpecList{ · SetTerminalNeccp6SpecListItem: &plot.SetTerminalNeccp6SpecListItem{ · · Case: 1, · · Token: example1633.go:1:18: IDENTIFIER "colour", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1634, "set term nec_cp6 colour colour"))
Output: &plot.SetTerminalNeccp6SpecList{ · SetTerminalNeccp6SpecList: &plot.SetTerminalNeccp6SpecList{ · · Case: 1, · · SetTerminalNeccp6SpecListItem: &plot.SetTerminalNeccp6SpecListItem{ · · · Case: 1, · · · Token: example1634.go:1:25: IDENTIFIER "colour", · · }, · }, · SetTerminalNeccp6SpecListItem: &plot.SetTerminalNeccp6SpecListItem{ · · Case: 1, · · Token: example1634.go:1:18: IDENTIFIER "colour", · }, }
func (*SetTerminalNeccp6SpecList) Pos ¶
func (n *SetTerminalNeccp6SpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalNeccp6SpecList) String ¶
func (n *SetTerminalNeccp6SpecList) String() string
String implements fmt.Stringer.
type SetTerminalNeccp6SpecListItem ¶
SetTerminalNeccp6SpecListItem represents data reduced by productions:
SetTerminalNeccp6SpecListItem: "monochrome" | "colour" // Case 1 | "draft" // Case 2
Example ¶
fmt.Println(exampleAST(1635, "set term nec_cp6 monochrome"))
Output: &plot.SetTerminalNeccp6SpecListItem{ · Token: example1635.go:1:18: IDENTIFIER "monochrome", }
Example (Case1) ¶
fmt.Println(exampleAST(1636, "set term nec_cp6 colour"))
Output: &plot.SetTerminalNeccp6SpecListItem{ · Case: 1, · Token: example1636.go:1:18: IDENTIFIER "colour", }
Example (Case2) ¶
fmt.Println(exampleAST(1637, "set term nec_cp6 draft"))
Output: &plot.SetTerminalNeccp6SpecListItem{ · Case: 2, · Token: example1637.go:1:18: IDENTIFIER "draft", }
func (*SetTerminalNeccp6SpecListItem) Pos ¶
func (n *SetTerminalNeccp6SpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalNeccp6SpecListItem) String ¶
func (n *SetTerminalNeccp6SpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalNeccp6SpecListOpt ¶
type SetTerminalNeccp6SpecListOpt struct {
SetTerminalNeccp6SpecList *SetTerminalNeccp6SpecList
}
SetTerminalNeccp6SpecListOpt represents data reduced by productions:
SetTerminalNeccp6SpecListOpt: /* empty */ | SetTerminalNeccp6SpecList // Case 1
Example ¶
fmt.Println(exampleAST(1638, "set term nec_cp6") == (*SetTerminalNeccp6SpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1639, "set term nec_cp6 colour"))
Output: &plot.SetTerminalNeccp6SpecListOpt{ · SetTerminalNeccp6SpecList: &plot.SetTerminalNeccp6SpecList{ · · SetTerminalNeccp6SpecListItem: &plot.SetTerminalNeccp6SpecListItem{ · · · Case: 1, · · · Token: example1639.go:1:18: IDENTIFIER "colour", · · }, · }, }
func (*SetTerminalNeccp6SpecListOpt) Pos ¶
func (n *SetTerminalNeccp6SpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalNeccp6SpecListOpt) String ¶
func (n *SetTerminalNeccp6SpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalNextSpecList ¶
type SetTerminalNextSpecList struct { Case int SetTerminalNextSpecList *SetTerminalNextSpecList SetTerminalNextSpecListItem *SetTerminalNextSpecListItem }
SetTerminalNextSpecList represents data reduced by productions:
SetTerminalNextSpecList: SetTerminalNextSpecListItem | SetTerminalNextSpecList SetTerminalNextSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1836, "set term openstep ident_a"))
Output: &plot.SetTerminalNextSpecList{ · SetTerminalNextSpecListItem: &plot.SetTerminalNextSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1836.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1837, "set terminal next ident_a ident_b"))
Output: &plot.SetTerminalNextSpecList{ · SetTerminalNextSpecList: &plot.SetTerminalNextSpecList{ · · Case: 1, · · SetTerminalNextSpecListItem: &plot.SetTerminalNextSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1837.go:1:27: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalNextSpecListItem: &plot.SetTerminalNextSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1837.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalNextSpecList) Pos ¶
func (n *SetTerminalNextSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalNextSpecList) String ¶
func (n *SetTerminalNextSpecList) String() string
String implements fmt.Stringer.
type SetTerminalNextSpecListItem ¶
type SetTerminalNextSpecListItem struct { Case int Expression *Expression SimpleExpression *SimpleExpression Token xc.Token }
SetTerminalNextSpecListItem represents data reduced by productions:
SetTerminalNextSpecListItem: SimpleExpression | "default" // Case 1 | "new" // Case 2 | "old" // Case 3 | "color" // Case 4 | "monochrome" // Case 5 | "solid" // Case 6 | "dashed" // Case 7 | "title" Expression // Case 8
Example ¶
fmt.Println(exampleAST(1838, "set term openstep ident_a"))
Output: &plot.SetTerminalNextSpecListItem{ · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1838.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1839, "set terminal next default"))
Output: &plot.SetTerminalNextSpecListItem{ · Case: 1, · Token: example1839.go:1:19: IDENTIFIER "default", }
Example (Case2) ¶
fmt.Println(exampleAST(1840, "set term openstep new"))
Output: &plot.SetTerminalNextSpecListItem{ · Case: 2, · Token: example1840.go:1:19: IDENTIFIER "new", }
Example (Case3) ¶
fmt.Println(exampleAST(1841, "set term openstep old"))
Output: &plot.SetTerminalNextSpecListItem{ · Case: 3, · Token: example1841.go:1:19: IDENTIFIER "old", }
Example (Case4) ¶
fmt.Println(exampleAST(1842, "set terminal next color"))
Output: &plot.SetTerminalNextSpecListItem{ · Case: 4, · Token: example1842.go:1:19: IDENTIFIER "color", }
Example (Case5) ¶
fmt.Println(exampleAST(1843, "set terminal next monochrome"))
Output: &plot.SetTerminalNextSpecListItem{ · Case: 5, · Token: example1843.go:1:19: IDENTIFIER "monochrome", }
Example (Case6) ¶
fmt.Println(exampleAST(1844, "set term openstep solid"))
Output: &plot.SetTerminalNextSpecListItem{ · Case: 6, · Token: example1844.go:1:19: IDENTIFIER "solid", }
Example (Case7) ¶
fmt.Println(exampleAST(1845, "set terminal next dashed"))
Output: &plot.SetTerminalNextSpecListItem{ · Case: 7, · Token: example1845.go:1:19: IDENTIFIER "dashed", }
Example (Case8) ¶
fmt.Println(exampleAST(1846, "set term openstep title ident_a"))
Output: &plot.SetTerminalNextSpecListItem{ · Case: 8, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1846.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1846.go:1:19: IDENTIFIER "title", }
func (*SetTerminalNextSpecListItem) Pos ¶
func (n *SetTerminalNextSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalNextSpecListItem) String ¶
func (n *SetTerminalNextSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalNextSpecListOpt ¶
type SetTerminalNextSpecListOpt struct {
SetTerminalNextSpecList *SetTerminalNextSpecList
}
SetTerminalNextSpecListOpt represents data reduced by productions:
SetTerminalNextSpecListOpt: /* empty */ | SetTerminalNextSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1847, "set terminal next") == (*SetTerminalNextSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1848, "set terminal next ident_a"))
Output: &plot.SetTerminalNextSpecListOpt{ · SetTerminalNextSpecList: &plot.SetTerminalNextSpecList{ · · SetTerminalNextSpecListItem: &plot.SetTerminalNextSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1848.go:1:19: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalNextSpecListOpt) Pos ¶
func (n *SetTerminalNextSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalNextSpecListOpt) String ¶
func (n *SetTerminalNextSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalPbmSpecList ¶
type SetTerminalPbmSpecList struct { Case int SetTerminalPbmSpecList *SetTerminalPbmSpecList SetTerminalPbmSpecListItem *SetTerminalPbmSpecListItem }
SetTerminalPbmSpecList represents data reduced by productions:
SetTerminalPbmSpecList: SetTerminalPbmSpecListItem | SetTerminalPbmSpecList SetTerminalPbmSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1849, "set term pbm ident_a"))
Output: &plot.SetTerminalPbmSpecList{ · SetTerminalPbmSpecListItem: &plot.SetTerminalPbmSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1849.go:1:14: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1850, "set term pbm ident_a ident_b"))
Output: &plot.SetTerminalPbmSpecList{ · SetTerminalPbmSpecList: &plot.SetTerminalPbmSpecList{ · · Case: 1, · · SetTerminalPbmSpecListItem: &plot.SetTerminalPbmSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1850.go:1:22: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalPbmSpecListItem: &plot.SetTerminalPbmSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1850.go:1:14: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalPbmSpecList) Pos ¶
func (n *SetTerminalPbmSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPbmSpecList) String ¶
func (n *SetTerminalPbmSpecList) String() string
String implements fmt.Stringer.
type SetTerminalPbmSpecListItem ¶
type SetTerminalPbmSpecListItem struct { Case int ExpressionList *ExpressionList SimpleExpression *SimpleExpression Token xc.Token }
SetTerminalPbmSpecListItem represents data reduced by productions:
SetTerminalPbmSpecListItem: SimpleExpression | "size" ExpressionList // Case 1
Example ¶
fmt.Println(exampleAST(1851, "set term pbm ident_a"))
Output: &plot.SetTerminalPbmSpecListItem{ · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1851.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1852, "set term pbm size ident_a"))
Output: &plot.SetTerminalPbmSpecListItem{ · Case: 1, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1852.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1852.go:1:14: IDENTIFIER "size", }
func (*SetTerminalPbmSpecListItem) Pos ¶
func (n *SetTerminalPbmSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPbmSpecListItem) String ¶
func (n *SetTerminalPbmSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalPbmSpecListOpt ¶
type SetTerminalPbmSpecListOpt struct {
SetTerminalPbmSpecList *SetTerminalPbmSpecList
}
SetTerminalPbmSpecListOpt represents data reduced by productions:
SetTerminalPbmSpecListOpt: /* empty */ | SetTerminalPbmSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1853, "set term pbm") == (*SetTerminalPbmSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1854, "set term pbm ident_a"))
Output: &plot.SetTerminalPbmSpecListOpt{ · SetTerminalPbmSpecList: &plot.SetTerminalPbmSpecList{ · · SetTerminalPbmSpecListItem: &plot.SetTerminalPbmSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1854.go:1:14: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalPbmSpecListOpt) Pos ¶
func (n *SetTerminalPbmSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPbmSpecListOpt) String ¶
func (n *SetTerminalPbmSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalPdfSpecList ¶
type SetTerminalPdfSpecList struct { Case int SetTerminalPdfSpecList *SetTerminalPdfSpecList SetTerminalPdfSpecListItem *SetTerminalPdfSpecListItem }
SetTerminalPdfSpecList represents data reduced by productions:
SetTerminalPdfSpecList: SetTerminalPdfSpecListItem | SetTerminalPdfSpecList SetTerminalPdfSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1855, "set term pdf butt"))
Output: &plot.SetTerminalPdfSpecList{ · SetTerminalPdfSpecListItem: &plot.SetTerminalPdfSpecListItem{ · · Case: 12, · · Token: example1855.go:1:14: IDENTIFIER "butt", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1856, "set term pdf butt butt"))
Output: &plot.SetTerminalPdfSpecList{ · SetTerminalPdfSpecList: &plot.SetTerminalPdfSpecList{ · · Case: 1, · · SetTerminalPdfSpecListItem: &plot.SetTerminalPdfSpecListItem{ · · · Case: 12, · · · Token: example1856.go:1:19: IDENTIFIER "butt", · · }, · }, · SetTerminalPdfSpecListItem: &plot.SetTerminalPdfSpecListItem{ · · Case: 12, · · Token: example1856.go:1:14: IDENTIFIER "butt", · }, }
func (*SetTerminalPdfSpecList) Pos ¶
func (n *SetTerminalPdfSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPdfSpecList) String ¶
func (n *SetTerminalPdfSpecList) String() string
String implements fmt.Stringer.
type SetTerminalPdfSpecListItem ¶
type SetTerminalPdfSpecListItem struct { Case int Expression *Expression ExpressionUnitList *ExpressionUnitList Token xc.Token }
SetTerminalPdfSpecListItem represents data reduced by productions:
SetTerminalPdfSpecListItem: "monochrome" | "color" // Case 1 | "colour" // Case 2 | "enhanced" // Case 3 | "noenhanced" // Case 4 | "fname" Expression // Case 5 | "fsize" Expression // Case 6 | "font" Expression // Case 7 | "fontscale" Expression // Case 8 | "linewidth" Expression // Case 9 | "lw" Expression // Case 10 | "rounded" // Case 11 | "butt" // Case 12 | "dl" Expression // Case 13 | "size" ExpressionUnitList // Case 14
Example ¶
fmt.Println(exampleAST(1857, "set term pdf monochrome"))
Output: &plot.SetTerminalPdfSpecListItem{ · Token: example1857.go:1:14: IDENTIFIER "monochrome", }
Example (Case01) ¶
fmt.Println(exampleAST(1858, "set term pdf color"))
Output: &plot.SetTerminalPdfSpecListItem{ · Case: 1, · Token: example1858.go:1:14: IDENTIFIER "color", }
Example (Case02) ¶
fmt.Println(exampleAST(1859, "set term pdf colour"))
Output: &plot.SetTerminalPdfSpecListItem{ · Case: 2, · Token: example1859.go:1:14: IDENTIFIER "colour", }
Example (Case03) ¶
fmt.Println(exampleAST(1860, "set term pdf enhanced"))
Output: &plot.SetTerminalPdfSpecListItem{ · Case: 3, · Token: example1860.go:1:14: IDENTIFIER "enhanced", }
Example (Case04) ¶
fmt.Println(exampleAST(1861, "set term pdf noenhanced"))
Output: &plot.SetTerminalPdfSpecListItem{ · Case: 4, · Token: example1861.go:1:14: IDENTIFIER "noenhanced", }
Example (Case05) ¶
fmt.Println(exampleAST(1862, "set term pdf fname ident_a"))
Output: &plot.SetTerminalPdfSpecListItem{ · Case: 5, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1862.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1862.go:1:14: IDENTIFIER "fname", }
Example (Case06) ¶
fmt.Println(exampleAST(1863, "set term pdf fsize ident_a"))
Output: &plot.SetTerminalPdfSpecListItem{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1863.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1863.go:1:14: IDENTIFIER "fsize", }
Example (Case07) ¶
fmt.Println(exampleAST(1864, "set term pdf font ident_a"))
Output: &plot.SetTerminalPdfSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1864.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1864.go:1:14: IDENTIFIER "font", }
Example (Case08) ¶
fmt.Println(exampleAST(1865, "set term pdf fontscale ident_a"))
Output: &plot.SetTerminalPdfSpecListItem{ · Case: 8, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1865.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1865.go:1:14: IDENTIFIER "fontscale", }
Example (Case09) ¶
fmt.Println(exampleAST(1866, "set term pdf linewidth ident_a"))
Output: &plot.SetTerminalPdfSpecListItem{ · Case: 9, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1866.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1866.go:1:14: IDENTIFIER "linewidth", }
Example (Case10) ¶
fmt.Println(exampleAST(1867, "set term pdf lw ident_a"))
Output: &plot.SetTerminalPdfSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1867.go:1:17: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1867.go:1:14: IDENTIFIER "lw", }
Example (Case11) ¶
fmt.Println(exampleAST(1868, "set term pdf rounded"))
Output: &plot.SetTerminalPdfSpecListItem{ · Case: 11, · Token: example1868.go:1:14: IDENTIFIER "rounded", }
Example (Case12) ¶
fmt.Println(exampleAST(1869, "set term pdf butt"))
Output: &plot.SetTerminalPdfSpecListItem{ · Case: 12, · Token: example1869.go:1:14: IDENTIFIER "butt", }
Example (Case13) ¶
fmt.Println(exampleAST(1870, "set term pdf dl ident_a"))
Output: &plot.SetTerminalPdfSpecListItem{ · Case: 13, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1870.go:1:17: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1870.go:1:14: IDENTIFIER "dl", }
Example (Case14) ¶
fmt.Println(exampleAST(1871, "set term pdf size ident_a"))
Output: &plot.SetTerminalPdfSpecListItem{ · Case: 14, · ExpressionUnitList: &plot.ExpressionUnitList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1871.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1871.go:1:14: IDENTIFIER "size", }
func (*SetTerminalPdfSpecListItem) Pos ¶
func (n *SetTerminalPdfSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPdfSpecListItem) String ¶
func (n *SetTerminalPdfSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalPdfSpecListOpt ¶
type SetTerminalPdfSpecListOpt struct {
SetTerminalPdfSpecList *SetTerminalPdfSpecList
}
SetTerminalPdfSpecListOpt represents data reduced by productions:
SetTerminalPdfSpecListOpt: /* empty */ | SetTerminalPdfSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1872, "set term pdf") == (*SetTerminalPdfSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1873, "set term pdf butt"))
Output: &plot.SetTerminalPdfSpecListOpt{ · SetTerminalPdfSpecList: &plot.SetTerminalPdfSpecList{ · · SetTerminalPdfSpecListItem: &plot.SetTerminalPdfSpecListItem{ · · · Case: 12, · · · Token: example1873.go:1:14: IDENTIFIER "butt", · · }, · }, }
func (*SetTerminalPdfSpecListOpt) Pos ¶
func (n *SetTerminalPdfSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPdfSpecListOpt) String ¶
func (n *SetTerminalPdfSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalPdfcairoSpecList ¶
type SetTerminalPdfcairoSpecList struct { Case int SetTerminalPdfcairoSpecList *SetTerminalPdfcairoSpecList SetTerminalPdfcairoSpecListItem *SetTerminalPdfcairoSpecListItem }
SetTerminalPdfcairoSpecList represents data reduced by productions:
SetTerminalPdfcairoSpecList: SetTerminalPdfcairoSpecListItem | SetTerminalPdfcairoSpecList SetTerminalPdfcairoSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1874, "set term pdfcairo butt"))
Output: &plot.SetTerminalPdfcairoSpecList{ · SetTerminalPdfcairoSpecListItem: &plot.SetTerminalPdfcairoSpecListItem{ · · Case: 8, · · Token: example1874.go:1:19: IDENTIFIER "butt", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1875, "set term pdfcairo butt butt"))
Output: &plot.SetTerminalPdfcairoSpecList{ · SetTerminalPdfcairoSpecList: &plot.SetTerminalPdfcairoSpecList{ · · Case: 1, · · SetTerminalPdfcairoSpecListItem: &plot.SetTerminalPdfcairoSpecListItem{ · · · Case: 8, · · · Token: example1875.go:1:24: IDENTIFIER "butt", · · }, · }, · SetTerminalPdfcairoSpecListItem: &plot.SetTerminalPdfcairoSpecListItem{ · · Case: 8, · · Token: example1875.go:1:19: IDENTIFIER "butt", · }, }
func (*SetTerminalPdfcairoSpecList) Pos ¶
func (n *SetTerminalPdfcairoSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPdfcairoSpecList) String ¶
func (n *SetTerminalPdfcairoSpecList) String() string
String implements fmt.Stringer.
type SetTerminalPdfcairoSpecListItem ¶
type SetTerminalPdfcairoSpecListItem struct { Case int Expression *Expression ExpressionUnitList *ExpressionUnitList Token xc.Token }
SetTerminalPdfcairoSpecListItem represents data reduced by productions:
SetTerminalPdfcairoSpecListItem: "enhanced" | "noenhanced" // Case 1 | "mono" // Case 2 | "color" // Case 3 | "font" Expression // Case 4 | "fontscale" Expression // Case 5 | "linewidth" Expression // Case 6 | "rounded" // Case 7 | "butt" // Case 8 | "square" // Case 9 | "dashlength" Expression // Case 10 | "background" Expression // Case 11 | "size" ExpressionUnitList // Case 12
Example ¶
fmt.Println(exampleAST(1876, "set term pdfcairo enhanced"))
Output: &plot.SetTerminalPdfcairoSpecListItem{ · Token: example1876.go:1:19: IDENTIFIER "enhanced", }
Example (Case01) ¶
fmt.Println(exampleAST(1877, "set term pdfcairo noenhanced"))
Output: &plot.SetTerminalPdfcairoSpecListItem{ · Case: 1, · Token: example1877.go:1:19: IDENTIFIER "noenhanced", }
Example (Case02) ¶
fmt.Println(exampleAST(1878, "set term pdfcairo mono"))
Output: &plot.SetTerminalPdfcairoSpecListItem{ · Case: 2, · Token: example1878.go:1:19: IDENTIFIER "mono", }
Example (Case03) ¶
fmt.Println(exampleAST(1879, "set term pdfcairo color"))
Output: &plot.SetTerminalPdfcairoSpecListItem{ · Case: 3, · Token: example1879.go:1:19: IDENTIFIER "color", }
Example (Case04) ¶
fmt.Println(exampleAST(1880, "set term pdfcairo font ident_a"))
Output: &plot.SetTerminalPdfcairoSpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1880.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1880.go:1:19: IDENTIFIER "font", }
Example (Case05) ¶
fmt.Println(exampleAST(1881, "set term pdfcairo fontscale ident_a"))
Output: &plot.SetTerminalPdfcairoSpecListItem{ · Case: 5, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1881.go:1:29: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1881.go:1:19: IDENTIFIER "fontscale", }
Example (Case06) ¶
fmt.Println(exampleAST(1882, "set term pdfcairo linewidth ident_a"))
Output: &plot.SetTerminalPdfcairoSpecListItem{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1882.go:1:29: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1882.go:1:19: IDENTIFIER "linewidth", }
Example (Case07) ¶
fmt.Println(exampleAST(1883, "set term pdfcairo rounded"))
Output: &plot.SetTerminalPdfcairoSpecListItem{ · Case: 7, · Token: example1883.go:1:19: IDENTIFIER "rounded", }
Example (Case08) ¶
fmt.Println(exampleAST(1884, "set term pdfcairo butt"))
Output: &plot.SetTerminalPdfcairoSpecListItem{ · Case: 8, · Token: example1884.go:1:19: IDENTIFIER "butt", }
Example (Case09) ¶
fmt.Println(exampleAST(1885, "set term pdfcairo square"))
Output: &plot.SetTerminalPdfcairoSpecListItem{ · Case: 9, · Token: example1885.go:1:19: IDENTIFIER "square", }
Example (Case10) ¶
fmt.Println(exampleAST(1886, "set term pdfcairo dashlength ident_a"))
Output: &plot.SetTerminalPdfcairoSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1886.go:1:30: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1886.go:1:19: IDENTIFIER "dashlength", }
Example (Case11) ¶
fmt.Println(exampleAST(1887, "set term pdfcairo background ident_a"))
Output: &plot.SetTerminalPdfcairoSpecListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1887.go:1:30: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1887.go:1:19: IDENTIFIER "background", }
Example (Case12) ¶
fmt.Println(exampleAST(1888, "set term pdfcairo size ident_a"))
Output: &plot.SetTerminalPdfcairoSpecListItem{ · Case: 12, · ExpressionUnitList: &plot.ExpressionUnitList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1888.go:1:24: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1888.go:1:19: IDENTIFIER "size", }
func (*SetTerminalPdfcairoSpecListItem) Pos ¶
func (n *SetTerminalPdfcairoSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPdfcairoSpecListItem) String ¶
func (n *SetTerminalPdfcairoSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalPdfcairoSpecListOpt ¶
type SetTerminalPdfcairoSpecListOpt struct {
SetTerminalPdfcairoSpecList *SetTerminalPdfcairoSpecList
}
SetTerminalPdfcairoSpecListOpt represents data reduced by productions:
SetTerminalPdfcairoSpecListOpt: /* empty */ | SetTerminalPdfcairoSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1889, "set term pdfcairo") == (*SetTerminalPdfcairoSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1890, "set term pdfcairo butt"))
Output: &plot.SetTerminalPdfcairoSpecListOpt{ · SetTerminalPdfcairoSpecList: &plot.SetTerminalPdfcairoSpecList{ · · SetTerminalPdfcairoSpecListItem: &plot.SetTerminalPdfcairoSpecListItem{ · · · Case: 8, · · · Token: example1890.go:1:19: IDENTIFIER "butt", · · }, · }, }
func (*SetTerminalPdfcairoSpecListOpt) Pos ¶
func (n *SetTerminalPdfcairoSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPdfcairoSpecListOpt) String ¶
func (n *SetTerminalPdfcairoSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalPmSpecList ¶
type SetTerminalPmSpecList struct { Case int SetTerminalPmSpecList *SetTerminalPmSpecList SetTerminalPmSpecListItem *SetTerminalPmSpecListItem }
SetTerminalPmSpecList represents data reduced by productions:
SetTerminalPmSpecList: SetTerminalPmSpecListItem | SetTerminalPmSpecList SetTerminalPmSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1891, "set term pm ident_a"))
Output: &plot.SetTerminalPmSpecList{ · SetTerminalPmSpecListItem: &plot.SetTerminalPmSpecListItem{ · · Case: 4, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1891.go:1:13: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1892, "set term pm ident_a ident_b"))
Output: &plot.SetTerminalPmSpecList{ · SetTerminalPmSpecList: &plot.SetTerminalPmSpecList{ · · Case: 1, · · SetTerminalPmSpecListItem: &plot.SetTerminalPmSpecListItem{ · · · Case: 4, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1892.go:1:21: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalPmSpecListItem: &plot.SetTerminalPmSpecListItem{ · · Case: 4, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1892.go:1:13: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalPmSpecList) Pos ¶
func (n *SetTerminalPmSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPmSpecList) String ¶
func (n *SetTerminalPmSpecList) String() string
String implements fmt.Stringer.
type SetTerminalPmSpecListItem ¶
type SetTerminalPmSpecListItem struct { Case int ExpressionOpt *ExpressionOpt SimpleExpression *SimpleExpression Token xc.Token }
SetTerminalPmSpecListItem represents data reduced by productions:
SetTerminalPmSpecListItem: "server" ExpressionOpt | "persist" // Case 1 | "widelines" // Case 2 | "enhanced" // Case 3 | SimpleExpression // Case 4
Example ¶
fmt.Println(exampleAST(1893, "set term pm server"))
Output: &plot.SetTerminalPmSpecListItem{ · Token: example1893.go:1:13: IDENTIFIER "server", }
Example (Case1) ¶
fmt.Println(exampleAST(1894, "set term pm persist"))
Output: &plot.SetTerminalPmSpecListItem{ · Case: 1, · Token: example1894.go:1:13: IDENTIFIER "persist", }
Example (Case2) ¶
fmt.Println(exampleAST(1895, "set term pm widelines"))
Output: &plot.SetTerminalPmSpecListItem{ · Case: 2, · Token: example1895.go:1:13: IDENTIFIER "widelines", }
Example (Case3) ¶
fmt.Println(exampleAST(1896, "set term pm enhanced"))
Output: &plot.SetTerminalPmSpecListItem{ · Case: 3, · Token: example1896.go:1:13: IDENTIFIER "enhanced", }
Example (Case4) ¶
fmt.Println(exampleAST(1897, "set term pm ident_a"))
Output: &plot.SetTerminalPmSpecListItem{ · Case: 4, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1897.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*SetTerminalPmSpecListItem) Pos ¶
func (n *SetTerminalPmSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPmSpecListItem) String ¶
func (n *SetTerminalPmSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalPmSpecListOpt ¶
type SetTerminalPmSpecListOpt struct {
SetTerminalPmSpecList *SetTerminalPmSpecList
}
SetTerminalPmSpecListOpt represents data reduced by productions:
SetTerminalPmSpecListOpt: /* empty */ | SetTerminalPmSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1898, "set term pm") == (*SetTerminalPmSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1899, "set term pm ident_a"))
Output: &plot.SetTerminalPmSpecListOpt{ · SetTerminalPmSpecList: &plot.SetTerminalPmSpecList{ · · SetTerminalPmSpecListItem: &plot.SetTerminalPmSpecListItem{ · · · Case: 4, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1899.go:1:13: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalPmSpecListOpt) Pos ¶
func (n *SetTerminalPmSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPmSpecListOpt) String ¶
func (n *SetTerminalPmSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalPngSpecList ¶
type SetTerminalPngSpecList struct { Case int SetTerminalPngSpecList *SetTerminalPngSpecList SetTerminalPngSpecListItem *SetTerminalPngSpecListItem }
SetTerminalPngSpecList represents data reduced by productions:
SetTerminalPngSpecList: SetTerminalPngSpecListItem | SetTerminalPngSpecList SetTerminalPngSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1900, "set term png butt"))
Output: &plot.SetTerminalPngSpecList{ · SetTerminalPngSpecListItem: &plot.SetTerminalPngSpecListItem{ · · Case: 9, · · Token: example1900.go:1:14: IDENTIFIER "butt", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1901, "set term png butt butt"))
Output: &plot.SetTerminalPngSpecList{ · SetTerminalPngSpecList: &plot.SetTerminalPngSpecList{ · · Case: 1, · · SetTerminalPngSpecListItem: &plot.SetTerminalPngSpecListItem{ · · · Case: 9, · · · Token: example1901.go:1:19: IDENTIFIER "butt", · · }, · }, · SetTerminalPngSpecListItem: &plot.SetTerminalPngSpecListItem{ · · Case: 9, · · Token: example1901.go:1:14: IDENTIFIER "butt", · }, }
func (*SetTerminalPngSpecList) Pos ¶
func (n *SetTerminalPngSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPngSpecList) String ¶
func (n *SetTerminalPngSpecList) String() string
String implements fmt.Stringer.
type SetTerminalPngSpecListItem ¶
type SetTerminalPngSpecListItem struct { Case int Expression *Expression ExpressionList *ExpressionList Token xc.Token }
SetTerminalPngSpecListItem represents data reduced by productions:
SetTerminalPngSpecListItem: "enhanced" | "noenhanced" // Case 1 | "transparent" // Case 2 | "notransparent" // Case 3 | "interlace" // Case 4 | "nointerlace" // Case 5 | "truecolor" // Case 6 | "notruecolor" // Case 7 | "rounded" // Case 8 | "butt" // Case 9 | "linewidth" Expression // Case 10 | "dashlength" Expression // Case 11 | "tiny" // Case 12 | "small" // Case 13 | "medium" // Case 14 | "large" // Case 15 | "giant" // Case 16 | "font" Expression // Case 17 | "fontscale" Expression // Case 18 | "size" ExpressionList // Case 19 | "crop" // Case 20 | "nocrop" // Case 21 | "background" Expression // Case 22
Example ¶
fmt.Println(exampleAST(1902, "set term png enhanced"))
Output: &plot.SetTerminalPngSpecListItem{ · Token: example1902.go:1:14: IDENTIFIER "enhanced", }
Example (Case01) ¶
fmt.Println(exampleAST(1903, "set term png noenhanced"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 1, · Token: example1903.go:1:14: IDENTIFIER "noenhanced", }
Example (Case02) ¶
fmt.Println(exampleAST(1904, "set term png transparent"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 2, · Token: example1904.go:1:14: IDENTIFIER "transparent", }
Example (Case03) ¶
fmt.Println(exampleAST(1905, "set term png notransparent"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 3, · Token: example1905.go:1:14: IDENTIFIER "notransparent", }
Example (Case04) ¶
fmt.Println(exampleAST(1906, "set term png interlace"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 4, · Token: example1906.go:1:14: IDENTIFIER "interlace", }
Example (Case05) ¶
fmt.Println(exampleAST(1907, "set term png nointerlace"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 5, · Token: example1907.go:1:14: IDENTIFIER "nointerlace", }
Example (Case06) ¶
fmt.Println(exampleAST(1908, "set term png truecolor"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 6, · Token: example1908.go:1:14: IDENTIFIER "truecolor", }
Example (Case07) ¶
fmt.Println(exampleAST(1909, "set term png notruecolor"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 7, · Token: example1909.go:1:14: IDENTIFIER "notruecolor", }
Example (Case08) ¶
fmt.Println(exampleAST(1910, "set term png rounded"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 8, · Token: example1910.go:1:14: IDENTIFIER "rounded", }
Example (Case09) ¶
fmt.Println(exampleAST(1911, "set term png butt"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 9, · Token: example1911.go:1:14: IDENTIFIER "butt", }
Example (Case10) ¶
fmt.Println(exampleAST(1912, "set term png linewidth ident_a"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1912.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1912.go:1:14: IDENTIFIER "linewidth", }
Example (Case11) ¶
fmt.Println(exampleAST(1913, "set term png dashlength ident_a"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1913.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1913.go:1:14: IDENTIFIER "dashlength", }
Example (Case12) ¶
fmt.Println(exampleAST(1914, "set term png tiny"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 12, · Token: example1914.go:1:14: IDENTIFIER "tiny", }
Example (Case13) ¶
fmt.Println(exampleAST(1915, "set term png small"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 13, · Token: example1915.go:1:14: IDENTIFIER "small", }
Example (Case14) ¶
fmt.Println(exampleAST(1916, "set term png medium"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 14, · Token: example1916.go:1:14: IDENTIFIER "medium", }
Example (Case15) ¶
fmt.Println(exampleAST(1917, "set term png large"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 15, · Token: example1917.go:1:14: IDENTIFIER "large", }
Example (Case16) ¶
fmt.Println(exampleAST(1918, "set term png giant"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 16, · Token: example1918.go:1:14: IDENTIFIER "giant", }
Example (Case17) ¶
fmt.Println(exampleAST(1919, "set term png font ident_a"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 17, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1919.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1919.go:1:14: IDENTIFIER "font", }
Example (Case18) ¶
fmt.Println(exampleAST(1920, "set term png fontscale ident_a"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 18, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1920.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1920.go:1:14: IDENTIFIER "fontscale", }
Example (Case19) ¶
fmt.Println(exampleAST(1921, "set term png size ident_a"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 19, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1921.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1921.go:1:14: IDENTIFIER "size", }
Example (Case20) ¶
fmt.Println(exampleAST(1922, "set term png crop"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 20, · Token: example1922.go:1:14: IDENTIFIER "crop", }
Example (Case21) ¶
fmt.Println(exampleAST(1923, "set term png nocrop"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 21, · Token: example1923.go:1:14: IDENTIFIER "nocrop", }
Example (Case22) ¶
fmt.Println(exampleAST(1924, "set term png background ident_a"))
Output: &plot.SetTerminalPngSpecListItem{ · Case: 22, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1924.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1924.go:1:14: IDENTIFIER "background", }
func (*SetTerminalPngSpecListItem) Pos ¶
func (n *SetTerminalPngSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPngSpecListItem) String ¶
func (n *SetTerminalPngSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalPngSpecListOpt ¶
type SetTerminalPngSpecListOpt struct {
SetTerminalPngSpecList *SetTerminalPngSpecList
}
SetTerminalPngSpecListOpt represents data reduced by productions:
SetTerminalPngSpecListOpt: /* empty */ | SetTerminalPngSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1925, "set term png") == (*SetTerminalPngSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1926, "set term png butt"))
Output: &plot.SetTerminalPngSpecListOpt{ · SetTerminalPngSpecList: &plot.SetTerminalPngSpecList{ · · SetTerminalPngSpecListItem: &plot.SetTerminalPngSpecListItem{ · · · Case: 9, · · · Token: example1926.go:1:14: IDENTIFIER "butt", · · }, · }, }
func (*SetTerminalPngSpecListOpt) Pos ¶
func (n *SetTerminalPngSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPngSpecListOpt) String ¶
func (n *SetTerminalPngSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalPngcairoSpecList ¶
type SetTerminalPngcairoSpecList struct { Case int SetTerminalPngcairoSpecList *SetTerminalPngcairoSpecList SetTerminalPngcairoSpecListItem *SetTerminalPngcairoSpecListItem }
SetTerminalPngcairoSpecList represents data reduced by productions:
SetTerminalPngcairoSpecList: SetTerminalPngcairoSpecListItem | SetTerminalPngcairoSpecList SetTerminalPngcairoSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1927, "set term pngcairo butt"))
Output: &plot.SetTerminalPngcairoSpecList{ · SetTerminalPngcairoSpecListItem: &plot.SetTerminalPngcairoSpecListItem{ · · Case: 13, · · Token: example1927.go:1:19: IDENTIFIER "butt", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1928, "set term pngcairo butt butt"))
Output: &plot.SetTerminalPngcairoSpecList{ · SetTerminalPngcairoSpecList: &plot.SetTerminalPngcairoSpecList{ · · Case: 1, · · SetTerminalPngcairoSpecListItem: &plot.SetTerminalPngcairoSpecListItem{ · · · Case: 13, · · · Token: example1928.go:1:24: IDENTIFIER "butt", · · }, · }, · SetTerminalPngcairoSpecListItem: &plot.SetTerminalPngcairoSpecListItem{ · · Case: 13, · · Token: example1928.go:1:19: IDENTIFIER "butt", · }, }
func (*SetTerminalPngcairoSpecList) Pos ¶
func (n *SetTerminalPngcairoSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPngcairoSpecList) String ¶
func (n *SetTerminalPngcairoSpecList) String() string
String implements fmt.Stringer.
type SetTerminalPngcairoSpecListItem ¶
type SetTerminalPngcairoSpecListItem struct { Case int Expression *Expression ExpressionUnitList *ExpressionUnitList Token xc.Token }
SetTerminalPngcairoSpecListItem represents data reduced by productions:
SetTerminalPngcairoSpecListItem: "enhanced" | "noenhanced" // Case 1 | "mono" // Case 2 | "color" // Case 3 | "transparent" // Case 4 | "notransparent" // Case 5 | "crop" // Case 6 | "nocrop" // Case 7 | "background" Expression // Case 8 | "font" Expression // Case 9 | "fontscale" Expression // Case 10 | "linewidth" Expression // Case 11 | "rounded" // Case 12 | "butt" // Case 13 | "square" // Case 14 | "dashlength" Expression // Case 15 | "size" ExpressionUnitList // Case 16
Example ¶
fmt.Println(exampleAST(1929, "set term pngcairo enhanced"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Token: example1929.go:1:19: IDENTIFIER "enhanced", }
Example (Case01) ¶
fmt.Println(exampleAST(1930, "set term pngcairo noenhanced"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 1, · Token: example1930.go:1:19: IDENTIFIER "noenhanced", }
Example (Case02) ¶
fmt.Println(exampleAST(1931, "set term pngcairo mono"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 2, · Token: example1931.go:1:19: IDENTIFIER "mono", }
Example (Case03) ¶
fmt.Println(exampleAST(1932, "set term pngcairo color"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 3, · Token: example1932.go:1:19: IDENTIFIER "color", }
Example (Case04) ¶
fmt.Println(exampleAST(1933, "set term pngcairo transparent"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 4, · Token: example1933.go:1:19: IDENTIFIER "transparent", }
Example (Case05) ¶
fmt.Println(exampleAST(1934, "set term pngcairo notransparent"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 5, · Token: example1934.go:1:19: IDENTIFIER "notransparent", }
Example (Case06) ¶
fmt.Println(exampleAST(1935, "set term pngcairo crop"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 6, · Token: example1935.go:1:19: IDENTIFIER "crop", }
Example (Case07) ¶
fmt.Println(exampleAST(1936, "set term pngcairo nocrop"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 7, · Token: example1936.go:1:19: IDENTIFIER "nocrop", }
Example (Case08) ¶
fmt.Println(exampleAST(1937, "set term pngcairo background ident_a"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 8, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1937.go:1:30: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1937.go:1:19: IDENTIFIER "background", }
Example (Case09) ¶
fmt.Println(exampleAST(1938, "set term pngcairo font ident_a"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 9, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1938.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1938.go:1:19: IDENTIFIER "font", }
Example (Case10) ¶
fmt.Println(exampleAST(1939, "set term pngcairo fontscale ident_a"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1939.go:1:29: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1939.go:1:19: IDENTIFIER "fontscale", }
Example (Case11) ¶
fmt.Println(exampleAST(1940, "set term pngcairo linewidth ident_a"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1940.go:1:29: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1940.go:1:19: IDENTIFIER "linewidth", }
Example (Case12) ¶
fmt.Println(exampleAST(1941, "set term pngcairo rounded"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 12, · Token: example1941.go:1:19: IDENTIFIER "rounded", }
Example (Case13) ¶
fmt.Println(exampleAST(1942, "set term pngcairo butt"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 13, · Token: example1942.go:1:19: IDENTIFIER "butt", }
Example (Case14) ¶
fmt.Println(exampleAST(1943, "set term pngcairo square"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 14, · Token: example1943.go:1:19: IDENTIFIER "square", }
Example (Case15) ¶
fmt.Println(exampleAST(1944, "set term pngcairo dashlength ident_a"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1944.go:1:30: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1944.go:1:19: IDENTIFIER "dashlength", }
Example (Case16) ¶
fmt.Println(exampleAST(1945, "set term pngcairo size ident_a"))
Output: &plot.SetTerminalPngcairoSpecListItem{ · Case: 16, · ExpressionUnitList: &plot.ExpressionUnitList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1945.go:1:24: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1945.go:1:19: IDENTIFIER "size", }
func (*SetTerminalPngcairoSpecListItem) Pos ¶
func (n *SetTerminalPngcairoSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPngcairoSpecListItem) String ¶
func (n *SetTerminalPngcairoSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalPngcairoSpecListOpt ¶
type SetTerminalPngcairoSpecListOpt struct {
SetTerminalPngcairoSpecList *SetTerminalPngcairoSpecList
}
SetTerminalPngcairoSpecListOpt represents data reduced by productions:
SetTerminalPngcairoSpecListOpt: /* empty */ | SetTerminalPngcairoSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1946, "set term pngcairo") == (*SetTerminalPngcairoSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1947, "set term pngcairo butt"))
Output: &plot.SetTerminalPngcairoSpecListOpt{ · SetTerminalPngcairoSpecList: &plot.SetTerminalPngcairoSpecList{ · · SetTerminalPngcairoSpecListItem: &plot.SetTerminalPngcairoSpecListItem{ · · · Case: 13, · · · Token: example1947.go:1:19: IDENTIFIER "butt", · · }, · }, }
func (*SetTerminalPngcairoSpecListOpt) Pos ¶
func (n *SetTerminalPngcairoSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPngcairoSpecListOpt) String ¶
func (n *SetTerminalPngcairoSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalPostscriptSpecList ¶
type SetTerminalPostscriptSpecList struct { Case int SetTerminalPostscriptSpecList *SetTerminalPostscriptSpecList SetTerminalPostscriptSpecListItem *SetTerminalPostscriptSpecListItem }
SetTerminalPostscriptSpecList represents data reduced by productions:
SetTerminalPostscriptSpecList: SetTerminalPostscriptSpecListItem | SetTerminalPostscriptSpecList SetTerminalPostscriptSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(2147, "set term postscript ident_a"))
Output: &plot.SetTerminalPostscriptSpecList{ · SetTerminalPostscriptSpecListItem: &plot.SetTerminalPostscriptSpecListItem{ · · Case: 39, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2147.go:1:21: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2148, "set term postscript ident_a ident_b"))
Output: &plot.SetTerminalPostscriptSpecList{ · SetTerminalPostscriptSpecList: &plot.SetTerminalPostscriptSpecList{ · · Case: 1, · · SetTerminalPostscriptSpecListItem: &plot.SetTerminalPostscriptSpecListItem{ · · · Case: 39, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2148.go:1:29: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalPostscriptSpecListItem: &plot.SetTerminalPostscriptSpecListItem{ · · Case: 39, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2148.go:1:21: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalPostscriptSpecList) Pos ¶
func (n *SetTerminalPostscriptSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPostscriptSpecList) String ¶
func (n *SetTerminalPostscriptSpecList) String() string
String implements fmt.Stringer.
type SetTerminalPostscriptSpecListItem ¶
type SetTerminalPostscriptSpecListItem struct { Case int Expression *Expression Expression2 *Expression ExpressionUnitList *ExpressionUnitList SimpleExpression *SimpleExpression Token xc.Token Token2 xc.Token }
SetTerminalPostscriptSpecListItem represents data reduced by productions:
SetTerminalPostscriptSpecListItem: "default" | "landscape" // Case 1 | "portrait" // Case 2 | "eps" // Case 3 | "enhanced" // Case 4 | "noenhanced" // Case 5 | "defaultplex" // Case 6 | "simplex" // Case 7 | "duplex" // Case 8 | "fontfile" Expression // Case 9 | "fontfile" "add" Expression // Case 10 | "fontfile" "delete" Expression // Case 11 | "nofontfiles" // Case 12 | "adobeglyphnames" // Case 13 | "noadobeglyphnames" // Case 14 | "level1" // Case 15 | "leveldefault" // Case 16 | "level3" // Case 17 | "color" // Case 18 | "colour" // Case 19 | "monochrome" // Case 20 | "background" Expression // Case 21 | "nobackground" // Case 22 | "dashlength" Expression // Case 23 | "dl" Expression // Case 24 | "linewidth" Expression // Case 25 | "lw" Expression // Case 26 | "rounded" // Case 27 | "butt" // Case 28 | "clip" // Case 29 | "noclip" // Case 30 | "palfuncparam" Expression // Case 31 | "palfuncparam" Expression ',' Expression // Case 32 | "size" ExpressionUnitList // Case 33 | "blacktext" // Case 34 | "colortext" // Case 35 | "colourtext" // Case 36 | "font" Expression // Case 37 | "font" Expression SimpleExpression // Case 38 | SimpleExpression // Case 39 | "fontscale" Expression // Case 40
Example ¶
fmt.Println(exampleAST(2149, "set term postscript default"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Token: example2149.go:1:21: IDENTIFIER "default", }
Example (Case01) ¶
fmt.Println(exampleAST(2150, "set term postscript landscape"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 1, · Token: example2150.go:1:21: IDENTIFIER "landscape", }
Example (Case02) ¶
fmt.Println(exampleAST(2151, "set term postscript portrait"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 2, · Token: example2151.go:1:21: IDENTIFIER "portrait", }
Example (Case03) ¶
fmt.Println(exampleAST(2152, "set term postscript eps"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 3, · Token: example2152.go:1:21: IDENTIFIER "eps", }
Example (Case04) ¶
fmt.Println(exampleAST(2153, "set term postscript enhanced"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 4, · Token: example2153.go:1:21: IDENTIFIER "enhanced", }
Example (Case05) ¶
fmt.Println(exampleAST(2154, "set term postscript noenhanced"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 5, · Token: example2154.go:1:21: IDENTIFIER "noenhanced", }
Example (Case06) ¶
fmt.Println(exampleAST(2155, "set term postscript defaultplex"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 6, · Token: example2155.go:1:21: IDENTIFIER "defaultplex", }
Example (Case07) ¶
fmt.Println(exampleAST(2156, "set term postscript simplex"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 7, · Token: example2156.go:1:21: IDENTIFIER "simplex", }
Example (Case08) ¶
fmt.Println(exampleAST(2157, "set term postscript duplex"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 8, · Token: example2157.go:1:21: IDENTIFIER "duplex", }
Example (Case09) ¶
fmt.Println(exampleAST(2158, "set term postscript fontfile ident_a"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 9, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2158.go:1:30: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2158.go:1:21: IDENTIFIER "fontfile", }
Example (Case10) ¶
fmt.Println(exampleAST(2159, "set term postscript fontfile add ident_a"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2159.go:1:34: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2159.go:1:21: IDENTIFIER "fontfile", · Token2: example2159.go:1:30: IDENTIFIER "add", }
Example (Case11) ¶
fmt.Println(exampleAST(2160, "set term postscript fontfile delete ident_a"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2160.go:1:37: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2160.go:1:21: IDENTIFIER "fontfile", · Token2: example2160.go:1:30: IDENTIFIER "delete", }
Example (Case12) ¶
fmt.Println(exampleAST(2161, "set term postscript nofontfiles"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 12, · Token: example2161.go:1:21: IDENTIFIER "nofontfiles", }
Example (Case13) ¶
fmt.Println(exampleAST(2162, "set term postscript adobeglyphnames"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 13, · Token: example2162.go:1:21: IDENTIFIER "adobeglyphnames", }
Example (Case14) ¶
fmt.Println(exampleAST(2163, "set term postscript noadobeglyphnames"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 14, · Token: example2163.go:1:21: IDENTIFIER "noadobeglyphnames", }
Example (Case15) ¶
fmt.Println(exampleAST(2164, "set term postscript level1"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 15, · Token: example2164.go:1:21: IDENTIFIER "level1", }
Example (Case16) ¶
fmt.Println(exampleAST(2165, "set term postscript leveldefault"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 16, · Token: example2165.go:1:21: IDENTIFIER "leveldefault", }
Example (Case17) ¶
fmt.Println(exampleAST(2166, "set term postscript level3"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 17, · Token: example2166.go:1:21: IDENTIFIER "level3", }
Example (Case18) ¶
fmt.Println(exampleAST(2167, "set term postscript color"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 18, · Token: example2167.go:1:21: IDENTIFIER "color", }
Example (Case19) ¶
fmt.Println(exampleAST(2168, "set term postscript colour"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 19, · Token: example2168.go:1:21: IDENTIFIER "colour", }
Example (Case20) ¶
fmt.Println(exampleAST(2169, "set term postscript monochrome"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 20, · Token: example2169.go:1:21: IDENTIFIER "monochrome", }
Example (Case21) ¶
fmt.Println(exampleAST(2170, "set term postscript background ident_a"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 21, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2170.go:1:32: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2170.go:1:21: IDENTIFIER "background", }
Example (Case22) ¶
fmt.Println(exampleAST(2171, "set term postscript nobackground"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 22, · Token: example2171.go:1:21: IDENTIFIER "nobackground", }
Example (Case23) ¶
fmt.Println(exampleAST(2172, "set term postscript dashlength ident_a"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 23, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2172.go:1:32: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2172.go:1:21: IDENTIFIER "dashlength", }
Example (Case24) ¶
fmt.Println(exampleAST(2173, "set term postscript dl ident_a"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 24, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2173.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2173.go:1:21: IDENTIFIER "dl", }
Example (Case25) ¶
fmt.Println(exampleAST(2174, "set term postscript linewidth ident_a"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 25, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2174.go:1:31: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2174.go:1:21: IDENTIFIER "linewidth", }
Example (Case26) ¶
fmt.Println(exampleAST(2175, "set term postscript lw ident_a"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 26, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2175.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2175.go:1:21: IDENTIFIER "lw", }
Example (Case27) ¶
fmt.Println(exampleAST(2176, "set term postscript rounded"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 27, · Token: example2176.go:1:21: IDENTIFIER "rounded", }
Example (Case28) ¶
fmt.Println(exampleAST(2177, "set term postscript butt"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 28, · Token: example2177.go:1:21: IDENTIFIER "butt", }
Example (Case29) ¶
fmt.Println(exampleAST(2178, "set term postscript clip"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 29, · Token: example2178.go:1:21: IDENTIFIER "clip", }
Example (Case30) ¶
fmt.Println(exampleAST(2179, "set term postscript noclip"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 30, · Token: example2179.go:1:21: IDENTIFIER "noclip", }
Example (Case31) ¶
fmt.Println(exampleAST(2180, "set term postscript palfuncparam ident_a"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 31, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2180.go:1:34: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2180.go:1:21: IDENTIFIER "palfuncparam", }
Example (Case32) ¶
fmt.Println(exampleAST(2181, "set term postscript palfuncparam ident_a , ident_b"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 32, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2181.go:1:34: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2181.go:1:44: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2181.go:1:21: IDENTIFIER "palfuncparam", · Token2: example2181.go:1:42: ',' ",", }
Example (Case33) ¶
fmt.Println(exampleAST(2182, "set term postscript size ident_a"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 33, · ExpressionUnitList: &plot.ExpressionUnitList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2182.go:1:26: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2182.go:1:21: IDENTIFIER "size", }
Example (Case34) ¶
fmt.Println(exampleAST(2183, "set term postscript blacktext"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 34, · Token: example2183.go:1:21: IDENTIFIER "blacktext", }
Example (Case35) ¶
fmt.Println(exampleAST(2184, "set term postscript colortext"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 35, · Token: example2184.go:1:21: IDENTIFIER "colortext", }
Example (Case36) ¶
fmt.Println(exampleAST(2185, "set term postscript colourtext"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 36, · Token: example2185.go:1:21: IDENTIFIER "colourtext", }
Example (Case37) ¶
fmt.Println(exampleAST(2186, "set term postscript font ident_a"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 37, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2186.go:1:26: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2186.go:1:21: IDENTIFIER "font", }
Example (Case38) ¶
fmt.Println(exampleAST(2187, "set term postscript font ident_a ident_b"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 38, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2187.go:1:26: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2187.go:1:34: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2187.go:1:21: IDENTIFIER "font", }
Example (Case39) ¶
fmt.Println(exampleAST(2188, "set term postscript ident_a"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 39, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2188.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case40) ¶
fmt.Println(exampleAST(2189, "set term postscript fontscale ident_a"))
Output: &plot.SetTerminalPostscriptSpecListItem{ · Case: 40, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2189.go:1:31: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2189.go:1:21: IDENTIFIER "fontscale", }
func (*SetTerminalPostscriptSpecListItem) Pos ¶
func (n *SetTerminalPostscriptSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPostscriptSpecListItem) String ¶
func (n *SetTerminalPostscriptSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalPostscriptSpecListOpt ¶
type SetTerminalPostscriptSpecListOpt struct {
SetTerminalPostscriptSpecList *SetTerminalPostscriptSpecList
}
SetTerminalPostscriptSpecListOpt represents data reduced by productions:
SetTerminalPostscriptSpecListOpt: /* empty */ | SetTerminalPostscriptSpecList // Case 1
Example ¶
fmt.Println(exampleAST(2190, "set term postscript") == (*SetTerminalPostscriptSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2191, "set term postscript ident_a"))
Output: &plot.SetTerminalPostscriptSpecListOpt{ · SetTerminalPostscriptSpecList: &plot.SetTerminalPostscriptSpecList{ · · SetTerminalPostscriptSpecListItem: &plot.SetTerminalPostscriptSpecListItem{ · · · Case: 39, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2191.go:1:21: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalPostscriptSpecListOpt) Pos ¶
func (n *SetTerminalPostscriptSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPostscriptSpecListOpt) String ¶
func (n *SetTerminalPostscriptSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalPstexSpecList ¶
type SetTerminalPstexSpecList struct { Case int SetTerminalPstexSpecList *SetTerminalPstexSpecList SetTerminalPstexSpecListItem *SetTerminalPstexSpecListItem }
SetTerminalPstexSpecList represents data reduced by productions:
SetTerminalPstexSpecList: SetTerminalPstexSpecListItem | SetTerminalPstexSpecList SetTerminalPstexSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1948, "set term pstex ident_a"))
Output: &plot.SetTerminalPstexSpecList{ · SetTerminalPstexSpecListItem: &plot.SetTerminalPstexSpecListItem{ · · Case: 25, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1948.go:1:16: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1949, "set term pslatex ident_a ident_b"))
Output: &plot.SetTerminalPstexSpecList{ · SetTerminalPstexSpecList: &plot.SetTerminalPstexSpecList{ · · Case: 1, · · SetTerminalPstexSpecListItem: &plot.SetTerminalPstexSpecListItem{ · · · Case: 25, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1949.go:1:26: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalPstexSpecListItem: &plot.SetTerminalPstexSpecListItem{ · · Case: 25, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1949.go:1:18: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalPstexSpecList) Pos ¶
func (n *SetTerminalPstexSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPstexSpecList) String ¶
func (n *SetTerminalPstexSpecList) String() string
String implements fmt.Stringer.
type SetTerminalPstexSpecListItem ¶
type SetTerminalPstexSpecListItem struct { Case int Expression *Expression ExpressionList *ExpressionList ExpressionUnitList *ExpressionUnitList SimpleExpression *SimpleExpression Token xc.Token }
SetTerminalPstexSpecListItem represents data reduced by productions:
SetTerminalPstexSpecListItem: "default" | "rotate" // Case 1 | "norotate" // Case 2 | "oldstyle" // Case 3 | "newstyle" // Case 4 | "auxfile" // Case 5 | "noauxfile" // Case 6 | "level1" // Case 7 | "leveldefault" // Case 8 | "level3" // Case 9 | "color" // Case 10 | "colour" // Case 11 | "monochrome" // Case 12 | "background" Expression // Case 13 | "nobackground" // Case 14 | "dashlength" Expression // Case 15 | "dl" Expression // Case 16 | "linewidth" Expression // Case 17 | "lw" Expression // Case 18 | "rounded" // Case 19 | "butt" // Case 20 | "clip" // Case 21 | "noclip" // Case 22 | "palfuncparam" ExpressionList // Case 23 | "size" ExpressionUnitList // Case 24 | SimpleExpression // Case 25
Example ¶
fmt.Println(exampleAST(1950, "set term pslatex default"))
Output: &plot.SetTerminalPstexSpecListItem{ · Token: example1950.go:1:18: IDENTIFIER "default", }
Example (Case01) ¶
fmt.Println(exampleAST(1951, "set term pslatex rotate"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 1, · Token: example1951.go:1:18: IDENTIFIER "rotate", }
Example (Case02) ¶
fmt.Println(exampleAST(1952, "set term pslatex norotate"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 2, · Token: example1952.go:1:18: IDENTIFIER "norotate", }
Example (Case03) ¶
fmt.Println(exampleAST(1953, "set term pslatex oldstyle"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 3, · Token: example1953.go:1:18: IDENTIFIER "oldstyle", }
Example (Case04) ¶
fmt.Println(exampleAST(1954, "set term pslatex newstyle"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 4, · Token: example1954.go:1:18: IDENTIFIER "newstyle", }
Example (Case05) ¶
fmt.Println(exampleAST(1955, "set term pslatex auxfile"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 5, · Token: example1955.go:1:18: IDENTIFIER "auxfile", }
Example (Case06) ¶
fmt.Println(exampleAST(1956, "set term pslatex noauxfile"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 6, · Token: example1956.go:1:18: IDENTIFIER "noauxfile", }
Example (Case07) ¶
fmt.Println(exampleAST(1957, "set term pslatex level1"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 7, · Token: example1957.go:1:18: IDENTIFIER "level1", }
Example (Case08) ¶
fmt.Println(exampleAST(1958, "set term pslatex leveldefault"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 8, · Token: example1958.go:1:18: IDENTIFIER "leveldefault", }
Example (Case09) ¶
fmt.Println(exampleAST(1959, "set term pstex level3"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 9, · Token: example1959.go:1:16: IDENTIFIER "level3", }
Example (Case10) ¶
fmt.Println(exampleAST(1960, "set term pslatex color"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 10, · Token: example1960.go:1:18: IDENTIFIER "color", }
Example (Case11) ¶
fmt.Println(exampleAST(1961, "set term pslatex colour"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 11, · Token: example1961.go:1:18: IDENTIFIER "colour", }
Example (Case12) ¶
fmt.Println(exampleAST(1962, "set term pslatex monochrome"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 12, · Token: example1962.go:1:18: IDENTIFIER "monochrome", }
Example (Case13) ¶
fmt.Println(exampleAST(1963, "set term pslatex background ident_a"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 13, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1963.go:1:29: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1963.go:1:18: IDENTIFIER "background", }
Example (Case14) ¶
fmt.Println(exampleAST(1964, "set term pslatex nobackground"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 14, · Token: example1964.go:1:18: IDENTIFIER "nobackground", }
Example (Case15) ¶
fmt.Println(exampleAST(1965, "set term pslatex dashlength ident_a"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1965.go:1:29: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1965.go:1:18: IDENTIFIER "dashlength", }
Example (Case16) ¶
fmt.Println(exampleAST(1966, "set term pstex dl ident_a"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 16, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1966.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1966.go:1:16: IDENTIFIER "dl", }
Example (Case17) ¶
fmt.Println(exampleAST(1967, "set term pslatex linewidth ident_a"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 17, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1967.go:1:28: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1967.go:1:18: IDENTIFIER "linewidth", }
Example (Case18) ¶
fmt.Println(exampleAST(1968, "set term pslatex lw ident_a"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 18, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1968.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1968.go:1:18: IDENTIFIER "lw", }
Example (Case19) ¶
fmt.Println(exampleAST(1969, "set term pstex rounded"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 19, · Token: example1969.go:1:16: IDENTIFIER "rounded", }
Example (Case20) ¶
fmt.Println(exampleAST(1970, "set term pslatex butt"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 20, · Token: example1970.go:1:18: IDENTIFIER "butt", }
Example (Case21) ¶
fmt.Println(exampleAST(1971, "set term pslatex clip"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 21, · Token: example1971.go:1:18: IDENTIFIER "clip", }
Example (Case22) ¶
fmt.Println(exampleAST(1972, "set term pslatex noclip"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 22, · Token: example1972.go:1:18: IDENTIFIER "noclip", }
Example (Case23) ¶
fmt.Println(exampleAST(1973, "set term pslatex palfuncparam ident_a"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 23, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1973.go:1:31: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1973.go:1:18: IDENTIFIER "palfuncparam", }
Example (Case24) ¶
fmt.Println(exampleAST(1974, "set term pstex size ident_a"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 24, · ExpressionUnitList: &plot.ExpressionUnitList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1974.go:1:21: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1974.go:1:16: IDENTIFIER "size", }
Example (Case25) ¶
fmt.Println(exampleAST(1975, "set term pslatex ident_a"))
Output: &plot.SetTerminalPstexSpecListItem{ · Case: 25, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1975.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*SetTerminalPstexSpecListItem) Pos ¶
func (n *SetTerminalPstexSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPstexSpecListItem) String ¶
func (n *SetTerminalPstexSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalPstexSpecListOpt ¶
type SetTerminalPstexSpecListOpt struct {
SetTerminalPstexSpecList *SetTerminalPstexSpecList
}
SetTerminalPstexSpecListOpt represents data reduced by productions:
SetTerminalPstexSpecListOpt: /* empty */ | SetTerminalPstexSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1976, "set term pslatex") == (*SetTerminalPstexSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1977, "set term pslatex ident_a"))
Output: &plot.SetTerminalPstexSpecListOpt{ · SetTerminalPstexSpecList: &plot.SetTerminalPstexSpecList{ · · SetTerminalPstexSpecListItem: &plot.SetTerminalPstexSpecListItem{ · · · Case: 25, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1977.go:1:18: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalPstexSpecListOpt) Pos ¶
func (n *SetTerminalPstexSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPstexSpecListOpt) String ¶
func (n *SetTerminalPstexSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalPstricksSpecList ¶
type SetTerminalPstricksSpecList struct { Case int SetTerminalPstricksSpecList *SetTerminalPstricksSpecList SetTerminalPstricksSpecListItem *SetTerminalPstricksSpecListItem }
SetTerminalPstricksSpecList represents data reduced by productions:
SetTerminalPstricksSpecList: SetTerminalPstricksSpecListItem | SetTerminalPstricksSpecList SetTerminalPstricksSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1978, "set term pstricks hacktext"))
Output: &plot.SetTerminalPstricksSpecList{ · SetTerminalPstricksSpecListItem: &plot.SetTerminalPstricksSpecListItem{ · · Token: example1978.go:1:19: IDENTIFIER "hacktext", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1979, "set term pstricks hacktext hacktext"))
Output: &plot.SetTerminalPstricksSpecList{ · SetTerminalPstricksSpecList: &plot.SetTerminalPstricksSpecList{ · · Case: 1, · · SetTerminalPstricksSpecListItem: &plot.SetTerminalPstricksSpecListItem{ · · · Token: example1979.go:1:28: IDENTIFIER "hacktext", · · }, · }, · SetTerminalPstricksSpecListItem: &plot.SetTerminalPstricksSpecListItem{ · · Token: example1979.go:1:19: IDENTIFIER "hacktext", · }, }
func (*SetTerminalPstricksSpecList) Pos ¶
func (n *SetTerminalPstricksSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPstricksSpecList) String ¶
func (n *SetTerminalPstricksSpecList) String() string
String implements fmt.Stringer.
type SetTerminalPstricksSpecListItem ¶
SetTerminalPstricksSpecListItem represents data reduced by productions:
SetTerminalPstricksSpecListItem: "hacktext" | "nohacktext" // Case 1 | "unit" // Case 2 | "nounit" // Case 3
Example ¶
fmt.Println(exampleAST(1980, "set term pstricks hacktext"))
Output: &plot.SetTerminalPstricksSpecListItem{ · Token: example1980.go:1:19: IDENTIFIER "hacktext", }
Example (Case1) ¶
fmt.Println(exampleAST(1981, "set term pstricks nohacktext"))
Output: &plot.SetTerminalPstricksSpecListItem{ · Case: 1, · Token: example1981.go:1:19: IDENTIFIER "nohacktext", }
Example (Case2) ¶
fmt.Println(exampleAST(1982, "set term pstricks unit"))
Output: &plot.SetTerminalPstricksSpecListItem{ · Case: 2, · Token: example1982.go:1:19: IDENTIFIER "unit", }
Example (Case3) ¶
fmt.Println(exampleAST(1983, "set term pstricks nounit"))
Output: &plot.SetTerminalPstricksSpecListItem{ · Case: 3, · Token: example1983.go:1:19: IDENTIFIER "nounit", }
func (*SetTerminalPstricksSpecListItem) Pos ¶
func (n *SetTerminalPstricksSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPstricksSpecListItem) String ¶
func (n *SetTerminalPstricksSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalPstricksSpecListOpt ¶
type SetTerminalPstricksSpecListOpt struct {
SetTerminalPstricksSpecList *SetTerminalPstricksSpecList
}
SetTerminalPstricksSpecListOpt represents data reduced by productions:
SetTerminalPstricksSpecListOpt: /* empty */ | SetTerminalPstricksSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1984, "set term pstricks") == (*SetTerminalPstricksSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1985, "set term pstricks hacktext"))
Output: &plot.SetTerminalPstricksSpecListOpt{ · SetTerminalPstricksSpecList: &plot.SetTerminalPstricksSpecList{ · · SetTerminalPstricksSpecListItem: &plot.SetTerminalPstricksSpecListItem{ · · · Token: example1985.go:1:19: IDENTIFIER "hacktext", · · }, · }, }
func (*SetTerminalPstricksSpecListOpt) Pos ¶
func (n *SetTerminalPstricksSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalPstricksSpecListOpt) String ¶
func (n *SetTerminalPstricksSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalQtSpecList ¶
type SetTerminalQtSpecList struct { Case int SetTerminalQtSpecList *SetTerminalQtSpecList SetTerminalQtSpecListItem *SetTerminalQtSpecListItem }
SetTerminalQtSpecList represents data reduced by productions:
SetTerminalQtSpecList: SetTerminalQtSpecListItem | SetTerminalQtSpecList SetTerminalQtSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1986, "set term qt ident_a"))
Output: &plot.SetTerminalQtSpecList{ · SetTerminalQtSpecListItem: &plot.SetTerminalQtSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1986.go:1:13: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1987, "set term qt ident_a ident_b"))
Output: &plot.SetTerminalQtSpecList{ · SetTerminalQtSpecList: &plot.SetTerminalQtSpecList{ · · Case: 1, · · SetTerminalQtSpecListItem: &plot.SetTerminalQtSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1987.go:1:21: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalQtSpecListItem: &plot.SetTerminalQtSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1987.go:1:13: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalQtSpecList) Pos ¶
func (n *SetTerminalQtSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalQtSpecList) String ¶
func (n *SetTerminalQtSpecList) String() string
String implements fmt.Stringer.
type SetTerminalQtSpecListItem ¶
type SetTerminalQtSpecListItem struct { Case int Expression *Expression ExpressionList *ExpressionList SimpleExpression *SimpleExpression Token xc.Token }
SetTerminalQtSpecListItem represents data reduced by productions:
SetTerminalQtSpecListItem: SimpleExpression | "size" ExpressionList // Case 1 | "position" ExpressionList // Case 2 | "title" Expression // Case 3 | "font" Expression // Case 4 | "enhanced" // Case 5 | "noenhanced" // Case 6 | "dashlength" Expression // Case 7 | "persist" // Case 8 | "nopersist" // Case 9 | "raise" // Case 10 | "noraise" // Case 11 | "ctrl" // Case 12 | "noctrl" // Case 13 | "close" // Case 14 | "widget" Expression // Case 15
Example ¶
fmt.Println(exampleAST(1988, "set term qt ident_a"))
Output: &plot.SetTerminalQtSpecListItem{ · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1988.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case01) ¶
fmt.Println(exampleAST(1989, "set term qt size ident_a"))
Output: &plot.SetTerminalQtSpecListItem{ · Case: 1, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1989.go:1:18: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1989.go:1:13: IDENTIFIER "size", }
Example (Case02) ¶
fmt.Println(exampleAST(1990, "set term qt position ident_a"))
Output: &plot.SetTerminalQtSpecListItem{ · Case: 2, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1990.go:1:22: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1990.go:1:13: IDENTIFIER "position", }
Example (Case03) ¶
fmt.Println(exampleAST(1991, "set term qt title ident_a"))
Output: &plot.SetTerminalQtSpecListItem{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1991.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1991.go:1:13: IDENTIFIER "title", }
Example (Case04) ¶
fmt.Println(exampleAST(1992, "set term qt font ident_a"))
Output: &plot.SetTerminalQtSpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1992.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1992.go:1:13: IDENTIFIER "font", }
Example (Case05) ¶
fmt.Println(exampleAST(1993, "set term qt enhanced"))
Output: &plot.SetTerminalQtSpecListItem{ · Case: 5, · Token: example1993.go:1:13: IDENTIFIER "enhanced", }
Example (Case06) ¶
fmt.Println(exampleAST(1994, "set term qt noenhanced"))
Output: &plot.SetTerminalQtSpecListItem{ · Case: 6, · Token: example1994.go:1:13: IDENTIFIER "noenhanced", }
Example (Case07) ¶
fmt.Println(exampleAST(1995, "set term qt dashlength ident_a"))
Output: &plot.SetTerminalQtSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1995.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1995.go:1:13: IDENTIFIER "dashlength", }
Example (Case08) ¶
fmt.Println(exampleAST(1996, "set term qt persist"))
Output: &plot.SetTerminalQtSpecListItem{ · Case: 8, · Token: example1996.go:1:13: IDENTIFIER "persist", }
Example (Case09) ¶
fmt.Println(exampleAST(1997, "set term qt nopersist"))
Output: &plot.SetTerminalQtSpecListItem{ · Case: 9, · Token: example1997.go:1:13: IDENTIFIER "nopersist", }
Example (Case10) ¶
fmt.Println(exampleAST(1998, "set term qt raise"))
Output: &plot.SetTerminalQtSpecListItem{ · Case: 10, · Token: example1998.go:1:13: IDENTIFIER "raise", }
Example (Case11) ¶
fmt.Println(exampleAST(1999, "set term qt noraise"))
Output: &plot.SetTerminalQtSpecListItem{ · Case: 11, · Token: example1999.go:1:13: IDENTIFIER "noraise", }
Example (Case12) ¶
fmt.Println(exampleAST(2000, "set term qt ctrl"))
Output: &plot.SetTerminalQtSpecListItem{ · Case: 12, · Token: example2000.go:1:13: IDENTIFIER "ctrl", }
Example (Case13) ¶
fmt.Println(exampleAST(2001, "set term qt noctrl"))
Output: &plot.SetTerminalQtSpecListItem{ · Case: 13, · Token: example2001.go:1:13: IDENTIFIER "noctrl", }
Example (Case14) ¶
fmt.Println(exampleAST(2002, "set term qt close"))
Output: &plot.SetTerminalQtSpecListItem{ · Case: 14, · Token: example2002.go:1:13: IDENTIFIER "close", }
Example (Case15) ¶
fmt.Println(exampleAST(2003, "set term qt widget ident_a"))
Output: &plot.SetTerminalQtSpecListItem{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2003.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2003.go:1:13: IDENTIFIER "widget", }
func (*SetTerminalQtSpecListItem) Pos ¶
func (n *SetTerminalQtSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalQtSpecListItem) String ¶
func (n *SetTerminalQtSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalQtSpecListOpt ¶
type SetTerminalQtSpecListOpt struct {
SetTerminalQtSpecList *SetTerminalQtSpecList
}
SetTerminalQtSpecListOpt represents data reduced by productions:
SetTerminalQtSpecListOpt: /* empty */ | SetTerminalQtSpecList // Case 1
Example ¶
fmt.Println(exampleAST(2004, "set term qt") == (*SetTerminalQtSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2005, "set term qt ident_a"))
Output: &plot.SetTerminalQtSpecListOpt{ · SetTerminalQtSpecList: &plot.SetTerminalQtSpecList{ · · SetTerminalQtSpecListItem: &plot.SetTerminalQtSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2005.go:1:13: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalQtSpecListOpt) Pos ¶
func (n *SetTerminalQtSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalQtSpecListOpt) String ¶
func (n *SetTerminalQtSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalSpec ¶
type SetTerminalSpec struct { Case int SetTerminalInner *SetTerminalInner Token xc.Token }
SetTerminalSpec represents data reduced by productions:
SetTerminalSpec: SetTerminalInner | "push" // Case 1 | "pop" // Case 2
Example ¶
fmt.Println(exampleAST(1401, "set term aifm"))
Output: &plot.SetTerminalSpec{ · SetTerminalInner: &plot.SetTerminalInner{ · · Token: example1401.go:1:10: IDENTIFIER "aifm", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1402, "set term push"))
Output: &plot.SetTerminalSpec{ · Case: 1, · Token: example1402.go:1:10: IDENTIFIER "push", }
Example (Case2) ¶
fmt.Println(exampleAST(1403, "set term pop"))
Output: &plot.SetTerminalSpec{ · Case: 2, · Token: example1403.go:1:10: IDENTIFIER "pop", }
func (*SetTerminalSpec) Pos ¶
func (n *SetTerminalSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalSpec) String ¶
func (n *SetTerminalSpec) String() string
String implements fmt.Stringer.
type SetTerminalSvgSpecList ¶
type SetTerminalSvgSpecList struct { Case int SetTerminalSvgSpecList *SetTerminalSvgSpecList SetTerminalSvgSpecListItem *SetTerminalSvgSpecListItem }
SetTerminalSvgSpecList represents data reduced by productions:
SetTerminalSvgSpecList: SetTerminalSvgSpecListItem | SetTerminalSvgSpecList SetTerminalSvgSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(2006, "set term svg butt"))
Output: &plot.SetTerminalSvgSpecList{ · SetTerminalSvgSpecListItem: &plot.SetTerminalSvgSpecListItem{ · · Case: 15, · · Token: example2006.go:1:14: IDENTIFIER "butt", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2007, "set term svg butt butt"))
Output: &plot.SetTerminalSvgSpecList{ · SetTerminalSvgSpecList: &plot.SetTerminalSvgSpecList{ · · Case: 1, · · SetTerminalSvgSpecListItem: &plot.SetTerminalSvgSpecListItem{ · · · Case: 15, · · · Token: example2007.go:1:19: IDENTIFIER "butt", · · }, · }, · SetTerminalSvgSpecListItem: &plot.SetTerminalSvgSpecListItem{ · · Case: 15, · · Token: example2007.go:1:14: IDENTIFIER "butt", · }, }
func (*SetTerminalSvgSpecList) Pos ¶
func (n *SetTerminalSvgSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalSvgSpecList) String ¶
func (n *SetTerminalSvgSpecList) String() string
String implements fmt.Stringer.
type SetTerminalSvgSpecListItem ¶
type SetTerminalSvgSpecListItem struct { Case int Expression *Expression ExpressionList *ExpressionList Token xc.Token }
SetTerminalSvgSpecListItem represents data reduced by productions:
SetTerminalSvgSpecListItem: "portrait" | "size" ExpressionList // Case 1 | "fixed" // Case 2 | "dynamic" // Case 3 | "enhanced" // Case 4 | "noenhanced" // Case 5 | "fname" Expression // Case 6 | "fsize" Expression // Case 7 | "mouse" // Case 8 | "standalone" // Case 9 | "jsdir" Expression // Case 10 | "name" Expression // Case 11 | "font" Expression // Case 12 | "fontfile" Expression // Case 13 | "rounded" // Case 14 | "butt" // Case 15 | "square" // Case 16 | "solid" // Case 17 | "dashed" // Case 18 | "linewidth" Expression // Case 19 | "background" Expression // Case 20
Example ¶
fmt.Println(exampleAST(2008, "set term svg portrait"))
Output: &plot.SetTerminalSvgSpecListItem{ · Token: example2008.go:1:14: IDENTIFIER "portrait", }
Example (Case01) ¶
fmt.Println(exampleAST(2009, "set term svg size ident_a"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 1, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2009.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2009.go:1:14: IDENTIFIER "size", }
Example (Case02) ¶
fmt.Println(exampleAST(2010, "set term svg fixed"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 2, · Token: example2010.go:1:14: IDENTIFIER "fixed", }
Example (Case03) ¶
fmt.Println(exampleAST(2011, "set term svg dynamic"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 3, · Token: example2011.go:1:14: IDENTIFIER "dynamic", }
Example (Case04) ¶
fmt.Println(exampleAST(2012, "set term svg enhanced"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 4, · Token: example2012.go:1:14: IDENTIFIER "enhanced", }
Example (Case05) ¶
fmt.Println(exampleAST(2013, "set term svg noenhanced"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 5, · Token: example2013.go:1:14: IDENTIFIER "noenhanced", }
Example (Case06) ¶
fmt.Println(exampleAST(2014, "set term svg fname ident_a"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2014.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2014.go:1:14: IDENTIFIER "fname", }
Example (Case07) ¶
fmt.Println(exampleAST(2015, "set term svg fsize ident_a"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2015.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2015.go:1:14: IDENTIFIER "fsize", }
Example (Case08) ¶
fmt.Println(exampleAST(2016, "set term svg mouse"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 8, · Token: example2016.go:1:14: IDENTIFIER "mouse", }
Example (Case09) ¶
fmt.Println(exampleAST(2017, "set term svg standalone"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 9, · Token: example2017.go:1:14: IDENTIFIER "standalone", }
Example (Case10) ¶
fmt.Println(exampleAST(2018, "set term svg jsdir ident_a"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2018.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2018.go:1:14: IDENTIFIER "jsdir", }
Example (Case11) ¶
fmt.Println(exampleAST(2019, "set term svg name ident_a"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2019.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2019.go:1:14: IDENTIFIER "name", }
Example (Case12) ¶
fmt.Println(exampleAST(2020, "set term svg font ident_a"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 12, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2020.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2020.go:1:14: IDENTIFIER "font", }
Example (Case13) ¶
fmt.Println(exampleAST(2021, "set term svg fontfile ident_a"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 13, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2021.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2021.go:1:14: IDENTIFIER "fontfile", }
Example (Case14) ¶
fmt.Println(exampleAST(2022, "set term svg rounded"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 14, · Token: example2022.go:1:14: IDENTIFIER "rounded", }
Example (Case15) ¶
fmt.Println(exampleAST(2023, "set term svg butt"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 15, · Token: example2023.go:1:14: IDENTIFIER "butt", }
Example (Case16) ¶
fmt.Println(exampleAST(2024, "set term svg square"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 16, · Token: example2024.go:1:14: IDENTIFIER "square", }
Example (Case17) ¶
fmt.Println(exampleAST(2025, "set term svg solid"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 17, · Token: example2025.go:1:14: IDENTIFIER "solid", }
Example (Case18) ¶
fmt.Println(exampleAST(2026, "set term svg dashed"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 18, · Token: example2026.go:1:14: IDENTIFIER "dashed", }
Example (Case19) ¶
fmt.Println(exampleAST(2027, "set term svg linewidth ident_a"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 19, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2027.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2027.go:1:14: IDENTIFIER "linewidth", }
Example (Case20) ¶
fmt.Println(exampleAST(2028, "set term svg background ident_a"))
Output: &plot.SetTerminalSvgSpecListItem{ · Case: 20, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2028.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2028.go:1:14: IDENTIFIER "background", }
func (*SetTerminalSvgSpecListItem) Pos ¶
func (n *SetTerminalSvgSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalSvgSpecListItem) String ¶
func (n *SetTerminalSvgSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalSvgSpecListOpt ¶
type SetTerminalSvgSpecListOpt struct {
SetTerminalSvgSpecList *SetTerminalSvgSpecList
}
SetTerminalSvgSpecListOpt represents data reduced by productions:
SetTerminalSvgSpecListOpt: /* empty */ | SetTerminalSvgSpecList // Case 1
Example ¶
fmt.Println(exampleAST(2029, "set term svg") == (*SetTerminalSvgSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2030, "set term svg butt"))
Output: &plot.SetTerminalSvgSpecListOpt{ · SetTerminalSvgSpecList: &plot.SetTerminalSvgSpecList{ · · SetTerminalSvgSpecListItem: &plot.SetTerminalSvgSpecListItem{ · · · Case: 15, · · · Token: example2030.go:1:14: IDENTIFIER "butt", · · }, · }, }
func (*SetTerminalSvgSpecListOpt) Pos ¶
func (n *SetTerminalSvgSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalSvgSpecListOpt) String ¶
func (n *SetTerminalSvgSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalTgifSpecList ¶
type SetTerminalTgifSpecList struct { Case int SetTerminalTgifSpecList *SetTerminalTgifSpecList SetTerminalTgifSpecListItem *SetTerminalTgifSpecListItem }
SetTerminalTgifSpecList represents data reduced by productions:
SetTerminalTgifSpecList: SetTerminalTgifSpecListItem | SetTerminalTgifSpecList SetTerminalTgifSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(2031, "set term tgif ident_a"))
Output: &plot.SetTerminalTgifSpecList{ · SetTerminalTgifSpecListItem: &plot.SetTerminalTgifSpecListItem{ · · Case: 11, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2031.go:1:15: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2032, "set term tgif ident_a ident_b"))
Output: &plot.SetTerminalTgifSpecList{ · SetTerminalTgifSpecList: &plot.SetTerminalTgifSpecList{ · · Case: 1, · · SetTerminalTgifSpecListItem: &plot.SetTerminalTgifSpecListItem{ · · · Case: 11, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2032.go:1:23: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalTgifSpecListItem: &plot.SetTerminalTgifSpecListItem{ · · Case: 11, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2032.go:1:15: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalTgifSpecList) Pos ¶
func (n *SetTerminalTgifSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalTgifSpecList) String ¶
func (n *SetTerminalTgifSpecList) String() string
String implements fmt.Stringer.
type SetTerminalTgifSpecListItem ¶
type SetTerminalTgifSpecListItem struct { Case int Expression *Expression ExpressionList *ExpressionList SimpleExpression *SimpleExpression Token xc.Token Token2 xc.Token }
SetTerminalTgifSpecListItem represents data reduced by productions:
SetTerminalTgifSpecListItem: "portrait" | "landscape" // Case 1 | "default" // Case 2 | '[' ExpressionList ']' // Case 3 | "monochrome" // Case 4 | "color" // Case 5 | "linewdith" Expression // Case 6 | "lw" Expression // Case 7 | "solid" // Case 8 | "dashed" // Case 9 | "font" Expression // Case 10 | SimpleExpression // Case 11
Example ¶
fmt.Println(exampleAST(2033, "set term tgif portrait"))
Output: &plot.SetTerminalTgifSpecListItem{ · Token: example2033.go:1:15: IDENTIFIER "portrait", }
Example (Case01) ¶
fmt.Println(exampleAST(2034, "set term tgif landscape"))
Output: &plot.SetTerminalTgifSpecListItem{ · Case: 1, · Token: example2034.go:1:15: IDENTIFIER "landscape", }
Example (Case02) ¶
fmt.Println(exampleAST(2035, "set term tgif default"))
Output: &plot.SetTerminalTgifSpecListItem{ · Case: 2, · Token: example2035.go:1:15: IDENTIFIER "default", }
Example (Case03) ¶
fmt.Println(exampleAST(2036, "set term tgif [ ident_a ]"))
Output: &plot.SetTerminalTgifSpecListItem{ · Case: 3, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2036.go:1:17: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2036.go:1:15: '[' "[", · Token2: example2036.go:1:25: ']' "]", }
Example (Case04) ¶
fmt.Println(exampleAST(2037, "set term tgif monochrome"))
Output: &plot.SetTerminalTgifSpecListItem{ · Case: 4, · Token: example2037.go:1:15: IDENTIFIER "monochrome", }
Example (Case05) ¶
fmt.Println(exampleAST(2038, "set term tgif color"))
Output: &plot.SetTerminalTgifSpecListItem{ · Case: 5, · Token: example2038.go:1:15: IDENTIFIER "color", }
Example (Case06) ¶
fmt.Println(exampleAST(2039, "set term tgif linewdith ident_a"))
Output: &plot.SetTerminalTgifSpecListItem{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2039.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2039.go:1:15: IDENTIFIER "linewdith", }
Example (Case07) ¶
fmt.Println(exampleAST(2040, "set term tgif lw ident_a"))
Output: &plot.SetTerminalTgifSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2040.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2040.go:1:15: IDENTIFIER "lw", }
Example (Case08) ¶
fmt.Println(exampleAST(2041, "set term tgif solid"))
Output: &plot.SetTerminalTgifSpecListItem{ · Case: 8, · Token: example2041.go:1:15: IDENTIFIER "solid", }
Example (Case09) ¶
fmt.Println(exampleAST(2042, "set term tgif dashed"))
Output: &plot.SetTerminalTgifSpecListItem{ · Case: 9, · Token: example2042.go:1:15: IDENTIFIER "dashed", }
Example (Case10) ¶
fmt.Println(exampleAST(2043, "set term tgif font ident_a"))
Output: &plot.SetTerminalTgifSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2043.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2043.go:1:15: IDENTIFIER "font", }
Example (Case11) ¶
fmt.Println(exampleAST(2044, "set term tgif ident_a"))
Output: &plot.SetTerminalTgifSpecListItem{ · Case: 11, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2044.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*SetTerminalTgifSpecListItem) Pos ¶
func (n *SetTerminalTgifSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalTgifSpecListItem) String ¶
func (n *SetTerminalTgifSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalTgifSpecListOpt ¶
type SetTerminalTgifSpecListOpt struct {
SetTerminalTgifSpecList *SetTerminalTgifSpecList
}
SetTerminalTgifSpecListOpt represents data reduced by productions:
SetTerminalTgifSpecListOpt: /* empty */ | SetTerminalTgifSpecList // Case 1
Example ¶
fmt.Println(exampleAST(2045, "set term tgif") == (*SetTerminalTgifSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2046, "set term tgif ident_a"))
Output: &plot.SetTerminalTgifSpecListOpt{ · SetTerminalTgifSpecList: &plot.SetTerminalTgifSpecList{ · · SetTerminalTgifSpecListItem: &plot.SetTerminalTgifSpecListItem{ · · · Case: 11, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2046.go:1:15: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalTgifSpecListOpt) Pos ¶
func (n *SetTerminalTgifSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalTgifSpecListOpt) String ¶
func (n *SetTerminalTgifSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalTkcanvasSpecList ¶
type SetTerminalTkcanvasSpecList struct { Case int SetTerminalTkcanvasSpecList *SetTerminalTkcanvasSpecList SetTerminalTkcanvasSpecListItem *SetTerminalTkcanvasSpecListItem }
SetTerminalTkcanvasSpecList represents data reduced by productions:
SetTerminalTkcanvasSpecList: SetTerminalTkcanvasSpecListItem | SetTerminalTkcanvasSpecList SetTerminalTkcanvasSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(2047, "set term tkcanvas interactive"))
Output: &plot.SetTerminalTkcanvasSpecList{ · SetTerminalTkcanvasSpecListItem: &plot.SetTerminalTkcanvasSpecListItem{ · · Case: 1, · · Token: example2047.go:1:19: IDENTIFIER "interactive", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2048, "set term tkcanvas interactive interactive"))
Output: &plot.SetTerminalTkcanvasSpecList{ · SetTerminalTkcanvasSpecList: &plot.SetTerminalTkcanvasSpecList{ · · Case: 1, · · SetTerminalTkcanvasSpecListItem: &plot.SetTerminalTkcanvasSpecListItem{ · · · Case: 1, · · · Token: example2048.go:1:31: IDENTIFIER "interactive", · · }, · }, · SetTerminalTkcanvasSpecListItem: &plot.SetTerminalTkcanvasSpecListItem{ · · Case: 1, · · Token: example2048.go:1:19: IDENTIFIER "interactive", · }, }
func (*SetTerminalTkcanvasSpecList) Pos ¶
func (n *SetTerminalTkcanvasSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalTkcanvasSpecList) String ¶
func (n *SetTerminalTkcanvasSpecList) String() string
String implements fmt.Stringer.
type SetTerminalTkcanvasSpecListItem ¶
SetTerminalTkcanvasSpecListItem represents data reduced by productions:
SetTerminalTkcanvasSpecListItem: "perltk" | "interactive" // Case 1
Example ¶
fmt.Println(exampleAST(2049, "set term tkcanvas perltk"))
Output: &plot.SetTerminalTkcanvasSpecListItem{ · Token: example2049.go:1:19: IDENTIFIER "perltk", }
Example (Case1) ¶
fmt.Println(exampleAST(2050, "set term tkcanvas interactive"))
Output: &plot.SetTerminalTkcanvasSpecListItem{ · Case: 1, · Token: example2050.go:1:19: IDENTIFIER "interactive", }
func (*SetTerminalTkcanvasSpecListItem) Pos ¶
func (n *SetTerminalTkcanvasSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalTkcanvasSpecListItem) String ¶
func (n *SetTerminalTkcanvasSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalTkcanvasSpecListOpt ¶
type SetTerminalTkcanvasSpecListOpt struct {
SetTerminalTkcanvasSpecList *SetTerminalTkcanvasSpecList
}
SetTerminalTkcanvasSpecListOpt represents data reduced by productions:
SetTerminalTkcanvasSpecListOpt: /* empty */ | SetTerminalTkcanvasSpecList // Case 1
Example ¶
fmt.Println(exampleAST(2051, "set term tkcanvas") == (*SetTerminalTkcanvasSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2052, "set term tkcanvas interactive"))
Output: &plot.SetTerminalTkcanvasSpecListOpt{ · SetTerminalTkcanvasSpecList: &plot.SetTerminalTkcanvasSpecList{ · · SetTerminalTkcanvasSpecListItem: &plot.SetTerminalTkcanvasSpecListItem{ · · · Case: 1, · · · Token: example2052.go:1:19: IDENTIFIER "interactive", · · }, · }, }
func (*SetTerminalTkcanvasSpecListOpt) Pos ¶
func (n *SetTerminalTkcanvasSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalTkcanvasSpecListOpt) String ¶
func (n *SetTerminalTkcanvasSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalVgaglSpecList ¶
type SetTerminalVgaglSpecList struct { Case int SetTerminalVgaglSpecList *SetTerminalVgaglSpecList SetTerminalVgaglSpecListItem *SetTerminalVgaglSpecListItem }
SetTerminalVgaglSpecList represents data reduced by productions:
SetTerminalVgaglSpecList: SetTerminalVgaglSpecListItem | SetTerminalVgaglSpecList SetTerminalVgaglSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(2053, "set term vgagl ident_a"))
Output: &plot.SetTerminalVgaglSpecList{ · SetTerminalVgaglSpecListItem: &plot.SetTerminalVgaglSpecListItem{ · · Case: 3, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2053.go:1:16: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2054, "set term vgagl ident_a ident_b"))
Output: &plot.SetTerminalVgaglSpecList{ · SetTerminalVgaglSpecList: &plot.SetTerminalVgaglSpecList{ · · Case: 1, · · SetTerminalVgaglSpecListItem: &plot.SetTerminalVgaglSpecListItem{ · · · Case: 3, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2054.go:1:24: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalVgaglSpecListItem: &plot.SetTerminalVgaglSpecListItem{ · · Case: 3, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2054.go:1:16: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalVgaglSpecList) Pos ¶
func (n *SetTerminalVgaglSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalVgaglSpecList) String ¶
func (n *SetTerminalVgaglSpecList) String() string
String implements fmt.Stringer.
type SetTerminalVgaglSpecListItem ¶
type SetTerminalVgaglSpecListItem struct { Case int ExpressionList *ExpressionList SimpleExpression *SimpleExpression Token xc.Token }
SetTerminalVgaglSpecListItem represents data reduced by productions:
SetTerminalVgaglSpecListItem: "background" ExpressionList | "uniform" // Case 1 | "interpolate" // Case 2 | SimpleExpression // Case 3
Example ¶
fmt.Println(exampleAST(2055, "set term vgagl background ident_a"))
Output: &plot.SetTerminalVgaglSpecListItem{ · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2055.go:1:27: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2055.go:1:16: IDENTIFIER "background", }
Example (Case1) ¶
fmt.Println(exampleAST(2056, "set term vgagl uniform"))
Output: &plot.SetTerminalVgaglSpecListItem{ · Case: 1, · Token: example2056.go:1:16: IDENTIFIER "uniform", }
Example (Case2) ¶
fmt.Println(exampleAST(2057, "set term vgagl interpolate"))
Output: &plot.SetTerminalVgaglSpecListItem{ · Case: 2, · Token: example2057.go:1:16: IDENTIFIER "interpolate", }
Example (Case3) ¶
fmt.Println(exampleAST(2058, "set term vgagl ident_a"))
Output: &plot.SetTerminalVgaglSpecListItem{ · Case: 3, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2058.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*SetTerminalVgaglSpecListItem) Pos ¶
func (n *SetTerminalVgaglSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalVgaglSpecListItem) String ¶
func (n *SetTerminalVgaglSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalVgaglSpecListOpt ¶
type SetTerminalVgaglSpecListOpt struct {
SetTerminalVgaglSpecList *SetTerminalVgaglSpecList
}
SetTerminalVgaglSpecListOpt represents data reduced by productions:
SetTerminalVgaglSpecListOpt: /* empty */ | SetTerminalVgaglSpecList // Case 1
Example ¶
fmt.Println(exampleAST(2059, "set term vgagl") == (*SetTerminalVgaglSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2060, "set term vgagl ident_a"))
Output: &plot.SetTerminalVgaglSpecListOpt{ · SetTerminalVgaglSpecList: &plot.SetTerminalVgaglSpecList{ · · SetTerminalVgaglSpecListItem: &plot.SetTerminalVgaglSpecListItem{ · · · Case: 3, · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2060.go:1:16: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalVgaglSpecListOpt) Pos ¶
func (n *SetTerminalVgaglSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalVgaglSpecListOpt) String ¶
func (n *SetTerminalVgaglSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalWindowsSpecList ¶
type SetTerminalWindowsSpecList struct { Case int SetTerminalWindowsSpecList *SetTerminalWindowsSpecList SetTerminalWindowsSpecListItem *SetTerminalWindowsSpecListItem }
SetTerminalWindowsSpecList represents data reduced by productions:
SetTerminalWindowsSpecList: SetTerminalWindowsSpecListItem | SetTerminalWindowsSpecList SetTerminalWindowsSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(2061, "set term windows ident_a"))
Output: &plot.SetTerminalWindowsSpecList{ · SetTerminalWindowsSpecListItem: &plot.SetTerminalWindowsSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2061.go:1:18: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2062, "set term windows ident_a ident_b"))
Output: &plot.SetTerminalWindowsSpecList{ · SetTerminalWindowsSpecList: &plot.SetTerminalWindowsSpecList{ · · Case: 1, · · SetTerminalWindowsSpecListItem: &plot.SetTerminalWindowsSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2062.go:1:26: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalWindowsSpecListItem: &plot.SetTerminalWindowsSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2062.go:1:18: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalWindowsSpecList) Pos ¶
func (n *SetTerminalWindowsSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalWindowsSpecList) String ¶
func (n *SetTerminalWindowsSpecList) String() string
String implements fmt.Stringer.
type SetTerminalWindowsSpecListItem ¶
type SetTerminalWindowsSpecListItem struct { Case int Expression *Expression Expression2 *Expression SimpleExpression *SimpleExpression Token xc.Token Token2 xc.Token }
SetTerminalWindowsSpecListItem represents data reduced by productions:
SetTerminalWindowsSpecListItem: SimpleExpression | "color" // Case 1 | "monochrome" // Case 2 | "solid" // Case 3 | "dashed" // Case 4 | "rounded" // Case 5 | "butt" // Case 6 | "enhanced" // Case 7 | "noenhanced" // Case 8 | "font" Expression // Case 9 | "fontscale" Expression // Case 10 | "linewidth" Expression // Case 11 | "background" Expression // Case 12 | "title" Expression // Case 13 | "size" Expression ',' Expression // Case 14 | "wsize" Expression ',' Expression // Case 15 | "position" Expression ',' Expression // Case 16 | "close" // Case 17
Example ¶
fmt.Println(exampleAST(2063, "set term windows ident_a"))
Output: &plot.SetTerminalWindowsSpecListItem{ · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2063.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case01) ¶
fmt.Println(exampleAST(2064, "set term windows color"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 1, · Token: example2064.go:1:18: IDENTIFIER "color", }
Example (Case02) ¶
fmt.Println(exampleAST(2065, "set term windows monochrome"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 2, · Token: example2065.go:1:18: IDENTIFIER "monochrome", }
Example (Case03) ¶
fmt.Println(exampleAST(2066, "set term windows solid"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 3, · Token: example2066.go:1:18: IDENTIFIER "solid", }
Example (Case04) ¶
fmt.Println(exampleAST(2067, "set term windows dashed"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 4, · Token: example2067.go:1:18: IDENTIFIER "dashed", }
Example (Case05) ¶
fmt.Println(exampleAST(2068, "set term windows rounded"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 5, · Token: example2068.go:1:18: IDENTIFIER "rounded", }
Example (Case06) ¶
fmt.Println(exampleAST(2069, "set term windows butt"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 6, · Token: example2069.go:1:18: IDENTIFIER "butt", }
Example (Case07) ¶
fmt.Println(exampleAST(2070, "set term windows enhanced"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 7, · Token: example2070.go:1:18: IDENTIFIER "enhanced", }
Example (Case08) ¶
fmt.Println(exampleAST(2071, "set term windows noenhanced"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 8, · Token: example2071.go:1:18: IDENTIFIER "noenhanced", }
Example (Case09) ¶
fmt.Println(exampleAST(2072, "set term windows font ident_a"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 9, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2072.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2072.go:1:18: IDENTIFIER "font", }
Example (Case10) ¶
fmt.Println(exampleAST(2073, "set term windows fontscale ident_a"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2073.go:1:28: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2073.go:1:18: IDENTIFIER "fontscale", }
Example (Case11) ¶
fmt.Println(exampleAST(2074, "set term windows linewidth ident_a"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2074.go:1:28: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2074.go:1:18: IDENTIFIER "linewidth", }
Example (Case12) ¶
fmt.Println(exampleAST(2075, "set term windows background ident_a"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 12, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2075.go:1:29: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2075.go:1:18: IDENTIFIER "background", }
Example (Case13) ¶
fmt.Println(exampleAST(2076, "set term windows title ident_a"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 13, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2076.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2076.go:1:18: IDENTIFIER "title", }
Example (Case14) ¶
fmt.Println(exampleAST(2077, "set term windows size ident_a , ident_b"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 14, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2077.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2077.go:1:33: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2077.go:1:18: IDENTIFIER "size", · Token2: example2077.go:1:31: ',' ",", }
Example (Case15) ¶
fmt.Println(exampleAST(2078, "set term windows wsize ident_a , ident_b"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2078.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2078.go:1:34: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2078.go:1:18: IDENTIFIER "wsize", · Token2: example2078.go:1:32: ',' ",", }
Example (Case16) ¶
fmt.Println(exampleAST(2079, "set term windows position ident_a , ident_b"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 16, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2079.go:1:27: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2079.go:1:37: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2079.go:1:18: IDENTIFIER "position", · Token2: example2079.go:1:35: ',' ",", }
Example (Case17) ¶
fmt.Println(exampleAST(2080, "set term windows close"))
Output: &plot.SetTerminalWindowsSpecListItem{ · Case: 17, · Token: example2080.go:1:18: IDENTIFIER "close", }
func (*SetTerminalWindowsSpecListItem) Pos ¶
func (n *SetTerminalWindowsSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalWindowsSpecListItem) String ¶
func (n *SetTerminalWindowsSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalWindowsSpecListOpt ¶
type SetTerminalWindowsSpecListOpt struct {
SetTerminalWindowsSpecList *SetTerminalWindowsSpecList
}
SetTerminalWindowsSpecListOpt represents data reduced by productions:
SetTerminalWindowsSpecListOpt: /* empty */ | SetTerminalWindowsSpecList // Case 1
Example ¶
fmt.Println(exampleAST(2081, "set term windows") == (*SetTerminalWindowsSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2082, "set term windows ident_a"))
Output: &plot.SetTerminalWindowsSpecListOpt{ · SetTerminalWindowsSpecList: &plot.SetTerminalWindowsSpecList{ · · SetTerminalWindowsSpecListItem: &plot.SetTerminalWindowsSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2082.go:1:18: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalWindowsSpecListOpt) Pos ¶
func (n *SetTerminalWindowsSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalWindowsSpecListOpt) String ¶
func (n *SetTerminalWindowsSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalWxtSpecList ¶
type SetTerminalWxtSpecList struct { Case int SetTerminalWxtSpecList *SetTerminalWxtSpecList SetTerminalWxtSpecListItem *SetTerminalWxtSpecListItem }
SetTerminalWxtSpecList represents data reduced by productions:
SetTerminalWxtSpecList: SetTerminalWxtSpecListItem | SetTerminalWxtSpecList SetTerminalWxtSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(2083, "set term wxt ident_a"))
Output: &plot.SetTerminalWxtSpecList{ · SetTerminalWxtSpecListItem: &plot.SetTerminalWxtSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2083.go:1:14: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2084, "set term wxt ident_a ident_b"))
Output: &plot.SetTerminalWxtSpecList{ · SetTerminalWxtSpecList: &plot.SetTerminalWxtSpecList{ · · Case: 1, · · SetTerminalWxtSpecListItem: &plot.SetTerminalWxtSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2084.go:1:22: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalWxtSpecListItem: &plot.SetTerminalWxtSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2084.go:1:14: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalWxtSpecList) Pos ¶
func (n *SetTerminalWxtSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalWxtSpecList) String ¶
func (n *SetTerminalWxtSpecList) String() string
String implements fmt.Stringer.
type SetTerminalWxtSpecListItem ¶
type SetTerminalWxtSpecListItem struct { Case int Expression *Expression Expression2 *Expression SimpleExpression *SimpleExpression Token xc.Token Token2 xc.Token }
SetTerminalWxtSpecListItem represents data reduced by productions:
SetTerminalWxtSpecListItem: SimpleExpression | "size" Expression ',' Expression // Case 1 | "position" Expression ',' Expression // Case 2 | "background" Expression // Case 3 | "enhanced" // Case 4 | "noenhanced" // Case 5 | "font" Expression // Case 6 | "fontscale" Expression // Case 7 | "title" Expression // Case 8 | "linewidth" Expression // Case 9 | "dashlength" Expression // Case 10 | "persist" // Case 11 | "nopersist" // Case 12 | "raise" // Case 13 | "noraise" // Case 14 | "ctrl" // Case 15 | "noctrl" // Case 16 | "close" // Case 17
Example ¶
fmt.Println(exampleAST(2085, "set term wxt ident_a"))
Output: &plot.SetTerminalWxtSpecListItem{ · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2085.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case01) ¶
fmt.Println(exampleAST(2086, "set term wxt size ident_a , ident_b"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2086.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2086.go:1:29: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2086.go:1:14: IDENTIFIER "size", · Token2: example2086.go:1:27: ',' ",", }
Example (Case02) ¶
fmt.Println(exampleAST(2087, "set term wxt position ident_a , ident_b"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2087.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2087.go:1:33: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2087.go:1:14: IDENTIFIER "position", · Token2: example2087.go:1:31: ',' ",", }
Example (Case03) ¶
fmt.Println(exampleAST(2088, "set term wxt background ident_a"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2088.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2088.go:1:14: IDENTIFIER "background", }
Example (Case04) ¶
fmt.Println(exampleAST(2089, "set term wxt enhanced"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 4, · Token: example2089.go:1:14: IDENTIFIER "enhanced", }
Example (Case05) ¶
fmt.Println(exampleAST(2090, "set term wxt noenhanced"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 5, · Token: example2090.go:1:14: IDENTIFIER "noenhanced", }
Example (Case06) ¶
fmt.Println(exampleAST(2091, "set term wxt font ident_a"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2091.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2091.go:1:14: IDENTIFIER "font", }
Example (Case07) ¶
fmt.Println(exampleAST(2092, "set term wxt fontscale ident_a"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2092.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2092.go:1:14: IDENTIFIER "fontscale", }
Example (Case08) ¶
fmt.Println(exampleAST(2093, "set term wxt title ident_a"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 8, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2093.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2093.go:1:14: IDENTIFIER "title", }
Example (Case09) ¶
fmt.Println(exampleAST(2094, "set term wxt linewidth ident_a"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 9, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2094.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2094.go:1:14: IDENTIFIER "linewidth", }
Example (Case10) ¶
fmt.Println(exampleAST(2095, "set term wxt dashlength ident_a"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 10, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2095.go:1:25: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2095.go:1:14: IDENTIFIER "dashlength", }
Example (Case11) ¶
fmt.Println(exampleAST(2096, "set term wxt persist"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 11, · Token: example2096.go:1:14: IDENTIFIER "persist", }
Example (Case12) ¶
fmt.Println(exampleAST(2097, "set term wxt nopersist"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 12, · Token: example2097.go:1:14: IDENTIFIER "nopersist", }
Example (Case13) ¶
fmt.Println(exampleAST(2098, "set term wxt raise"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 13, · Token: example2098.go:1:14: IDENTIFIER "raise", }
Example (Case14) ¶
fmt.Println(exampleAST(2099, "set term wxt noraise"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 14, · Token: example2099.go:1:14: IDENTIFIER "noraise", }
Example (Case15) ¶
fmt.Println(exampleAST(2100, "set term wxt ctrl"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 15, · Token: example2100.go:1:14: IDENTIFIER "ctrl", }
Example (Case16) ¶
fmt.Println(exampleAST(2101, "set term wxt noctrl"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 16, · Token: example2101.go:1:14: IDENTIFIER "noctrl", }
Example (Case17) ¶
fmt.Println(exampleAST(2102, "set term wxt close"))
Output: &plot.SetTerminalWxtSpecListItem{ · Case: 17, · Token: example2102.go:1:14: IDENTIFIER "close", }
func (*SetTerminalWxtSpecListItem) Pos ¶
func (n *SetTerminalWxtSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalWxtSpecListItem) String ¶
func (n *SetTerminalWxtSpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalWxtSpecListOpt ¶
type SetTerminalWxtSpecListOpt struct {
SetTerminalWxtSpecList *SetTerminalWxtSpecList
}
SetTerminalWxtSpecListOpt represents data reduced by productions:
SetTerminalWxtSpecListOpt: /* empty */ | SetTerminalWxtSpecList // Case 1
Example ¶
fmt.Println(exampleAST(2103, "set term wxt") == (*SetTerminalWxtSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2104, "set term wxt ident_a"))
Output: &plot.SetTerminalWxtSpecListOpt{ · SetTerminalWxtSpecList: &plot.SetTerminalWxtSpecList{ · · SetTerminalWxtSpecListItem: &plot.SetTerminalWxtSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2104.go:1:14: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalWxtSpecListOpt) Pos ¶
func (n *SetTerminalWxtSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalWxtSpecListOpt) String ¶
func (n *SetTerminalWxtSpecListOpt) String() string
String implements fmt.Stringer.
type SetTerminalX11SpecList ¶
type SetTerminalX11SpecList struct { Case int SetTerminalX11SpecList *SetTerminalX11SpecList SetTerminalX11SpecListItem *SetTerminalX11SpecListItem }
SetTerminalX11SpecList represents data reduced by productions:
SetTerminalX11SpecList: SetTerminalX11SpecListItem | SetTerminalX11SpecList SetTerminalX11SpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(2105, "set term x11 ident_a"))
Output: &plot.SetTerminalX11SpecList{ · SetTerminalX11SpecListItem: &plot.SetTerminalX11SpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2105.go:1:14: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2106, "set term x11 ident_a ident_b"))
Output: &plot.SetTerminalX11SpecList{ · SetTerminalX11SpecList: &plot.SetTerminalX11SpecList{ · · Case: 1, · · SetTerminalX11SpecListItem: &plot.SetTerminalX11SpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2106.go:1:22: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTerminalX11SpecListItem: &plot.SetTerminalX11SpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2106.go:1:14: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalX11SpecList) Pos ¶
func (n *SetTerminalX11SpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalX11SpecList) String ¶
func (n *SetTerminalX11SpecList) String() string
String implements fmt.Stringer.
type SetTerminalX11SpecListItem ¶
type SetTerminalX11SpecListItem struct { Case int Expression *Expression Expression2 *Expression SimpleExpression *SimpleExpression Token xc.Token Token2 xc.Token }
SetTerminalX11SpecListItem represents data reduced by productions:
SetTerminalX11SpecListItem: SimpleExpression | "window" Expression // Case 1 | "enhanced" // Case 2 | "noenhanced" // Case 3 | "font" Expression // Case 4 | "linewidth" Expression // Case 5 | "persist" // Case 6 | "nopersist" // Case 7 | "raise" // Case 8 | "noraise" // Case 9 | "ctrlq" // Case 10 | "noctrlq" // Case 11 | "replotonresize" // Case 12 | "noreplotonresize" // Case 13 | "close" // Case 14 | "size" Expression ',' Expression // Case 15 | "position" Expression ',' Expression // Case 16 | "reset" // Case 17
Example ¶
fmt.Println(exampleAST(2107, "set term x11 ident_a"))
Output: &plot.SetTerminalX11SpecListItem{ · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2107.go:1:14: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case01) ¶
fmt.Println(exampleAST(2108, "set term x11 window ident_a"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2108.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2108.go:1:14: IDENTIFIER "window", }
Example (Case02) ¶
fmt.Println(exampleAST(2109, "set term x11 enhanced"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 2, · Token: example2109.go:1:14: IDENTIFIER "enhanced", }
Example (Case03) ¶
fmt.Println(exampleAST(2110, "set term x11 noenhanced"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 3, · Token: example2110.go:1:14: IDENTIFIER "noenhanced", }
Example (Case04) ¶
fmt.Println(exampleAST(2111, "set term x11 font ident_a"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 4, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2111.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2111.go:1:14: IDENTIFIER "font", }
Example (Case05) ¶
fmt.Println(exampleAST(2112, "set term x11 linewidth ident_a"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 5, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2112.go:1:24: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2112.go:1:14: IDENTIFIER "linewidth", }
Example (Case06) ¶
fmt.Println(exampleAST(2113, "set term x11 persist"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 6, · Token: example2113.go:1:14: IDENTIFIER "persist", }
Example (Case07) ¶
fmt.Println(exampleAST(2114, "set term x11 nopersist"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 7, · Token: example2114.go:1:14: IDENTIFIER "nopersist", }
Example (Case08) ¶
fmt.Println(exampleAST(2115, "set term x11 raise"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 8, · Token: example2115.go:1:14: IDENTIFIER "raise", }
Example (Case09) ¶
fmt.Println(exampleAST(2116, "set term x11 noraise"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 9, · Token: example2116.go:1:14: IDENTIFIER "noraise", }
Example (Case10) ¶
fmt.Println(exampleAST(2117, "set term x11 ctrlq"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 10, · Token: example2117.go:1:14: IDENTIFIER "ctrlq", }
Example (Case11) ¶
fmt.Println(exampleAST(2118, "set term x11 noctrlq"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 11, · Token: example2118.go:1:14: IDENTIFIER "noctrlq", }
Example (Case12) ¶
fmt.Println(exampleAST(2119, "set term x11 replotonresize"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 12, · Token: example2119.go:1:14: IDENTIFIER "replotonresize", }
Example (Case13) ¶
fmt.Println(exampleAST(2120, "set term x11 noreplotonresize"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 13, · Token: example2120.go:1:14: IDENTIFIER "noreplotonresize", }
Example (Case14) ¶
fmt.Println(exampleAST(2121, "set term x11 close"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 14, · Token: example2121.go:1:14: IDENTIFIER "close", }
Example (Case15) ¶
fmt.Println(exampleAST(2122, "set term x11 size ident_a , ident_b"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 15, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2122.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2122.go:1:29: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2122.go:1:14: IDENTIFIER "size", · Token2: example2122.go:1:27: ',' ",", }
Example (Case16) ¶
fmt.Println(exampleAST(2123, "set term x11 position ident_a , ident_b"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 16, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2123.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2123.go:1:33: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2123.go:1:14: IDENTIFIER "position", · Token2: example2123.go:1:31: ',' ",", }
Example (Case17) ¶
fmt.Println(exampleAST(2124, "set term x11 reset"))
Output: &plot.SetTerminalX11SpecListItem{ · Case: 17, · Token: example2124.go:1:14: IDENTIFIER "reset", }
func (*SetTerminalX11SpecListItem) Pos ¶
func (n *SetTerminalX11SpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalX11SpecListItem) String ¶
func (n *SetTerminalX11SpecListItem) String() string
String implements fmt.Stringer.
type SetTerminalX11SpecListOpt ¶
type SetTerminalX11SpecListOpt struct {
SetTerminalX11SpecList *SetTerminalX11SpecList
}
SetTerminalX11SpecListOpt represents data reduced by productions:
SetTerminalX11SpecListOpt: /* empty */ | SetTerminalX11SpecList // Case 1
Example ¶
fmt.Println(exampleAST(2125, "set term x11") == (*SetTerminalX11SpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2126, "set term x11 ident_a"))
Output: &plot.SetTerminalX11SpecListOpt{ · SetTerminalX11SpecList: &plot.SetTerminalX11SpecList{ · · SetTerminalX11SpecListItem: &plot.SetTerminalX11SpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2126.go:1:14: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTerminalX11SpecListOpt) Pos ¶
func (n *SetTerminalX11SpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTerminalX11SpecListOpt) String ¶
func (n *SetTerminalX11SpecListOpt) String() string
String implements fmt.Stringer.
type SetTermoptionSpec ¶
type SetTermoptionSpec struct { Case int Expression *Expression Token xc.Token }
SetTermoptionSpec represents data reduced by productions:
SetTermoptionSpec: "enhanced" | "noenhanced" // Case 1 | "font" Expression // Case 2 | "fontscale" Expression // Case 3 | "solid" // Case 4 | "dash" // Case 5 | "dashed" // Case 6 | "linewidth" Expression // Case 7 | "lw" Expression // Case 8
Example ¶
fmt.Println(exampleAST(2228, "set termoption enhanced"))
Output: &plot.SetTermoptionSpec{ · Token: example2228.go:1:16: IDENTIFIER "enhanced", }
Example (Case1) ¶
fmt.Println(exampleAST(2229, "set termoption noenhanced"))
Output: &plot.SetTermoptionSpec{ · Case: 1, · Token: example2229.go:1:16: IDENTIFIER "noenhanced", }
Example (Case2) ¶
fmt.Println(exampleAST(2230, "set termoption font ident_a"))
Output: &plot.SetTermoptionSpec{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2230.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2230.go:1:16: IDENTIFIER "font", }
Example (Case3) ¶
fmt.Println(exampleAST(2231, "set termoption fontscale ident_a"))
Output: &plot.SetTermoptionSpec{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2231.go:1:26: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2231.go:1:16: IDENTIFIER "fontscale", }
Example (Case4) ¶
fmt.Println(exampleAST(2232, "set termoption solid"))
Output: &plot.SetTermoptionSpec{ · Case: 4, · Token: example2232.go:1:16: IDENTIFIER "solid", }
Example (Case5) ¶
fmt.Println(exampleAST(2233, "set termoption dash"))
Output: &plot.SetTermoptionSpec{ · Case: 5, · Token: example2233.go:1:16: IDENTIFIER "dash", }
Example (Case6) ¶
fmt.Println(exampleAST(2234, "set termoption dashed"))
Output: &plot.SetTermoptionSpec{ · Case: 6, · Token: example2234.go:1:16: IDENTIFIER "dashed", }
Example (Case7) ¶
fmt.Println(exampleAST(2235, "set termoption linewidth ident_a"))
Output: &plot.SetTermoptionSpec{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2235.go:1:26: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2235.go:1:16: IDENTIFIER "linewidth", }
Example (Case8) ¶
fmt.Println(exampleAST(2236, "set termoption lw ident_a"))
Output: &plot.SetTermoptionSpec{ · Case: 8, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2236.go:1:19: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2236.go:1:16: IDENTIFIER "lw", }
func (*SetTermoptionSpec) Pos ¶
func (n *SetTermoptionSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTermoptionSpec) String ¶
func (n *SetTermoptionSpec) String() string
String implements fmt.Stringer.
type SetTimestampSpecList ¶
type SetTimestampSpecList struct { Case int SetTimestampSpecList *SetTimestampSpecList SetTimestampSpecListItem *SetTimestampSpecListItem }
SetTimestampSpecList represents data reduced by productions:
SetTimestampSpecList: SetTimestampSpecListItem | SetTimestampSpecList SetTimestampSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1373, "set timestamp ident_a"))
Output: &plot.SetTimestampSpecList{ · SetTimestampSpecListItem: &plot.SetTimestampSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1373.go:1:15: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1374, "set timestamp ident_a ident_b"))
Output: &plot.SetTimestampSpecList{ · SetTimestampSpecList: &plot.SetTimestampSpecList{ · · Case: 1, · · SetTimestampSpecListItem: &plot.SetTimestampSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1374.go:1:23: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetTimestampSpecListItem: &plot.SetTimestampSpecListItem{ · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1374.go:1:15: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTimestampSpecList) Pos ¶
func (n *SetTimestampSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTimestampSpecList) String ¶
func (n *SetTimestampSpecList) String() string
String implements fmt.Stringer.
type SetTimestampSpecListItem ¶
type SetTimestampSpecListItem struct { Case int ColorSpec *ColorSpec Expression *Expression ExpressionList *ExpressionList SimpleExpression *SimpleExpression Token xc.Token }
SetTimestampSpecListItem represents data reduced by productions:
SetTimestampSpecListItem: SimpleExpression | "top" // Case 1 | "bottom" // Case 2 | "rotate" // Case 3 | "norotate" // Case 4 | "offset" ExpressionList // Case 5 | "font" Expression // Case 6 | "textcolor" ColorSpec // Case 7
Example ¶
fmt.Println(exampleAST(1375, "set timestamp ident_a"))
Output: &plot.SetTimestampSpecListItem{ · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1375.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1376, "set timestamp top"))
Output: &plot.SetTimestampSpecListItem{ · Case: 1, · Token: example1376.go:1:15: IDENTIFIER "top", }
Example (Case2) ¶
fmt.Println(exampleAST(1377, "set timestamp bottom"))
Output: &plot.SetTimestampSpecListItem{ · Case: 2, · Token: example1377.go:1:15: IDENTIFIER "bottom", }
Example (Case3) ¶
fmt.Println(exampleAST(1378, "set timestamp rotate"))
Output: &plot.SetTimestampSpecListItem{ · Case: 3, · Token: example1378.go:1:15: IDENTIFIER "rotate", }
Example (Case4) ¶
fmt.Println(exampleAST(1379, "set timestamp norotate"))
Output: &plot.SetTimestampSpecListItem{ · Case: 4, · Token: example1379.go:1:15: IDENTIFIER "norotate", }
Example (Case5) ¶
fmt.Println(exampleAST(1380, "set timestamp offset ident_a"))
Output: &plot.SetTimestampSpecListItem{ · Case: 5, · ExpressionList: &plot.ExpressionList{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1380.go:1:22: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1380.go:1:15: IDENTIFIER "offset", }
Example (Case6) ¶
fmt.Println(exampleAST(1381, "set timestamp font ident_a"))
Output: &plot.SetTimestampSpecListItem{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1381.go:1:20: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1381.go:1:15: IDENTIFIER "font", }
Example (Case7) ¶
fmt.Println(exampleAST(1382, "set timestamp textcolor ident_a"))
Output: &plot.SetTimestampSpecListItem{ · Case: 7, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1382.go:1:25: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1382.go:1:15: IDENTIFIER "textcolor", }
func (*SetTimestampSpecListItem) Pos ¶
func (n *SetTimestampSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTimestampSpecListItem) String ¶
func (n *SetTimestampSpecListItem) String() string
String implements fmt.Stringer.
type SetTimestampSpecListOpt ¶
type SetTimestampSpecListOpt struct {
SetTimestampSpecList *SetTimestampSpecList
}
SetTimestampSpecListOpt represents data reduced by productions:
SetTimestampSpecListOpt: /* empty */ | SetTimestampSpecList // Case 1
Example ¶
fmt.Println(exampleAST(1383, "set timestamp") == (*SetTimestampSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1384, "set timestamp ident_a"))
Output: &plot.SetTimestampSpecListOpt{ · SetTimestampSpecList: &plot.SetTimestampSpecList{ · · SetTimestampSpecListItem: &plot.SetTimestampSpecListItem{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example1384.go:1:15: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetTimestampSpecListOpt) Pos ¶
func (n *SetTimestampSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTimestampSpecListOpt) String ¶
func (n *SetTimestampSpecListOpt) String() string
String implements fmt.Stringer.
type SetTitleSpecList ¶
type SetTitleSpecList struct { Case int SetTitleSpecList *SetTitleSpecList SetTitleSpecListItem *SetTitleSpecListItem }
SetTitleSpecList represents data reduced by productions:
SetTitleSpecList: SetTitleSpecListItem | SetTitleSpecList SetTitleSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(1389, "set title enhanced"))
Output: &plot.SetTitleSpecList{ · SetTitleSpecListItem: &plot.SetTitleSpecListItem{ · · Case: 8, · · Token: example1389.go:1:11: IDENTIFIER "enhanced", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(1390, "set title enhanced enhanced"))
Output: &plot.SetTitleSpecList{ · SetTitleSpecList: &plot.SetTitleSpecList{ · · Case: 1, · · SetTitleSpecListItem: &plot.SetTitleSpecListItem{ · · · Case: 8, · · · Token: example1390.go:1:20: IDENTIFIER "enhanced", · · }, · }, · SetTitleSpecListItem: &plot.SetTitleSpecListItem{ · · Case: 8, · · Token: example1390.go:1:11: IDENTIFIER "enhanced", · }, }
func (*SetTitleSpecList) Pos ¶
func (n *SetTitleSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTitleSpecList) String ¶
func (n *SetTitleSpecList) String() string
String implements fmt.Stringer.
type SetTitleSpecListItem ¶
type SetTitleSpecListItem struct { Case int ColorSpec *ColorSpec Expression *Expression Position *Position Token xc.Token Token2 xc.Token }
SetTitleSpecListItem represents data reduced by productions:
SetTitleSpecListItem: "offset" Position | "font" Expression // Case 1 | "textcolor" ColorSpec // Case 2 | "textcolor" "lt" ColorSpec // Case 3 | "tc" ColorSpec // Case 4 | "tc" "lt" ColorSpec // Case 5 | "textcolor" "default" // Case 6 | "tc" "default" // Case 7 | "enhanced" // Case 8 | "noenhanced" // Case 9
Example ¶
fmt.Println(exampleAST(1391, "set title offset ident_a"))
Output: &plot.SetTitleSpecListItem{ · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1391.go:1:18: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1391.go:1:11: IDENTIFIER "offset", }
Example (Case01) ¶
fmt.Println(exampleAST(1392, "set title font ident_a"))
Output: &plot.SetTitleSpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1392.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example1392.go:1:11: IDENTIFIER "font", }
Example (Case02) ¶
fmt.Println(exampleAST(1393, "set title textcolor ident_a"))
Output: &plot.SetTitleSpecListItem{ · Case: 2, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1393.go:1:21: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1393.go:1:11: IDENTIFIER "textcolor", }
Example (Case03) ¶
fmt.Println(exampleAST(1394, "set title textcolor lt ident_a"))
Output: &plot.SetTitleSpecListItem{ · Case: 3, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1394.go:1:24: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1394.go:1:11: IDENTIFIER "textcolor", · Token2: example1394.go:1:21: IDENTIFIER "lt", }
Example (Case04) ¶
fmt.Println(exampleAST(1395, "set title tc ident_a"))
Output: &plot.SetTitleSpecListItem{ · Case: 4, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1395.go:1:14: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1395.go:1:11: IDENTIFIER "tc", }
Example (Case05) ¶
fmt.Println(exampleAST(1396, "set title tc lt ident_a"))
Output: &plot.SetTitleSpecListItem{ · Case: 5, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example1396.go:1:17: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example1396.go:1:11: IDENTIFIER "tc", · Token2: example1396.go:1:14: IDENTIFIER "lt", }
Example (Case06) ¶
fmt.Println(exampleAST(1397, "set title textcolor default"))
Output: &plot.SetTitleSpecListItem{ · Case: 6, · Token: example1397.go:1:11: IDENTIFIER "textcolor", · Token2: example1397.go:1:21: IDENTIFIER "default", }
Example (Case07) ¶
fmt.Println(exampleAST(1398, "set title tc default"))
Output: &plot.SetTitleSpecListItem{ · Case: 7, · Token: example1398.go:1:11: IDENTIFIER "tc", · Token2: example1398.go:1:14: IDENTIFIER "default", }
Example (Case08) ¶
fmt.Println(exampleAST(1399, "set title enhanced"))
Output: &plot.SetTitleSpecListItem{ · Case: 8, · Token: example1399.go:1:11: IDENTIFIER "enhanced", }
Example (Case09) ¶
fmt.Println(exampleAST(1400, "set title noenhanced"))
Output: &plot.SetTitleSpecListItem{ · Case: 9, · Token: example1400.go:1:11: IDENTIFIER "noenhanced", }
func (*SetTitleSpecListItem) Pos ¶
func (n *SetTitleSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTitleSpecListItem) String ¶
func (n *SetTitleSpecListItem) String() string
String implements fmt.Stringer.
type SetTitleSpecOpt ¶
type SetTitleSpecOpt struct { Case int Expression *Expression SetTitleSpecList *SetTitleSpecList }
SetTitleSpecOpt represents data reduced by productions:
SetTitleSpecOpt: /* empty */ | Expression // Case 1 | Expression SetTitleSpecList // Case 2 | SetTitleSpecList // Case 3
Example ¶
fmt.Println(exampleAST(1385, "set title") == (*SetTitleSpecOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(1386, "set title ident_a"))
Output: &plot.SetTitleSpecOpt{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1386.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case2) ¶
fmt.Println(exampleAST(1387, "set title ident_a enhanced"))
Output: &plot.SetTitleSpecOpt{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example1387.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SetTitleSpecList: &plot.SetTitleSpecList{ · · SetTitleSpecListItem: &plot.SetTitleSpecListItem{ · · · Case: 8, · · · Token: example1387.go:1:19: IDENTIFIER "enhanced", · · }, · }, }
Example (Case3) ¶
fmt.Println(exampleAST(1388, "set title enhanced"))
Output: &plot.SetTitleSpecOpt{ · Case: 3, · SetTitleSpecList: &plot.SetTitleSpecList{ · · SetTitleSpecListItem: &plot.SetTitleSpecListItem{ · · · Case: 8, · · · Token: example1388.go:1:11: IDENTIFIER "enhanced", · · }, · }, }
func (*SetTitleSpecOpt) Pos ¶
func (n *SetTitleSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetTitleSpecOpt) String ¶
func (n *SetTitleSpecOpt) String() string
String implements fmt.Stringer.
type SetViewSpec ¶
type SetViewSpec struct { Case int Expression *Expression ExpressionOptList *ExpressionOptList Token xc.Token Token2 xc.Token }
SetViewSpec represents data reduced by productions:
SetViewSpec: ExpressionOptList | "map" // Case 1 | "map" "scale" Expression // Case 2 | "equal" "xx" // Case 3 | "equal" "xy" // Case 4 | "equal" "xyz" // Case 5 | "noequal" "xx" // Case 6 | "noequal" "xy" // Case 7 | "noequal" "xyz" // Case 8
Example ¶
fmt.Println(exampleAST(2282, "set vi 1, 2, 3, 4"))
Output: &plot.SetViewSpec{ · ExpressionOptList: &plot.ExpressionOptList{ · · Case: 1, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 2, · · · · · · Token: example2282.go:1:8: NUM_LIT "1", · · · · · }, · · · · }, · · · }, · · }, · · ExpressionOptList: &plot.ExpressionOptList{ · · · Case: 3, · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 2, · · · · · · · Token: example2282.go:1:11: NUM_LIT "2", · · · · · · }, · · · · · }, · · · · }, · · · }, · · · ExpressionOptList: &plot.ExpressionOptList{ · · · · Case: 3, · · · · Expression: &plot.Expression{ · · · · · Case: 24, · · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · · Operand: &plot.Operand{ · · · · · · · · Case: 2, · · · · · · · · Token: example2282.go:1:14: NUM_LIT "3", · · · · · · · }, · · · · · · }, · · · · · }, · · · · }, · · · · ExpressionOptList: &plot.ExpressionOptList{ · · · · · Case: 3, · · · · · Expression: &plot.Expression{ · · · · · · Case: 24, · · · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · · · Operand: &plot.Operand{ · · · · · · · · · Case: 2, · · · · · · · · · Token: example2282.go:1:17: NUM_LIT "4", · · · · · · · · }, · · · · · · · }, · · · · · · }, · · · · · }, · · · · · Token: example2282.go:1:15: ',' ",", · · · · }, · · · · Token: example2282.go:1:12: ',' ",", · · · }, · · · Token: example2282.go:1:9: ',' ",", · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2283, "set vi map"))
Output: &plot.SetViewSpec{ · Case: 1, · Token: example2283.go:1:8: IDENTIFIER "map", }
Example (Case2) ¶
fmt.Println(exampleAST(2284, "set vi map scale ident_a"))
Output: &plot.SetViewSpec{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2284.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2284.go:1:8: IDENTIFIER "map", · Token2: example2284.go:1:12: IDENTIFIER "scale", }
Example (Case3) ¶
fmt.Println(exampleAST(2285, "set vi equal xx"))
Output: &plot.SetViewSpec{ · Case: 3, · Token: example2285.go:1:8: IDENTIFIER "equal", · Token2: example2285.go:1:14: IDENTIFIER "xx", }
Example (Case4) ¶
fmt.Println(exampleAST(2286, "set vi equal xy"))
Output: &plot.SetViewSpec{ · Case: 4, · Token: example2286.go:1:8: IDENTIFIER "equal", · Token2: example2286.go:1:14: IDENTIFIER "xy", }
Example (Case5) ¶
fmt.Println(exampleAST(2287, "set vi equal xyz"))
Output: &plot.SetViewSpec{ · Case: 5, · Token: example2287.go:1:8: IDENTIFIER "equal", · Token2: example2287.go:1:14: IDENTIFIER "xyz", }
Example (Case6) ¶
fmt.Println(exampleAST(2288, "set view noequal xx"))
Output: &plot.SetViewSpec{ · Case: 6, · Token: example2288.go:1:10: IDENTIFIER "noequal", · Token2: example2288.go:1:18: IDENTIFIER "xx", }
Example (Case7) ¶
fmt.Println(exampleAST(2289, "set view noequal xy"))
Output: &plot.SetViewSpec{ · Case: 7, · Token: example2289.go:1:10: IDENTIFIER "noequal", · Token2: example2289.go:1:18: IDENTIFIER "xy", }
Example (Case8) ¶
fmt.Println(exampleAST(2290, "set view noequal xyz"))
Output: &plot.SetViewSpec{ · Case: 8, · Token: example2290.go:1:10: IDENTIFIER "noequal", · Token2: example2290.go:1:18: IDENTIFIER "xyz", }
func (*SetViewSpec) Pos ¶
func (n *SetViewSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
type SetXLabelSpecList ¶
type SetXLabelSpecList struct { Case int SetXLabelSpecList *SetXLabelSpecList SetXLabelSpecListItem *SetXLabelSpecListItem }
SetXLabelSpecList represents data reduced by productions:
SetXLabelSpecList: SetXLabelSpecListItem | SetXLabelSpecList SetXLabelSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(2298, "set zlabel enhanced"))
Output: &plot.SetXLabelSpecList{ · SetXLabelSpecListItem: &plot.SetXLabelSpecListItem{ · · Case: 8, · · Token: example2298.go:1:12: IDENTIFIER "enhanced", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2299, "set zlabel enhanced enhanced"))
Output: &plot.SetXLabelSpecList{ · SetXLabelSpecList: &plot.SetXLabelSpecList{ · · Case: 1, · · SetXLabelSpecListItem: &plot.SetXLabelSpecListItem{ · · · Case: 8, · · · Token: example2299.go:1:21: IDENTIFIER "enhanced", · · }, · }, · SetXLabelSpecListItem: &plot.SetXLabelSpecListItem{ · · Case: 8, · · Token: example2299.go:1:12: IDENTIFIER "enhanced", · }, }
func (*SetXLabelSpecList) Pos ¶
func (n *SetXLabelSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetXLabelSpecList) String ¶
func (n *SetXLabelSpecList) String() string
String implements fmt.Stringer.
type SetXLabelSpecListItem ¶
type SetXLabelSpecListItem struct { Case int ColorSpec *ColorSpec Expression *Expression Position *Position Token xc.Token Token2 xc.Token }
SetXLabelSpecListItem represents data reduced by productions:
SetXLabelSpecListItem: "offset" Position | "font" Expression // Case 1 | "tc" ColorSpec // Case 2 | "tc" "lt" ColorSpec // Case 3 | "tc" // Case 4 | "textcolor" ColorSpec // Case 5 | "textcolor" "lt" ColorSpec // Case 6 | "textcolor" // Case 7 | "enhanced" // Case 8 | "noenhanced" // Case 9 | "rotate" // Case 10 | "rotate" "by" Expression // Case 11 | "rotate" "parallel" // Case 12 | "norotate" // Case 13
Example ¶
fmt.Println(exampleAST(2300, "set ylabel offset ident_a"))
Output: &plot.SetXLabelSpecListItem{ · Position: &plot.Position{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2300.go:1:19: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2300.go:1:12: IDENTIFIER "offset", }
Example (Case01) ¶
fmt.Println(exampleAST(2301, "set x2label font ident_a"))
Output: &plot.SetXLabelSpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2301.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2301.go:1:13: IDENTIFIER "font", }
Example (Case02) ¶
fmt.Println(exampleAST(2302, "set ylabel tc ident_a"))
Output: &plot.SetXLabelSpecListItem{ · Case: 2, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2302.go:1:15: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2302.go:1:12: IDENTIFIER "tc", }
Example (Case03) ¶
fmt.Println(exampleAST(2303, "set ylabel tc lt ident_a"))
Output: &plot.SetXLabelSpecListItem{ · Case: 3, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2303.go:1:18: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2303.go:1:12: IDENTIFIER "tc", · Token2: example2303.go:1:15: IDENTIFIER "lt", }
Example (Case04) ¶
fmt.Println(exampleAST(2304, "set ylabel tc"))
Output: &plot.SetXLabelSpecListItem{ · Case: 4, · Token: example2304.go:1:12: IDENTIFIER "tc", }
Example (Case05) ¶
fmt.Println(exampleAST(2305, "set ylabel textcolor ident_a"))
Output: &plot.SetXLabelSpecListItem{ · Case: 5, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2305.go:1:22: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2305.go:1:12: IDENTIFIER "textcolor", }
Example (Case06) ¶
fmt.Println(exampleAST(2306, "set ylabel textcolor lt ident_a"))
Output: &plot.SetXLabelSpecListItem{ · Case: 6, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2306.go:1:25: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2306.go:1:12: IDENTIFIER "textcolor", · Token2: example2306.go:1:22: IDENTIFIER "lt", }
Example (Case07) ¶
fmt.Println(exampleAST(2307, "set ylabel textcolor"))
Output: &plot.SetXLabelSpecListItem{ · Case: 7, · Token: example2307.go:1:12: IDENTIFIER "textcolor", }
Example (Case08) ¶
fmt.Println(exampleAST(2308, "set zlabel enhanced"))
Output: &plot.SetXLabelSpecListItem{ · Case: 8, · Token: example2308.go:1:12: IDENTIFIER "enhanced", }
Example (Case09) ¶
fmt.Println(exampleAST(2309, "set ylabel noenhanced"))
Output: &plot.SetXLabelSpecListItem{ · Case: 9, · Token: example2309.go:1:12: IDENTIFIER "noenhanced", }
Example (Case10) ¶
fmt.Println(exampleAST(2310, "set x2label rotate"))
Output: &plot.SetXLabelSpecListItem{ · Case: 10, · Token: example2310.go:1:13: IDENTIFIER "rotate", }
Example (Case11) ¶
fmt.Println(exampleAST(2311, "set x2label rotate by ident_a"))
Output: &plot.SetXLabelSpecListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2311.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2311.go:1:13: IDENTIFIER "rotate", · Token2: example2311.go:1:20: IDENTIFIER "by", }
Example (Case12) ¶
fmt.Println(exampleAST(2312, "set x2label rotate parallel"))
Output: &plot.SetXLabelSpecListItem{ · Case: 12, · Token: example2312.go:1:13: IDENTIFIER "rotate", · Token2: example2312.go:1:20: IDENTIFIER "parallel", }
Example (Case13) ¶
fmt.Println(exampleAST(2313, "set x2label norotate"))
Output: &plot.SetXLabelSpecListItem{ · Case: 13, · Token: example2313.go:1:13: IDENTIFIER "norotate", }
func (*SetXLabelSpecListItem) Pos ¶
func (n *SetXLabelSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetXLabelSpecListItem) String ¶
func (n *SetXLabelSpecListItem) String() string
String implements fmt.Stringer.
type SetXLabelSpecOpt ¶
type SetXLabelSpecOpt struct { Case int Expression *Expression SetXLabelSpecList *SetXLabelSpecList }
SetXLabelSpecOpt represents data reduced by productions:
SetXLabelSpecOpt: /* empty */ | Expression // Case 1 | Expression SetXLabelSpecList // Case 2 | SetXLabelSpecList // Case 3
Example ¶
fmt.Println(exampleAST(2294, "set cblabel") == (*SetXLabelSpecOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2295, "set x2label ident_a"))
Output: &plot.SetXLabelSpecOpt{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2295.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case2) ¶
fmt.Println(exampleAST(2296, "set x2label ident_a enhanced"))
Output: &plot.SetXLabelSpecOpt{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2296.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SetXLabelSpecList: &plot.SetXLabelSpecList{ · · SetXLabelSpecListItem: &plot.SetXLabelSpecListItem{ · · · Case: 8, · · · Token: example2296.go:1:21: IDENTIFIER "enhanced", · · }, · }, }
Example (Case3) ¶
fmt.Println(exampleAST(2297, "set zlabel enhanced"))
Output: &plot.SetXLabelSpecOpt{ · Case: 3, · SetXLabelSpecList: &plot.SetXLabelSpecList{ · · SetXLabelSpecListItem: &plot.SetXLabelSpecListItem{ · · · Case: 8, · · · Token: example2297.go:1:12: IDENTIFIER "enhanced", · · }, · }, }
func (*SetXLabelSpecOpt) Pos ¶
func (n *SetXLabelSpecOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetXLabelSpecOpt) String ¶
func (n *SetXLabelSpecOpt) String() string
String implements fmt.Stringer.
type SetXTicsSpecList ¶
type SetXTicsSpecList struct { Case int SetXTicsSpecList *SetXTicsSpecList SetXTicsSpecListItem *SetXTicsSpecListItem }
SetXTicsSpecList represents data reduced by productions:
SetXTicsSpecList: SetXTicsSpecListItem | SetXTicsSpecList SetXTicsSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(2237, "set tic ident_a"))
Output: &plot.SetXTicsSpecList{ · SetXTicsSpecListItem: &plot.SetXTicsSpecListItem{ · · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · · Case: 24, · · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · · Token: example2237.go:1:9: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2238, "set rtics ident_a ident_b"))
Output: &plot.SetXTicsSpecList{ · SetXTicsSpecList: &plot.SetXTicsSpecList{ · · Case: 1, · · SetXTicsSpecListItem: &plot.SetXTicsSpecListItem{ · · · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · · · Case: 24, · · · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · · · Token: example2238.go:1:19: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · SetXTicsSpecListItem: &plot.SetXTicsSpecListItem{ · · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · · Case: 24, · · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · · Token: example2238.go:1:11: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetXTicsSpecList) Pos ¶
func (n *SetXTicsSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetXTicsSpecList) String ¶
func (n *SetXTicsSpecList) String() string
String implements fmt.Stringer.
type SetXTicsSpecListItem ¶
type SetXTicsSpecListItem struct { Case int ColorSpec *ColorSpec Expression *Expression Expression2 *Expression NonParenthesizedExpression *NonParenthesizedExpression TicsLabelList *TicsLabelList Token xc.Token Token2 xc.Token Token3 xc.Token }
SetXTicsSpecListItem represents data reduced by productions:
SetXTicsSpecListItem: NonParenthesizedExpression | NonParenthesizedExpression ',' Expression // Case 1 | NonParenthesizedExpression ',' Expression ',' Expression // Case 2 | '(' TicsLabelList ')' // Case 3 | "axis" // Case 4 | "border" // Case 5 | "mirror" // Case 6 | "nomirror" // Case 7 | "in" // Case 8 | "out" // Case 9 | "scale" "default" // Case 10 | "scale" Expression // Case 11 | "scale" Expression ',' Expression // Case 12 | "rotate" // Case 13 | "rotate" "by" Expression // Case 14 | "norotate" // Case 15 | "norotate" "by" Expression // Case 16 | "offset" Expression // Case 17 | "offset" Expression ',' Expression // Case 18 | "nooffset" // Case 19 | "left" // Case 20 | "right" // Case 21 | "center" // Case 22 | "autojustify" // Case 23 | "add" // Case 24 | "add" '(' TicsLabelList ')' // Case 25 | "autofreq" // Case 26 | "format" Expression // Case 27 | "font" Expression // Case 28 | "enhanced" // Case 29 | "noenhanced" // Case 30 | "numeric" // Case 31 | "timedate" // Case 32 | "geographic" // Case 33 | "rangelimited" // Case 34 | "textcolor" // Case 35 | "tc" // Case 36 | "textcolor" ColorSpec // Case 37 | "tc" ColorSpec // Case 38 | "linetype" ColorSpec // Case 39 | "lt" ColorSpec // Case 40
Example ¶
fmt.Println(exampleAST(2239, "set rtics ident_a"))
Output: &plot.SetXTicsSpecListItem{ · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example2239.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case01) ¶
fmt.Println(exampleAST(2240, "set rtics ident_a , ident_b"))
Output: &plot.SetXTicsSpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2240.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example2240.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2240.go:1:19: ',' ",", }
Example (Case02) ¶
fmt.Println(exampleAST(2241, "set rtics ident_a , ident_b , ident_c"))
Output: &plot.SetXTicsSpecListItem{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2241.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2241.go:1:31: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · Case: 24, · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · Token: example2241.go:1:11: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2241.go:1:19: ',' ",", · Token2: example2241.go:1:29: ',' ",", }
Example (Case03) ¶
fmt.Println(exampleAST(2242, "set rtics ( ident_a )"))
Output: &plot.SetXTicsSpecListItem{ · Case: 3, · TicsLabelList: &plot.TicsLabelList{ · · TicsLabelListItem: &plot.TicsLabelListItem{ · · · NonStringExpression: &plot.NonStringExpression{ · · · · Case: 24, · · · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · · · Case: 1, · · · · · · · Token: example2242.go:1:13: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2242.go:1:11: '(' "(", · Token2: example2242.go:1:21: ')' ")", }
Example (Case04) ¶
fmt.Println(exampleAST(2243, "set rtics axis"))
Output: &plot.SetXTicsSpecListItem{ · Case: 4, · Token: example2243.go:1:11: IDENTIFIER "axis", }
Example (Case05) ¶
fmt.Println(exampleAST(2244, "set ytics border"))
Output: &plot.SetXTicsSpecListItem{ · Case: 5, · Token: example2244.go:1:11: IDENTIFIER "border", }
Example (Case06) ¶
fmt.Println(exampleAST(2245, "set ztics mirror"))
Output: &plot.SetXTicsSpecListItem{ · Case: 6, · Token: example2245.go:1:11: IDENTIFIER "mirror", }
Example (Case07) ¶
fmt.Println(exampleAST(2246, "set ytics nomirror"))
Output: &plot.SetXTicsSpecListItem{ · Case: 7, · Token: example2246.go:1:11: IDENTIFIER "nomirror", }
Example (Case08) ¶
fmt.Println(exampleAST(2247, "set ztics in"))
Output: &plot.SetXTicsSpecListItem{ · Case: 8, · Token: example2247.go:1:11: IDENTIFIER "in", }
Example (Case09) ¶
fmt.Println(exampleAST(2248, "set rtics out"))
Output: &plot.SetXTicsSpecListItem{ · Case: 9, · Token: example2248.go:1:11: IDENTIFIER "out", }
Example (Case10) ¶
fmt.Println(exampleAST(2249, "set tic scale default"))
Output: &plot.SetXTicsSpecListItem{ · Case: 10, · Token: example2249.go:1:9: IDENTIFIER "scale", · Token2: example2249.go:1:15: IDENTIFIER "default", }
Example (Case11) ¶
fmt.Println(exampleAST(2250, "set tic scale ident_a"))
Output: &plot.SetXTicsSpecListItem{ · Case: 11, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2250.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2250.go:1:9: IDENTIFIER "scale", }
Example (Case12) ¶
fmt.Println(exampleAST(2251, "set tic scale ident_a , ident_b"))
Output: &plot.SetXTicsSpecListItem{ · Case: 12, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2251.go:1:15: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2251.go:1:25: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2251.go:1:9: IDENTIFIER "scale", · Token2: example2251.go:1:23: ',' ",", }
Example (Case13) ¶
fmt.Println(exampleAST(2252, "set rtics rotate"))
Output: &plot.SetXTicsSpecListItem{ · Case: 13, · Token: example2252.go:1:11: IDENTIFIER "rotate", }
Example (Case14) ¶
fmt.Println(exampleAST(2253, "set rtics rotate by ident_a"))
Output: &plot.SetXTicsSpecListItem{ · Case: 14, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2253.go:1:21: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2253.go:1:11: IDENTIFIER "rotate", · Token2: example2253.go:1:18: IDENTIFIER "by", }
Example (Case15) ¶
fmt.Println(exampleAST(2254, "set ytics norotate"))
Output: &plot.SetXTicsSpecListItem{ · Case: 15, · Token: example2254.go:1:11: IDENTIFIER "norotate", }
Example (Case16) ¶
fmt.Println(exampleAST(2255, "set ytics norotate by ident_a"))
Output: &plot.SetXTicsSpecListItem{ · Case: 16, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2255.go:1:23: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2255.go:1:11: IDENTIFIER "norotate", · Token2: example2255.go:1:20: IDENTIFIER "by", }
Example (Case17) ¶
fmt.Println(exampleAST(2256, "set rtics offset ident_a"))
Output: &plot.SetXTicsSpecListItem{ · Case: 17, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2256.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2256.go:1:11: IDENTIFIER "offset", }
Example (Case18) ¶
fmt.Println(exampleAST(2257, "set rtics offset ident_a , ident_b"))
Output: &plot.SetXTicsSpecListItem{ · Case: 18, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2257.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2257.go:1:28: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2257.go:1:11: IDENTIFIER "offset", · Token2: example2257.go:1:26: ',' ",", }
Example (Case19) ¶
fmt.Println(exampleAST(2258, "set rtics nooffset"))
Output: &plot.SetXTicsSpecListItem{ · Case: 19, · Token: example2258.go:1:11: IDENTIFIER "nooffset", }
Example (Case20) ¶
fmt.Println(exampleAST(2259, "set ytics left"))
Output: &plot.SetXTicsSpecListItem{ · Case: 20, · Token: example2259.go:1:11: IDENTIFIER "left", }
Example (Case21) ¶
fmt.Println(exampleAST(2260, "set ytics right"))
Output: &plot.SetXTicsSpecListItem{ · Case: 21, · Token: example2260.go:1:11: IDENTIFIER "right", }
Example (Case22) ¶
fmt.Println(exampleAST(2261, "set ytics center"))
Output: &plot.SetXTicsSpecListItem{ · Case: 22, · Token: example2261.go:1:11: IDENTIFIER "center", }
Example (Case23) ¶
fmt.Println(exampleAST(2262, "set rtics autojustify"))
Output: &plot.SetXTicsSpecListItem{ · Case: 23, · Token: example2262.go:1:11: IDENTIFIER "autojustify", }
Example (Case24) ¶
fmt.Println(exampleAST(2263, "set ytics add"))
Output: &plot.SetXTicsSpecListItem{ · Case: 24, · Token: example2263.go:1:11: IDENTIFIER "add", }
Example (Case25) ¶
fmt.Println(exampleAST(2264, "set ytics add ( ident_a )"))
Output: &plot.SetXTicsSpecListItem{ · Case: 25, · TicsLabelList: &plot.TicsLabelList{ · · TicsLabelListItem: &plot.TicsLabelListItem{ · · · NonStringExpression: &plot.NonStringExpression{ · · · · Case: 24, · · · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · · · Case: 1, · · · · · · · Token: example2264.go:1:17: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2264.go:1:11: IDENTIFIER "add", · Token2: example2264.go:1:15: '(' "(", · Token3: example2264.go:1:25: ')' ")", }
Example (Case26) ¶
fmt.Println(exampleAST(2265, "set rtics autofreq"))
Output: &plot.SetXTicsSpecListItem{ · Case: 26, · Token: example2265.go:1:11: IDENTIFIER "autofreq", }
Example (Case27) ¶
fmt.Println(exampleAST(2266, "set rtics format ident_a"))
Output: &plot.SetXTicsSpecListItem{ · Case: 27, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2266.go:1:18: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2266.go:1:11: IDENTIFIER "format", }
Example (Case28) ¶
fmt.Println(exampleAST(2267, "set rtics font ident_a"))
Output: &plot.SetXTicsSpecListItem{ · Case: 28, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2267.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2267.go:1:11: IDENTIFIER "font", }
Example (Case29) ¶
fmt.Println(exampleAST(2268, "set ytics enhanced"))
Output: &plot.SetXTicsSpecListItem{ · Case: 29, · Token: example2268.go:1:11: IDENTIFIER "enhanced", }
Example (Case30) ¶
fmt.Println(exampleAST(2269, "set ytics noenhanced"))
Output: &plot.SetXTicsSpecListItem{ · Case: 30, · Token: example2269.go:1:11: IDENTIFIER "noenhanced", }
Example (Case31) ¶
fmt.Println(exampleAST(2270, "set rtics numeric"))
Output: &plot.SetXTicsSpecListItem{ · Case: 31, · Token: example2270.go:1:11: IDENTIFIER "numeric", }
Example (Case32) ¶
fmt.Println(exampleAST(2271, "set rtics timedate"))
Output: &plot.SetXTicsSpecListItem{ · Case: 32, · Token: example2271.go:1:11: IDENTIFIER "timedate", }
Example (Case33) ¶
fmt.Println(exampleAST(2272, "set rtics geographic"))
Output: &plot.SetXTicsSpecListItem{ · Case: 33, · Token: example2272.go:1:11: IDENTIFIER "geographic", }
Example (Case34) ¶
fmt.Println(exampleAST(2273, "set ytics rangelimited"))
Output: &plot.SetXTicsSpecListItem{ · Case: 34, · Token: example2273.go:1:11: IDENTIFIER "rangelimited", }
Example (Case35) ¶
fmt.Println(exampleAST(2274, "set rtics textcolor"))
Output: &plot.SetXTicsSpecListItem{ · Case: 35, · Token: example2274.go:1:11: IDENTIFIER "textcolor", }
Example (Case36) ¶
fmt.Println(exampleAST(2275, "set rtics tc"))
Output: &plot.SetXTicsSpecListItem{ · Case: 36, · Token: example2275.go:1:11: IDENTIFIER "tc", }
Example (Case37) ¶
fmt.Println(exampleAST(2276, "set rtics textcolor ident_a"))
Output: &plot.SetXTicsSpecListItem{ · Case: 37, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2276.go:1:21: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2276.go:1:11: IDENTIFIER "textcolor", }
Example (Case38) ¶
fmt.Println(exampleAST(2277, "set rtics tc ident_a"))
Output: &plot.SetXTicsSpecListItem{ · Case: 38, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2277.go:1:14: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2277.go:1:11: IDENTIFIER "tc", }
Example (Case39) ¶
fmt.Println(exampleAST(2278, "set ytics linetype ident_a"))
Output: &plot.SetXTicsSpecListItem{ · Case: 39, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2278.go:1:20: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2278.go:1:11: IDENTIFIER "linetype", }
Example (Case40) ¶
fmt.Println(exampleAST(2279, "set ytics lt ident_a"))
Output: &plot.SetXTicsSpecListItem{ · Case: 40, · ColorSpec: &plot.ColorSpec{ · · Case: 17, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2279.go:1:14: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2279.go:1:11: IDENTIFIER "lt", }
func (*SetXTicsSpecListItem) Pos ¶
func (n *SetXTicsSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetXTicsSpecListItem) String ¶
func (n *SetXTicsSpecListItem) String() string
String implements fmt.Stringer.
type SetXTicsSpecListOpt ¶
type SetXTicsSpecListOpt struct {
SetXTicsSpecList *SetXTicsSpecList
}
SetXTicsSpecListOpt represents data reduced by productions:
SetXTicsSpecListOpt: /* empty */ | SetXTicsSpecList // Case 1
Example ¶
fmt.Println(exampleAST(2280, "set cbtics") == (*SetXTicsSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2281, "set rtics ident_a"))
Output: &plot.SetXTicsSpecListOpt{ · SetXTicsSpecList: &plot.SetXTicsSpecList{ · · SetXTicsSpecListItem: &plot.SetXTicsSpecListItem{ · · · NonParenthesizedExpression: &plot.NonParenthesizedExpression{ · · · · Case: 24, · · · · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · · · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · · · · Token: example2281.go:1:11: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SetXTicsSpecListOpt) Pos ¶
func (n *SetXTicsSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetXTicsSpecListOpt) String ¶
func (n *SetXTicsSpecListOpt) String() string
String implements fmt.Stringer.
type SetXyplaneSpec ¶
type SetXyplaneSpec struct { Case int Expression *Expression Token xc.Token }
SetXyplaneSpec represents data reduced by productions:
SetXyplaneSpec: "at" Expression | "relative" Expression // Case 1 | Expression // Case 2
Example ¶
fmt.Println(exampleAST(2291, "set xyplane at ident_a"))
Output: &plot.SetXyplaneSpec{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2291.go:1:16: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2291.go:1:13: IDENTIFIER "at", }
Example (Case1) ¶
fmt.Println(exampleAST(2292, "set xyplane relative ident_a"))
Output: &plot.SetXyplaneSpec{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2292.go:1:22: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2292.go:1:13: IDENTIFIER "relative", }
Example (Case2) ¶
fmt.Println(exampleAST(2293, "set xyplane ident_a"))
Output: &plot.SetXyplaneSpec{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2293.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
func (*SetXyplaneSpec) Pos ¶
func (n *SetXyplaneSpec) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetXyplaneSpec) String ¶
func (n *SetXyplaneSpec) String() string
String implements fmt.Stringer.
type SetZeroaxisSpecList ¶
type SetZeroaxisSpecList struct { Case int LineStyleListItem *LineStyleListItem SetZeroaxisSpecList *SetZeroaxisSpecList }
SetZeroaxisSpecList represents data reduced by productions:
SetZeroaxisSpecList: LineStyleListItem | SetZeroaxisSpecList LineStyleListItem // Case 1
Example ¶
fmt.Println(exampleAST(2314, "set yzeroaxis nocontours"))
Output: &plot.SetZeroaxisSpecList{ · LineStyleListItem: &plot.LineStyleListItem{ · · Case: 15, · · Token: example2314.go:1:15: IDENTIFIER "nocontours", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2315, "set zzeroaxis nocontours nocontours"))
Output: &plot.SetZeroaxisSpecList{ · LineStyleListItem: &plot.LineStyleListItem{ · · Case: 15, · · Token: example2315.go:1:15: IDENTIFIER "nocontours", · }, · SetZeroaxisSpecList: &plot.SetZeroaxisSpecList{ · · Case: 1, · · LineStyleListItem: &plot.LineStyleListItem{ · · · Case: 15, · · · Token: example2315.go:1:26: IDENTIFIER "nocontours", · · }, · }, }
func (*SetZeroaxisSpecList) Pos ¶
func (n *SetZeroaxisSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetZeroaxisSpecList) String ¶
func (n *SetZeroaxisSpecList) String() string
String implements fmt.Stringer.
type SetZeroaxisSpecListOpt ¶
type SetZeroaxisSpecListOpt struct {
SetZeroaxisSpecList *SetZeroaxisSpecList
}
SetZeroaxisSpecListOpt represents data reduced by productions:
SetZeroaxisSpecListOpt: /* empty */ | SetZeroaxisSpecList // Case 1
Example ¶
fmt.Println(exampleAST(2316, "set x2zeroaxis") == (*SetZeroaxisSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2317, "set zzeroaxis nocontours"))
Output: &plot.SetZeroaxisSpecListOpt{ · SetZeroaxisSpecList: &plot.SetZeroaxisSpecList{ · · LineStyleListItem: &plot.LineStyleListItem{ · · · Case: 15, · · · Token: example2317.go:1:15: IDENTIFIER "nocontours", · · }, · }, }
func (*SetZeroaxisSpecListOpt) Pos ¶
func (n *SetZeroaxisSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SetZeroaxisSpecListOpt) String ¶
func (n *SetZeroaxisSpecListOpt) String() string
String implements fmt.Stringer.
type Show ¶
Show represents data reduced by production:
Show: "show" ShowSpec
Example ¶
fmt.Println(exampleAST(2318, "show angles"))
Output: &plot.Show{ · ShowSpec: &plot.ShowSpec{ · · Token: example2318.go:1:6: IDENTIFIER "angles", · }, · Token: example2318.go:1:1: IDENTIFIER "show", }
type ShowDatafileSpecList ¶
type ShowDatafileSpecList struct { Case int ShowDatafileSpecList *ShowDatafileSpecList ShowDatafileSpecListItem *ShowDatafileSpecListItem }
ShowDatafileSpecList represents data reduced by productions:
ShowDatafileSpecList: ShowDatafileSpecListItem | ShowDatafileSpecList ShowDatafileSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(2466, "show datafile binary"))
Output: &plot.ShowDatafileSpecList{ · ShowDatafileSpecListItem: &plot.ShowDatafileSpecListItem{ · · Case: 3, · · Token: example2466.go:1:15: IDENTIFIER "binary", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2467, "show datafile binary binary"))
Output: &plot.ShowDatafileSpecList{ · ShowDatafileSpecList: &plot.ShowDatafileSpecList{ · · Case: 1, · · ShowDatafileSpecListItem: &plot.ShowDatafileSpecListItem{ · · · Case: 3, · · · Token: example2467.go:1:22: IDENTIFIER "binary", · · }, · }, · ShowDatafileSpecListItem: &plot.ShowDatafileSpecListItem{ · · Case: 3, · · Token: example2467.go:1:15: IDENTIFIER "binary", · }, }
func (*ShowDatafileSpecList) Pos ¶
func (n *ShowDatafileSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*ShowDatafileSpecList) String ¶
func (n *ShowDatafileSpecList) String() string
String implements fmt.Stringer.
type ShowDatafileSpecListItem ¶
ShowDatafileSpecListItem represents data reduced by productions:
ShowDatafileSpecListItem: "missing" | "separator" // Case 1 | "commentschars" // Case 2 | "binary" // Case 3 | "datasizes" // Case 4 | "filetypes" // Case 5
Example ¶
fmt.Println(exampleAST(2468, "show datafile missing"))
Output: &plot.ShowDatafileSpecListItem{ · Token: example2468.go:1:15: IDENTIFIER "missing", }
Example (Case1) ¶
fmt.Println(exampleAST(2469, "show datafile separator"))
Output: &plot.ShowDatafileSpecListItem{ · Case: 1, · Token: example2469.go:1:15: IDENTIFIER "separator", }
Example (Case2) ¶
fmt.Println(exampleAST(2470, "show datafile commentschars"))
Output: &plot.ShowDatafileSpecListItem{ · Case: 2, · Token: example2470.go:1:15: IDENTIFIER "commentschars", }
Example (Case3) ¶
fmt.Println(exampleAST(2471, "show datafile binary"))
Output: &plot.ShowDatafileSpecListItem{ · Case: 3, · Token: example2471.go:1:15: IDENTIFIER "binary", }
Example (Case4) ¶
fmt.Println(exampleAST(2472, "show datafile datasizes"))
Output: &plot.ShowDatafileSpecListItem{ · Case: 4, · Token: example2472.go:1:15: IDENTIFIER "datasizes", }
Example (Case5) ¶
fmt.Println(exampleAST(2473, "show datafile filetypes"))
Output: &plot.ShowDatafileSpecListItem{ · Case: 5, · Token: example2473.go:1:15: IDENTIFIER "filetypes", }
func (*ShowDatafileSpecListItem) Pos ¶
func (n *ShowDatafileSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*ShowDatafileSpecListItem) String ¶
func (n *ShowDatafileSpecListItem) String() string
String implements fmt.Stringer.
type ShowDatafileSpecListOpt ¶
type ShowDatafileSpecListOpt struct {
ShowDatafileSpecList *ShowDatafileSpecList
}
ShowDatafileSpecListOpt represents data reduced by productions:
ShowDatafileSpecListOpt: /* empty */ | ShowDatafileSpecList // Case 1
Example ¶
fmt.Println(exampleAST(2474, "show datafile") == (*ShowDatafileSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2475, "show datafile binary"))
Output: &plot.ShowDatafileSpecListOpt{ · ShowDatafileSpecList: &plot.ShowDatafileSpecList{ · · ShowDatafileSpecListItem: &plot.ShowDatafileSpecListItem{ · · · Case: 3, · · · Token: example2475.go:1:15: IDENTIFIER "binary", · · }, · }, }
func (*ShowDatafileSpecListOpt) Pos ¶
func (n *ShowDatafileSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*ShowDatafileSpecListOpt) String ¶
func (n *ShowDatafileSpecListOpt) String() string
String implements fmt.Stringer.
type ShowSpec ¶
type ShowSpec struct { Case int ExpressionOpt *ExpressionOpt ShowDatafileSpecListOpt *ShowDatafileSpecListOpt Token xc.Token Token2 xc.Token }
ShowSpec represents data reduced by productions:
ShowSpec: "angles" | "arrow" ExpressionOpt // Case 1 | "auto" // Case 2 | "autoscale" // Case 3 | "bars" // Case 4 | "bind" // Case 5 | "bmargin" // Case 6 | "border" // Case 7 | "boxwidth" // Case 8 | "cbdata" // Case 9 | "cbdtics" // Case 10 | "cblabel" // Case 11 | "cbmtics" // Case 12 | "cbrange" // Case 13 | "cbtics" // Case 14 | "clabel" // Case 15 | "clip" // Case 16 | "cntrlabel" // Case 17 | "cntrp" // Case 18 | "cntrparam" // Case 19 | "color" // Case 20 | "colorbox" // Case 21 | "colornames" // Case 22 | "colorsequence" // Case 23 | "contour" // Case 24 | "dashtype" // Case 25 | "datafile" ShowDatafileSpecListOpt // Case 26 | "decimalsign" // Case 27 | "dgrid3d" // Case 28 | "dummy" // Case 29 | "encoding" // Case 30 | "fit" // Case 31 | "fontpath" // Case 32 | "format" // Case 33 | "grid" // Case 34 | "hidden3d" // Case 35 | "history" // Case 36 | "iso" // Case 37 | "isosamples" // Case 38 | "key" // Case 39 | "label" ExpressionOpt // Case 40 | "linetype" // Case 41 | "link" // Case 42 | "lmargin" // Case 43 | "loadpath" // Case 44 | "locale" // Case 45 | "log" // Case 46 | "logscale" // Case 47 | "mapping" // Case 48 | "margins" // Case 49 | "monochrome" // Case 50 | "mouse" // Case 51 | "mcbtics" // Case 52 | "multiplot" // Case 53 | "mx2tics" // Case 54 | "mxtics" // Case 55 | "my2tics" // Case 56 | "mytics" // Case 57 | "mztics" // Case 58 | "object" // Case 59 | "offsets" // Case 60 | "origin" // Case 61 | "output" // Case 62 | "palette" // Case 63 | "parametric" // Case 64 | "paxis" // Case 65 | "pm3d" // Case 66 | "pointintervalbox" // Case 67 | "pointsize" // Case 68 | "polar" // Case 69 | "print" // Case 70 | "psdir" // Case 71 | "raxis" // Case 72 | "rmargin" // Case 73 | "rrange" // Case 74 | "rtics" // Case 75 | "sam" // Case 76 | "sample" // Case 77 | "samples" // Case 78 | "size" // Case 79 | "style" "arrow" // Case 80 | "style" "boxplot" // Case 81 | "style" "circle" // Case 82 | "style" "ellipse" // Case 83 | "style" "fill" // Case 84 | "style" "histogram" // Case 85 | "style" "line" // Case 86 | "style" "rectangle" // Case 87 | "style" "textbox" // Case 88 | "surface" // Case 89 | "table" // Case 90 | "terminal" // Case 91 | "termoption" // Case 92 | "tics" // Case 93 | "ticslevel" // Case 94 | "time" // Case 95 | "timefmt" // Case 96 | "timestamp" // Case 97 | "title" // Case 98 | "tmargin" // Case 99 | "trange" // Case 100 | "urange" // Case 101 | "var" // Case 102 | "variable" IDENTIFIER // Case 103 | "variables" // Case 104 | "variables" "all" // Case 105 | "variables" IDENTIFIER // Case 106 | "vi" // Case 107 | "view" // Case 108 | "vrange" // Case 109 | "x2data" // Case 110 | "x2label" // Case 111 | "x2mtics" // Case 112 | "x2range" // Case 113 | "x2tics" // Case 114 | "x2zeroaxis" // Case 115 | "xdata" // Case 116 | "x2dtics" // Case 117 | "xdtics" // Case 118 | "xlabel" // Case 119 | "xmtics" // Case 120 | "xrange" // Case 121 | "xtics" // Case 122 | "xyplane" // Case 123 | "xzeroaxis" // Case 124 | "y2data" // Case 125 | "y2mtics" // Case 126 | "y2range" // Case 127 | "y2tics" // Case 128 | "y2zeroaxis" // Case 129 | "ydata" // Case 130 | "y2dtics" // Case 131 | "ydtics" // Case 132 | "ylabel" // Case 133 | "ymtics" // Case 134 | "yrange" // Case 135 | "ytics" // Case 136 | "yzeroaxis" // Case 137 | "zdata" // Case 138 | "zdtics" // Case 139 | "zero" // Case 140 | "zeroaxis" // Case 141 | "zlabel" // Case 142 | "zmtics" // Case 143 | "zrange" // Case 144 | "ztics" // Case 145 | "zzeroaxis" // Case 146
Example ¶
fmt.Println(exampleAST(2319, "show angles"))
Output: &plot.ShowSpec{ · Token: example2319.go:1:6: IDENTIFIER "angles", }
Example (Case001) ¶
fmt.Println(exampleAST(2320, "show arrow"))
Output: &plot.ShowSpec{ · Case: 1, · Token: example2320.go:1:6: IDENTIFIER "arrow", }
Example (Case002) ¶
fmt.Println(exampleAST(2321, "show auto"))
Output: &plot.ShowSpec{ · Case: 2, · Token: example2321.go:1:6: IDENTIFIER "auto", }
Example (Case003) ¶
fmt.Println(exampleAST(2322, "show autoscale"))
Output: &plot.ShowSpec{ · Case: 3, · Token: example2322.go:1:6: IDENTIFIER "autoscale", }
Example (Case004) ¶
fmt.Println(exampleAST(2323, "show bars"))
Output: &plot.ShowSpec{ · Case: 4, · Token: example2323.go:1:6: IDENTIFIER "bars", }
Example (Case005) ¶
fmt.Println(exampleAST(2324, "show bind"))
Output: &plot.ShowSpec{ · Case: 5, · Token: example2324.go:1:6: IDENTIFIER "bind", }
Example (Case006) ¶
fmt.Println(exampleAST(2325, "show bmargin"))
Output: &plot.ShowSpec{ · Case: 6, · Token: example2325.go:1:6: IDENTIFIER "bmargin", }
Example (Case007) ¶
fmt.Println(exampleAST(2326, "show border"))
Output: &plot.ShowSpec{ · Case: 7, · Token: example2326.go:1:6: IDENTIFIER "border", }
Example (Case008) ¶
fmt.Println(exampleAST(2327, "show boxwidth"))
Output: &plot.ShowSpec{ · Case: 8, · Token: example2327.go:1:6: IDENTIFIER "boxwidth", }
Example (Case009) ¶
fmt.Println(exampleAST(2328, "show cbdata"))
Output: &plot.ShowSpec{ · Case: 9, · Token: example2328.go:1:6: IDENTIFIER "cbdata", }
Example (Case010) ¶
fmt.Println(exampleAST(2329, "show cbdtics"))
Output: &plot.ShowSpec{ · Case: 10, · Token: example2329.go:1:6: IDENTIFIER "cbdtics", }
Example (Case011) ¶
fmt.Println(exampleAST(2330, "show cblabel"))
Output: &plot.ShowSpec{ · Case: 11, · Token: example2330.go:1:6: IDENTIFIER "cblabel", }
Example (Case012) ¶
fmt.Println(exampleAST(2331, "show cbmtics"))
Output: &plot.ShowSpec{ · Case: 12, · Token: example2331.go:1:6: IDENTIFIER "cbmtics", }
Example (Case013) ¶
fmt.Println(exampleAST(2332, "show cbrange"))
Output: &plot.ShowSpec{ · Case: 13, · Token: example2332.go:1:6: IDENTIFIER "cbrange", }
Example (Case014) ¶
fmt.Println(exampleAST(2333, "show cbtics"))
Output: &plot.ShowSpec{ · Case: 14, · Token: example2333.go:1:6: IDENTIFIER "cbtics", }
Example (Case015) ¶
fmt.Println(exampleAST(2334, "show clabel"))
Output: &plot.ShowSpec{ · Case: 15, · Token: example2334.go:1:6: IDENTIFIER "clabel", }
Example (Case016) ¶
fmt.Println(exampleAST(2335, "show clip"))
Output: &plot.ShowSpec{ · Case: 16, · Token: example2335.go:1:6: IDENTIFIER "clip", }
Example (Case017) ¶
fmt.Println(exampleAST(2336, "show cntrlabel"))
Output: &plot.ShowSpec{ · Case: 17, · Token: example2336.go:1:6: IDENTIFIER "cntrlabel", }
Example (Case018) ¶
fmt.Println(exampleAST(2337, "show cntrp"))
Output: &plot.ShowSpec{ · Case: 18, · Token: example2337.go:1:6: IDENTIFIER "cntrp", }
Example (Case019) ¶
fmt.Println(exampleAST(2338, "show cntrparam"))
Output: &plot.ShowSpec{ · Case: 19, · Token: example2338.go:1:6: IDENTIFIER "cntrparam", }
Example (Case020) ¶
fmt.Println(exampleAST(2339, "show color"))
Output: &plot.ShowSpec{ · Case: 20, · Token: example2339.go:1:6: IDENTIFIER "color", }
Example (Case021) ¶
fmt.Println(exampleAST(2340, "show colorbox"))
Output: &plot.ShowSpec{ · Case: 21, · Token: example2340.go:1:6: IDENTIFIER "colorbox", }
Example (Case022) ¶
fmt.Println(exampleAST(2341, "show colornames"))
Output: &plot.ShowSpec{ · Case: 22, · Token: example2341.go:1:6: IDENTIFIER "colornames", }
Example (Case023) ¶
fmt.Println(exampleAST(2342, "show colorsequence"))
Output: &plot.ShowSpec{ · Case: 23, · Token: example2342.go:1:6: IDENTIFIER "colorsequence", }
Example (Case024) ¶
fmt.Println(exampleAST(2343, "show contour"))
Output: &plot.ShowSpec{ · Case: 24, · Token: example2343.go:1:6: IDENTIFIER "contour", }
Example (Case025) ¶
fmt.Println(exampleAST(2344, "show dashtype"))
Output: &plot.ShowSpec{ · Case: 25, · Token: example2344.go:1:6: IDENTIFIER "dashtype", }
Example (Case026) ¶
fmt.Println(exampleAST(2345, "show datafile"))
Output: &plot.ShowSpec{ · Case: 26, · Token: example2345.go:1:6: IDENTIFIER "datafile", }
Example (Case027) ¶
fmt.Println(exampleAST(2346, "show decimalsign"))
Output: &plot.ShowSpec{ · Case: 27, · Token: example2346.go:1:6: IDENTIFIER "decimalsign", }
Example (Case028) ¶
fmt.Println(exampleAST(2347, "show dgrid3d"))
Output: &plot.ShowSpec{ · Case: 28, · Token: example2347.go:1:6: IDENTIFIER "dgrid3d", }
Example (Case029) ¶
fmt.Println(exampleAST(2348, "show dummy"))
Output: &plot.ShowSpec{ · Case: 29, · Token: example2348.go:1:6: IDENTIFIER "dummy", }
Example (Case030) ¶
fmt.Println(exampleAST(2349, "show encoding"))
Output: &plot.ShowSpec{ · Case: 30, · Token: example2349.go:1:6: IDENTIFIER "encoding", }
Example (Case031) ¶
fmt.Println(exampleAST(2350, "show fit"))
Output: &plot.ShowSpec{ · Case: 31, · Token: example2350.go:1:6: IDENTIFIER "fit", }
Example (Case032) ¶
fmt.Println(exampleAST(2351, "show fontpath"))
Output: &plot.ShowSpec{ · Case: 32, · Token: example2351.go:1:6: IDENTIFIER "fontpath", }
Example (Case033) ¶
fmt.Println(exampleAST(2352, "show format"))
Output: &plot.ShowSpec{ · Case: 33, · Token: example2352.go:1:6: IDENTIFIER "format", }
Example (Case034) ¶
fmt.Println(exampleAST(2353, "show grid"))
Output: &plot.ShowSpec{ · Case: 34, · Token: example2353.go:1:6: IDENTIFIER "grid", }
Example (Case035) ¶
fmt.Println(exampleAST(2354, "show hidden3d"))
Output: &plot.ShowSpec{ · Case: 35, · Token: example2354.go:1:6: IDENTIFIER "hidden3d", }
Example (Case036) ¶
fmt.Println(exampleAST(2355, "show history"))
Output: &plot.ShowSpec{ · Case: 36, · Token: example2355.go:1:6: IDENTIFIER "history", }
Example (Case037) ¶
fmt.Println(exampleAST(2356, "show iso"))
Output: &plot.ShowSpec{ · Case: 37, · Token: example2356.go:1:6: IDENTIFIER "iso", }
Example (Case038) ¶
fmt.Println(exampleAST(2357, "show isosamples"))
Output: &plot.ShowSpec{ · Case: 38, · Token: example2357.go:1:6: IDENTIFIER "isosamples", }
Example (Case039) ¶
fmt.Println(exampleAST(2358, "show key"))
Output: &plot.ShowSpec{ · Case: 39, · Token: example2358.go:1:6: IDENTIFIER "key", }
Example (Case040) ¶
fmt.Println(exampleAST(2359, "show label"))
Output: &plot.ShowSpec{ · Case: 40, · Token: example2359.go:1:6: IDENTIFIER "label", }
Example (Case041) ¶
fmt.Println(exampleAST(2360, "show linetype"))
Output: &plot.ShowSpec{ · Case: 41, · Token: example2360.go:1:6: IDENTIFIER "linetype", }
Example (Case042) ¶
fmt.Println(exampleAST(2361, "show link"))
Output: &plot.ShowSpec{ · Case: 42, · Token: example2361.go:1:6: IDENTIFIER "link", }
Example (Case043) ¶
fmt.Println(exampleAST(2362, "show lmargin"))
Output: &plot.ShowSpec{ · Case: 43, · Token: example2362.go:1:6: IDENTIFIER "lmargin", }
Example (Case044) ¶
fmt.Println(exampleAST(2363, "show loadpath"))
Output: &plot.ShowSpec{ · Case: 44, · Token: example2363.go:1:6: IDENTIFIER "loadpath", }
Example (Case045) ¶
fmt.Println(exampleAST(2364, "show locale"))
Output: &plot.ShowSpec{ · Case: 45, · Token: example2364.go:1:6: IDENTIFIER "locale", }
Example (Case046) ¶
fmt.Println(exampleAST(2365, "show log"))
Output: &plot.ShowSpec{ · Case: 46, · Token: example2365.go:1:6: IDENTIFIER "log", }
Example (Case047) ¶
fmt.Println(exampleAST(2366, "show logscale"))
Output: &plot.ShowSpec{ · Case: 47, · Token: example2366.go:1:6: IDENTIFIER "logscale", }
Example (Case048) ¶
fmt.Println(exampleAST(2367, "show mapping"))
Output: &plot.ShowSpec{ · Case: 48, · Token: example2367.go:1:6: IDENTIFIER "mapping", }
Example (Case049) ¶
fmt.Println(exampleAST(2368, "show margins"))
Output: &plot.ShowSpec{ · Case: 49, · Token: example2368.go:1:6: IDENTIFIER "margins", }
Example (Case050) ¶
fmt.Println(exampleAST(2369, "show monochrome"))
Output: &plot.ShowSpec{ · Case: 50, · Token: example2369.go:1:6: IDENTIFIER "monochrome", }
Example (Case051) ¶
fmt.Println(exampleAST(2370, "show mouse"))
Output: &plot.ShowSpec{ · Case: 51, · Token: example2370.go:1:6: IDENTIFIER "mouse", }
Example (Case052) ¶
fmt.Println(exampleAST(2371, "show mcbtics"))
Output: &plot.ShowSpec{ · Case: 52, · Token: example2371.go:1:6: IDENTIFIER "mcbtics", }
Example (Case053) ¶
fmt.Println(exampleAST(2372, "show multiplot"))
Output: &plot.ShowSpec{ · Case: 53, · Token: example2372.go:1:6: IDENTIFIER "multiplot", }
Example (Case054) ¶
fmt.Println(exampleAST(2373, "show mx2tics"))
Output: &plot.ShowSpec{ · Case: 54, · Token: example2373.go:1:6: IDENTIFIER "mx2tics", }
Example (Case055) ¶
fmt.Println(exampleAST(2374, "show mxtics"))
Output: &plot.ShowSpec{ · Case: 55, · Token: example2374.go:1:6: IDENTIFIER "mxtics", }
Example (Case056) ¶
fmt.Println(exampleAST(2375, "show my2tics"))
Output: &plot.ShowSpec{ · Case: 56, · Token: example2375.go:1:6: IDENTIFIER "my2tics", }
Example (Case057) ¶
fmt.Println(exampleAST(2376, "show mytics"))
Output: &plot.ShowSpec{ · Case: 57, · Token: example2376.go:1:6: IDENTIFIER "mytics", }
Example (Case058) ¶
fmt.Println(exampleAST(2377, "show mztics"))
Output: &plot.ShowSpec{ · Case: 58, · Token: example2377.go:1:6: IDENTIFIER "mztics", }
Example (Case059) ¶
fmt.Println(exampleAST(2378, "show object"))
Output: &plot.ShowSpec{ · Case: 59, · Token: example2378.go:1:6: IDENTIFIER "object", }
Example (Case060) ¶
fmt.Println(exampleAST(2379, "show offsets"))
Output: &plot.ShowSpec{ · Case: 60, · Token: example2379.go:1:6: IDENTIFIER "offsets", }
Example (Case061) ¶
fmt.Println(exampleAST(2380, "show origin"))
Output: &plot.ShowSpec{ · Case: 61, · Token: example2380.go:1:6: IDENTIFIER "origin", }
Example (Case062) ¶
fmt.Println(exampleAST(2381, "show output"))
Output: &plot.ShowSpec{ · Case: 62, · Token: example2381.go:1:6: IDENTIFIER "output", }
Example (Case063) ¶
fmt.Println(exampleAST(2382, "show palette"))
Output: &plot.ShowSpec{ · Case: 63, · Token: example2382.go:1:6: IDENTIFIER "palette", }
Example (Case064) ¶
fmt.Println(exampleAST(2383, "show parametric"))
Output: &plot.ShowSpec{ · Case: 64, · Token: example2383.go:1:6: IDENTIFIER "parametric", }
Example (Case065) ¶
fmt.Println(exampleAST(2384, "show paxis"))
Output: &plot.ShowSpec{ · Case: 65, · Token: example2384.go:1:6: IDENTIFIER "paxis", }
Example (Case066) ¶
fmt.Println(exampleAST(2385, "show pm3d"))
Output: &plot.ShowSpec{ · Case: 66, · Token: example2385.go:1:6: IDENTIFIER "pm3d", }
Example (Case067) ¶
fmt.Println(exampleAST(2386, "show pointintervalbox"))
Output: &plot.ShowSpec{ · Case: 67, · Token: example2386.go:1:6: IDENTIFIER "pointintervalbox", }
Example (Case068) ¶
fmt.Println(exampleAST(2387, "show pointsize"))
Output: &plot.ShowSpec{ · Case: 68, · Token: example2387.go:1:6: IDENTIFIER "pointsize", }
Example (Case069) ¶
fmt.Println(exampleAST(2388, "show polar"))
Output: &plot.ShowSpec{ · Case: 69, · Token: example2388.go:1:6: IDENTIFIER "polar", }
Example (Case070) ¶
fmt.Println(exampleAST(2389, "show print"))
Output: &plot.ShowSpec{ · Case: 70, · Token: example2389.go:1:6: IDENTIFIER "print", }
Example (Case071) ¶
fmt.Println(exampleAST(2390, "show psdir"))
Output: &plot.ShowSpec{ · Case: 71, · Token: example2390.go:1:6: IDENTIFIER "psdir", }
Example (Case072) ¶
fmt.Println(exampleAST(2391, "show raxis"))
Output: &plot.ShowSpec{ · Case: 72, · Token: example2391.go:1:6: IDENTIFIER "raxis", }
Example (Case073) ¶
fmt.Println(exampleAST(2392, "show rmargin"))
Output: &plot.ShowSpec{ · Case: 73, · Token: example2392.go:1:6: IDENTIFIER "rmargin", }
Example (Case074) ¶
fmt.Println(exampleAST(2393, "show rrange"))
Output: &plot.ShowSpec{ · Case: 74, · Token: example2393.go:1:6: IDENTIFIER "rrange", }
Example (Case075) ¶
fmt.Println(exampleAST(2394, "show rtics"))
Output: &plot.ShowSpec{ · Case: 75, · Token: example2394.go:1:6: IDENTIFIER "rtics", }
Example (Case076) ¶
fmt.Println(exampleAST(2395, "show sam"))
Output: &plot.ShowSpec{ · Case: 76, · Token: example2395.go:1:6: IDENTIFIER "sam", }
Example (Case077) ¶
fmt.Println(exampleAST(2396, "show sample"))
Output: &plot.ShowSpec{ · Case: 77, · Token: example2396.go:1:6: IDENTIFIER "sample", }
Example (Case078) ¶
fmt.Println(exampleAST(2397, "show samples"))
Output: &plot.ShowSpec{ · Case: 78, · Token: example2397.go:1:6: IDENTIFIER "samples", }
Example (Case079) ¶
fmt.Println(exampleAST(2398, "show size"))
Output: &plot.ShowSpec{ · Case: 79, · Token: example2398.go:1:6: IDENTIFIER "size", }
Example (Case080) ¶
fmt.Println(exampleAST(2399, "show style arrow"))
Output: &plot.ShowSpec{ · Case: 80, · Token: example2399.go:1:6: IDENTIFIER "style", · Token2: example2399.go:1:12: IDENTIFIER "arrow", }
Example (Case081) ¶
fmt.Println(exampleAST(2400, "show style boxplot"))
Output: &plot.ShowSpec{ · Case: 81, · Token: example2400.go:1:6: IDENTIFIER "style", · Token2: example2400.go:1:12: IDENTIFIER "boxplot", }
Example (Case082) ¶
fmt.Println(exampleAST(2401, "show style circle"))
Output: &plot.ShowSpec{ · Case: 82, · Token: example2401.go:1:6: IDENTIFIER "style", · Token2: example2401.go:1:12: IDENTIFIER "circle", }
Example (Case083) ¶
fmt.Println(exampleAST(2402, "show style ellipse"))
Output: &plot.ShowSpec{ · Case: 83, · Token: example2402.go:1:6: IDENTIFIER "style", · Token2: example2402.go:1:12: IDENTIFIER "ellipse", }
Example (Case084) ¶
fmt.Println(exampleAST(2403, "show style fill"))
Output: &plot.ShowSpec{ · Case: 84, · Token: example2403.go:1:6: IDENTIFIER "style", · Token2: example2403.go:1:12: IDENTIFIER "fill", }
Example (Case085) ¶
fmt.Println(exampleAST(2404, "show style histogram"))
Output: &plot.ShowSpec{ · Case: 85, · Token: example2404.go:1:6: IDENTIFIER "style", · Token2: example2404.go:1:12: IDENTIFIER "histogram", }
Example (Case086) ¶
fmt.Println(exampleAST(2405, "show style line"))
Output: &plot.ShowSpec{ · Case: 86, · Token: example2405.go:1:6: IDENTIFIER "style", · Token2: example2405.go:1:12: IDENTIFIER "line", }
Example (Case087) ¶
fmt.Println(exampleAST(2406, "show style rectangle"))
Output: &plot.ShowSpec{ · Case: 87, · Token: example2406.go:1:6: IDENTIFIER "style", · Token2: example2406.go:1:12: IDENTIFIER "rectangle", }
Example (Case088) ¶
fmt.Println(exampleAST(2407, "show style textbox"))
Output: &plot.ShowSpec{ · Case: 88, · Token: example2407.go:1:6: IDENTIFIER "style", · Token2: example2407.go:1:12: IDENTIFIER "textbox", }
Example (Case089) ¶
fmt.Println(exampleAST(2408, "show surface"))
Output: &plot.ShowSpec{ · Case: 89, · Token: example2408.go:1:6: IDENTIFIER "surface", }
Example (Case090) ¶
fmt.Println(exampleAST(2409, "show table"))
Output: &plot.ShowSpec{ · Case: 90, · Token: example2409.go:1:6: IDENTIFIER "table", }
Example (Case091) ¶
fmt.Println(exampleAST(2410, "show terminal"))
Output: &plot.ShowSpec{ · Case: 91, · Token: example2410.go:1:6: IDENTIFIER "terminal", }
Example (Case092) ¶
fmt.Println(exampleAST(2411, "show termoption"))
Output: &plot.ShowSpec{ · Case: 92, · Token: example2411.go:1:6: IDENTIFIER "termoption", }
Example (Case093) ¶
fmt.Println(exampleAST(2412, "show tics"))
Output: &plot.ShowSpec{ · Case: 93, · Token: example2412.go:1:6: IDENTIFIER "tics", }
Example (Case094) ¶
fmt.Println(exampleAST(2413, "show ticslevel"))
Output: &plot.ShowSpec{ · Case: 94, · Token: example2413.go:1:6: IDENTIFIER "ticslevel", }
Example (Case095) ¶
fmt.Println(exampleAST(2414, "show time"))
Output: &plot.ShowSpec{ · Case: 95, · Token: example2414.go:1:6: IDENTIFIER "time", }
Example (Case096) ¶
fmt.Println(exampleAST(2415, "show timefmt"))
Output: &plot.ShowSpec{ · Case: 96, · Token: example2415.go:1:6: IDENTIFIER "timefmt", }
Example (Case097) ¶
fmt.Println(exampleAST(2416, "show timestamp"))
Output: &plot.ShowSpec{ · Case: 97, · Token: example2416.go:1:6: IDENTIFIER "timestamp", }
Example (Case098) ¶
fmt.Println(exampleAST(2417, "show title"))
Output: &plot.ShowSpec{ · Case: 98, · Token: example2417.go:1:6: IDENTIFIER "title", }
Example (Case099) ¶
fmt.Println(exampleAST(2418, "show tmargin"))
Output: &plot.ShowSpec{ · Case: 99, · Token: example2418.go:1:6: IDENTIFIER "tmargin", }
Example (Case100) ¶
fmt.Println(exampleAST(2419, "show trange"))
Output: &plot.ShowSpec{ · Case: 100, · Token: example2419.go:1:6: IDENTIFIER "trange", }
Example (Case101) ¶
fmt.Println(exampleAST(2420, "show urange"))
Output: &plot.ShowSpec{ · Case: 101, · Token: example2420.go:1:6: IDENTIFIER "urange", }
Example (Case102) ¶
fmt.Println(exampleAST(2421, "show var"))
Output: &plot.ShowSpec{ · Case: 102, · Token: example2421.go:1:6: IDENTIFIER "var", }
Example (Case103) ¶
fmt.Println(exampleAST(2422, "show variable ident_a"))
Output: &plot.ShowSpec{ · Case: 103, · Token: example2422.go:1:6: IDENTIFIER "variable", · Token2: example2422.go:1:15: IDENTIFIER "ident_a", }
Example (Case104) ¶
fmt.Println(exampleAST(2423, "show variables"))
Output: &plot.ShowSpec{ · Case: 104, · Token: example2423.go:1:6: IDENTIFIER "variables", }
Example (Case105) ¶
fmt.Println(exampleAST(2424, "show variables all"))
Output: &plot.ShowSpec{ · Case: 105, · Token: example2424.go:1:6: IDENTIFIER "variables", · Token2: example2424.go:1:16: IDENTIFIER "all", }
Example (Case106) ¶
fmt.Println(exampleAST(2425, "show variables ident_a"))
Output: &plot.ShowSpec{ · Case: 106, · Token: example2425.go:1:6: IDENTIFIER "variables", · Token2: example2425.go:1:16: IDENTIFIER "ident_a", }
Example (Case107) ¶
fmt.Println(exampleAST(2426, "show vi"))
Output: &plot.ShowSpec{ · Case: 107, · Token: example2426.go:1:6: IDENTIFIER "vi", }
Example (Case108) ¶
fmt.Println(exampleAST(2427, "show view"))
Output: &plot.ShowSpec{ · Case: 108, · Token: example2427.go:1:6: IDENTIFIER "view", }
Example (Case109) ¶
fmt.Println(exampleAST(2428, "show vrange"))
Output: &plot.ShowSpec{ · Case: 109, · Token: example2428.go:1:6: IDENTIFIER "vrange", }
Example (Case110) ¶
fmt.Println(exampleAST(2429, "show x2data"))
Output: &plot.ShowSpec{ · Case: 110, · Token: example2429.go:1:6: IDENTIFIER "x2data", }
Example (Case111) ¶
fmt.Println(exampleAST(2430, "show x2label"))
Output: &plot.ShowSpec{ · Case: 111, · Token: example2430.go:1:6: IDENTIFIER "x2label", }
Example (Case112) ¶
fmt.Println(exampleAST(2431, "show x2mtics"))
Output: &plot.ShowSpec{ · Case: 112, · Token: example2431.go:1:6: IDENTIFIER "x2mtics", }
Example (Case113) ¶
fmt.Println(exampleAST(2432, "show x2range"))
Output: &plot.ShowSpec{ · Case: 113, · Token: example2432.go:1:6: IDENTIFIER "x2range", }
Example (Case114) ¶
fmt.Println(exampleAST(2433, "show x2tics"))
Output: &plot.ShowSpec{ · Case: 114, · Token: example2433.go:1:6: IDENTIFIER "x2tics", }
Example (Case115) ¶
fmt.Println(exampleAST(2434, "show x2zeroaxis"))
Output: &plot.ShowSpec{ · Case: 115, · Token: example2434.go:1:6: IDENTIFIER "x2zeroaxis", }
Example (Case116) ¶
fmt.Println(exampleAST(2435, "show xdata"))
Output: &plot.ShowSpec{ · Case: 116, · Token: example2435.go:1:6: IDENTIFIER "xdata", }
Example (Case117) ¶
fmt.Println(exampleAST(2436, "show x2dtics"))
Output: &plot.ShowSpec{ · Case: 117, · Token: example2436.go:1:6: IDENTIFIER "x2dtics", }
Example (Case118) ¶
fmt.Println(exampleAST(2437, "show xdtics"))
Output: &plot.ShowSpec{ · Case: 118, · Token: example2437.go:1:6: IDENTIFIER "xdtics", }
Example (Case119) ¶
fmt.Println(exampleAST(2438, "show xlabel"))
Output: &plot.ShowSpec{ · Case: 119, · Token: example2438.go:1:6: IDENTIFIER "xlabel", }
Example (Case120) ¶
fmt.Println(exampleAST(2439, "show xmtics"))
Output: &plot.ShowSpec{ · Case: 120, · Token: example2439.go:1:6: IDENTIFIER "xmtics", }
Example (Case121) ¶
fmt.Println(exampleAST(2440, "show xrange"))
Output: &plot.ShowSpec{ · Case: 121, · Token: example2440.go:1:6: IDENTIFIER "xrange", }
Example (Case122) ¶
fmt.Println(exampleAST(2441, "show xtics"))
Output: &plot.ShowSpec{ · Case: 122, · Token: example2441.go:1:6: IDENTIFIER "xtics", }
Example (Case123) ¶
fmt.Println(exampleAST(2442, "show xyplane"))
Output: &plot.ShowSpec{ · Case: 123, · Token: example2442.go:1:6: IDENTIFIER "xyplane", }
Example (Case124) ¶
fmt.Println(exampleAST(2443, "show xzeroaxis"))
Output: &plot.ShowSpec{ · Case: 124, · Token: example2443.go:1:6: IDENTIFIER "xzeroaxis", }
Example (Case125) ¶
fmt.Println(exampleAST(2444, "show y2data"))
Output: &plot.ShowSpec{ · Case: 125, · Token: example2444.go:1:6: IDENTIFIER "y2data", }
Example (Case126) ¶
fmt.Println(exampleAST(2445, "show y2mtics"))
Output: &plot.ShowSpec{ · Case: 126, · Token: example2445.go:1:6: IDENTIFIER "y2mtics", }
Example (Case127) ¶
fmt.Println(exampleAST(2446, "show y2range"))
Output: &plot.ShowSpec{ · Case: 127, · Token: example2446.go:1:6: IDENTIFIER "y2range", }
Example (Case128) ¶
fmt.Println(exampleAST(2447, "show y2tics"))
Output: &plot.ShowSpec{ · Case: 128, · Token: example2447.go:1:6: IDENTIFIER "y2tics", }
Example (Case129) ¶
fmt.Println(exampleAST(2448, "show y2zeroaxis"))
Output: &plot.ShowSpec{ · Case: 129, · Token: example2448.go:1:6: IDENTIFIER "y2zeroaxis", }
Example (Case130) ¶
fmt.Println(exampleAST(2449, "show ydata"))
Output: &plot.ShowSpec{ · Case: 130, · Token: example2449.go:1:6: IDENTIFIER "ydata", }
Example (Case131) ¶
fmt.Println(exampleAST(2450, "show y2dtics"))
Output: &plot.ShowSpec{ · Case: 131, · Token: example2450.go:1:6: IDENTIFIER "y2dtics", }
Example (Case132) ¶
fmt.Println(exampleAST(2451, "show ydtics"))
Output: &plot.ShowSpec{ · Case: 132, · Token: example2451.go:1:6: IDENTIFIER "ydtics", }
Example (Case133) ¶
fmt.Println(exampleAST(2452, "show ylabel"))
Output: &plot.ShowSpec{ · Case: 133, · Token: example2452.go:1:6: IDENTIFIER "ylabel", }
Example (Case134) ¶
fmt.Println(exampleAST(2453, "show ymtics"))
Output: &plot.ShowSpec{ · Case: 134, · Token: example2453.go:1:6: IDENTIFIER "ymtics", }
Example (Case135) ¶
fmt.Println(exampleAST(2454, "show yrange"))
Output: &plot.ShowSpec{ · Case: 135, · Token: example2454.go:1:6: IDENTIFIER "yrange", }
Example (Case136) ¶
fmt.Println(exampleAST(2455, "show ytics"))
Output: &plot.ShowSpec{ · Case: 136, · Token: example2455.go:1:6: IDENTIFIER "ytics", }
Example (Case137) ¶
fmt.Println(exampleAST(2456, "show yzeroaxis"))
Output: &plot.ShowSpec{ · Case: 137, · Token: example2456.go:1:6: IDENTIFIER "yzeroaxis", }
Example (Case138) ¶
fmt.Println(exampleAST(2457, "show zdata"))
Output: &plot.ShowSpec{ · Case: 138, · Token: example2457.go:1:6: IDENTIFIER "zdata", }
Example (Case139) ¶
fmt.Println(exampleAST(2458, "show zdtics"))
Output: &plot.ShowSpec{ · Case: 139, · Token: example2458.go:1:6: IDENTIFIER "zdtics", }
Example (Case140) ¶
fmt.Println(exampleAST(2459, "show zero"))
Output: &plot.ShowSpec{ · Case: 140, · Token: example2459.go:1:6: IDENTIFIER "zero", }
Example (Case141) ¶
fmt.Println(exampleAST(2460, "show zeroaxis"))
Output: &plot.ShowSpec{ · Case: 141, · Token: example2460.go:1:6: IDENTIFIER "zeroaxis", }
Example (Case142) ¶
fmt.Println(exampleAST(2461, "show zlabel"))
Output: &plot.ShowSpec{ · Case: 142, · Token: example2461.go:1:6: IDENTIFIER "zlabel", }
Example (Case143) ¶
fmt.Println(exampleAST(2462, "show zmtics"))
Output: &plot.ShowSpec{ · Case: 143, · Token: example2462.go:1:6: IDENTIFIER "zmtics", }
Example (Case144) ¶
fmt.Println(exampleAST(2463, "show zrange"))
Output: &plot.ShowSpec{ · Case: 144, · Token: example2463.go:1:6: IDENTIFIER "zrange", }
Example (Case145) ¶
fmt.Println(exampleAST(2464, "show ztics"))
Output: &plot.ShowSpec{ · Case: 145, · Token: example2464.go:1:6: IDENTIFIER "ztics", }
Example (Case146) ¶
fmt.Println(exampleAST(2465, "show zzeroaxis"))
Output: &plot.ShowSpec{ · Case: 146, · Token: example2465.go:1:6: IDENTIFIER "zzeroaxis", }
type SimpleExpression ¶
type SimpleExpression struct { Case int SimpleExpression *SimpleExpression SimpleExpression2 *SimpleExpression SimpleExpression3 *SimpleExpression Token xc.Token Token2 xc.Token UnarySimpleExpression *UnarySimpleExpression }
SimpleExpression represents data reduced by productions:
SimpleExpression: SimpleExpression "!=" SimpleExpression | SimpleExpression "&&" SimpleExpression // Case 1 | SimpleExpression "**" SimpleExpression // Case 2 | SimpleExpression "<<" SimpleExpression // Case 3 | SimpleExpression "<=" SimpleExpression // Case 4 | SimpleExpression "==" SimpleExpression // Case 5 | SimpleExpression ">=" SimpleExpression // Case 6 | SimpleExpression ">>" SimpleExpression // Case 7 | SimpleExpression "eq" SimpleExpression // Case 8 | SimpleExpression "ne" SimpleExpression // Case 9 | SimpleExpression "||" SimpleExpression // Case 10 | SimpleExpression '%' SimpleExpression // Case 11 | SimpleExpression '&' SimpleExpression // Case 12 | SimpleExpression '*' SimpleExpression // Case 13 | SimpleExpression '+' SimpleExpression // Case 14 | SimpleExpression '-' SimpleExpression // Case 15 | SimpleExpression '.' SimpleExpression // Case 16 | SimpleExpression '/' SimpleExpression // Case 17 | SimpleExpression '<' SimpleExpression // Case 18 | SimpleExpression '=' SimpleExpression // Case 19 | SimpleExpression '>' SimpleExpression // Case 20 | SimpleExpression '?' SimpleExpression ':' SimpleExpression // Case 21 | SimpleExpression '^' SimpleExpression // Case 22 | SimpleExpression '|' SimpleExpression // Case 23 | UnarySimpleExpression // Case 24
Example ¶
fmt.Println(exampleAST(2476, "set tics ( ident_a ident_b != ident_c )"))
Output: &plot.SimpleExpression{ · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2476.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2476.go:1:31: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2476.go:1:28: NOTEQ "!=", }
Example (Case01) ¶
fmt.Println(exampleAST(2477, "set tics ( ident_a ident_b && ident_c )"))
Output: &plot.SimpleExpression{ · Case: 1, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2477.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2477.go:1:31: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2477.go:1:28: ANDAND "&&", }
Example (Case02) ¶
fmt.Println(exampleAST(2478, "set tics ( ident_a ident_b ** ident_c )"))
Output: &plot.SimpleExpression{ · Case: 2, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2478.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2478.go:1:31: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2478.go:1:28: EXP "**", }
Example (Case03) ¶
fmt.Println(exampleAST(2479, "set tics ( ident_a ident_b << ident_c )"))
Output: &plot.SimpleExpression{ · Case: 3, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2479.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2479.go:1:31: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2479.go:1:28: LSH "<<", }
Example (Case04) ¶
fmt.Println(exampleAST(2480, "set tics ( ident_a ident_b <= ident_c )"))
Output: &plot.SimpleExpression{ · Case: 4, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2480.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2480.go:1:31: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2480.go:1:28: LEQ "<=", }
Example (Case05) ¶
fmt.Println(exampleAST(2481, "set tics ( ident_a ident_b == ident_c )"))
Output: &plot.SimpleExpression{ · Case: 5, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2481.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2481.go:1:31: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2481.go:1:28: EQEQ "==", }
Example (Case06) ¶
fmt.Println(exampleAST(2482, "set tics ( ident_a ident_b >= ident_c )"))
Output: &plot.SimpleExpression{ · Case: 6, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2482.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2482.go:1:31: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2482.go:1:28: GEQ ">=", }
Example (Case07) ¶
fmt.Println(exampleAST(2483, "set tics ( ident_a ident_b >> ident_c )"))
Output: &plot.SimpleExpression{ · Case: 7, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2483.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2483.go:1:31: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2483.go:1:28: RSH ">>", }
Example (Case08) ¶
fmt.Println(exampleAST(2484, "set tics ( ident_a ident_b eq ident_c )"))
Output: &plot.SimpleExpression{ · Case: 8, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2484.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2484.go:1:31: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2484.go:1:28: IDENTIFIER "eq", }
Example (Case09) ¶
fmt.Println(exampleAST(2485, "set tics ( ident_a ident_b ne ident_c )"))
Output: &plot.SimpleExpression{ · Case: 9, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2485.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2485.go:1:31: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2485.go:1:28: IDENTIFIER "ne", }
Example (Case10) ¶
fmt.Println(exampleAST(2486, "set tics ( ident_a ident_b || ident_c )"))
Output: &plot.SimpleExpression{ · Case: 10, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2486.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2486.go:1:31: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2486.go:1:28: OROR "||", }
Example (Case11) ¶
fmt.Println(exampleAST(2487, "set tics ( ident_a ident_b % ident_c )"))
Output: &plot.SimpleExpression{ · Case: 11, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2487.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2487.go:1:30: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2487.go:1:28: '%' "%", }
Example (Case12) ¶
fmt.Println(exampleAST(2488, "set tics ( ident_a ident_b & ident_c )"))
Output: &plot.SimpleExpression{ · Case: 12, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2488.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2488.go:1:30: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2488.go:1:28: '&' "&", }
Example (Case13) ¶
fmt.Println(exampleAST(2489, "set tics ( ident_a ident_b * ident_c )"))
Output: &plot.SimpleExpression{ · Case: 13, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2489.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2489.go:1:30: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2489.go:1:28: '*' "*", }
Example (Case14) ¶
fmt.Println(exampleAST(2490, "set tics ( ident_a ident_b + ident_c )"))
Output: &plot.SimpleExpression{ · Case: 14, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2490.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2490.go:1:30: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2490.go:1:28: '+' "+", }
Example (Case15) ¶
fmt.Println(exampleAST(2491, "set tics ( ident_a ident_b - ident_c )"))
Output: &plot.SimpleExpression{ · Case: 15, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2491.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2491.go:1:30: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2491.go:1:28: '-' "-", }
Example (Case16) ¶
fmt.Println(exampleAST(2492, "set tics ( ident_a ident_b . ident_c )"))
Output: &plot.SimpleExpression{ · Case: 16, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2492.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2492.go:1:30: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2492.go:1:28: '.' ".", }
Example (Case17) ¶
fmt.Println(exampleAST(2493, "set tics ( ident_a ident_b / ident_c )"))
Output: &plot.SimpleExpression{ · Case: 17, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2493.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2493.go:1:30: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2493.go:1:28: '/' "/", }
Example (Case18) ¶
fmt.Println(exampleAST(2494, "set tics ( ident_a ident_b < ident_c )"))
Output: &plot.SimpleExpression{ · Case: 18, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2494.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2494.go:1:30: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2494.go:1:28: '<' "<", }
Example (Case19) ¶
fmt.Println(exampleAST(2495, "set tics ( ident_a ident_b = ident_c )"))
Output: &plot.SimpleExpression{ · Case: 19, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2495.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2495.go:1:30: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2495.go:1:28: '=' "=", }
Example (Case20) ¶
fmt.Println(exampleAST(2496, "set tics ( ident_a ident_b > ident_c )"))
Output: &plot.SimpleExpression{ · Case: 20, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2496.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2496.go:1:30: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2496.go:1:28: '>' ">", }
Example (Case21) ¶
fmt.Println(exampleAST(2497, "set tics ( ident_a ident_b ? ident_c : ident_d )"))
Output: &plot.SimpleExpression{ · Case: 21, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2497.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2497.go:1:30: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · SimpleExpression3: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2497.go:1:40: IDENTIFIER "ident_d", · · · · }, · · · }, · · }, · }, · Token: example2497.go:1:28: '?' "?", · Token2: example2497.go:1:38: ':' ":", }
Example (Case22) ¶
fmt.Println(exampleAST(2498, "set tics ( ident_a ident_b ^ ident_c )"))
Output: &plot.SimpleExpression{ · Case: 22, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2498.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2498.go:1:30: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2498.go:1:28: '^' "^", }
Example (Case23) ¶
fmt.Println(exampleAST(2499, "set tics ( ident_a ident_b | ident_c )"))
Output: &plot.SimpleExpression{ · Case: 23, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2499.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2499.go:1:30: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2499.go:1:28: '|' "|", }
Example (Case24) ¶
fmt.Println(exampleAST(2500, "call ident_a"))
Output: &plot.SimpleExpression{ · Case: 24, · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · PrimaryExpression: &plot.PrimaryExpression{ · · · Operand: &plot.Operand{ · · · · Case: 1, · · · · Token: example2500.go:1:6: IDENTIFIER "ident_a", · · · }, · · }, · }, }
func (*SimpleExpression) Pos ¶
func (n *SimpleExpression) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SimpleExpression) String ¶
func (n *SimpleExpression) String() string
String implements fmt.Stringer.
type SimpleExpressionCommaList ¶
type SimpleExpressionCommaList struct { Case int SimpleExpression *SimpleExpression SimpleExpressionCommaList *SimpleExpressionCommaList Token xc.Token }
SimpleExpressionCommaList represents data reduced by productions:
SimpleExpressionCommaList: SimpleExpression | SimpleExpressionCommaList ',' SimpleExpression // Case 1
func (*SimpleExpressionCommaList) Pos ¶
func (n *SimpleExpressionCommaList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SimpleExpressionCommaList) String ¶
func (n *SimpleExpressionCommaList) String() string
String implements fmt.Stringer.
type SimpleExpressionList ¶
type SimpleExpressionList struct { Case int SimpleExpression *SimpleExpression SimpleExpressionList *SimpleExpressionList }
SimpleExpressionList represents data reduced by productions:
SimpleExpressionList: SimpleExpression | SimpleExpressionList SimpleExpression // Case 1
Example ¶
fmt.Println(exampleAST(2501, "call ident_a"))
Output: &plot.SimpleExpressionList{ · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2501.go:1:6: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2502, "call ident_a ident_b"))
Output: &plot.SimpleExpressionList{ · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2502.go:1:6: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpressionList: &plot.SimpleExpressionList{ · · Case: 1, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2502.go:1:14: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*SimpleExpressionList) Pos ¶
func (n *SimpleExpressionList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SimpleExpressionList) String ¶
func (n *SimpleExpressionList) String() string
String implements fmt.Stringer.
type SliceArgument ¶
type SliceArgument struct { Case int Expression *Expression Token xc.Token }
SliceArgument represents data reduced by productions:
SliceArgument: /* empty */ | '*' // Case 1 | Expression // Case 2
Example ¶
fmt.Println(exampleAST(2505, "bind ident_a [ :") == (*SliceArgument)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2506, "bind ident_a [ * :"))
Output: &plot.SliceArgument{ · Case: 1, · Token: example2506.go:1:16: '*' "*", }
Example (Case2) ¶
fmt.Println(exampleAST(2507, "bind ident_a [ ident_b :"))
Output: &plot.SliceArgument{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2507.go:1:16: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, }
func (*SliceArgument) Pos ¶
func (n *SliceArgument) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*SliceArgument) String ¶
func (n *SliceArgument) String() string
String implements fmt.Stringer.
type Smoothing ¶
Smoothing represents data reduced by productions:
Smoothing: "acsplines" | "bandwidth" // Case 1 | "bezier" // Case 2 | "cnormal" // Case 3 | "csplines" // Case 4 | "cumulative" // Case 5 | "frequency" // Case 6 | "kdensity" // Case 7 | "mcsplines" // Case 8 | "sbezier" // Case 9 | "unique" // Case 10 | "unwrap" // Case 11
Example ¶
fmt.Println(exampleAST(2508, "plot ident_a sm acsplines"))
Output: &plot.Smoothing{ · Token: example2508.go:1:17: IDENTIFIER "acsplines", }
Example (Case01) ¶
fmt.Println(exampleAST(2509, "plot ident_a sm bandwidth"))
Output: &plot.Smoothing{ · Case: 1, · Token: example2509.go:1:17: IDENTIFIER "bandwidth", }
Example (Case02) ¶
fmt.Println(exampleAST(2510, "plot ident_a sm bezier"))
Output: &plot.Smoothing{ · Case: 2, · Token: example2510.go:1:17: IDENTIFIER "bezier", }
Example (Case03) ¶
fmt.Println(exampleAST(2511, "plot ident_a sm cnormal"))
Output: &plot.Smoothing{ · Case: 3, · Token: example2511.go:1:17: IDENTIFIER "cnormal", }
Example (Case04) ¶
fmt.Println(exampleAST(2512, "plot ident_a smooth csplines"))
Output: &plot.Smoothing{ · Case: 4, · Token: example2512.go:1:21: IDENTIFIER "csplines", }
Example (Case05) ¶
fmt.Println(exampleAST(2513, "plot ident_a sm cumulative"))
Output: &plot.Smoothing{ · Case: 5, · Token: example2513.go:1:17: IDENTIFIER "cumulative", }
Example (Case06) ¶
fmt.Println(exampleAST(2514, "plot ident_a smooth frequency"))
Output: &plot.Smoothing{ · Case: 6, · Token: example2514.go:1:21: IDENTIFIER "frequency", }
Example (Case07) ¶
fmt.Println(exampleAST(2515, "plot ident_a sm kdensity"))
Output: &plot.Smoothing{ · Case: 7, · Token: example2515.go:1:17: IDENTIFIER "kdensity", }
Example (Case08) ¶
fmt.Println(exampleAST(2516, "plot ident_a smooth mcsplines"))
Output: &plot.Smoothing{ · Case: 8, · Token: example2516.go:1:21: IDENTIFIER "mcsplines", }
Example (Case09) ¶
fmt.Println(exampleAST(2517, "plot ident_a smooth sbezier"))
Output: &plot.Smoothing{ · Case: 9, · Token: example2517.go:1:21: IDENTIFIER "sbezier", }
Example (Case10) ¶
fmt.Println(exampleAST(2518, "plot ident_a smooth unique"))
Output: &plot.Smoothing{ · Case: 10, · Token: example2518.go:1:21: IDENTIFIER "unique", }
Example (Case11) ¶
fmt.Println(exampleAST(2519, "plot ident_a sm unwrap"))
Output: &plot.Smoothing{ · Case: 11, · Token: example2519.go:1:17: IDENTIFIER "unwrap", }
type Splot ¶
type Splot struct { PlotElementList *PlotElementList Token xc.Token }
Splot represents data reduced by production:
Splot: "splot" PlotElementList
Example ¶
fmt.Println(exampleAST(2520, "splot ident_a"))
Output: &plot.Splot{ · PlotElementList: &plot.PlotElementList{ · · PlotElementListItem: &plot.PlotElementListItem{ · · · Case: 1, · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2520.go:1:7: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · }, · Token: example2520.go:1:1: IDENTIFIER "splot", }
type Statement ¶
type Statement struct { Bind *Bind Call *Call Case int Cd *Cd Clear *Clear Do *Do Else *Else Eval *Eval Exit *Exit Fit *Fit FunctionDefinition *FunctionDefinition If *If Import *Import Load *Load Lower *Lower NamedDataBlock *NamedDataBlock Pause *Pause Plot *Plot Print *Print Replot *Replot Reread *Reread Reset *Reset Set *Set Show *Show Splot *Splot Stats *Stats Test *Test Token xc.Token Undefine *Undefine Unset *Unset Update *Update VariableDefinition *VariableDefinition While *While }
Statement represents data reduced by productions:
Statement: /* empty */ | Bind // Case 1 | Clear // Case 2 | Eval // Case 3 | Fit // Case 4 | Import // Case 5 | Lower // Case 6 | Call // Case 7 | Cd // Case 8 | Do // Case 9 | Else // Case 10 | Exit // Case 11 | FunctionDefinition // Case 12 | If // Case 13 | Load // Case 14 | NamedDataBlock // Case 15 | Pause // Case 16 | Plot // Case 17 | Print // Case 18 | Replot // Case 19 | Reread // Case 20 | Reset // Case 21 | Set // Case 22 | Show // Case 23 | Splot // Case 24 | Stats // Case 25 | Test // Case 26 | Undefine // Case 27 | Unset // Case 28 | Update // Case 29 | VariableDefinition // Case 30 | While // Case 31 | error // Case 32
Example ¶
fmt.Println(exampleAST(2521, "") == (*Statement)(nil))
Output: true
Example (Case01) ¶
fmt.Println(exampleAST(2522, "bind ident_a ident_b"))
Output: &plot.Statement{ · Bind: &plot.Bind{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2522.go:1:6: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2522.go:1:14: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · · Token: example2522.go:1:1: IDENTIFIER "bind", · }, · Case: 1, }
Example (Case02) ¶
fmt.Println(exampleAST(2523, "clear"))
Output: &plot.Statement{ · Case: 2, · Clear: &plot.Clear{ · · Token: example2523.go:1:1: IDENTIFIER "clear", · }, }
Example (Case03) ¶
fmt.Println(exampleAST(2524, "eval ident_a"))
Output: &plot.Statement{ · Case: 3, · Eval: &plot.Eval{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2524.go:1:6: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Token: example2524.go:1:1: IDENTIFIER "eval", · }, }
Example (Case04) ¶
fmt.Println(exampleAST(2525, "fit ident_a ident_b via ident_c"))
Output: &plot.Statement{ · Case: 4, · Fit: &plot.Fit{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2525.go:1:5: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · ExpressionList: &plot.ExpressionList{ · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2525.go:1:25: IDENTIFIER "ident_c", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · · SimpleExpression: &plot.SimpleExpression{ · · · Case: 24, · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2525.go:1:13: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · · Token: example2525.go:1:1: IDENTIFIER "fit", · · Token2: example2525.go:1:21: IDENTIFIER "via", · }, }
Example (Case05) ¶
fmt.Println(exampleAST(2526, "import ident_a ( ident_b ) from ident_c"))
Output: &plot.Statement{ · Case: 5, · Import: &plot.Import{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2526.go:1:33: IDENTIFIER "ident_c", · · · · · }, · · · · }, · · · }, · · }, · · IdentifierList: &plot.IdentifierList{ · · · Token: example2526.go:1:18: IDENTIFIER "ident_b", · · }, · · Token: example2526.go:1:1: IDENTIFIER "import", · · Token2: example2526.go:1:8: IDENTIFIER "ident_a", · · Token3: example2526.go:1:16: '(' "(", · · Token4: example2526.go:1:26: ')' ")", · · Token5: example2526.go:1:28: IDENTIFIER "from", · }, }
Example (Case06) ¶
fmt.Println(exampleAST(2527, "lower"))
Output: &plot.Statement{ · Case: 6, · Lower: &plot.Lower{ · · Token: example2527.go:1:1: IDENTIFIER "lower", · }, }
Example (Case07) ¶
fmt.Println(exampleAST(2528, "call ident_a"))
Output: &plot.Statement{ · Call: &plot.Call{ · · SimpleExpressionList: &plot.SimpleExpressionList{ · · · SimpleExpression: &plot.SimpleExpression{ · · · · Case: 24, · · · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2528.go:1:6: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · · Token: example2528.go:1:1: IDENTIFIER "call", · }, · Case: 7, }
Example (Case08) ¶
fmt.Println(exampleAST(2529, "cd ident_a"))
Output: &plot.Statement{ · Case: 8, · Cd: &plot.Cd{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2529.go:1:4: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Token: example2529.go:1:1: IDENTIFIER "cd", · }, }
Example (Case09) ¶
fmt.Println(exampleAST(2530, "do for [ ident_a : * ] { }"))
Output: &plot.Statement{ · Case: 9, · Do: &plot.Do{ · · IterationSpecifier: &plot.IterationSpecifier{ · · · Case: 2, · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2530.go:1:10: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · · Token: example2530.go:1:4: IDENTIFIER "for", · · · Token2: example2530.go:1:8: '[' "[", · · · Token3: example2530.go:1:18: ':' ":", · · · Token4: example2530.go:1:20: '*' "*", · · · Token5: example2530.go:1:22: ']' "]", · · }, · · Token: example2530.go:1:1: IDENTIFIER "do", · · Token2: example2530.go:1:24: '{' "{", · · Token3: example2530.go:1:26: '}' "}", · }, }
Example (Case10) ¶
fmt.Println(exampleAST(2531, "else"))
Output: &plot.Statement{ · Case: 10, · Else: &plot.Else{ · · Token: example2531.go:1:1: IDENTIFIER "else", · }, }
Example (Case11) ¶
fmt.Println(exampleAST(2532, "exit"))
Output: &plot.Statement{ · Case: 11, · Exit: &plot.Exit{ · · Token: example2532.go:1:1: IDENTIFIER "exit", · }, }
Example (Case12) ¶
fmt.Println(exampleAST(2533, "ident_a ( ident_b ) = ident_c"))
Output: &plot.Statement{ · Case: 12, · FunctionDefinition: &plot.FunctionDefinition{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2533.go:1:23: IDENTIFIER "ident_c", · · · · · }, · · · · }, · · · }, · · }, · · IdentifierList: &plot.IdentifierList{ · · · Token: example2533.go:1:11: IDENTIFIER "ident_b", · · }, · · Token: example2533.go:1:1: IDENTIFIER "ident_a", · · Token2: example2533.go:1:9: '(' "(", · · Token3: example2533.go:1:19: ')' ")", · · Token4: example2533.go:1:21: '=' "=", · }, }
Example (Case13) ¶
fmt.Println(exampleAST(2534, "if ( ident_a )"))
Output: &plot.Statement{ · Case: 13, · If: &plot.If{ · · Case: 2, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2534.go:1:6: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Token: example2534.go:1:1: IDENTIFIER "if", · · Token2: example2534.go:1:4: '(' "(", · · Token3: example2534.go:1:14: ')' ")", · }, }
Example (Case14) ¶
fmt.Println(exampleAST(2535, "load ident_a"))
Output: &plot.Statement{ · Case: 14, · Load: &plot.Load{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2535.go:1:6: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Token: example2535.go:1:1: IDENTIFIER "load", · }, }
Example (Case15) ¶
fmt.Println(exampleAST(2536, "$data << EOD\n1 2 3\nEOD\n"))
Output: &plot.Statement{ · Case: 15, · NamedDataBlock: &plot.NamedDataBlock{ · · Data: []uint8{ // len 6 · · · 0: 49, · · · 1: 32, · · · 2: 50, · · · 3: 32, · · · 4: 51, · · · 5: 10, · · }, · · Token: example2536.go:1:1: IDENTIFIER "$data", · · Token2: example2536.go:1:7: LSH "<<", · · Token3: example2536.go:1:10: IDENTIFIER "EOD", · }, }
Example (Case16) ¶
fmt.Println(exampleAST(2537, "pause ident_a"))
Output: &plot.Statement{ · Case: 16, · Pause: &plot.Pause{ · · Case: 3, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2537.go:1:7: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Token: example2537.go:1:1: IDENTIFIER "pause", · }, }
Example (Case17) ¶
fmt.Println(exampleAST(2538, "plot ident_a"))
Output: &plot.Statement{ · Case: 17, · Plot: &plot.Plot{ · · PlotElementList: &plot.PlotElementList{ · · · PlotElementListItem: &plot.PlotElementListItem{ · · · · Case: 1, · · · · Expression: &plot.Expression{ · · · · · Case: 24, · · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · · Operand: &plot.Operand{ · · · · · · · · Case: 1, · · · · · · · · Token: example2538.go:1:6: IDENTIFIER "ident_a", · · · · · · · }, · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · · Token: example2538.go:1:1: IDENTIFIER "plot", · }, }
Example (Case18) ¶
fmt.Println(exampleAST(2539, "print ident_a"))
Output: &plot.Statement{ · Case: 18, · Print: &plot.Print{ · · ExpressionList: &plot.ExpressionList{ · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2539.go:1:7: IDENTIFIER "ident_a", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · · Token: example2539.go:1:1: IDENTIFIER "print", · }, }
Example (Case19) ¶
fmt.Println(exampleAST(2540, "rep"))
Output: &plot.Statement{ · Case: 19, · Replot: &plot.Replot{ · · Token: example2540.go:1:1: IDENTIFIER "rep", · }, }
Example (Case20) ¶
fmt.Println(exampleAST(2541, "reread"))
Output: &plot.Statement{ · Case: 20, · Reread: &plot.Reread{ · · Token: example2541.go:1:1: IDENTIFIER "reread", · }, }
Example (Case21) ¶
fmt.Println(exampleAST(2542, "reset"))
Output: &plot.Statement{ · Case: 21, · Reset: &plot.Reset{ · · Token: example2542.go:1:1: IDENTIFIER "reset", · }, }
Example (Case22) ¶
fmt.Println(exampleAST(2543, "set auto"))
Output: &plot.Statement{ · Case: 22, · Set: &plot.Set{ · · SetSpec: &plot.SetSpec{ · · · Case: 3, · · · Token: example2543.go:1:5: IDENTIFIER "auto", · · }, · · Token: example2543.go:1:1: IDENTIFIER "set", · }, }
Example (Case23) ¶
fmt.Println(exampleAST(2544, "show angles"))
Output: &plot.Statement{ · Case: 23, · Show: &plot.Show{ · · ShowSpec: &plot.ShowSpec{ · · · Token: example2544.go:1:6: IDENTIFIER "angles", · · }, · · Token: example2544.go:1:1: IDENTIFIER "show", · }, }
Example (Case24) ¶
fmt.Println(exampleAST(2545, "splot ident_a"))
Output: &plot.Statement{ · Case: 24, · Splot: &plot.Splot{ · · PlotElementList: &plot.PlotElementList{ · · · PlotElementListItem: &plot.PlotElementListItem{ · · · · Case: 1, · · · · Expression: &plot.Expression{ · · · · · Case: 24, · · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · · Operand: &plot.Operand{ · · · · · · · · Case: 1, · · · · · · · · Token: example2545.go:1:7: IDENTIFIER "ident_a", · · · · · · · }, · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · · Token: example2545.go:1:1: IDENTIFIER "splot", · }, }
Example (Case25) ¶
fmt.Println(exampleAST(2546, "stats ident_a"))
Output: &plot.Statement{ · Case: 25, · Stats: &plot.Stats{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2546.go:1:7: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Token: example2546.go:1:1: IDENTIFIER "stats", · }, }
Example (Case26) ¶
fmt.Println(exampleAST(2547, "test palette"))
Output: &plot.Statement{ · Case: 26, · Test: &plot.Test{ · · Token: example2547.go:1:1: IDENTIFIER "test", · · Token2: example2547.go:1:6: IDENTIFIER "palette", · }, }
Example (Case27) ¶
fmt.Println(exampleAST(2548, "undefine ident_a"))
Output: &plot.Statement{ · Case: 27, · Undefine: &plot.Undefine{ · · Token: example2548.go:1:1: IDENTIFIER "undefine", · · UndefineList: &plot.UndefineList{ · · · UndefineListItem: &plot.UndefineListItem{ · · · · Token: example2548.go:1:10: IDENTIFIER "ident_a", · · · }, · · }, · }, }
Example (Case28) ¶
fmt.Println(exampleAST(2549, "unset angles"))
Output: &plot.Statement{ · Case: 28, · Unset: &plot.Unset{ · · Token: example2549.go:1:1: IDENTIFIER "unset", · · UnsetSpec: &plot.UnsetSpec{ · · · Token: example2549.go:1:7: IDENTIFIER "angles", · · }, · }, }
Example (Case29) ¶
fmt.Println(exampleAST(2550, "update ident_a"))
Output: &plot.Statement{ · Case: 29, · Update: &plot.Update{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2550.go:1:8: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Token: example2550.go:1:1: IDENTIFIER "update", · }, }
Example (Case30) ¶
fmt.Println(exampleAST(2551, "ident_a = ident_b"))
Output: &plot.Statement{ · Case: 30, · VariableDefinition: &plot.VariableDefinition{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2551.go:1:11: IDENTIFIER "ident_b", · · · · · }, · · · · }, · · · }, · · }, · · Token: example2551.go:1:1: IDENTIFIER "ident_a", · · Token2: example2551.go:1:9: '=' "=", · }, }
Example (Case31) ¶
fmt.Println(exampleAST(2552, "while ( ident_a ) { }"))
Output: &plot.Statement{ · Case: 31, · While: &plot.While{ · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2552.go:1:9: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · · Token: example2552.go:1:1: IDENTIFIER "while", · · Token2: example2552.go:1:7: '(' "(", · · Token3: example2552.go:1:17: ')' ")", · · Token4: example2552.go:1:19: '{' "{", · · Token5: example2552.go:1:21: '}' "}", · }, }
type StatementList ¶
type StatementList struct { Case int Statement *Statement StatementList *StatementList StatementSeparator *StatementSeparator }
StatementList represents data reduced by productions:
StatementList: Statement | StatementList StatementSeparator Statement // Case 1
Example ¶
fmt.Println(exampleAST(2554, "foo=bar"))
Output: &plot.StatementList{ · Statement: &plot.Statement{ · · Case: 30, · · VariableDefinition: &plot.VariableDefinition{ · · · Expression: &plot.Expression{ · · · · Case: 24, · · · · UnaryExpression: &plot.UnaryExpression{ · · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · · Operand: &plot.Operand{ · · · · · · · Case: 1, · · · · · · · Token: example2554.go:1:5: IDENTIFIER "bar", · · · · · · }, · · · · · }, · · · · }, · · · }, · · · Token: example2554.go:1:1: IDENTIFIER "foo", · · · Token2: example2554.go:1:4: '=' "=", · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2555, ";"))
Output: &plot.StatementList{ · StatementList: &plot.StatementList{ · · Case: 1, · · StatementSeparator: &plot.StatementSeparator{ · · · Token: example2555.go:1:1: ';' ";", · · }, · }, }
func (*StatementList) Pos ¶
func (n *StatementList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*StatementList) String ¶
func (n *StatementList) String() string
String implements fmt.Stringer.
type StatementSeparator ¶
StatementSeparator represents data reduced by productions:
StatementSeparator: ';' | '\n' // Case 1
Example ¶
fmt.Println(exampleAST(2556, ";"))
Output: &plot.StatementSeparator{ · Token: example2556.go:1:1: ';' ";", }
Example (Case1) ¶
fmt.Println(exampleAST(2557, "foo=bar\nbaz=qux"))
Output: &plot.StatementSeparator{ · Case: 1, · Token: example2557.go:1:8: '\n' "\n", }
func (*StatementSeparator) Pos ¶
func (n *StatementSeparator) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*StatementSeparator) String ¶
func (n *StatementSeparator) String() string
String implements fmt.Stringer.
type Stats ¶
type Stats struct { Expression *Expression RangesOpt *RangesOpt StatsSpecListOpt *StatsSpecListOpt Token xc.Token }
Stats represents data reduced by production:
Stats: "stats" RangesOpt Expression StatsSpecListOpt
Example ¶
fmt.Println(exampleAST(2586, "stats ident_a"))
Output: &plot.Stats{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2586.go:1:7: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2586.go:1:1: IDENTIFIER "stats", }
type StatsSpecList ¶
type StatsSpecList struct { Case int StatsSpecList *StatsSpecList StatsSpecListItem *StatsSpecListItem }
StatsSpecList represents data reduced by productions:
StatsSpecList: StatsSpecListItem | StatsSpecList StatsSpecListItem // Case 1
Example ¶
fmt.Println(exampleAST(2587, "stats ident_a matrix"))
Output: &plot.StatsSpecList{ · StatsSpecListItem: &plot.StatsSpecListItem{ · · Token: example2587.go:1:15: IDENTIFIER "matrix", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2588, "stats ident_a matrix matrix"))
Output: &plot.StatsSpecList{ · StatsSpecList: &plot.StatsSpecList{ · · Case: 1, · · StatsSpecListItem: &plot.StatsSpecListItem{ · · · Token: example2588.go:1:22: IDENTIFIER "matrix", · · }, · }, · StatsSpecListItem: &plot.StatsSpecListItem{ · · Token: example2588.go:1:15: IDENTIFIER "matrix", · }, }
func (*StatsSpecList) Pos ¶
func (n *StatsSpecList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*StatsSpecList) String ¶
func (n *StatsSpecList) String() string
String implements fmt.Stringer.
type StatsSpecListItem ¶
type StatsSpecListItem struct { Case int Expression *Expression Expression2 *Expression Token xc.Token Token2 xc.Token }
StatsSpecListItem represents data reduced by productions:
StatsSpecListItem: "matrix" | "using" Expression // Case 1 | "using" Expression ':' Expression // Case 2 | "name" Expression // Case 3 | "output" // Case 4 | "nooutput" // Case 5 | "index" Expression // Case 6 | "prefix" Expression // Case 7
Example ¶
fmt.Println(exampleAST(2589, "stats ident_a matrix"))
Output: &plot.StatsSpecListItem{ · Token: example2589.go:1:15: IDENTIFIER "matrix", }
Example (Case1) ¶
fmt.Println(exampleAST(2590, "stats ident_a using ident_b"))
Output: &plot.StatsSpecListItem{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2590.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2590.go:1:15: IDENTIFIER "using", }
Example (Case2) ¶
fmt.Println(exampleAST(2591, "stats ident_a using ident_b : ident_c"))
Output: &plot.StatsSpecListItem{ · Case: 2, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2591.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Expression2: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2591.go:1:31: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2591.go:1:15: IDENTIFIER "using", · Token2: example2591.go:1:29: ':' ":", }
Example (Case3) ¶
fmt.Println(exampleAST(2592, "stats ident_a name ident_b"))
Output: &plot.StatsSpecListItem{ · Case: 3, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2592.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2592.go:1:15: IDENTIFIER "name", }
Example (Case4) ¶
fmt.Println(exampleAST(2593, "stats ident_a output"))
Output: &plot.StatsSpecListItem{ · Case: 4, · Token: example2593.go:1:15: IDENTIFIER "output", }
Example (Case5) ¶
fmt.Println(exampleAST(2594, "stats ident_a nooutput"))
Output: &plot.StatsSpecListItem{ · Case: 5, · Token: example2594.go:1:15: IDENTIFIER "nooutput", }
Example (Case6) ¶
fmt.Println(exampleAST(2595, "stats ident_a index ident_b"))
Output: &plot.StatsSpecListItem{ · Case: 6, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2595.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2595.go:1:15: IDENTIFIER "index", }
Example (Case7) ¶
fmt.Println(exampleAST(2596, "stats ident_a prefix ident_b"))
Output: &plot.StatsSpecListItem{ · Case: 7, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2596.go:1:22: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2596.go:1:15: IDENTIFIER "prefix", }
func (*StatsSpecListItem) Pos ¶
func (n *StatsSpecListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*StatsSpecListItem) String ¶
func (n *StatsSpecListItem) String() string
String implements fmt.Stringer.
type StatsSpecListOpt ¶
type StatsSpecListOpt struct {
StatsSpecList *StatsSpecList
}
StatsSpecListOpt represents data reduced by productions:
StatsSpecListOpt: /* empty */ | StatsSpecList // Case 1
Example ¶
fmt.Println(exampleAST(2597, "stats ident_a") == (*StatsSpecListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2598, "stats ident_a matrix"))
Output: &plot.StatsSpecListOpt{ · StatsSpecList: &plot.StatsSpecList{ · · StatsSpecListItem: &plot.StatsSpecListItem{ · · · Token: example2598.go:1:15: IDENTIFIER "matrix", · · }, · }, }
func (*StatsSpecListOpt) Pos ¶
func (n *StatsSpecListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*StatsSpecListOpt) String ¶
func (n *StatsSpecListOpt) String() string
String implements fmt.Stringer.
type Test ¶
Test represents data reduced by productions:
Test: "test" "palette" | "test" "terminal" // Case 1
Example ¶
fmt.Println(exampleAST(2599, "test palette"))
Output: &plot.Test{ · Token: example2599.go:1:1: IDENTIFIER "test", · Token2: example2599.go:1:6: IDENTIFIER "palette", }
Example (Case1) ¶
fmt.Println(exampleAST(2600, "test terminal"))
Output: &plot.Test{ · Case: 1, · Token: example2600.go:1:1: IDENTIFIER "test", · Token2: example2600.go:1:6: IDENTIFIER "terminal", }
type TicsLabelList ¶
type TicsLabelList struct { Case int TicsLabelList *TicsLabelList TicsLabelListItem *TicsLabelListItem Token xc.Token }
TicsLabelList represents data reduced by productions:
TicsLabelList: TicsLabelListItem | TicsLabelList ',' TicsLabelListItem // Case 1
Example ¶
fmt.Println(exampleAST(2558, "set rtics ( ident_a )"))
Output: &plot.TicsLabelList{ · TicsLabelListItem: &plot.TicsLabelListItem{ · · NonStringExpression: &plot.NonStringExpression{ · · · Case: 24, · · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · · Case: 1, · · · · · · Token: example2558.go:1:13: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2559, "set rtics ( ident_a , ident_b )"))
Output: &plot.TicsLabelList{ · TicsLabelList: &plot.TicsLabelList{ · · Case: 1, · · TicsLabelListItem: &plot.TicsLabelListItem{ · · · NonStringExpression: &plot.NonStringExpression{ · · · · Case: 24, · · · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · · · Case: 1, · · · · · · · Token: example2559.go:1:23: IDENTIFIER "ident_b", · · · · · · }, · · · · · }, · · · · }, · · · }, · · }, · · Token: example2559.go:1:21: ',' ",", · }, · TicsLabelListItem: &plot.TicsLabelListItem{ · · NonStringExpression: &plot.NonStringExpression{ · · · Case: 24, · · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · · Case: 1, · · · · · · Token: example2559.go:1:13: IDENTIFIER "ident_a", · · · · · }, · · · · }, · · · }, · · }, · }, }
func (*TicsLabelList) Pos ¶
func (n *TicsLabelList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*TicsLabelList) String ¶
func (n *TicsLabelList) String() string
String implements fmt.Stringer.
type TicsLabelListItem ¶
type TicsLabelListItem struct { Case int NonStringExpression *NonStringExpression SimpleExpression *SimpleExpression SimpleExpression2 *SimpleExpression Token xc.Token }
TicsLabelListItem represents data reduced by productions:
TicsLabelListItem: NonStringExpression | NonStringExpression SimpleExpression // Case 1 | NonStringExpression SimpleExpression SimpleExpression // Case 2 | STRING_LIT NonStringExpression // Case 3 | STRING_LIT NonStringExpression SimpleExpression // Case 4
Example ¶
fmt.Println(exampleAST(2560, "set rtics ( ident_a )"))
Output: &plot.TicsLabelListItem{ · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example2560.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2561, "set rtics ( ident_a ident_b )"))
Output: &plot.TicsLabelListItem{ · Case: 1, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example2561.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2561.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, }
Example (Case2) ¶
fmt.Println(exampleAST(2562, "set rtics ( ident_a ident_b ident_c )"))
Output: &plot.TicsLabelListItem{ · Case: 2, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example2562.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2562.go:1:21: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression2: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2562.go:1:29: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, }
Example (Case3) ¶
fmt.Println(exampleAST(2563, "set rtics ( 'a' ident_b )"))
Output: &plot.TicsLabelListItem{ · Case: 3, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example2563.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2563.go:1:13: STRING_LIT "a", }
Example (Case4) ¶
fmt.Println(exampleAST(2564, "set rtics ( 'a' ident_b ident_c )"))
Output: &plot.TicsLabelListItem{ · Case: 4, · NonStringExpression: &plot.NonStringExpression{ · · Case: 24, · · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · · NonStringOperand: &plot.NonStringOperand{ · · · · · Case: 1, · · · · · Token: example2564.go:1:17: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2564.go:1:25: IDENTIFIER "ident_c", · · · · }, · · · }, · · }, · }, · Token: example2564.go:1:13: STRING_LIT "a", }
func (*TicsLabelListItem) Pos ¶
func (n *TicsLabelListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*TicsLabelListItem) String ¶
func (n *TicsLabelListItem) String() string
String implements fmt.Stringer.
type UnaryExpression ¶
type UnaryExpression struct { Case int PrimaryExpression *PrimaryExpression Token xc.Token UnaryExpression *UnaryExpression }
UnaryExpression represents data reduced by productions:
UnaryExpression: PrimaryExpression | '!' UnaryExpression // Case 1 | '+' UnaryExpression // Case 2 | '-' UnaryExpression // Case 3 | '~' UnaryExpression // Case 4 | UnaryExpression '!' // Case 5
Example ¶
fmt.Println(exampleAST(2565, "bind ident_a"))
Output: &plot.UnaryExpression{ · PrimaryExpression: &plot.PrimaryExpression{ · · Operand: &plot.Operand{ · · · Case: 1, · · · Token: example2565.go:1:6: IDENTIFIER "ident_a", · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2566, "load ! ident_a"))
Output: &plot.UnaryExpression{ · Case: 1, · Token: example2566.go:1:6: '!' "!", · UnaryExpression: &plot.UnaryExpression{ · · PrimaryExpression: &plot.PrimaryExpression{ · · · Operand: &plot.Operand{ · · · · Case: 1, · · · · Token: example2566.go:1:8: IDENTIFIER "ident_a", · · · }, · · }, · }, }
Example (Case2) ¶
fmt.Println(exampleAST(2567, "load + ident_a"))
Output: &plot.UnaryExpression{ · Case: 2, · Token: example2567.go:1:6: '+' "+", · UnaryExpression: &plot.UnaryExpression{ · · PrimaryExpression: &plot.PrimaryExpression{ · · · Operand: &plot.Operand{ · · · · Case: 1, · · · · Token: example2567.go:1:8: IDENTIFIER "ident_a", · · · }, · · }, · }, }
Example (Case3) ¶
fmt.Println(exampleAST(2568, "load - ident_a"))
Output: &plot.UnaryExpression{ · Case: 3, · Token: example2568.go:1:6: '-' "-", · UnaryExpression: &plot.UnaryExpression{ · · PrimaryExpression: &plot.PrimaryExpression{ · · · Operand: &plot.Operand{ · · · · Case: 1, · · · · Token: example2568.go:1:8: IDENTIFIER "ident_a", · · · }, · · }, · }, }
Example (Case4) ¶
fmt.Println(exampleAST(2569, "load ~ ident_a"))
Output: &plot.UnaryExpression{ · Case: 4, · Token: example2569.go:1:6: '~' "~", · UnaryExpression: &plot.UnaryExpression{ · · PrimaryExpression: &plot.PrimaryExpression{ · · · Operand: &plot.Operand{ · · · · Case: 1, · · · · Token: example2569.go:1:8: IDENTIFIER "ident_a", · · · }, · · }, · }, }
Example (Case5) ¶
fmt.Println(exampleAST(2570, "pause ident_a !"))
Output: &plot.UnaryExpression{ · Case: 5, · Token: example2570.go:1:15: '!' "!", · UnaryExpression: &plot.UnaryExpression{ · · PrimaryExpression: &plot.PrimaryExpression{ · · · Operand: &plot.Operand{ · · · · Case: 1, · · · · Token: example2570.go:1:7: IDENTIFIER "ident_a", · · · }, · · }, · }, }
func (*UnaryExpression) Pos ¶
func (n *UnaryExpression) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*UnaryExpression) String ¶
func (n *UnaryExpression) String() string
String implements fmt.Stringer.
type UnaryNonParenthesizedExpression ¶
type UnaryNonParenthesizedExpression struct { Case int PrimaryNonParenthesizedExpression *PrimaryNonParenthesizedExpression Token xc.Token UnaryNonParenthesizedExpression *UnaryNonParenthesizedExpression }
UnaryNonParenthesizedExpression represents data reduced by productions:
UnaryNonParenthesizedExpression: PrimaryNonParenthesizedExpression | '!' UnaryNonParenthesizedExpression // Case 1 | '+' UnaryNonParenthesizedExpression // Case 2 | '-' UnaryNonParenthesizedExpression // Case 3 | '~' UnaryNonParenthesizedExpression // Case 4 | UnaryNonParenthesizedExpression '!' // Case 5
Example ¶
fmt.Println(exampleAST(2571, "set ztics ident_a"))
Output: &plot.UnaryNonParenthesizedExpression{ · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · Token: example2571.go:1:11: IDENTIFIER "ident_a", · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2572, "set ztics ! ident_a"))
Output: &plot.UnaryNonParenthesizedExpression{ · Case: 1, · Token: example2572.go:1:11: '!' "!", · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · Token: example2572.go:1:13: IDENTIFIER "ident_a", · · · }, · · }, · }, }
Example (Case2) ¶
fmt.Println(exampleAST(2573, "set ztics + ident_a"))
Output: &plot.UnaryNonParenthesizedExpression{ · Case: 2, · Token: example2573.go:1:11: '+' "+", · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · Token: example2573.go:1:13: IDENTIFIER "ident_a", · · · }, · · }, · }, }
Example (Case3) ¶
fmt.Println(exampleAST(2574, "set ztics - ident_a"))
Output: &plot.UnaryNonParenthesizedExpression{ · Case: 3, · Token: example2574.go:1:11: '-' "-", · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · Token: example2574.go:1:13: IDENTIFIER "ident_a", · · · }, · · }, · }, }
Example (Case4) ¶
fmt.Println(exampleAST(2575, "set ztics ~ ident_a"))
Output: &plot.UnaryNonParenthesizedExpression{ · Case: 4, · Token: example2575.go:1:11: '~' "~", · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · Token: example2575.go:1:13: IDENTIFIER "ident_a", · · · }, · · }, · }, }
Example (Case5) ¶
fmt.Println(exampleAST(2576, "set cbtics ident_a !"))
Output: &plot.UnaryNonParenthesizedExpression{ · Case: 5, · Token: example2576.go:1:20: '!' "!", · UnaryNonParenthesizedExpression: &plot.UnaryNonParenthesizedExpression{ · · PrimaryNonParenthesizedExpression: &plot.PrimaryNonParenthesizedExpression{ · · · NonParenthesizedOperand: &plot.NonParenthesizedOperand{ · · · · Token: example2576.go:1:12: IDENTIFIER "ident_a", · · · }, · · }, · }, }
func (*UnaryNonParenthesizedExpression) Pos ¶
func (n *UnaryNonParenthesizedExpression) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*UnaryNonParenthesizedExpression) String ¶
func (n *UnaryNonParenthesizedExpression) String() string
String implements fmt.Stringer.
type UnaryNonStringExpression ¶
type UnaryNonStringExpression struct { Case int PrimaryNonStringExpression *PrimaryNonStringExpression Token xc.Token UnaryNonStringExpression *UnaryNonStringExpression }
UnaryNonStringExpression represents data reduced by productions:
UnaryNonStringExpression: PrimaryNonStringExpression | '!' UnaryNonStringExpression // Case 1 | '+' UnaryNonStringExpression // Case 2 | '-' UnaryNonStringExpression // Case 3 | '~' UnaryNonStringExpression // Case 4
Example ¶
fmt.Println(exampleAST(2577, "set rtics ( ident_a !"))
Output: &plot.UnaryNonStringExpression{ · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · NonStringOperand: &plot.NonStringOperand{ · · · Case: 1, · · · Token: example2577.go:1:13: IDENTIFIER "ident_a", · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2578, "set rtics ( ! ident_a !"))
Output: &plot.UnaryNonStringExpression{ · Case: 1, · Token: example2578.go:1:13: '!' "!", · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · NonStringOperand: &plot.NonStringOperand{ · · · · Case: 1, · · · · Token: example2578.go:1:15: IDENTIFIER "ident_a", · · · }, · · }, · }, }
Example (Case2) ¶
fmt.Println(exampleAST(2579, "set rtics ( + ident_a !"))
Output: &plot.UnaryNonStringExpression{ · Case: 2, · Token: example2579.go:1:13: '+' "+", · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · NonStringOperand: &plot.NonStringOperand{ · · · · Case: 1, · · · · Token: example2579.go:1:15: IDENTIFIER "ident_a", · · · }, · · }, · }, }
Example (Case3) ¶
fmt.Println(exampleAST(2580, "set rtics ( - ident_a !"))
Output: &plot.UnaryNonStringExpression{ · Case: 3, · Token: example2580.go:1:13: '-' "-", · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · NonStringOperand: &plot.NonStringOperand{ · · · · Case: 1, · · · · Token: example2580.go:1:15: IDENTIFIER "ident_a", · · · }, · · }, · }, }
Example (Case4) ¶
fmt.Println(exampleAST(2581, "set rtics ( ~ ident_a !"))
Output: &plot.UnaryNonStringExpression{ · Case: 4, · Token: example2581.go:1:13: '~' "~", · UnaryNonStringExpression: &plot.UnaryNonStringExpression{ · · PrimaryNonStringExpression: &plot.PrimaryNonStringExpression{ · · · NonStringOperand: &plot.NonStringOperand{ · · · · Case: 1, · · · · Token: example2581.go:1:15: IDENTIFIER "ident_a", · · · }, · · }, · }, }
func (*UnaryNonStringExpression) Pos ¶
func (n *UnaryNonStringExpression) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*UnaryNonStringExpression) String ¶
func (n *UnaryNonStringExpression) String() string
String implements fmt.Stringer.
type UnarySimpleExpression ¶
type UnarySimpleExpression struct { Case int PrimaryExpression *PrimaryExpression Token xc.Token UnarySimpleExpression *UnarySimpleExpression }
UnarySimpleExpression represents data reduced by productions:
UnarySimpleExpression: PrimaryExpression | '!' UnarySimpleExpression // Case 1 | '~' UnarySimpleExpression // Case 2 | UnarySimpleExpression '!' // Case 3
Example ¶
fmt.Println(exampleAST(2582, "call ident_a"))
Output: &plot.UnarySimpleExpression{ · PrimaryExpression: &plot.PrimaryExpression{ · · Operand: &plot.Operand{ · · · Case: 1, · · · Token: example2582.go:1:6: IDENTIFIER "ident_a", · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2583, "set tics ( 'foo' 1+!x 2+!y )"))
Output: &plot.UnarySimpleExpression{ · Case: 1, · Token: example2583.go:1:25: '!' "!", · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · PrimaryExpression: &plot.PrimaryExpression{ · · · Operand: &plot.Operand{ · · · · Case: 1, · · · · Token: example2583.go:1:26: IDENTIFIER "y", · · · }, · · }, · }, }
Example (Case2) ¶
fmt.Println(exampleAST(2584, "call ~ ident_a"))
Output: &plot.UnarySimpleExpression{ · Case: 2, · Token: example2584.go:1:6: '~' "~", · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · PrimaryExpression: &plot.PrimaryExpression{ · · · Operand: &plot.Operand{ · · · · Case: 1, · · · · Token: example2584.go:1:8: IDENTIFIER "ident_a", · · · }, · · }, · }, }
Example (Case3) ¶
fmt.Println(exampleAST(2585, "call ident_a !"))
Output: &plot.UnarySimpleExpression{ · Case: 3, · Token: example2585.go:1:14: '!' "!", · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · PrimaryExpression: &plot.PrimaryExpression{ · · · Operand: &plot.Operand{ · · · · Case: 1, · · · · Token: example2585.go:1:6: IDENTIFIER "ident_a", · · · }, · · }, · }, }
func (*UnarySimpleExpression) Pos ¶
func (n *UnarySimpleExpression) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*UnarySimpleExpression) String ¶
func (n *UnarySimpleExpression) String() string
String implements fmt.Stringer.
type Undefine ¶
type Undefine struct { Token xc.Token UndefineList *UndefineList }
Undefine represents data reduced by production:
Undefine: "undefine" UndefineList
Example ¶
fmt.Println(exampleAST(2601, "undefine ident_a"))
Output: &plot.Undefine{ · Token: example2601.go:1:1: IDENTIFIER "undefine", · UndefineList: &plot.UndefineList{ · · UndefineListItem: &plot.UndefineListItem{ · · · Token: example2601.go:1:10: IDENTIFIER "ident_a", · · }, · }, }
type UndefineList ¶
type UndefineList struct { Case int UndefineList *UndefineList UndefineListItem *UndefineListItem }
UndefineList represents data reduced by productions:
UndefineList: UndefineListItem | UndefineList UndefineListItem // Case 1
Example ¶
fmt.Println(exampleAST(2602, "undefine ident_a"))
Output: &plot.UndefineList{ · UndefineListItem: &plot.UndefineListItem{ · · Token: example2602.go:1:10: IDENTIFIER "ident_a", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2603, "undefine ident_a ident_b"))
Output: &plot.UndefineList{ · UndefineList: &plot.UndefineList{ · · Case: 1, · · UndefineListItem: &plot.UndefineListItem{ · · · Token: example2603.go:1:18: IDENTIFIER "ident_b", · · }, · }, · UndefineListItem: &plot.UndefineListItem{ · · Token: example2603.go:1:10: IDENTIFIER "ident_a", · }, }
func (*UndefineList) Pos ¶
func (n *UndefineList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*UndefineList) String ¶
func (n *UndefineList) String() string
String implements fmt.Stringer.
type UndefineListItem ¶
UndefineListItem represents data reduced by productions:
UndefineListItem: IDENTIFIER | IDENTIFIER '*' // Case 1
Example ¶
fmt.Println(exampleAST(2604, "undefine ident_a"))
Output: &plot.UndefineListItem{ · Token: example2604.go:1:10: IDENTIFIER "ident_a", }
Example (Case1) ¶
fmt.Println(exampleAST(2605, "undefine ident_a *"))
Output: &plot.UndefineListItem{ · Case: 1, · Token: example2605.go:1:10: IDENTIFIER "ident_a", · Token2: example2605.go:1:18: '*' "*", }
func (*UndefineListItem) Pos ¶
func (n *UndefineListItem) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*UndefineListItem) String ¶
func (n *UndefineListItem) String() string
String implements fmt.Stringer.
type Unit ¶
Unit represents data reduced by productions:
Unit: "cm" | "mm" // Case 1 | "in" // Case 2 | "inch" // Case 3 | "pt" // Case 4 | "pc" // Case 5 | "bp" // Case 6 | "dd" // Case 7 | "cc" // Case 8
Example ¶
fmt.Println(exampleAST(2606, "set term pstex size ident_a cm"))
Output: &plot.Unit{ · Token: example2606.go:1:29: IDENTIFIER "cm", }
Example (Case1) ¶
fmt.Println(exampleAST(2607, "set term pstex size ident_a mm"))
Output: &plot.Unit{ · Case: 1, · Token: example2607.go:1:29: IDENTIFIER "mm", }
Example (Case2) ¶
fmt.Println(exampleAST(2608, "set term pstex size ident_a in"))
Output: &plot.Unit{ · Case: 2, · Token: example2608.go:1:29: IDENTIFIER "in", }
Example (Case3) ¶
fmt.Println(exampleAST(2609, "set term pstex size ident_a inch"))
Output: &plot.Unit{ · Case: 3, · Token: example2609.go:1:29: IDENTIFIER "inch", }
Example (Case4) ¶
fmt.Println(exampleAST(2610, "set term pstex size ident_a pt"))
Output: &plot.Unit{ · Case: 4, · Token: example2610.go:1:29: IDENTIFIER "pt", }
Example (Case5) ¶
fmt.Println(exampleAST(2611, "set term pstex size ident_a pc"))
Output: &plot.Unit{ · Case: 5, · Token: example2611.go:1:29: IDENTIFIER "pc", }
Example (Case6) ¶
fmt.Println(exampleAST(2612, "set term pstex size ident_a bp"))
Output: &plot.Unit{ · Case: 6, · Token: example2612.go:1:29: IDENTIFIER "bp", }
Example (Case7) ¶
fmt.Println(exampleAST(2613, "set term pstex size ident_a dd"))
Output: &plot.Unit{ · Case: 7, · Token: example2613.go:1:29: IDENTIFIER "dd", }
Example (Case8) ¶
fmt.Println(exampleAST(2614, "set term pstex size ident_a cc"))
Output: &plot.Unit{ · Case: 8, · Token: example2614.go:1:29: IDENTIFIER "cc", }
type UnitsOpt ¶
UnitsOpt represents data reduced by productions:
UnitsOpt: /* empty */ | "units" "xx" // Case 1 | "units" "xy" // Case 2 | "units" "yy" // Case 3
Example ¶
fmt.Println(exampleAST(2615, "plot ident_a w ellipses") == (*UnitsOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2616, "plot ident_a w ellipses units xx"))
Output: &plot.UnitsOpt{ · Case: 1, · Token: example2616.go:1:25: IDENTIFIER "units", · Token2: example2616.go:1:31: IDENTIFIER "xx", }
Example (Case2) ¶
fmt.Println(exampleAST(2617, "plot ident_a w ellipses units xy"))
Output: &plot.UnitsOpt{ · Case: 2, · Token: example2617.go:1:25: IDENTIFIER "units", · Token2: example2617.go:1:31: IDENTIFIER "xy", }
Example (Case3) ¶
fmt.Println(exampleAST(2618, "plot ident_a w ellipses units yy"))
Output: &plot.UnitsOpt{ · Case: 3, · Token: example2618.go:1:25: IDENTIFIER "units", · Token2: example2618.go:1:31: IDENTIFIER "yy", }
type Unset ¶
type Unset struct { IterationSpecifierOpt *IterationSpecifierOpt Token xc.Token UnsetSpec *UnsetSpec }
Unset represents data reduced by production:
Unset: "unset" IterationSpecifierOpt UnsetSpec
Example ¶
fmt.Println(exampleAST(2619, "unset angles"))
Output: &plot.Unset{ · Token: example2619.go:1:1: IDENTIFIER "unset", · UnsetSpec: &plot.UnsetSpec{ · · Token: example2619.go:1:7: IDENTIFIER "angles", · }, }
type UnsetLogscaleList ¶
type UnsetLogscaleList struct { Case int SetLogscaleAxesListItem *SetLogscaleAxesListItem UnsetLogscaleList *UnsetLogscaleList }
UnsetLogscaleList represents data reduced by productions:
UnsetLogscaleList: SetLogscaleAxesListItem | UnsetLogscaleList SetLogscaleAxesListItem // Case 1
Example ¶
fmt.Println(exampleAST(2755, "unset logscale cb"))
Output: &plot.UnsetLogscaleList{ · SetLogscaleAxesListItem: &plot.SetLogscaleAxesListItem{ · · Case: 5, · · Token: example2755.go:1:16: IDENTIFIER "cb", · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2756, "unset logscale cb cb"))
Output: &plot.UnsetLogscaleList{ · SetLogscaleAxesListItem: &plot.SetLogscaleAxesListItem{ · · Case: 5, · · Token: example2756.go:1:16: IDENTIFIER "cb", · }, · UnsetLogscaleList: &plot.UnsetLogscaleList{ · · Case: 1, · · SetLogscaleAxesListItem: &plot.SetLogscaleAxesListItem{ · · · Case: 5, · · · Token: example2756.go:1:19: IDENTIFIER "cb", · · }, · }, }
func (*UnsetLogscaleList) Pos ¶
func (n *UnsetLogscaleList) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*UnsetLogscaleList) String ¶
func (n *UnsetLogscaleList) String() string
String implements fmt.Stringer.
type UnsetLogscaleListOpt ¶
type UnsetLogscaleListOpt struct {
UnsetLogscaleList *UnsetLogscaleList
}
UnsetLogscaleListOpt represents data reduced by productions:
UnsetLogscaleListOpt: /* empty */ | UnsetLogscaleList // Case 1
Example ¶
fmt.Println(exampleAST(2757, "unset log") == (*UnsetLogscaleListOpt)(nil))
Output: true
Example (Case1) ¶
fmt.Println(exampleAST(2758, "unset logscale cb"))
Output: &plot.UnsetLogscaleListOpt{ · UnsetLogscaleList: &plot.UnsetLogscaleList{ · · SetLogscaleAxesListItem: &plot.SetLogscaleAxesListItem{ · · · Case: 5, · · · Token: example2758.go:1:16: IDENTIFIER "cb", · · }, · }, }
func (*UnsetLogscaleListOpt) Pos ¶
func (n *UnsetLogscaleListOpt) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*UnsetLogscaleListOpt) String ¶
func (n *UnsetLogscaleListOpt) String() string
String implements fmt.Stringer.
type UnsetSpec ¶
type UnsetSpec struct { Case int Expression *Expression ExpressionOpt *ExpressionOpt Token xc.Token UnsetLogscaleListOpt *UnsetLogscaleListOpt }
UnsetSpec represents data reduced by productions:
UnsetSpec: "angles" | "arrow" ExpressionOpt // Case 1 | "auto" // Case 2 | "autoscale" // Case 3 | "bars" // Case 4 | "bind" // Case 5 | "bmargin" // Case 6 | "border" // Case 7 | "boxwidth" // Case 8 | "cbdata" // Case 9 | "cbdtics" // Case 10 | "cblabel" // Case 11 | "cbmtics" // Case 12 | "cbrange" // Case 13 | "cbtics" // Case 14 | "clabel" // Case 15 | "clip" // Case 16 | "cntrlabel" // Case 17 | "cntrp" // Case 18 | "cntrparam" // Case 19 | "color" // Case 20 | "colorbox" // Case 21 | "colornames" // Case 22 | "colorsequence" // Case 23 | "contour" // Case 24 | "dashtype" // Case 25 | "datafile" // Case 26 | "decimalsign" // Case 27 | "dgrid3d" // Case 28 | "dummy" // Case 29 | "encoding" // Case 30 | "fit" // Case 31 | "fontpath" // Case 32 | "format" // Case 33 | "grid" // Case 34 | "hidden3d" // Case 35 | "history" // Case 36 | "iso" // Case 37 | "isosamples" // Case 38 | "key" // Case 39 | "label" // Case 40 | "label" Expression // Case 41 | "linetype" // Case 42 | "link" // Case 43 | "lmargin" // Case 44 | "loadpath" // Case 45 | "locale" // Case 46 | "log" UnsetLogscaleListOpt // Case 47 | "logscale" UnsetLogscaleListOpt // Case 48 | "mapping" // Case 49 | "margins" // Case 50 | "monochrome" // Case 51 | "mouse" // Case 52 | "mcbtics" // Case 53 | "multiplot" // Case 54 | "mx2tics" // Case 55 | "mxtics" // Case 56 | "my2tics" // Case 57 | "mytics" // Case 58 | "mztics" // Case 59 | "object" // Case 60 | "offsets" // Case 61 | "origin" // Case 62 | "output" // Case 63 | "palette" // Case 64 | "parametric" // Case 65 | "paxis" // Case 66 | "pm3d" // Case 67 | "pointintervalbox" // Case 68 | "pointsize" // Case 69 | "polar" // Case 70 | "print" // Case 71 | "psdir" // Case 72 | "raxis" // Case 73 | "rmargin" // Case 74 | "rrange" // Case 75 | "rtics" // Case 76 | "sam" // Case 77 | "sample" // Case 78 | "samples" // Case 79 | "size" // Case 80 | "style" // Case 81 | "surface" // Case 82 | "table" // Case 83 | "terminal" // Case 84 | "termoption" // Case 85 | "tics" // Case 86 | "ticslevel" // Case 87 | "time" // Case 88 | "timefmt" // Case 89 | "timestamp" // Case 90 | "title" // Case 91 | "tmargin" // Case 92 | "trange" // Case 93 | "urange" // Case 94 | "vi" // Case 95 | "view" // Case 96 | "vrange" // Case 97 | "x2data" // Case 98 | "x2label" // Case 99 | "x2mtics" // Case 100 | "x2range" // Case 101 | "x2tics" // Case 102 | "x2zeroaxis" // Case 103 | "xdata" // Case 104 | "x2dtics" // Case 105 | "xdtics" // Case 106 | "xlabel" // Case 107 | "xmtics" // Case 108 | "xrange" // Case 109 | "xtics" // Case 110 | "xyplane" // Case 111 | "xzeroaxis" // Case 112 | "y2data" // Case 113 | "y2mtics" // Case 114 | "y2range" // Case 115 | "y2tics" // Case 116 | "y2zeroaxis" // Case 117 | "ydata" // Case 118 | "y2dtics" // Case 119 | "ydtics" // Case 120 | "ylabel" // Case 121 | "ymtics" // Case 122 | "yrange" // Case 123 | "ytics" // Case 124 | "yzeroaxis" // Case 125 | "zdata" // Case 126 | "zdtics" // Case 127 | "zero" // Case 128 | "zeroaxis" // Case 129 | "zlabel" // Case 130 | "zmtics" // Case 131 | "zrange" // Case 132 | "ztics" // Case 133 | "zzeroaxis" // Case 134
Example ¶
fmt.Println(exampleAST(2620, "unset angles"))
Output: &plot.UnsetSpec{ · Token: example2620.go:1:7: IDENTIFIER "angles", }
Example (Case001) ¶
fmt.Println(exampleAST(2621, "unset arrow"))
Output: &plot.UnsetSpec{ · Case: 1, · Token: example2621.go:1:7: IDENTIFIER "arrow", }
Example (Case002) ¶
fmt.Println(exampleAST(2622, "unset auto"))
Output: &plot.UnsetSpec{ · Case: 2, · Token: example2622.go:1:7: IDENTIFIER "auto", }
Example (Case003) ¶
fmt.Println(exampleAST(2623, "unset autoscale"))
Output: &plot.UnsetSpec{ · Case: 3, · Token: example2623.go:1:7: IDENTIFIER "autoscale", }
Example (Case004) ¶
fmt.Println(exampleAST(2624, "unset bars"))
Output: &plot.UnsetSpec{ · Case: 4, · Token: example2624.go:1:7: IDENTIFIER "bars", }
Example (Case005) ¶
fmt.Println(exampleAST(2625, "unset bind"))
Output: &plot.UnsetSpec{ · Case: 5, · Token: example2625.go:1:7: IDENTIFIER "bind", }
Example (Case006) ¶
fmt.Println(exampleAST(2626, "unset bmargin"))
Output: &plot.UnsetSpec{ · Case: 6, · Token: example2626.go:1:7: IDENTIFIER "bmargin", }
Example (Case007) ¶
fmt.Println(exampleAST(2627, "unset border"))
Output: &plot.UnsetSpec{ · Case: 7, · Token: example2627.go:1:7: IDENTIFIER "border", }
Example (Case008) ¶
fmt.Println(exampleAST(2628, "unset boxwidth"))
Output: &plot.UnsetSpec{ · Case: 8, · Token: example2628.go:1:7: IDENTIFIER "boxwidth", }
Example (Case009) ¶
fmt.Println(exampleAST(2629, "unset cbdata"))
Output: &plot.UnsetSpec{ · Case: 9, · Token: example2629.go:1:7: IDENTIFIER "cbdata", }
Example (Case010) ¶
fmt.Println(exampleAST(2630, "unset cbdtics"))
Output: &plot.UnsetSpec{ · Case: 10, · Token: example2630.go:1:7: IDENTIFIER "cbdtics", }
Example (Case011) ¶
fmt.Println(exampleAST(2631, "unset cblabel"))
Output: &plot.UnsetSpec{ · Case: 11, · Token: example2631.go:1:7: IDENTIFIER "cblabel", }
Example (Case012) ¶
fmt.Println(exampleAST(2632, "unset cbmtics"))
Output: &plot.UnsetSpec{ · Case: 12, · Token: example2632.go:1:7: IDENTIFIER "cbmtics", }
Example (Case013) ¶
fmt.Println(exampleAST(2633, "unset cbrange"))
Output: &plot.UnsetSpec{ · Case: 13, · Token: example2633.go:1:7: IDENTIFIER "cbrange", }
Example (Case014) ¶
fmt.Println(exampleAST(2634, "unset cbtics"))
Output: &plot.UnsetSpec{ · Case: 14, · Token: example2634.go:1:7: IDENTIFIER "cbtics", }
Example (Case015) ¶
fmt.Println(exampleAST(2635, "unset clabel"))
Output: &plot.UnsetSpec{ · Case: 15, · Token: example2635.go:1:7: IDENTIFIER "clabel", }
Example (Case016) ¶
fmt.Println(exampleAST(2636, "unset clip"))
Output: &plot.UnsetSpec{ · Case: 16, · Token: example2636.go:1:7: IDENTIFIER "clip", }
Example (Case017) ¶
fmt.Println(exampleAST(2637, "unset cntrlabel"))
Output: &plot.UnsetSpec{ · Case: 17, · Token: example2637.go:1:7: IDENTIFIER "cntrlabel", }
Example (Case018) ¶
fmt.Println(exampleAST(2638, "unset cntrp"))
Output: &plot.UnsetSpec{ · Case: 18, · Token: example2638.go:1:7: IDENTIFIER "cntrp", }
Example (Case019) ¶
fmt.Println(exampleAST(2639, "unset cntrparam"))
Output: &plot.UnsetSpec{ · Case: 19, · Token: example2639.go:1:7: IDENTIFIER "cntrparam", }
Example (Case020) ¶
fmt.Println(exampleAST(2640, "unset color"))
Output: &plot.UnsetSpec{ · Case: 20, · Token: example2640.go:1:7: IDENTIFIER "color", }
Example (Case021) ¶
fmt.Println(exampleAST(2641, "unset colorbox"))
Output: &plot.UnsetSpec{ · Case: 21, · Token: example2641.go:1:7: IDENTIFIER "colorbox", }
Example (Case022) ¶
fmt.Println(exampleAST(2642, "unset colornames"))
Output: &plot.UnsetSpec{ · Case: 22, · Token: example2642.go:1:7: IDENTIFIER "colornames", }
Example (Case023) ¶
fmt.Println(exampleAST(2643, "unset colorsequence"))
Output: &plot.UnsetSpec{ · Case: 23, · Token: example2643.go:1:7: IDENTIFIER "colorsequence", }
Example (Case024) ¶
fmt.Println(exampleAST(2644, "unset contour"))
Output: &plot.UnsetSpec{ · Case: 24, · Token: example2644.go:1:7: IDENTIFIER "contour", }
Example (Case025) ¶
fmt.Println(exampleAST(2645, "unset dashtype"))
Output: &plot.UnsetSpec{ · Case: 25, · Token: example2645.go:1:7: IDENTIFIER "dashtype", }
Example (Case026) ¶
fmt.Println(exampleAST(2646, "unset datafile"))
Output: &plot.UnsetSpec{ · Case: 26, · Token: example2646.go:1:7: IDENTIFIER "datafile", }
Example (Case027) ¶
fmt.Println(exampleAST(2647, "unset decimalsign"))
Output: &plot.UnsetSpec{ · Case: 27, · Token: example2647.go:1:7: IDENTIFIER "decimalsign", }
Example (Case028) ¶
fmt.Println(exampleAST(2648, "unset dgrid3d"))
Output: &plot.UnsetSpec{ · Case: 28, · Token: example2648.go:1:7: IDENTIFIER "dgrid3d", }
Example (Case029) ¶
fmt.Println(exampleAST(2649, "unset dummy"))
Output: &plot.UnsetSpec{ · Case: 29, · Token: example2649.go:1:7: IDENTIFIER "dummy", }
Example (Case030) ¶
fmt.Println(exampleAST(2650, "unset encoding"))
Output: &plot.UnsetSpec{ · Case: 30, · Token: example2650.go:1:7: IDENTIFIER "encoding", }
Example (Case031) ¶
fmt.Println(exampleAST(2651, "unset fit"))
Output: &plot.UnsetSpec{ · Case: 31, · Token: example2651.go:1:7: IDENTIFIER "fit", }
Example (Case032) ¶
fmt.Println(exampleAST(2652, "unset fontpath"))
Output: &plot.UnsetSpec{ · Case: 32, · Token: example2652.go:1:7: IDENTIFIER "fontpath", }
Example (Case033) ¶
fmt.Println(exampleAST(2653, "unset format"))
Output: &plot.UnsetSpec{ · Case: 33, · Token: example2653.go:1:7: IDENTIFIER "format", }
Example (Case034) ¶
fmt.Println(exampleAST(2654, "unset grid"))
Output: &plot.UnsetSpec{ · Case: 34, · Token: example2654.go:1:7: IDENTIFIER "grid", }
Example (Case035) ¶
fmt.Println(exampleAST(2655, "unset hidden3d"))
Output: &plot.UnsetSpec{ · Case: 35, · Token: example2655.go:1:7: IDENTIFIER "hidden3d", }
Example (Case036) ¶
fmt.Println(exampleAST(2656, "unset history"))
Output: &plot.UnsetSpec{ · Case: 36, · Token: example2656.go:1:7: IDENTIFIER "history", }
Example (Case037) ¶
fmt.Println(exampleAST(2657, "unset iso"))
Output: &plot.UnsetSpec{ · Case: 37, · Token: example2657.go:1:7: IDENTIFIER "iso", }
Example (Case038) ¶
fmt.Println(exampleAST(2658, "unset isosamples"))
Output: &plot.UnsetSpec{ · Case: 38, · Token: example2658.go:1:7: IDENTIFIER "isosamples", }
Example (Case039) ¶
fmt.Println(exampleAST(2659, "unset key"))
Output: &plot.UnsetSpec{ · Case: 39, · Token: example2659.go:1:7: IDENTIFIER "key", }
Example (Case040) ¶
fmt.Println(exampleAST(2660, "unset label"))
Output: &plot.UnsetSpec{ · Case: 40, · Token: example2660.go:1:7: IDENTIFIER "label", }
Example (Case041) ¶
fmt.Println(exampleAST(2661, "unset label ident_a"))
Output: &plot.UnsetSpec{ · Case: 41, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2661.go:1:13: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2661.go:1:7: IDENTIFIER "label", }
Example (Case042) ¶
fmt.Println(exampleAST(2662, "unset linetype"))
Output: &plot.UnsetSpec{ · Case: 42, · Token: example2662.go:1:7: IDENTIFIER "linetype", }
Example (Case043) ¶
fmt.Println(exampleAST(2663, "unset link"))
Output: &plot.UnsetSpec{ · Case: 43, · Token: example2663.go:1:7: IDENTIFIER "link", }
Example (Case044) ¶
fmt.Println(exampleAST(2664, "unset lmargin"))
Output: &plot.UnsetSpec{ · Case: 44, · Token: example2664.go:1:7: IDENTIFIER "lmargin", }
Example (Case045) ¶
fmt.Println(exampleAST(2665, "unset loadpath"))
Output: &plot.UnsetSpec{ · Case: 45, · Token: example2665.go:1:7: IDENTIFIER "loadpath", }
Example (Case046) ¶
fmt.Println(exampleAST(2666, "unset locale"))
Output: &plot.UnsetSpec{ · Case: 46, · Token: example2666.go:1:7: IDENTIFIER "locale", }
Example (Case047) ¶
fmt.Println(exampleAST(2667, "unset log"))
Output: &plot.UnsetSpec{ · Case: 47, · Token: example2667.go:1:7: IDENTIFIER "log", }
Example (Case048) ¶
fmt.Println(exampleAST(2668, "unset logscale"))
Output: &plot.UnsetSpec{ · Case: 48, · Token: example2668.go:1:7: IDENTIFIER "logscale", }
Example (Case049) ¶
fmt.Println(exampleAST(2669, "unset mapping"))
Output: &plot.UnsetSpec{ · Case: 49, · Token: example2669.go:1:7: IDENTIFIER "mapping", }
Example (Case050) ¶
fmt.Println(exampleAST(2670, "unset margins"))
Output: &plot.UnsetSpec{ · Case: 50, · Token: example2670.go:1:7: IDENTIFIER "margins", }
Example (Case051) ¶
fmt.Println(exampleAST(2671, "unset monochrome"))
Output: &plot.UnsetSpec{ · Case: 51, · Token: example2671.go:1:7: IDENTIFIER "monochrome", }
Example (Case052) ¶
fmt.Println(exampleAST(2672, "unset mouse"))
Output: &plot.UnsetSpec{ · Case: 52, · Token: example2672.go:1:7: IDENTIFIER "mouse", }
Example (Case053) ¶
fmt.Println(exampleAST(2673, "unset mcbtics"))
Output: &plot.UnsetSpec{ · Case: 53, · Token: example2673.go:1:7: IDENTIFIER "mcbtics", }
Example (Case054) ¶
fmt.Println(exampleAST(2674, "unset multiplot"))
Output: &plot.UnsetSpec{ · Case: 54, · Token: example2674.go:1:7: IDENTIFIER "multiplot", }
Example (Case055) ¶
fmt.Println(exampleAST(2675, "unset mx2tics"))
Output: &plot.UnsetSpec{ · Case: 55, · Token: example2675.go:1:7: IDENTIFIER "mx2tics", }
Example (Case056) ¶
fmt.Println(exampleAST(2676, "unset mxtics"))
Output: &plot.UnsetSpec{ · Case: 56, · Token: example2676.go:1:7: IDENTIFIER "mxtics", }
Example (Case057) ¶
fmt.Println(exampleAST(2677, "unset my2tics"))
Output: &plot.UnsetSpec{ · Case: 57, · Token: example2677.go:1:7: IDENTIFIER "my2tics", }
Example (Case058) ¶
fmt.Println(exampleAST(2678, "unset mytics"))
Output: &plot.UnsetSpec{ · Case: 58, · Token: example2678.go:1:7: IDENTIFIER "mytics", }
Example (Case059) ¶
fmt.Println(exampleAST(2679, "unset mztics"))
Output: &plot.UnsetSpec{ · Case: 59, · Token: example2679.go:1:7: IDENTIFIER "mztics", }
Example (Case060) ¶
fmt.Println(exampleAST(2680, "unset object"))
Output: &plot.UnsetSpec{ · Case: 60, · Token: example2680.go:1:7: IDENTIFIER "object", }
Example (Case061) ¶
fmt.Println(exampleAST(2681, "unset offsets"))
Output: &plot.UnsetSpec{ · Case: 61, · Token: example2681.go:1:7: IDENTIFIER "offsets", }
Example (Case062) ¶
fmt.Println(exampleAST(2682, "unset origin"))
Output: &plot.UnsetSpec{ · Case: 62, · Token: example2682.go:1:7: IDENTIFIER "origin", }
Example (Case063) ¶
fmt.Println(exampleAST(2683, "unset output"))
Output: &plot.UnsetSpec{ · Case: 63, · Token: example2683.go:1:7: IDENTIFIER "output", }
Example (Case064) ¶
fmt.Println(exampleAST(2684, "unset palette"))
Output: &plot.UnsetSpec{ · Case: 64, · Token: example2684.go:1:7: IDENTIFIER "palette", }
Example (Case065) ¶
fmt.Println(exampleAST(2685, "unset parametric"))
Output: &plot.UnsetSpec{ · Case: 65, · Token: example2685.go:1:7: IDENTIFIER "parametric", }
Example (Case066) ¶
fmt.Println(exampleAST(2686, "unset paxis"))
Output: &plot.UnsetSpec{ · Case: 66, · Token: example2686.go:1:7: IDENTIFIER "paxis", }
Example (Case067) ¶
fmt.Println(exampleAST(2687, "unset pm3d"))
Output: &plot.UnsetSpec{ · Case: 67, · Token: example2687.go:1:7: IDENTIFIER "pm3d", }
Example (Case068) ¶
fmt.Println(exampleAST(2688, "unset pointintervalbox"))
Output: &plot.UnsetSpec{ · Case: 68, · Token: example2688.go:1:7: IDENTIFIER "pointintervalbox", }
Example (Case069) ¶
fmt.Println(exampleAST(2689, "unset pointsize"))
Output: &plot.UnsetSpec{ · Case: 69, · Token: example2689.go:1:7: IDENTIFIER "pointsize", }
Example (Case070) ¶
fmt.Println(exampleAST(2690, "unset polar"))
Output: &plot.UnsetSpec{ · Case: 70, · Token: example2690.go:1:7: IDENTIFIER "polar", }
Example (Case071) ¶
fmt.Println(exampleAST(2691, "unset print"))
Output: &plot.UnsetSpec{ · Case: 71, · Token: example2691.go:1:7: IDENTIFIER "print", }
Example (Case072) ¶
fmt.Println(exampleAST(2692, "unset psdir"))
Output: &plot.UnsetSpec{ · Case: 72, · Token: example2692.go:1:7: IDENTIFIER "psdir", }
Example (Case073) ¶
fmt.Println(exampleAST(2693, "unset raxis"))
Output: &plot.UnsetSpec{ · Case: 73, · Token: example2693.go:1:7: IDENTIFIER "raxis", }
Example (Case074) ¶
fmt.Println(exampleAST(2694, "unset rmargin"))
Output: &plot.UnsetSpec{ · Case: 74, · Token: example2694.go:1:7: IDENTIFIER "rmargin", }
Example (Case075) ¶
fmt.Println(exampleAST(2695, "unset rrange"))
Output: &plot.UnsetSpec{ · Case: 75, · Token: example2695.go:1:7: IDENTIFIER "rrange", }
Example (Case076) ¶
fmt.Println(exampleAST(2696, "unset rtics"))
Output: &plot.UnsetSpec{ · Case: 76, · Token: example2696.go:1:7: IDENTIFIER "rtics", }
Example (Case077) ¶
fmt.Println(exampleAST(2697, "unset sam"))
Output: &plot.UnsetSpec{ · Case: 77, · Token: example2697.go:1:7: IDENTIFIER "sam", }
Example (Case078) ¶
fmt.Println(exampleAST(2698, "unset sample"))
Output: &plot.UnsetSpec{ · Case: 78, · Token: example2698.go:1:7: IDENTIFIER "sample", }
Example (Case079) ¶
fmt.Println(exampleAST(2699, "unset samples"))
Output: &plot.UnsetSpec{ · Case: 79, · Token: example2699.go:1:7: IDENTIFIER "samples", }
Example (Case080) ¶
fmt.Println(exampleAST(2700, "unset size"))
Output: &plot.UnsetSpec{ · Case: 80, · Token: example2700.go:1:7: IDENTIFIER "size", }
Example (Case081) ¶
fmt.Println(exampleAST(2701, "unset style"))
Output: &plot.UnsetSpec{ · Case: 81, · Token: example2701.go:1:7: IDENTIFIER "style", }
Example (Case082) ¶
fmt.Println(exampleAST(2702, "unset surface"))
Output: &plot.UnsetSpec{ · Case: 82, · Token: example2702.go:1:7: IDENTIFIER "surface", }
Example (Case083) ¶
fmt.Println(exampleAST(2703, "unset table"))
Output: &plot.UnsetSpec{ · Case: 83, · Token: example2703.go:1:7: IDENTIFIER "table", }
Example (Case084) ¶
fmt.Println(exampleAST(2704, "unset terminal"))
Output: &plot.UnsetSpec{ · Case: 84, · Token: example2704.go:1:7: IDENTIFIER "terminal", }
Example (Case085) ¶
fmt.Println(exampleAST(2705, "unset termoption"))
Output: &plot.UnsetSpec{ · Case: 85, · Token: example2705.go:1:7: IDENTIFIER "termoption", }
Example (Case086) ¶
fmt.Println(exampleAST(2706, "unset tics"))
Output: &plot.UnsetSpec{ · Case: 86, · Token: example2706.go:1:7: IDENTIFIER "tics", }
Example (Case087) ¶
fmt.Println(exampleAST(2707, "unset ticslevel"))
Output: &plot.UnsetSpec{ · Case: 87, · Token: example2707.go:1:7: IDENTIFIER "ticslevel", }
Example (Case088) ¶
fmt.Println(exampleAST(2708, "unset time"))
Output: &plot.UnsetSpec{ · Case: 88, · Token: example2708.go:1:7: IDENTIFIER "time", }
Example (Case089) ¶
fmt.Println(exampleAST(2709, "unset timefmt"))
Output: &plot.UnsetSpec{ · Case: 89, · Token: example2709.go:1:7: IDENTIFIER "timefmt", }
Example (Case090) ¶
fmt.Println(exampleAST(2710, "unset timestamp"))
Output: &plot.UnsetSpec{ · Case: 90, · Token: example2710.go:1:7: IDENTIFIER "timestamp", }
Example (Case091) ¶
fmt.Println(exampleAST(2711, "unset title"))
Output: &plot.UnsetSpec{ · Case: 91, · Token: example2711.go:1:7: IDENTIFIER "title", }
Example (Case092) ¶
fmt.Println(exampleAST(2712, "unset tmargin"))
Output: &plot.UnsetSpec{ · Case: 92, · Token: example2712.go:1:7: IDENTIFIER "tmargin", }
Example (Case093) ¶
fmt.Println(exampleAST(2713, "unset trange"))
Output: &plot.UnsetSpec{ · Case: 93, · Token: example2713.go:1:7: IDENTIFIER "trange", }
Example (Case094) ¶
fmt.Println(exampleAST(2714, "unset urange"))
Output: &plot.UnsetSpec{ · Case: 94, · Token: example2714.go:1:7: IDENTIFIER "urange", }
Example (Case095) ¶
fmt.Println(exampleAST(2715, "unset vi"))
Output: &plot.UnsetSpec{ · Case: 95, · Token: example2715.go:1:7: IDENTIFIER "vi", }
Example (Case096) ¶
fmt.Println(exampleAST(2716, "unset view"))
Output: &plot.UnsetSpec{ · Case: 96, · Token: example2716.go:1:7: IDENTIFIER "view", }
Example (Case097) ¶
fmt.Println(exampleAST(2717, "unset vrange"))
Output: &plot.UnsetSpec{ · Case: 97, · Token: example2717.go:1:7: IDENTIFIER "vrange", }
Example (Case098) ¶
fmt.Println(exampleAST(2718, "unset x2data"))
Output: &plot.UnsetSpec{ · Case: 98, · Token: example2718.go:1:7: IDENTIFIER "x2data", }
Example (Case099) ¶
fmt.Println(exampleAST(2719, "unset x2label"))
Output: &plot.UnsetSpec{ · Case: 99, · Token: example2719.go:1:7: IDENTIFIER "x2label", }
Example (Case100) ¶
fmt.Println(exampleAST(2720, "unset x2mtics"))
Output: &plot.UnsetSpec{ · Case: 100, · Token: example2720.go:1:7: IDENTIFIER "x2mtics", }
Example (Case101) ¶
fmt.Println(exampleAST(2721, "unset x2range"))
Output: &plot.UnsetSpec{ · Case: 101, · Token: example2721.go:1:7: IDENTIFIER "x2range", }
Example (Case102) ¶
fmt.Println(exampleAST(2722, "unset x2tics"))
Output: &plot.UnsetSpec{ · Case: 102, · Token: example2722.go:1:7: IDENTIFIER "x2tics", }
Example (Case103) ¶
fmt.Println(exampleAST(2723, "unset x2zeroaxis"))
Output: &plot.UnsetSpec{ · Case: 103, · Token: example2723.go:1:7: IDENTIFIER "x2zeroaxis", }
Example (Case104) ¶
fmt.Println(exampleAST(2724, "unset xdata"))
Output: &plot.UnsetSpec{ · Case: 104, · Token: example2724.go:1:7: IDENTIFIER "xdata", }
Example (Case105) ¶
fmt.Println(exampleAST(2725, "unset x2dtics"))
Output: &plot.UnsetSpec{ · Case: 105, · Token: example2725.go:1:7: IDENTIFIER "x2dtics", }
Example (Case106) ¶
fmt.Println(exampleAST(2726, "unset xdtics"))
Output: &plot.UnsetSpec{ · Case: 106, · Token: example2726.go:1:7: IDENTIFIER "xdtics", }
Example (Case107) ¶
fmt.Println(exampleAST(2727, "unset xlabel"))
Output: &plot.UnsetSpec{ · Case: 107, · Token: example2727.go:1:7: IDENTIFIER "xlabel", }
Example (Case108) ¶
fmt.Println(exampleAST(2728, "unset xmtics"))
Output: &plot.UnsetSpec{ · Case: 108, · Token: example2728.go:1:7: IDENTIFIER "xmtics", }
Example (Case109) ¶
fmt.Println(exampleAST(2729, "unset xrange"))
Output: &plot.UnsetSpec{ · Case: 109, · Token: example2729.go:1:7: IDENTIFIER "xrange", }
Example (Case110) ¶
fmt.Println(exampleAST(2730, "unset xtics"))
Output: &plot.UnsetSpec{ · Case: 110, · Token: example2730.go:1:7: IDENTIFIER "xtics", }
Example (Case111) ¶
fmt.Println(exampleAST(2731, "unset xyplane"))
Output: &plot.UnsetSpec{ · Case: 111, · Token: example2731.go:1:7: IDENTIFIER "xyplane", }
Example (Case112) ¶
fmt.Println(exampleAST(2732, "unset xzeroaxis"))
Output: &plot.UnsetSpec{ · Case: 112, · Token: example2732.go:1:7: IDENTIFIER "xzeroaxis", }
Example (Case113) ¶
fmt.Println(exampleAST(2733, "unset y2data"))
Output: &plot.UnsetSpec{ · Case: 113, · Token: example2733.go:1:7: IDENTIFIER "y2data", }
Example (Case114) ¶
fmt.Println(exampleAST(2734, "unset y2mtics"))
Output: &plot.UnsetSpec{ · Case: 114, · Token: example2734.go:1:7: IDENTIFIER "y2mtics", }
Example (Case115) ¶
fmt.Println(exampleAST(2735, "unset y2range"))
Output: &plot.UnsetSpec{ · Case: 115, · Token: example2735.go:1:7: IDENTIFIER "y2range", }
Example (Case116) ¶
fmt.Println(exampleAST(2736, "unset y2tics"))
Output: &plot.UnsetSpec{ · Case: 116, · Token: example2736.go:1:7: IDENTIFIER "y2tics", }
Example (Case117) ¶
fmt.Println(exampleAST(2737, "unset y2zeroaxis"))
Output: &plot.UnsetSpec{ · Case: 117, · Token: example2737.go:1:7: IDENTIFIER "y2zeroaxis", }
Example (Case118) ¶
fmt.Println(exampleAST(2738, "unset ydata"))
Output: &plot.UnsetSpec{ · Case: 118, · Token: example2738.go:1:7: IDENTIFIER "ydata", }
Example (Case119) ¶
fmt.Println(exampleAST(2739, "unset y2dtics"))
Output: &plot.UnsetSpec{ · Case: 119, · Token: example2739.go:1:7: IDENTIFIER "y2dtics", }
Example (Case120) ¶
fmt.Println(exampleAST(2740, "unset ydtics"))
Output: &plot.UnsetSpec{ · Case: 120, · Token: example2740.go:1:7: IDENTIFIER "ydtics", }
Example (Case121) ¶
fmt.Println(exampleAST(2741, "unset ylabel"))
Output: &plot.UnsetSpec{ · Case: 121, · Token: example2741.go:1:7: IDENTIFIER "ylabel", }
Example (Case122) ¶
fmt.Println(exampleAST(2742, "unset ymtics"))
Output: &plot.UnsetSpec{ · Case: 122, · Token: example2742.go:1:7: IDENTIFIER "ymtics", }
Example (Case123) ¶
fmt.Println(exampleAST(2743, "unset yrange"))
Output: &plot.UnsetSpec{ · Case: 123, · Token: example2743.go:1:7: IDENTIFIER "yrange", }
Example (Case124) ¶
fmt.Println(exampleAST(2744, "unset ytics"))
Output: &plot.UnsetSpec{ · Case: 124, · Token: example2744.go:1:7: IDENTIFIER "ytics", }
Example (Case125) ¶
fmt.Println(exampleAST(2745, "unset yzeroaxis"))
Output: &plot.UnsetSpec{ · Case: 125, · Token: example2745.go:1:7: IDENTIFIER "yzeroaxis", }
Example (Case126) ¶
fmt.Println(exampleAST(2746, "unset zdata"))
Output: &plot.UnsetSpec{ · Case: 126, · Token: example2746.go:1:7: IDENTIFIER "zdata", }
Example (Case127) ¶
fmt.Println(exampleAST(2747, "unset zdtics"))
Output: &plot.UnsetSpec{ · Case: 127, · Token: example2747.go:1:7: IDENTIFIER "zdtics", }
Example (Case128) ¶
fmt.Println(exampleAST(2748, "unset zero"))
Output: &plot.UnsetSpec{ · Case: 128, · Token: example2748.go:1:7: IDENTIFIER "zero", }
Example (Case129) ¶
fmt.Println(exampleAST(2749, "unset zeroaxis"))
Output: &plot.UnsetSpec{ · Case: 129, · Token: example2749.go:1:7: IDENTIFIER "zeroaxis", }
Example (Case130) ¶
fmt.Println(exampleAST(2750, "unset zlabel"))
Output: &plot.UnsetSpec{ · Case: 130, · Token: example2750.go:1:7: IDENTIFIER "zlabel", }
Example (Case131) ¶
fmt.Println(exampleAST(2751, "unset zmtics"))
Output: &plot.UnsetSpec{ · Case: 131, · Token: example2751.go:1:7: IDENTIFIER "zmtics", }
Example (Case132) ¶
fmt.Println(exampleAST(2752, "unset zrange"))
Output: &plot.UnsetSpec{ · Case: 132, · Token: example2752.go:1:7: IDENTIFIER "zrange", }
Example (Case133) ¶
fmt.Println(exampleAST(2753, "unset ztics"))
Output: &plot.UnsetSpec{ · Case: 133, · Token: example2753.go:1:7: IDENTIFIER "ztics", }
Example (Case134) ¶
fmt.Println(exampleAST(2754, "unset zzeroaxis"))
Output: &plot.UnsetSpec{ · Case: 134, · Token: example2754.go:1:7: IDENTIFIER "zzeroaxis", }
type Update ¶
type Update struct { Case int Expression *Expression SimpleExpression *SimpleExpression Token xc.Token }
Update represents data reduced by productions:
Update: "update" Expression | "update" Expression SimpleExpression // Case 1
Example ¶
fmt.Println(exampleAST(2759, "update ident_a"))
Output: &plot.Update{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2759.go:1:8: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2759.go:1:1: IDENTIFIER "update", }
Example (Case1) ¶
fmt.Println(exampleAST(2760, "update ident_a ident_b"))
Output: &plot.Update{ · Case: 1, · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2760.go:1:8: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · SimpleExpression: &plot.SimpleExpression{ · · Case: 24, · · UnarySimpleExpression: &plot.UnarySimpleExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2760.go:1:16: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2760.go:1:1: IDENTIFIER "update", }
type UsingList ¶
type UsingList struct { Case int Expression *Expression Token xc.Token UsingList *UsingList }
UsingList represents data reduced by productions:
UsingList: Expression | UsingList ':' Expression // Case 1
Example ¶
fmt.Println(exampleAST(2761, "plot ident_a u ident_b"))
Output: &plot.UsingList{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2761.go:1:16: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, }
Example (Case1) ¶
fmt.Println(exampleAST(2762, "plot ident_a using ident_b : ident_c"))
Output: &plot.UsingList{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2762.go:1:20: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · UsingList: &plot.UsingList{ · · Case: 1, · · Expression: &plot.Expression{ · · · Case: 24, · · · UnaryExpression: &plot.UnaryExpression{ · · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · · Operand: &plot.Operand{ · · · · · · Case: 1, · · · · · · Token: example2762.go:1:30: IDENTIFIER "ident_c", · · · · · }, · · · · }, · · · }, · · }, · · Token: example2762.go:1:28: ':' ":", · }, }
type VariableDefinition ¶
type VariableDefinition struct { Expression *Expression Token xc.Token Token2 xc.Token }
VariableDefinition represents data reduced by production:
VariableDefinition: IDENTIFIER '=' Expression
Example ¶
fmt.Println(exampleAST(2763, "ident_a = ident_b"))
Output: &plot.VariableDefinition{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2763.go:1:11: IDENTIFIER "ident_b", · · · · }, · · · }, · · }, · }, · Token: example2763.go:1:1: IDENTIFIER "ident_a", · Token2: example2763.go:1:9: '=' "=", }
func (*VariableDefinition) Pos ¶
func (n *VariableDefinition) Pos() token.Pos
Pos reports the position of the first component of n or zero if it's empty.
func (*VariableDefinition) String ¶
func (n *VariableDefinition) String() string
String implements fmt.Stringer.
type While ¶
type While struct { Expression *Expression StatementList *StatementList Token xc.Token Token2 xc.Token Token3 xc.Token Token4 xc.Token Token5 xc.Token }
While represents data reduced by production:
While: "while" '(' Expression ')' '{' StatementList '}'
Example ¶
fmt.Println(exampleAST(2765, "while ( ident_a ) { }"))
Output: &plot.While{ · Expression: &plot.Expression{ · · Case: 24, · · UnaryExpression: &plot.UnaryExpression{ · · · PrimaryExpression: &plot.PrimaryExpression{ · · · · Operand: &plot.Operand{ · · · · · Case: 1, · · · · · Token: example2765.go:1:9: IDENTIFIER "ident_a", · · · · }, · · · }, · · }, · }, · Token: example2765.go:1:1: IDENTIFIER "while", · Token2: example2765.go:1:7: '(' "(", · Token3: example2765.go:1:17: ')' ")", · Token4: example2765.go:1:19: '{' "{", · Token5: example2765.go:1:21: '}' "}", }