Giter VIP home page Giter VIP logo

vbf's Introduction

VBF

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.

How to build:

  1. Install Visual Studio 2015 with .Net Framework 4.5
  2. Open Options dialog, go to "Package Manager" and then check "Allow NuGet to download missing packages during build"
  3. Open Project VBF/src/Compilers/Compilers.sln
  4. Build
  5. Binaries will be placed in VBF/bin folder
  6. Note that by default, all the binaries are delay signed. You can either disable code signing or use 'sn -Vr' command to bypass assembly validation and then test the binaries.

Components:

  • VBF.Compilers.Common

    Provides source file reader, compilation error manager, etc

  • VBF.Compilers.Scanners

    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.

  • VBF.Compilers.Parsers

    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.

  • VBF.Compilers.Parsers.Combinators

    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.

Samples:

  • MiniSharp: VBF\src\Samples\MiniSharp

    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

License

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

Other information

vbf's People

Contributors

ninputer avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.