Files
wren/example
Bob Nystrom f1bade2c81 feat: add line comment support to lexer with skipLineComment helper
Add a new `skipLineComment` function to the compiler's lexer that consumes
characters from the current position until a newline or end-of-file is
encountered. Update the `readRawToken` switch case for '/' to detect the
"//" sequence and delegate to the new function instead of emitting a
TOKEN_SLASH. Also add a line comment to the example hello.wren file to
demonstrate the feature.
2013-10-26 03:07:04 +00:00
..