Skip to content

Commit

Permalink
basic: read ^2 as two separate tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
asarhaddon committed Nov 16, 2024
1 parent fe075d0 commit 0a467ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impls/basic/reader.in.bas
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ READ_TOKEN:
GOSUB READ_CHAR
IF C$=";" THEN GOSUB SKIP_TO_EOL:GOTO READ_TOKEN
T$=C$
IF T$="(" OR T$=")" OR T$="[" OR T$="]" OR T$="{" OR T$="}" OR T$="'" OR T$="`" OR T$="@" THEN RETURN
IF T$="(" OR T$=")" OR T$="[" OR T$="]" OR T$="{" OR T$="}" OR T$="'" OR T$="`" OR T$="@" OR T$="^" THEN RETURN
GOSUB PEEK_CHAR: REM peek at next character
IF T$="~" AND C$<>"@" THEN RETURN
S1=0:S2=0: REM S1: INSTRING?, S2: ESCAPED?
Expand Down

0 comments on commit 0a467ec

Please sign in to comment.