Sha256: 9491cb464a08be2c22c8467253ce7317b94a1b378db1e1cb15ec0634d6c8de1c

Contents?: true

Size: 542 Bytes

Versions: 39

Compression:

Stored size: 542 Bytes

Contents

# 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

39 entries across 39 versions & 1 rubygems

Version Path
fig-1.23.0 lib/fig/grammar/version.treetop
fig-1.22.1.beta.1 lib/fig/grammar/version.treetop
fig-1.22.0 lib/fig/grammar/version.treetop
fig-1.21.1.beta.2 lib/fig/grammar/version.treetop
fig-1.21.1.beta.1 lib/fig/grammar/version.treetop
fig-1.21.0 lib/fig/grammar/version.treetop
fig-1.20.1.beta.1 lib/fig/grammar/version.treetop
fig-1.20.0 lib/fig/grammar/version.treetop
fig-1.19.0 lib/fig/grammar/version.treetop
fig-1.18.0 lib/fig/grammar/version.treetop
fig-1.17.0 lib/fig/grammar/version.treetop
fig-1.16.1.beta.1 lib/fig/grammar/version.treetop
fig-1.16.0 lib/fig/grammar/version.treetop
fig-1.15.1.beta.2 lib/fig/grammar/version.treetop
fig-1.15.1.beta.1 lib/fig/grammar/version.treetop
fig-1.15.0 lib/fig/grammar/version.treetop
fig-1.14.0 lib/fig/grammar/version.treetop
fig-1.13.0 lib/fig/grammar/version.treetop
fig-1.12.0 lib/fig/grammar/version.treetop
fig-1.11.0 lib/fig/grammar/version.treetop