spi.yml file for docc generation
Swift library for working with Extended Backus–Naur Form (EBNF) notation and the resulting grammars.
Features:
⚠️ This library is still a work-in-progress. It definitely still has some issues.
dependencies: [ .package(url: "https://github.com/ChimeHQ/Gramophone") ]
single_quote_terminal = 'value'; double_quote_terminal = "value"; unicode_scalar = U+0000; concatenation = a, b, c; implicit_concatenation = a b c; alternation = a | b | c; optional = [a, b]; tailing_optional = a?; repetition = {a}; grouping = (a, b, c); exception = a - b; arrow_assigment → a; colon_colon_equals_assigment ::= a;
let grammar = try parser.parseGrammar("test = 'a' | 'b';") let firstMap = grammar.computeFirstMap() let followMap = grammar.computeFollowMap()
We’d love to hear from you! Get in touch via an issue or pull request.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
Gramophone
Swift library for working with Extended Backus–Naur Form (EBNF) notation and the resulting grammars.
Features:
⚠️ This library is still a work-in-progress. It definitely still has some issues.
Integration
Swift Package Manager
Supported Syntax
Usage
Suggestions or Feedback
We’d love to hear from you! Get in touch via an issue or pull request.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.