Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A little stackish parser in lua
Lua
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
README.mkd

README.mkd

Lua Stackish

This is a tiny stackish parser written in lua. Stackish is a simple stackbased language for describing structured data, you can read about stackish at Zed Shaw's website. This particular project was just an excuse to write a parser for a tiny language, and play with my pre-existing fascination with Forth.

How to use it

local stackish = require("stackish")

local result = stackish.parse([[ [ "abcd" [ "1234 " 5678 454.234 root things ]]))
stackish.print_table(result)
things:
 "abcd"
 root:
  454.234
  5678
  "1234 "
Something went wrong with that request. Please try again.