Class: LangTOMLNamespace

Inherits:
Resyma::Language show all
Defined in:
lib/resyma/nise/toml.rb

Instance Attribute Summary

Attributes inherited from Resyma::Language

#engine

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

#syntaxObject



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