thp/doc-generator/markdown/en/docs/latest/classes/definition.md

16 lines
304 B
Markdown
Raw Normal View History

# Classes
```misti
class Token(Str value, Int lineNumber, Int position)
val token1 = Token("if", 0, 0)
val token2 = Token(value: "else", lineNumber: 1, position: 4)
```
```misti
class FunToken(Int lineNumber, Int position)
-> Token("fun", lineNumber, position)
val funToken1 = FunToken(3, 0)
```