forth: BASE/DECIMAL/HEX/BIN/OCTAL (+9; Hayes 174/590)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
(forth-execute-word state w)
|
||||
(forth-compile-call state tok))
|
||||
(let
|
||||
((n (forth-parse-number tok (get state "base"))))
|
||||
((n (forth-parse-number tok (get (get state "vars") "base"))))
|
||||
(if
|
||||
(not (nil? n))
|
||||
(forth-compile-lit state n)
|
||||
@@ -219,7 +219,7 @@
|
||||
(not (nil? w))
|
||||
(forth-execute-word state w)
|
||||
(let
|
||||
((n (forth-parse-number tok (get state "base"))))
|
||||
((n (forth-parse-number tok (get (get state "vars") "base"))))
|
||||
(if
|
||||
(not (nil? n))
|
||||
(forth-push state n)
|
||||
|
||||
Reference in New Issue
Block a user