timsueberkrueb / yalr Goto Github PK
View Code? Open in Web Editor NEWYet Another LR parser generator
License: Apache License 2.0
Yet Another LR parser generator
License: Apache License 2.0
Allowing the user to trace lexer results would improve the debugging experience.
This should be implemented similar to the parser trace feature: print the current token after each advance as well as the first token after initializing the lexer.
Create documentation with code examples. The code examples should get tested.
logos_support
rule
terminal_type
assoc
lalr
When a rule function returns a Result
, it should be possible to opt-in to a behavior which stops parsing and propagate the Err
value to the caller of the parse
function.
Tests are needed, especially for yalr_core
.
yalr_core
We should get rid of unnecessary attributes and use standard language features over macros whenever possible.
This is a rough sketch of what it could look like:
impl LALR for Parser {
type T = Terminal;
type N = Nonterminal;
const START: Self::N = Nonterminal::Start;
const END: Self::T = Terminal::End;
type Input = str;
type Output = f32;
}
#[lalr]
#[assoc(...)]
impl Parser { /* Rule functions ... */ }
where LALR
is a trait defined as:
trait LALR {
type T;
type N;
const START: Self::N;
const END: Self::T;
type Input;
type Output;
}
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.