/source/core/ast/StringLit.ooc
Unknown | 22 lines | 14 code | 8 blank | 0 comment | 0 complexity | 1780d4ee5278386668b61f770241399d MD5 | raw file
- import Expression, Type
- import middle/Resolver
- StringLit: class extends Expression {
- value: String
- type := static BaseType new("String")
- init: func (=value) {}
- resolve: func (task: Task) {
- task queue(type)
- }
- getType: func -> Type { type }
- toString: func -> String {
- "\"" + value + "\""
- }
- }