arcsecond
✨Zero Dependency Parser Combinator Library for JS Based on Haskell's Parsec (by francisrstokes)
parser-demo
Good source layout with Flex and Bison (by o11c)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
arcsecond | parser-demo | |
---|---|---|
4 | 13 | |
545 | 18 | |
- | - | |
0.0 | 0.0 | |
3 months ago | almost 3 years ago | |
TypeScript | Lex | |
- | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
arcsecond
Posts with mentions or reviews of arcsecond.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-03-05.
-
Reverse engineering a proprietary USB control driver for a mechanical keyboard and building an open source equivalent
I've been working pretty hard for the last couple of years to bring a lot of these capabilities to JS/TS. Arcsecond (and it's binary extension) is a general library for parsing, which can easily take a block of memory and convert it to a workable data structure (even when that data structure is some kind of contextual union). You can use construct-js to (re)build an arbitrary byte buffer from structured data, making use of operators for sizeof and pointers.
-
[Task] Convert a zero dependency 4 file typescript library into Es6 JavaScript $25
I basically need what the title says. I found a library called arcsecond that is open sourced and I want to be able to use it in a Google Apps Script environment. The environment supports ES6, so I'd like to compile all of the files into one ES6 Javascript file, with no imports.
-
Practical parsing with Flex and Bison
Parser combinators are great. I also built and maintain arcsecond, which is a parser combinator library for TypeScript and JavaScript.
-
construct-js: A library for creating byte level data structures written in TypeScript
It is indeed! I'm planning on adding some parsing capabilities as well (just like in python construct) - but I've actually written a much more general purpose tool for that call arcsecond which allows for defining binary and text parsers declarative.
parser-demo
Posts with mentions or reviews of parser-demo.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-13.
-
Flex scanner memory leak help
I have a demo project that fixes a lot of the default insanities.
-
Advice for a first-time designer of my own original programming language? Presently writing the interpreter!
I have an old demo project that demonstrates most of that for flex/bison, but this is C/C++ oriented so might not be super applicable for you.
-
Should there be many hardcoded enums for terminals, non terminals, DFA, productions or a txt/csv file processing for compiler initialization? Is it bad to use global variables in the C code for compiler?
It's just unfortunate that flex and bison have bad defaults due to historical compatibility with lex and yacc. If you're using them I have a demo project that tweaks the defaults toward sanity, though I haven't updated it for recent warnings.
-
Doubt on building a tree using LEX and YACC
I made a demo project that ties them together. I'm pretty sure at least one of the fixes was due to header cycle problems, but I haven't touched it for a while. (note also that the demo was fully warning-clean at the time, but there may be new warnings since)
-
Simple question on compiler and syntax rules
I made a demo project that avoids several historical annoyances with Flex and Bison - in particular, I made it warnings-clean (though I haven't updated it recently), and I avoid global state.
-
Getting Lex + Yacc to recognize keywords
I have a demo project that enables all of the non-default options that you really should be using in all new projects. Note that the demo doesn't demonstrate meaningful grammars, just shows how to arrange the surrounding code and makefile.
-
Declaring yylex() and yyerror() in 2022
I have a demo project that twiddles most of the important knobs.
-
How to create an AST from bash in c?
Bash is a really complicated language. Redirections and such are simple; they are just tokenization, and any lexer/parser tutorial should get you there (I have a demo project using flex/bison).
-
what would you use to write a parser in 2021?
Bison can be configured to avoid every single one of those problems. I use reentrant versions (both with and without push parsing) in my demo project. I admit I didn't bother with named references or cleaning up after errors.
-
Practical parsing with Flex and Bison
a lot of the things that people hate about flex/bison is actually just their defaults for compatibility with lex/yacc, which can be changed. I have a demo project that does some of the things: https://github.com/o11c/parser-demo
What are some alternatives?
When comparing arcsecond and parser-demo you can also consider the following projects:
construct-js - 🛠️A library for creating byte level data structures.
lexy - C++ parsing DSL
esprima - ECMAScript parsing infrastructure for multipurpose analysis
re2c - Lexer generator for C, C++, Go and Rust.
arcsecond-binary - Binary parsers for arcsecond!
PEGTL - Parsing Expression Grammar Template Library
oil - Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
pcomb - parser combinators in PostScript and C
mal - mal - Make a Lisp
grammars-v4 - Grammars written for ANTLR v4; expectation that the grammars are free of actions.