Swiftpack.co -  roop/citron as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
roop/citron
An LALR Parser Generator for Swift
.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: 50
Last commit: 3 days ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

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