~geb/wak

3c4ac153116925e51f3b8b6e0f8b18a6d9787d3a — John Gebbie 5 months ago c8bc570 master
error on unmatched }
1 files changed, 3 insertions(+), 0 deletions(-)

M wak.go
M wak.go => wak.go +3 -0
@@ 184,6 184,9 @@ func (p *Parser) Tokenize(code string) []Token {
			i += len(s)
		} else {
			s, _, _ := cutAny(code[i:], " \t\n#\"'{")
			if j := strings.IndexRune(s, '}'); j != -1 {
				p.Fatal(code[i+j:], "unmatched }")
			}
			if len(s) > 0 {
				if n, ok := parseNumber(s); ok {
					tokens = append(tokens, Number{token(s), n})