fix: cleaned up comments, removed getPosition from ident
This commit is contained in:
parent
b6d8eb31e3
commit
a09d38a40f
@ -30,9 +30,7 @@ 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 {
|
||||
def getPosition: Position = pos
|
||||
}
|
||||
case class Ident(v: String, var uid: Int = -1)(val pos: Position) extends Expr6 with LValue
|
||||
object Ident extends ParserBridgePos1[String, Ident] {
|
||||
def apply(v: String)(pos: Position): Ident = new Ident(v)(pos)
|
||||
}
|
||||
|
@ -87,7 +87,6 @@ object lexer {
|
||||
lexer.nonlexeme.integer.decimal32[Int].map(n => s"integer $n"),
|
||||
(lexer.nonlexeme.character.ascii).map(c => s"character literal \'$c\'"),
|
||||
lexer.nonlexeme.string.ascii.map(s => s"string literal \"$s\""),
|
||||
// lexer.nonlexeme.symbol("()").as("function call, bruh use keyword 'call' to call functions"),
|
||||
character.whitespace.map(_ => "")
|
||||
) ++ desc.symbolDesc.hardKeywords.map { k =>
|
||||
lexer.nonlexeme.symbol(k).as(s"keyword $k")
|
||||
|
Loading…
x
Reference in New Issue
Block a user