mirror of
https://github.com/adamdunkels/ubasic.git
synced 2026-11-22 04:29:43 +00:00
Merge 37ece868f1 into cc07193c23
This commit is contained in:
commit
eca8b2d937
2 changed files with 3 additions and 0 deletions
|
|
@ -78,6 +78,8 @@ singlechar(void)
|
||||||
{
|
{
|
||||||
if(*ptr == '\n') {
|
if(*ptr == '\n') {
|
||||||
return TOKENIZER_CR;
|
return TOKENIZER_CR;
|
||||||
|
} else if(*ptr == '\r'){
|
||||||
|
return TOKENIZER_LF;
|
||||||
} else if(*ptr == ',') {
|
} else if(*ptr == ',') {
|
||||||
return TOKENIZER_COMMA;
|
return TOKENIZER_COMMA;
|
||||||
} else if(*ptr == ';') {
|
} else if(*ptr == ';') {
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,7 @@ enum {
|
||||||
TOKENIZER_GT,
|
TOKENIZER_GT,
|
||||||
TOKENIZER_EQ,
|
TOKENIZER_EQ,
|
||||||
TOKENIZER_CR,
|
TOKENIZER_CR,
|
||||||
|
TOKENIZER_LF,
|
||||||
};
|
};
|
||||||
|
|
||||||
void tokenizer_goto(const char *program);
|
void tokenizer_goto(const char *program);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue