소개
프로그래밍 언어 컴파일러를 위한 유연하고 확장 가능한 프런트엔드 라이브러리입니다.
프로그래밍 언어 및 런타임측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalVBF
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:
- Install Visual Studio 2015 with .Net Framework 4.5
- Open Options dialog, go to "Package Manager" and then check "Allow NuGet to download missing packages during build"
- Open Project VBF/src/Compilers/Compilers.sln
- Build
- Binaries will be placed in VBF/bin folder
- 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
- Chinese blog: http://ninputer.cnblogs.com/
- Chinese Weibo: http://weibo.com/ninputer
관련 프로젝트 살펴보기
불러오는 중…