xoofx / antlr4ast Goto Github PK
View Code? Open in Web Editor NEWAntlr4Ast is a .NET library that provides a parser and abstract syntax tree (AST) for ANTLR4/g4 files.
License: BSD 2-Clause "Simplified" License
Antlr4Ast is a .NET library that provides a parser and abstract syntax tree (AST) for ANTLR4/g4 files.
License: BSD 2-Clause "Simplified" License
The library does not contain a visitor pattern.
I don't have a personal usage for this as I'm only going to go through the lexer/parser rules manually for my use case, but if there is an interest, PR welcome.
There are a few classes that are not named correctly and should be changed in the next major version:
LexerChar
should be LexerCharSet
(Temporary list for now, might change in the near future)
As described in the ANTLR4 documentation, (...)??
, (...)*?
and (...)+?
are nongreedy (lazy) subrules.
But the SuffixKind
enum in Antlr4Ast
names these suffixes as Greedy
(which is the opposite of what they are):
Antlr4Ast/src/Antlr4Ast/SuffixKind.cs
Lines 32 to 45 in 4e9d3fb
Simply renaming the enum members would break backwards (source) compatibility, so I would suggest keeping the original names with the same value at the bottom (so that ToString
prints the correct name), but with an [Obsolete("...")]
attribute (and potentially an [EditorBrowsable(EditorBrowsableState.Never)]
attribute to hide them from IntelliSense).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.