Sha256: 5682469933b834149becdc32052e5330c464dc6f161fb9bb0b9c9d305d457151

Contents?: true

Size: 432 Bytes

Versions: 39

Compression:

Stored size: 432 Bytes

Contents

# Treetop (http://treetop.rubyforge.org/) grammar for common definitions.

require 'treetop'

module Fig
  module Grammar
    grammar Base
      rule ws
        [ \n\r\t]+
      end

      rule optional_ws
        [ \n\r\t]*
      end

      rule comment
        '#' [^\n]* "\n"
      end

      rule ws_or_comment
        ws / comment
      end

      rule optional_ws_or_comment
        ws_or_comment*
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

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