Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.
/ Lotsawa Public archive

A Swift implementation of the MARPA algorithms

License

Notifications You must be signed in to change notification settings

hylo-lang/Lotsawa

Repository files navigation

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.

About

A Swift implementation of the MARPA algorithms

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages