Sha256: 53d1126a8ecc7f45d55153cc0d5184f5dad2744621dcf0a1c3fb5fb32aee2b7a

Contents?: true

Size: 657 Bytes

Versions: 39

Compression:

Stored size: 657 Bytes

Contents

# Treetop (http://treetop.rubyforge.org/) grammar for determining package
# definition versions.

require 'treetop'

require 'fig/grammar/base'
require 'fig/grammar/version'

module Fig
  module Grammar
    grammar VersionIdentification
      include Fig::Grammar::Base
      include Fig::Grammar::Version

      rule everything
        ws_or_comment* grammar_version:grammar_version? .* {
          def get_grammar_version(build_state)
            return if not grammar_version
            return if grammar_version.text_value.empty?

            return grammar_version.to_package_statement(build_state)
          end
        }
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
fig-1.10.0 lib/fig/grammar/version_identification.treetop
fig-1.9.0 lib/fig/grammar/version_identification.treetop
fig-1.8.0 lib/fig/grammar/version_identification.treetop
fig-1.7.0 lib/fig/grammar/version_identification.treetop
fig-1.6.0 lib/fig/grammar/version_identification.treetop
fig-1.5.0 lib/fig/grammar/version_identification.treetop
fig-1.4.0 lib/fig/grammar/version_identification.treetop
fig-1.3.0 lib/fig/grammar/version_identification.treetop
fig-1.2.0 lib/fig/grammar/version_identification.treetop
fig-1.1.0 lib/fig/grammar/version_identification.treetop
fig-1.0.0 lib/fig/grammar/version_identification.treetop
fig-0.2.5 lib/fig/grammar/version_identification.treetop
fig-0.2.3 lib/fig/grammar/version_identification.treetop
fig-0.2.1 lib/fig/grammar/version_identification.treetop
fig-0.1.81 lib/fig/grammar/version_identification.treetop
fig-0.1.79 lib/fig/grammar/version_identification.treetop
fig-0.1.77 lib/fig/grammar/version_identification.treetop
fig-0.1.76 lib/fig/grammar/version_identification.treetop
fig-0.1.75 lib/fig/grammar/version_identification.treetop