Development started for WebAssembly target

42 views
Skip to first unread message

Mike Lischke

unread,
Jul 19, 2023, 5:58:21 AM7/19/23
to 'ANTLR announcements
Hi all,

This is to let you know that I started the development of a WebAssembly runtime for ANTLR4 - an idea that is floating around since years already. I just published the first batch of files (https://github.com/mike-lischke/antlr4wasm) for early testing.

Early testing here means: parsing does not work, not even lexing input, but ground has been laid to have a foundation to work with and many of the initial (and sometimes difficult) problems have been solved (or at least understood enough, to know limitations or to provide workarounds). Typescript type definitions exist for many of the runtime classes and some of them can already be used standalone (like the vocabulary).

If there's any interest for this new runtime, especially to help with getting it to work, I'd happily provide more details.

Main motivation for this new target is to get high performance parsing in modern web applications, with nearly native C++ speed.

Eric Vergnaud

unread,
Jul 19, 2023, 6:37:51 AM7/19/23
to 'rtm...@googlemail.com' via antlr-discussion
Hi Mike,

this is great news. I was considering doing the same, and have language targets all use the same WebAsm runtime, for a future version of antlr.

Can you move this to GitHub antlr4 discussions ?

Eric

--
You received this message because you are subscribed to the Google Groups "antlr-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to antlr-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/antlr-discussion/48A2792A-4EB6-42A4-BCA5-A5D0F089E7E0%40googlemail.com.

Mike Lischke

unread,
Jul 19, 2023, 7:34:41 AM7/19/23
to antlr-di...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages