This project is derived from the dk.brics.automaton DFA library, version 1.11-8. The most significant change is the addition of a 'info' field to automaton states, allowing them to be associated with a token type. A few automaton operations were modified to preserve the value of this field. I have not given much thought to whether it would even make sense to preserve the 'info' field through some of the other operations.

This project also includes an extension of RunAutomaton, called TokenAutomaton, that can be used as a lexer, as well as its support classes and examples of its use.

Lexers generated by JPlex depend on this library. I separated it from JPlex so that projects using JPlex would not depend on GPL code. Revision 1 of this project is dual-licensed, as it is the same code that was formerly part of JPlex. All code in this library was either originally published under the BSD license or was exclusively authored by me.

Project Activity

See All Activity >

Categories

Compilers

License

BSD License

Follow Automaton Lexer

Automaton Lexer Web Site

You Might Also Like
Make Your Observability Stack Effortless Icon
Make Your Observability Stack Effortless

For Software Engineers, DevOps, Data Architects, and IT Leaders

The progression to modern application stacks and microservices architectures has resulted in orders of magnitude more logs, metrics, events, and traces. Like gravity, data attracts more data, making it increasingly difficult to move and process as it accumulates over time. More than ever, there is a need to be able to stream-process, filter, mask, transform, aggregate, analyze, and route that data to various data tier destinations optimized for specific usage.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Automaton Lexer!

Additional Project Details

Intended Audience

Developers

Programming Language

Java

Related Categories

Java Compilers

Registered

2012-07-23