class
Crycco::Language
- Crycco::Language
- Reference
- Object
Overview
The Language class holds the definition for a programming language. It's deserialized from the languages.yml file.
Included Modules
- YAML::Serializable
Defined in:
crycco.crConstructors
Instance Method Summary
-
#after_initialize
This hook is called after properties are set during YAML deserialization or after
.new
with named arguments. - #enclosing_symbol : Array(String)
- #enclosing_symbol=(enclosing_symbol : Array(String))
- #literate=(literate : Bool)
- #literate? : Bool
-
#match : Regex
This regex is used to identify comment lines.
-
#match=(match : Regex)
This regex is used to identify comment lines.
- #match_enclosing_end : Regex
- #match_enclosing_end=(match_enclosing_end : Regex)
- #match_enclosing_start : Regex
- #match_enclosing_start=(match_enclosing_start : Regex)
- #name : String
- #name=(name : String)
- #symbol : String
- #symbol=(symbol : String)
Constructor Detail
Instance Method Detail
This hook is called after properties are set during YAML deserialization
or after .new
with named arguments.
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
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