Swiftpack.co - roop/citron as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by roop.
roop/citron v2.0
An LALR Parser Generator for Swift
⭐️ 55
🕓 49 weeks ago
.package(url: "https://github.com/roop/citron.git", from: "v2.0")

Citron

Citron is an LALR parser generator for Swift. For a given input grammar, Citron creates a reentrant type-safe parser in Swift.

Citron's parser generation engine is based on Lemon.

Citron requires Swift 4.

The Citron documentation can be found here.

GitHub

link
Stars: 55
Last commit: 6 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

2.0
3 years ago

Major features:

Grammar:

CitronParser:

CitronLexer:

  • Support for tracking the position of the token in the input: currentPosition
  • Ability to continue lexing after an error: tokenize()

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics