<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'>3>You need to compile both the .yrl and .xrl file.<br><br>If you start erlang in the luerl top directory with :<br><br>erl -pa ebin<br>...<br>1> yecc:file("src/luerl_parse").<br>src/luerl_parse.yrl: Warning: conflicts: 2 shift/reduce, 0 reduce/reduce<br>{ok,"src/luerl_parse.erl"}<br>2> leex:file("src/luerl_scan").<br>{ok,"src/luerl_scan.erl"}<br>3> make:all([load]).<br>...<br>up_to_date<br>4><br><br>- The -pa ebin is to make sure it finds all the .beam files in ebin.<br>- Both yecc and leex by default put their generated .erl files in the same directory as the .yrl and .xrl source files.<br>- The Emakefile contains data for compiling all the .erl files in src and putting them in ebin.<br><br>I added lines in .gitignore to exclude the generated luerl_parse/scan.erl files as small changes in the source files can cause big changes in the .erl files. That was probably a mistake and I will revert it next commit.<br><br>Robert<br><br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">
On 2/20/12 3:38 AM, Robert Virding wrote:
<blockquote cite="mid:aea670d2-54a4-4dbc-9334-cd60e9c74e30@knuth">
<pre>----- Original Message -----
</pre>
<blockquote>
<pre>On 19 February 2012 00:32, Robert Virding
<a class="moz-txt-link-rfc2396E" href="mailto:robert.virding@erlang-solutions.com" target="_blank"><robert.virding@erlang-solutions.com></a> wrote:
</pre>
<blockquote>
<pre>Report bugs and missing features.
</pre>
</blockquote>
</blockquote>
</blockquote>
I don't get it to run. I tried basically:<br>
<br>
mkdir ebin<br>
erl<br>
1> yecc:file("luerl_parse.yrl").<br>
erl -make<br>
erl<br>
2> luerl:eval(<<"Hello Robert!">>). <br>
** exception error: undefined function luerl_scan:string/1<br>
in function luerl:eval/1 <br>
<br>
Need I compile the .xrl?<br>
<br>
<blockquote cite="mid:aea670d2-54a4-4dbc-9334-cd60e9c74e30@knuth">
<pre>What is also needed is a good interface between erlang and Lua.
</pre>
</blockquote>
What requirements would a good interface meet?<br>
<br>
Henning<br>
</blockquote><br></div></body></html>