class Scanner

Overview

Future:

Defined in:

scanner/scanner.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(raw : String) #

[View source]

Instance Method Detail

def read_identifier(reader) #

[View source]
def read_number(reader) #

Should return enum for clearer error message?


[View source]
def read_string(reader) #

[View source]
def report(line, char, message) #

[View source]
def scan #

At the moment, we have no way to support multiline strings or comments.


[View source]
def scan_char(reader, ch) #

[View source]
def scan_line(line, line_idx) #

TODO

  • Support of multi-line strings
  • There should be a better approach here ?

[View source]