ogdl-swift
ogdl-swift copied to clipboard
An OGDL parser, written in Swift (experimental)
Now ogdl-swift is using an really old version of Madness. Meanwhile Madness made `Parser` generic for all `CollectionType`'s instead of only `String` and this is a big change in the...
Per https://github.com/robrix/Madness/issues/43, it’d be valuable to parse ogdl-swift’s AST using Madness; for that to work, `Node` will need to conform to `CollectionType`. I need to sketch this out more fully,...
Users shouldn't need to invoke Madness' `parse()` method to receive an OGDL graph. If that's encapsulated in this library, consumers don't need to `import Madness` in their source (unless they...
`foo, bar` should parse two sibling nodes `foo` and `bar`.
``` ogdl some elements \ which are followed by an indented block of very important text ``` - Can these contain comments?
`foo (bar, buzz)` should parse a node `foo` with children `bar` and `buzz`.
``` swift x | const([]) ``` If `x` is unmatched, then the parse tree passed to `const` becomes available as a match. (In general, the rhs is `String -> T`.)
For comma-separated lists, etc.