class CrystalRobots::Compiler::Parser

Defined in:

compiler/parser.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(source : String) #

Class Method Detail

def self.mapperDefault(p : Program, t : Type, m : Regex::MatchData, i : Array(Int32)) #

def self.mapperExpression(p : Program, t : Type, m : Regex::MatchData, i : Array(Int32)) #

def self.mapperStatement(p : Program, t : Type, m : Regex::MatchData, i : Array(Int32)) #

def self.tokenize(p : Program, src : String) #

matcher is the matcher selection src is the string to tokenize


def self.tokens_to_s(tokens) #

Instance Method Detail


def program=(program : Program) #

def to_json #

TODO Implement to_json


def to_s #
Description copied from class Object

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.


def tokens_to_s(tokens) #