Sha256: ce1711159dee313a1ecc72b9ff08f60d02f18daa3b19253f06df61ea2980085b

Contents?: true

Size: 559 Bytes

Versions: 15

Compression:

Stored size: 559 Bytes

Contents

# coding: utf-8

# Treetop (http://treetop.rubyforge.org/) grammar for statement for declaring
# package definition versions.
#
# Needs to be mixed in with Fig::Grammar::Base.

require 'treetop'

module Fig
  module Grammar
    grammar Version
      rule grammar_version
        statement_start:'grammar' ws_or_comment+ 'v' version:[\d]+ ws* {
          def to_package_statement(build_state)
            return build_state.new_grammar_version_statement(
              statement_start, version
            )
          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.treetop
fig-1.27.8 lib/fig/grammar/version.treetop
fig-1.27.5 lib/fig/grammar/version.treetop
fig-1.27.4 lib/fig/grammar/version.treetop
fig-1.27.3 lib/fig/grammar/version.treetop
fig-1.27.0 lib/fig/grammar/version.treetop
fig-1.26.1.beta.1 lib/fig/grammar/version.treetop
fig-1.26.0 lib/fig/grammar/version.treetop
fig-1.25.1.beta.1 lib/fig/grammar/version.treetop
fig-1.25.0 lib/fig/grammar/version.treetop
fig-1.24.1.beta.3 lib/fig/grammar/version.treetop
fig-1.24.1.beta.2 lib/fig/grammar/version.treetop
fig-1.24.1.beta.1 lib/fig/grammar/version.treetop
fig-1.24.0 lib/fig/grammar/version.treetop
fig-1.23.1.beta.1 lib/fig/grammar/version.treetop