class Scanner
- Scanner
- Reference
- Object
Overview
Future:
- An interface for ErrorReported, which could be swapped out
- anything from stdout, to in memory one
Defined in:
scanner/scanner.crConstructors
Instance Method Summary
- #read_identifier(reader)
-
#read_number(reader)
Should return enum for clearer error message?
- #read_string(reader)
- #report(line, char, message)
-
#scan
At the moment, we have no way to support multiline strings or comments.
- #scan_char(reader, ch)
-
#scan_line(line, line_idx)
TODO - Support of multi-line strings - There should be a better approach here ?
Constructor Detail
Instance Method Detail
def scan_line(line, line_idx)
#
TODO
- Support of multi-line strings
- There should be a better approach here ?