Skip to content

Instantly share code, notes, and snippets.

@efficacy
efficacy / lbForth.c
Created September 21, 2021 09:10 — forked from lbruder/lbForth.c
A minimal Forth compiler in ANSI C
/*******************************************************************************
*
* A minimal Forth compiler in C
* By Leif Bruder <leifbruder@gmail.com> http://defineanswer42.wordpress.com
* Release 2014-04-04
*
* Based on Richard W.M. Jones' excellent Jonesforth sources/tutorial
*
* PUBLIC DOMAIN
*
var osc = require('node-osc');
console.log('started...');
var client = new osc.Client('localhost', 4557);
setTimeout(function() {
var note = process.argv[2];
console.log('got note ' + note);
client.send('/run-code','play ' + note);
console.log('sent...');
}, 500);