Skip to content

Instantly share code, notes, and snippets.

View activeguild's full-sized avatar
🐷
On vacation

j1ngzoue activeguild

🐷
On vacation
View GitHub Profile
@alinz
alinz / Makefile
Created September 25, 2019 19:26
Compile Zig to WebAssembly and run it in Node.js
build:
zig build-exe --name test.wasm -target wasm32-freestanding --release-small test.zig
@south37
south37 / json_parser.rs
Last active June 25, 2022 15:18
rust で combine を使って書いた json parser
// Rewrite code with `parser!` macro.
// Target: https://github.com/Marwes/combine/blob/f32fe7c135b8c3104843939b7b505f8b0ea4862e/benches/json.rs
#[macro_use]
extern crate combine;
use std::collections::hash_map::HashMap;
use combine::parser::char::{char, string, digit, spaces};
use combine::parser::choice::{choice, optional};