Lotsawa

main

A Swift implementation of the MARPA algorithms
hylo-lang/Lotsawa

Lotsawa

An Earley/Leo parser in pure Swift.

Don't use this code.

There are two faster Earley parsers, Marpa, which inspired this work, and YAEP. Marpa is faster by about 1.5x but uses 10x more memory. YAEP is much faster than Marpa and uses much much less memory than either of the others.

Most of the code was written in a very principled way, but in January 2025 I made a lot of commits as an experiment without writing comments or tests, and now some of the tests fail.

You've been warned.

Description

  • Swift Tools 6.0.0
View More Packages from this Author

Dependencies

Last updated: Wed May 14 2025 20:00:44 GMT-0900 (Hawaii-Aleutian Daylight Time)