thp/doc-generator/markdown/en/docs/latest/classes/definition.md
2023-03-28 19:18:06 -05:00

304 B

Classes

class Token(Str value, Int lineNumber, Int position)

val token1 = Token("if", 0, 0)
val token2 = Token(value: "else", lineNumber: 1, position: 4)
class FunToken(Int lineNumber, Int position) 
   -> Token("fun", lineNumber, position)

val funToken1 = FunToken(3, 0)