Skip to content

Fail to load toml file with array-table #39

Description

@oldkingOK

Using latest Tomlet (5.3.0)

Code

using Tomlet;
...
var doc = new TomlParser().Parse("test.toml")

test.toml

[[a.b]]
name = "nick"
ishuman = true

[[a.b]]
name = "jack"
ishuman = false

Log

Unhandled exception. Tomlet.Exceptions.MissingIntermediateInTomlTableArraySpecException: Missing intermediate definition for a.b in table-array specification on line 1. This is undefined behavior, and I chose to define it as an error.
   at Tomlet.TomlParser.ReadTableArrayStatement(TomletStringReader reader, TomlDocument document) in /_/Tomlet/TomlParser.cs:line 911
   at Tomlet.TomlParser.Parse(String input) in /_/Tomlet/TomlParser.cs:line 65
   at Tomlet.TomlParser.ParseFile(String filePath) in /_/Tomlet/TomlParser.cs:line 30
   at Program.Main(String[] args)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions