summaryrefslogtreecommitdiff
path: root/go/forth/forth.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/forth/forth.go')
-rw-r--r--go/forth/forth.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/go/forth/forth.go b/go/forth/forth.go
index 5ae7805..c31988d 100644
--- a/go/forth/forth.go
+++ b/go/forth/forth.go
@@ -155,13 +155,14 @@ func compile(dict dictionary, l *lexer) ([]word, error) {
var words []word
for !l.atEOL() {
v := l.next()
- // colon operator
+ // colon operator, switch to compile mode
if v == ":" {
if err := colon(dict, l); err != nil {
return nil, err
}
continue
}
+ // semicolon, should be compile only word
if v == ";" {
break
}