summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-09-23 19:21:28 +0200
committerDimitri Sokolyuk <demon@dim13.org>2018-09-23 19:21:28 +0200
commitfd7f1d0574b489b5c8bb72093f7982fca924c042 (patch)
treea54ad4204cce6aa546a96be16ae59f134ff62766
parent65824e4d38828a2b9b6068f915e24a830823637d (diff)
...
-rw-r--r--go/forth/forth.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/go/forth/forth.go b/go/forth/forth.go
index c31988d..be39e9f 100644
--- a/go/forth/forth.go
+++ b/go/forth/forth.go
@@ -156,13 +156,15 @@ func compile(dict dictionary, l *lexer) ([]word, error) {
for !l.atEOL() {
v := l.next()
// colon operator, switch to compile mode
+ // FIXME should be a proper word
if v == ":" {
if err := colon(dict, l); err != nil {
return nil, err
}
continue
}
- // semicolon, should be compile only word
+ // semicolon operator
+ // FIXME should be a proper compile only word
if v == ";" {
break
}