WebBS VS expr

Compare WebBS vs expr and see what are their differences.

WebBS

A toy language that compiles to WebAssembly (by mx-scissortail)

expr

Simple integer expression parser (by Timmmm)
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
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
WebBS expr
1 1
50 5
- -
10.0 6.1
almost 2 years ago 12 months ago
JavaScript Rust
MIT License -
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.

WebBS

Posts with mentions or reviews of WebBS. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-20.
  • Pratt Parsers: Expression Parsing Made Easy
    6 projects | news.ycombinator.com | 20 Jan 2024
    A few years back I had to implement a new parser for a custom expression language to replace an old parser that didn’t giving very good errors and was hard to extend. I never did the traditional CS track so parsers were kind of mysterious black magic so naturally first thing I did was search HN.

    I stumbled on an older parsing thread [1] with a link to a toy Prayt implementation [2] made by an HNer… and shamelessly ripped it off to write my own Pratt parser implementation.

    Great success! Writing a Pratt parser by hand is a lot easier than I thought and like the comment says, adding type information was trivial.

    [1] https://news.ycombinator.com/item?id=24480504

    [2] https://github.com/mx-scissortail/WebBS

expr

Posts with mentions or reviews of expr. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-20.
  • Pratt Parsers: Expression Parsing Made Easy
    6 projects | news.ycombinator.com | 20 Jan 2024
    I had to write an expression parser recently and found the number of names for essentially the same algorithm very confusing. There's Pratt parsing, precedence climbing, and shunting yard. But really they're all the same algorithm.

    Pratt parsing and precedence climbing are the same except one merges left/right associativity precedence into a single precedence table (which makes way more sense). Shunting yard is the same as the others except it's iterative instead of recursive, and it seems like common implementations omit some syntax checking (but there's no reason you have to omit it).

    Here's what I ended up with:

    https://github.com/Timmmm/expr

    I had to write that because somewhat surprisingly I couldn't find an expression parser library that supports 64-bit integers and bools. Almost all of them only do floats. Also I needed it in C++ - that library was a prototype that I later translated into C++ (easier to write in Rust and then translate).

What are some alternatives?

When comparing WebBS and expr you can also consider the following projects:

pratt-parser-blog-code - The code to illustrate the pratt parser blog post for the desmos engineering blog.

minipratt