class

CrystalRobots::Compiler::Parser

Inherits Reference < Object

Constructors

new(src : String)
Source

Class methods

mapperDefault(t : Type, m : Regex::MatchData, i : Array(Int32))
Source
mapperStatement(t : Type, m : Regex::MatchData, i : Array(Int32))
Source
tokenize(matcher : Number, src : String)

matcher is the matcher selection src is the string to tokenize

Source
tokens_to_s(tokens)
Source

Instance methods

program
Source
to_json

TODO: Implement to_json

Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
tokens_to_s(tokens)
Source

Nested types