Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Luerl - Lua in Erlang

Received: by 10.205.129.137 with SMTP id hi9mr1521277bkc.8.1329747547074;
        Mon, 20 Feb 2012 06:19:07 -0800 (PST)
X-BeenThere: erlang-programming@googlegroups.com
Received: by 10.204.35.2 with SMTP id n2ls7388783bkd.4.gmail; Mon, 20 Feb 2012
 06:19:06 -0800 (PST)
Received: by 10.204.153.5 with SMTP id i5mr1525428bkw.1.1329747546135;
        Mon, 20 Feb 2012 06:19:06 -0800 (PST)
Received: by 10.204.153.5 with SMTP id i5mr1525427bkw.1.1329747546114;
        Mon, 20 Feb 2012 06:19:06 -0800 (PST)
Return-Path: <erlang-questions-boun...@erlang.org>
Received: from hades.cslab.ericsson.net (hades.cslab.ericsson.net. [192.121.151.104])
        by gmr-mx.google.com with ESMTP id l17si24082776bkb.1.2012.02.20.06.19.05;
        Mon, 20 Feb 2012 06:19:05 -0800 (PST)
Received-SPF: pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) client-ip=192.121.151.104;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) smtp.mail=erlang-questions-boun...@erlang.org
Received: from hades.cslab.ericsson.net (hades [192.121.151.104])
	by hades.cslab.ericsson.net (Postfix) with ESMTP id BD8E35C45D;
	Mon, 20 Feb 2012 15:18:58 +0100 (CET)
X-Original-To: erlang-questi...@erlang.org
Delivered-To: erlang-questi...@erlang.org
Received: from zimbra.erlangsystems.com (zimbra.erlangsystems.com
 [93.93.131.195])
 by hades.cslab.ericsson.net (Postfix) with ESMTP id E00DC5C004
 for <erlang-questi...@erlang.org>; Mon, 20 Feb 2012 15:18:56 +0100 (CET)
Received: from localhost (localhost.localdomain [127.0.0.1])
 by zimbra.erlangsystems.com (Postfix) with ESMTP id A12CB182E00A;
 Mon, 20 Feb 2012 14:18:56 +0000 (GMT)
X-Virus-Scanned: amavisd-new at zimbra.erlangsystems.com
Received: from zimbra.erlangsystems.com ([127.0.0.1])
 by localhost (zimbra.erlangsystems.com [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 9DVKfmVQSAGG; Mon, 20 Feb 2012 14:18:52 +0000 (GMT)
Received: from zimbra.erlangsystems.com (zimbra.erlangsystems.com
 [93.93.131.195])
 by zimbra.erlangsystems.com (Postfix) with ESMTP id 9A25A182E008;
 Mon, 20 Feb 2012 14:18:52 +0000 (GMT)
Date: Mon, 20 Feb 2012 14:18:52 -0000 (GMT)
From: Robert Virding <robert.vird...@erlang-solutions.com>
To: Henning Diedrich <hd2...@eonblast.com>
Message-ID: <d56a8dc6-2a90-431c-b2c1-b0b453362b13@knuth>
In-Reply-To: <4F425145.4070...@eonblast.com>
MIME-Version: 1.0
X-Originating-IP: [192.165.126.77]
X-Mailer: Zimbra 7.1.1_GA_3196 (ZimbraWebClient - FF3.0 (Mac)/7.1.1_GA_3196)
Cc: Erlang Questions <erlang-questi...@erlang.org>
Subject: Re: [erlang-questions] Luerl - Lua in Erlang
X-BeenThere: erlang-questi...@erlang.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: General Erlang/OTP discussions <erlang-questions.erlang.org>
List-Unsubscribe: <http://erlang.org/mailman/options/erlang-questions>,
 <mailto:erlang-questions-requ...@erlang.org?subject=unsubscribe>
List-Archive: <http://erlang.org/pipermail/erlang-questions>
List-Post: <mailto:erlang-questi...@erlang.org>
List-Help: <mailto:erlang-questions-requ...@erlang.org?subject=help>
List-Subscribe: <http://erlang.org/mailman/listinfo/erlang-questions>,
 <mailto:erlang-questions-requ...@erlang.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1264694651177856471=="
Errors-To: erlang-questions-boun...@erlang.org
Sender: erlang-questions-boun...@erlang.org

--===============1264694651177856471==
Content-Type: multipart/alternative;
 boundary="=_4a395997-336f-4dc2-b236-c7845c08e1c8"

--=_4a395997-336f-4dc2-b236-c7845c08e1c8
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

3> You need to compile both the .yrl and .xrl file. 

If you start erlang in the luerl top directory with : 

erl -pa ebin 
... 
1> yecc:file("src/luerl_parse"). 
src/luerl_parse.yrl: Warning: conflicts: 2 shift/reduce, 0 reduce/reduce 
{ok,"src/luerl_parse.erl"} 
2> leex:file("src/luerl_scan"). 
{ok,"src/luerl_scan.erl"} 
3> make:all([load]). 
... 
up_to_date 
4> 

- The -pa ebin is to make sure it finds all the .beam files in ebin. 
- Both yecc and leex by default put their generated .erl files in the same directory as the .yrl and .xrl source files. 
- The Emakefile contains data for compiling all the .erl files in src and putting them in ebin. 

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. 

Robert 

----- Original Message -----

> On 2/20/12 3:38 AM, Robert Virding wrote:
> > ----- Original Message -----
> 
> > > On 19 February 2012 00:32, Robert Virding
> > > <robert.vird...@erlang-solutions.com> wrote:
> > 
> 
> > > > Report bugs and missing features.
> > > 
> > 
> 
> I don't get it to run. I tried basically:

> mkdir ebin
> erl
> 1> yecc:file("luerl_parse.yrl").
> erl -make
> erl
> 2> luerl:eval(<<"Hello Robert!">>).
> ** exception error: undefined function luerl_scan:string/1
> in function luerl:eval/1

> Need I compile the .xrl?

> > What is also needed is a good interface between erlang and Lua.
> 
> What requirements would a good interface meet?

> Henning

--=_4a395997-336f-4dc2-b236-c7845c08e1c8
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><style type=3D'text/css'>p { margin: 0; }</style></head><body><=
div style=3D'font-family: Times New Roman; font-size: 12pt; color: #000000'=
>3&gt;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&gt=
; 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&gt; lee=
x:file("src/luerl_scan").<br>{ok,"src/luerl_scan.erl"}<br>3&gt; make:all([l=
oad]).<br>...<br>up_to_date<br>4&gt;<br><br>- The -pa ebin is to make sure =
it finds all the .beam files in ebin.<br>- Both yecc and leex by default pu=
t their generated .erl files in the same directory as the .yrl and .xrl sou=
rce files.<br>- The Emakefile contains data for compiling all the .erl file=
s in src and putting them in ebin.<br><br>I added lines in .gitignore to ex=
clude the generated luerl_parse/scan.erl files as small changes in the sour=
ce files can cause big changes in the .erl files. That was probably a mista=
ke and I will revert it next commit.<br><br>Robert<br><br><br><hr id=3D"zwc=
hr"><blockquote style=3D"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=3D"mid:aea670d2-54a4-4dbc-9334-cd60e9c74e30@knuth">
      <pre>----- Original Message -----
</pre>
      <blockquote>
        <pre>On 19 February 2012 00:32, Robert Virding
<a class=3D"moz-txt-link-rfc2396E" href=3D"mailto:robert.virding@erlang-sol=
utions.com" target=3D"_blank">&lt;robert.vird...@erlang-solutions.com&gt;</=
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>
    &nbsp;&nbsp;&nbsp; mkdir ebin<br>
    &nbsp;&nbsp;&nbsp; erl<br>
    &nbsp;&nbsp;&nbsp; 1&gt; yecc:file("luerl_parse.yrl").<br>
    &nbsp;&nbsp;&nbsp; erl -make<br>
    &nbsp;&nbsp;&nbsp; erl<br>
    &nbsp;&nbsp;&nbsp; 2&gt; luerl:eval(&lt;&lt;"Hello Robert!"&gt;&gt;). <=
br>
    ** exception error: undefined function luerl_scan:string/1<br>
    &nbsp;&nbsp;&nbsp;&nbsp; in function&nbsp; luerl:eval/1 <br>
    <br>
    Need I compile the .xrl?<br>
    <br>
    <blockquote cite=3D"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>
--=_4a395997-336f-4dc2-b236-c7845c08e1c8--

--===============1264694651177856471==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

--===============1264694651177856471==--