Class: LangTOMLNamespace
- Inherits:
-
Resyma::Language
- Object
- Resyma::Language
- LangTOMLNamespace
- Defined in:
- lib/resyma/nise/toml.rb
Instance Attribute Summary
Attributes inherited from Resyma::Language
Instance Method Summary collapse
Methods inherited from Resyma::Language
#build_language, #built?, #initialize, #load, load, #load_ast, #load_parsetree!
Constructor Details
This class inherits a constructor from Resyma::Language
Instance Method Details
#syntax ⇒ Object
27 28 29 30 31 |
# File 'lib/resyma/nise/toml.rb', line 27 def syntax ("["; id; ("."; id)..; "]") >> begin nodes.select { |n| n.symbol == :id }.map { |n| n.to_literal } end end |