class CrystalRobots::Compiler::Parser
- CrystalRobots::Compiler::Parser
- Reference
- Object
Defined in:
compiler/parser.crConstructors
Class Method Summary
- .mapperDefault(p : Program, t : Type, m : Regex::MatchData, i : Array(Int32))
- .mapperExpression(p : Program, t : Type, m : Regex::MatchData, i : Array(Int32))
- .mapperStatement(p : Program, t : Type, m : Regex::MatchData, i : Array(Int32))
-
.tokenize(p : Program, src : String)
matcher is the matcher selection src is the string to tokenize
- .tokens_to_s(tokens)
Instance Method Summary
- #program : CrystalRobots::Compiler::Program
- #program=(program : Program)
-
#to_json
TODO Implement to_json
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #tokens_to_s(tokens)
Constructor Detail
Class Method Detail
matcher is the matcher selection src is the string to tokenize
Instance Method Detail
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
.