Skip to content

Commit

Permalink
Reset BASE if error occurs during special base prefix input
Browse files Browse the repository at this point in the history
  • Loading branch information
rrthomas committed Apr 22, 2018
1 parent 7e80a61 commit d55fcfc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified src/beetle/pforth-base.img
Binary file not shown.
4 changes: 2 additions & 2 deletions src/highlevel.fs.in
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@ VARIABLE HELD
>NUMBER \ convert up to non-digit
?DUP WHILE \ if the string's not finished,
OVER C@ 4 / 11 <> IF \ is the non-digit punctuation?
R> DROP \ FIXME: Tighten up parsing
2R> 2DROP R> UNDEFINED \ if not, then not a number
2R> 2DROP \ FIXME: Tighten up parsing
R> BASE ! R> UNDEFINED \ if not, then not a number
THEN
R> DROP TRUE >R \ if so, set double no. flag
SKIP-CHAR \ and skip the punctuation
Expand Down
Binary file modified src/riscos/pforth-base.img
Binary file not shown.

0 comments on commit d55fcfc

Please sign in to comment.