prototype repl
This commit is contained in:
parent
30481d4f78
commit
c40aea7326
7 changed files with 233 additions and 35 deletions
12
ast/token.go
12
ast/token.go
|
|
@ -164,11 +164,17 @@ error:
|
|||
// TODO: Hook into error module
|
||||
// TODO: Finalize and GC alloced tokens
|
||||
if start_pos == -1 {
|
||||
println("[-] Unmatched string delimiter in input. discarding.")
|
||||
log.Log(log.ERR,
|
||||
"Unmatched string delimiter in input. discarding.",
|
||||
"lex")
|
||||
} else if start_pos == -2 {
|
||||
println("[-] Unmatched list delimiter in input. discarding.")
|
||||
log.Log(log.ERR,
|
||||
"Unmatched list delimiter in input. discarding.",
|
||||
"lex")
|
||||
} else {
|
||||
println("[-] Unknown error in input. discarding.")
|
||||
log.Log(log.ERR,
|
||||
"Unknown error in input. discarding.",
|
||||
"lex")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue