TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Little scripting language written in Rust (no_std WASM example)

5 pointsby polaris64over 6 years ago

1 comment

polaris64over 6 years ago
I created a little programming language parser and interpreter written entirely in Rust with an optional &quot;no_std&quot; Crate feature allowing the parser&#x2F;interpreter to work in environments where the standard library is not available (e.g. embedded devices).<p>The excellent Nom library was used to build the parser. The interpreter itself has no external dependencies.<p>By way of an example, linked is a live demo of the parser and interpreter compiled to a WASM module, allowing scripts to be parsed and executed entirely within the browser.<p>The project is mainly a component of another project that I&#x27;m working on, but I thought that some of you might be interested in the progress so far. Everything&#x27;s open source, so please take a look at the code too (GitHub link on page). I&#x27;m planning on writing a tutorial series about this too, so I&#x27;ll post a link to that when it&#x27;s available.<p>Thanks!