Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: api/rascal/linear/extracted
Source used for this grammar: Paul Klint, Jurgen J. Vinju, analysis::linearprogramming::LinearProgramming
, 2009–2013 [Explore]
Coefficients
, LinearExpression
, ObjectiveFun
, ConstraintType
, Constraint
, Constraints
, VariableVals
, Solution
), 0 root (—), 3 top (ObjectiveFun
, Constraints
, Solution
), 0 bottom (—).[linearExp]
, [leq]
, [eq]
, [geq]
, [constraint]
, [solution]
.⟨var⟩
2, ⟨coef⟩
, ⟨coefficients⟩
2, ⟨const⟩
2, ⟨ctype⟩
, ⟨val⟩
, ⟨varVals⟩
, ⟨funVal⟩
.Coefficients ::= string ⟨coef⟩:integer⟨var⟩:
LinearExpression ::= [linearExp]::Coefficients ⟨const⟩:integer⟨coefficients⟩:
ObjectiveFun ::= LinearExpression
ConstraintType ::= [leq]::ε [eq]::ε [geq]::ε
Constraint ::= [constraint]::Coefficients ⟨ctype⟩:ConstraintType ⟨const⟩:integer⟨coefficients⟩:
Constraints ::=
Constraint
VariableVals ::= string ⟨val⟩:integer⟨var⟩:
Solution ::= [solution]::VariableVals ⟨funVal⟩:integer⟨varVals⟩: