A flexible and extensible front-end library of a programming language compiler.
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
VBF is a set of tools/libraries for compilers. It has seperated libraries for scanners and parsers. One can easily use one component as well as use them all together.
Provides source file reader, compilation error manager, etc
Provides DFA based scanner builder using regular expressions. There're multiple types of scanners to choose: a standard Scanner, a PeekableScanner with the capability to peek n tokens, a ForkableScanner that can fork to multiple scanner heads.
Provides powerful GLR based, auto error recovery parser generator. To start, inherit ParserBase class and build your own parser. It is recommended for most parsers.
Similar to Compilers.Parsers but it's an GLL based parser combinator library. The grammar supported by this library is relatively less powerfull compared to VBF.Compilers.Parsers, and it also parses slower. It is mainly used to study LL grammars.
MiniSharp is a fully functional compiler of a very small subset of C# language. It contains parsers and scanners built with VBF and an MSIL code generator.
It is a good sample for programming language and DSL authors.
For additional sample, please refer to NotBasic project: https://github.com/Ninputer/notbasic
All components and samples of this software are distributed under Apache License 2.0 You can find a copy of license under the root directory