Sha256: 8dd8f794e54b7194f5333c8e0553b3e287b058e812786bd210f5662938399f24

Contents?: true

Size: 674 Bytes

Versions: 15

Compression:

Stored size: 674 Bytes

Contents

# coding: utf-8

# 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

15 entries across 15 versions & 1 rubygems

Version Path
fig-1.27.10 lib/fig/grammar/version_identification.treetop
fig-1.27.8 lib/fig/grammar/version_identification.treetop
fig-1.27.5 lib/fig/grammar/version_identification.treetop
fig-1.27.4 lib/fig/grammar/version_identification.treetop
fig-1.27.3 lib/fig/grammar/version_identification.treetop
fig-1.27.0 lib/fig/grammar/version_identification.treetop
fig-1.26.1.beta.1 lib/fig/grammar/version_identification.treetop
fig-1.26.0 lib/fig/grammar/version_identification.treetop
fig-1.25.1.beta.1 lib/fig/grammar/version_identification.treetop
fig-1.25.0 lib/fig/grammar/version_identification.treetop
fig-1.24.1.beta.3 lib/fig/grammar/version_identification.treetop
fig-1.24.1.beta.2 lib/fig/grammar/version_identification.treetop
fig-1.24.1.beta.1 lib/fig/grammar/version_identification.treetop
fig-1.24.0 lib/fig/grammar/version_identification.treetop
fig-1.23.1.beta.1 lib/fig/grammar/version_identification.treetop