refactor: bringing in ast and error changes

This commit is contained in:
Guy C
2025-02-07 11:59:28 +00:00
parent 8583a815a8
commit 731692d95a
2 changed files with 8 additions and 6 deletions

View File

@@ -30,7 +30,9 @@ object ast {
object StrLiter extends ParserBridgePos1[String, StrLiter]
case class PairLiter()(val pos: Position) extends Expr6
object PairLiter extends ParserBridgePos0[PairLiter]
case class Ident(v: String, var uid: Int = -1)(val pos: Position) extends Expr6 with LValue
case class Ident(v: String, var uid: Int = -1)(val pos: Position) extends Expr6 with LValue {
def getPosition: Position = pos
}
object Ident extends ParserBridgePos1[String, Ident] {
def apply(v: String)(pos: Position): Ident = new Ident(v)(pos)
}