Sha256: 233200ed4a503b80942cde977660e81690c482aa9c4d9584b77435e8d167fa11

Contents?: true

Size: 784 Bytes

Versions: 8

Compression:

Stored size: 784 Bytes

Contents

grammar TOML::Arrays
  include TOML::Primitive

  rule array
    ("[" array_comments (elements)? space ","? array_comments "]" indent?) { eval(to_str) }
  end

  rule array_comments
    (indent? comment* indent?)
  end

  rule elements
    float_array | string_array | array_array | integer_array | datetime_array | bool_array
  end

  rule float_array
    (float (space "," array_comments float)*)
  end

  rule string_array
    (string (space "," array_comments string)*)
  end

  rule array_array
    (array (space "," array_comments array)*)
  end

  rule integer_array
    (integer (space "," array_comments integer)*)
  end

  rule datetime_array
    (datetime (space "," array_comments datetime)*)
  end

  rule bool_array
    (bool (space "," array_comments bool)*)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
toml-rb-0.3.13 lib/toml/grammars/array.citrus
toml-rb-0.3.12 lib/toml/grammars/array.citrus
toml-rb-0.3.11 lib/toml/grammars/array.citrus
toml-rb-0.3.10 lib/toml/grammars/array.citrus
toml-rb-0.3.9 lib/toml/grammars/array.citrus
toml-rb-0.3.8 lib/toml/grammars/array.citrus
toml-rb-0.3.7 lib/toml/grammars/array.citrus
toml-rb-0.3.6 lib/toml/grammars/array.citrus