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
⭐️ 61
🕓 2 years 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: 61
Last commit: 12 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

2.0
5 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