Added missing flag check

This commit is contained in:
Eduard Urbach 2024-06-14 11:56:02 +02:00
parent 19489d7a9a
commit 6de8ac7b9f
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -40,7 +40,10 @@ func (f *Function) Compile() {
case "let": case "let":
name := line[1].Text() name := line[1].Text()
value := line[3:] value := line[3:]
fmt.Println("[variable]", name, value)
if config.Verbose {
fmt.Println("[variable]", name, value)
}
f.Variables[name] = &Variable{ f.Variables[name] = &Variable{
Value: line[3:], Value: line[3:],