Skip to content
← Back

src/ir/values/raw.ghul

1
namespace IR is
2
use IO.Std;
3
4
use Semantic.Types.Type;
5
use Values.Value;
6
7
class RAW: Value open is
8
_value: string;
9
10
type: Type;
11
12
init(type: Type, value: string) is
13
super.init();
14
15
_value = value;
16
self.type = type;
17
si
18
19
init(value: string) is
20
self.init(Semantic.Types.ERROR(), value);
21
si
22
23
gen(context: IR.CONTEXT) is
24
context.write_line(_value);
25
si
26
si
27
si