fix: removed redundant labelling in ast
Co-authored-by: gc1523
This commit is contained in:
parent
19880321d7
commit
8b64f2e352
@ -119,13 +119,9 @@ object ast {
|
|||||||
case class Print(expr: Expr, newline: Boolean) extends Stmt
|
case class Print(expr: Expr, newline: Boolean) extends Stmt
|
||||||
object Print extends ParserBridge2[Expr, Boolean, Print]
|
object Print extends ParserBridge2[Expr, Boolean, Print]
|
||||||
case class If(cond: Expr, thenStmt: NonEmptyList[Stmt], elseStmt: NonEmptyList[Stmt]) extends Stmt
|
case class If(cond: Expr, thenStmt: NonEmptyList[Stmt], elseStmt: NonEmptyList[Stmt]) extends Stmt
|
||||||
object If extends ParserBridge3[Expr, NonEmptyList[Stmt], NonEmptyList[Stmt], If] {
|
object If extends ParserBridge3[Expr, NonEmptyList[Stmt], NonEmptyList[Stmt], If]
|
||||||
override def labels = List("if statement")
|
|
||||||
}
|
|
||||||
case class While(cond: Expr, body: NonEmptyList[Stmt]) extends Stmt
|
case class While(cond: Expr, body: NonEmptyList[Stmt]) extends Stmt
|
||||||
object While extends ParserBridge2[Expr, NonEmptyList[Stmt], While] {
|
object While extends ParserBridge2[Expr, NonEmptyList[Stmt], While]
|
||||||
override def labels = List("while statement")
|
|
||||||
}
|
|
||||||
case class Block(stmt: NonEmptyList[Stmt]) extends Stmt
|
case class Block(stmt: NonEmptyList[Stmt]) extends Stmt
|
||||||
object Block extends ParserBridge1[NonEmptyList[Stmt], Block]
|
object Block extends ParserBridge1[NonEmptyList[Stmt], Block]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user