rvirding/luerl — pull request #1 by Eonblast (2012-02-21 01:23:19+00:00)
Title: Makefile; sample; warnings

Hi Robert,

I took a stab at makefile including leex and yecc calls. It can do all, hello, and clean.

In the turn I tackled the one or two warnings that were popping up. That's the only changes to actual code I made --

except that I added `dochunk/2` to `luerl.erl`. Since `ps/1` would return a compiled chunk, I thought there should be a function that you can use it with.

(As I wrote, maybe eval* should be reserved for /1 functions and do* for /2 functions that take and return state. Though that would mean changing the current `dofile/1` to `evalfile/1`, which is not Lua conform.)

I added a hello world sample, `./hello.erl` that demonstrate the exact same things you are pointing out in the README.