Sha256: 1a9d8a7697fda7ff51b36e06e572a0fc28af1077f0ce9404e9d96af630b9411e
Contents?: true
Size: 1019 Bytes
Versions: 15
Compression:
Stored size: 1019 Bytes
Contents
# coding: utf-8 # Treetop (http://treetop.rubyforge.org/) grammar for package definitions in v1 # format. require 'treetop' require 'fig/grammar/base' require 'fig/grammar/v1_base' require 'fig/grammar/version' module Fig module Grammar grammar V1 include Fig::Grammar::Base include Fig::Grammar::Version include Fig::Grammar::V1Base # It would nice to be able to put this into Fig::Grammar::V1Base, but it # looks like the root has to be declared in the concrete grammar. rule package optional_ws_or_comment grammar_version:grammar_version? statements:(package_statement_with_ws*) optional_ws_or_comment { def to_package(unparsed_package, build_state) return build_state.new_package_statement( unparsed_package, grammar_version, statements ) end } end rule config_statement override / include / command / path / set end end end end
Version data entries
15 entries across 15 versions & 1 rubygems