Scanner give wrong result
Closed this issue · 2 comments
mysterytony commented
Reproduce Step
The input .mx
file has content
# Hello World
This is the first compile of ***markx***.
The output is
POUND
SINGLESPACE
WORD
SINGLESPACE
WORD
ENDLINE
NEWLINE
WORD
ENDLINE
NEWLINE
WORD
SINGLESPACE
WORD
SINGLESPACE
WORD
SINGLESPACE
WORD
SINGLESPACE
WORD
SINGLESPACE
WORD
SINGLESPACE
ASTERISK
ASTERISK
ASTERISK
WORD
ASTERISK
ASTERISK
ASTERISK
Missing the last period
Xadoy commented
PERIOD is not an option of Tokens. @mysterytony
Xadoy commented
I forgot to remove a console.log(), it gives only part of the tokens, the final result should be correct. Now I will remove the log.