Sha256: 3fee33355b541a275c4e80c3e8555eb31cb0772b5cd0f8583e440edd39f2be94

Contents?: true

Size: 632 Bytes

Versions: 5

Compression:

Stored size: 632 Bytes

Contents

grammar TomlArray
  include Primitive

  rule array
    ("[" indent? (elements)* ","? indent? comment? indent? "]" indent?) { eval(self) }
  end

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

  rule float_array
    (float ("," indent? float)*)
  end

  rule string_array
    (string ("," indent? string)*)
  end

  rule array_array
    (array ("," indent? array)*)
  end

  rule integer_array
    (integer ("," indent? integer)*)
  end

  rule datetime_array
    (datetime ("," indent? datetime)*)
  end

  rule bool_array
    (bool ("," indent? bool)*)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
toml-rb-0.1.5 lib/toml/grammars/array.citrus
toml-rb-0.1.4 lib/toml/grammars/array.citrus
toml-rb-0.1.3 lib/toml/grammars/array.citrus
toml-rb-0.1.2 lib/toml/grammars/array.citrus
toml-rb-0.1.0 lib/toml/grammars/array.citrus