mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-08-03 13:11:32 +00:00
ast codegen: optional support for inlining visit
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
package gay.pizza.pork.parser
|
||||
|
||||
class Token(val type: TokenType, val start: Int, val text: String) {
|
||||
override fun toString(): String = "$start ${type.name} '${text.replace("\n", "\\n")}'"
|
||||
override fun toString(): String =
|
||||
"$start ${type.name} '${text.replace("\n", "\\n")}'"
|
||||
|
||||
companion object {
|
||||
fun endOfFile(size: Int): Token =
|
||||
|
Reference in New Issue
Block a user