Skip to content

Jammo-NET/Jammo.ParserTools

Repository files navigation

This project is discontinued

Jammo.ParserTools

Nuget: https://www.nuget.org/packages/Jammo.ParserTools/

A library of tools I frequently use when parsing text

Tokenizer

Constructors:

Tokenizer: (new) Tokenizer(input, [options]), IEnumerable<BasicToken>: Tokenizer.Tokenize(input, [options])


A take on IEnumerable which allows for manual .Next calls (moves the iterator forward) The tokenizer class provides BasicToken(s) based on input data

Lexer

Constructors:

Lexer: (new) Lexer(tokenizer), IEnumerable<LexerToken> Lexer.Lex(input, [tokenizer-options])

Provides a basic enum based wrapper for tokenization.

StateMachine

Constructors:

StateMachine: (new) StateMachine<Enum>()


IParserStream

Meant to be used alongside a parser to wrap a FileStream for easy Read/Write using fields. Exposes IsInitialized, FilePath, Parse, Write, and WriteTo.

About

Some tools I use frequently for text parsing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages