Skip to content

Rework TOML parser to do char-by-char parsing#1

Open
kMaiSmith wants to merge 8 commits intomainfrom
topic/rework-toml-parser
Open

Rework TOML parser to do char-by-char parsing#1
kMaiSmith wants to merge 8 commits intomainfrom
topic/rework-toml-parser

Conversation

@kMaiSmith
Copy link
Owner

Background

The initial TOML parser using line based pattern matching is untenable for managing arrays, quotes of any kind, inline object definitions, and more. Further the backend data mapping of individual TOML keys to bash variables does not lend itself to portable referencing or data lookups as layed out by the TOML specification

Changes

  • Introduce libautoshell.toml.parser.bash, with tomlparser.parse
    • Parses stdin into associative array, using complete TOML key as key name
    • Parses arrays

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant