class Crycco::Language

Overview

The Language class holds the definition for a programming language. It's deserialized from the languages.yml file.

Included Modules

Defined in:

crycco.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]

Instance Method Detail

def after_initialize #

This hook is called after properties are set during YAML deserialization or after .new with named arguments.


[View source]
def enclosing_symbol : Array(String) #

[View source]
def enclosing_symbol=(enclosing_symbol : Array(String)) #

[View source]
def literate=(literate : Bool) #

[View source]
def literate? : Bool #

[View source]
def match : Regex #

This regex is used to identify comment lines. It's derived from #symbol or can be overridden (e.g., for literate mode). Because it's not serialized in the YAML file we have to say ignore: true and set it to a dummy value. It's properly configured in #after_initialize


[View source]
def match=(match : Regex) #

This regex is used to identify comment lines. It's derived from #symbol or can be overridden (e.g., for literate mode). Because it's not serialized in the YAML file we have to say ignore: true and set it to a dummy value. It's properly configured in #after_initialize


[View source]
def match_enclosing_end : Regex #

[View source]
def match_enclosing_end=(match_enclosing_end : Regex) #

[View source]
def match_enclosing_start : Regex #

[View source]
def match_enclosing_start=(match_enclosing_start : Regex) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def symbol : String #

[View source]
def symbol=(symbol : String) #

[View source]