how to use metalua?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

how to use metalua?

fatfatson
hi,all:
i'm interested in metalua for building a simple dsl.
but it seems there's no any availabe tutorial for the latest version?
i pull the source from github, there's no sample or test files, and i event don't know how to run a interactive shell for simple test-learning...
the document in official website also seems too old and the example code in it could not run, always gives a error like : attempt to index global 'mlp' (a nil value)

so i want to know, how do i start with metalua? thanks a lot~
Reply | Threaded
Open this post in threaded view
|

Re: how to use metalua?

Fabien-3
hello,

I haven't had time to work on metalua for quite some time, alas, and many docs aren't up-to-date. Have you pulled a recent version from Github (0.7.x) ? You'll find some things to get started on http://metalua.blogspot.fr/, and on the manual. I won't have time to update docs in the short to middle term, but you're welcome to ask specific question if you stumble on something.

On Tue, Aug 4, 2015 at 5:46 AM, 小冶 <[hidden email]> wrote:
hi,all:
i'm interested in metalua for building a simple dsl.
but it seems there's no any availabe tutorial for the latest version?
i pull the source from github, there's no sample or test files, and i event don't know how to run a interactive shell for simple test-learning...
the document in official website also seems too old and the example code in it could not run, always gives a error like : attempt to index global 'mlp' (a nil value)

so i want to know, how do i start with metalua? thanks a lot~



--
Fabien Fleutot
+---
| 33 chemin de Mange-Pommes
| 31520 Ramonville Saint-Agne -- France
| mobile: +33 6 28 06 09 97
| office: +33 5 61 00 06 49
| home: +33 5 61 75 05 67
Reply | Threaded
Open this post in threaded view
|

Re: how to use metalua?

fatfatson
thanks Fabien!
now i want to know:
1.how to add new grammar sugars? such as the origin example "Let ... In .." in your old docs?
2.give a simple interative shell( maybe the metalua.lua in root dir?) and its demonstration——i have ran it, but could not find any command it accepts, include "help" ,"?"...fully at sea...

2015-08-04 17:32 GMT+08:00 Fabien <[hidden email]>:
hello,

I haven't had time to work on metalua for quite some time, alas, and many docs aren't up-to-date. Have you pulled a recent version from Github (0.7.x) ? You'll find some things to get started on http://metalua.blogspot.fr/, and on the manual. I won't have time to update docs in the short to middle term, but you're welcome to ask specific question if you stumble on something.

On Tue, Aug 4, 2015 at 5:46 AM, 小冶 <[hidden email]> wrote:
hi,all:
i'm interested in metalua for building a simple dsl.
but it seems there's no any availabe tutorial for the latest version?
i pull the source from github, there's no sample or test files, and i event don't know how to run a interactive shell for simple test-learning...
the document in official website also seems too old and the example code in it could not run, always gives a error like : attempt to index global 'mlp' (a nil value)

so i want to know, how do i start with metalua? thanks a lot~



--
Fabien Fleutot
+---
| 33 chemin de Mange-Pommes
| 31520 Ramonville Saint-Agne -- France
| mobile: <a href="tel:%2B33%206%2028%2006%2009%2097" value="+33628060997" target="_blank">+33 6 28 06 09 97
| office: <a href="tel:%2B33%205%2061%2000%2006%2049" value="+33561000649" target="_blank">+33 5 61 00 06 49
| home: <a href="tel:%2B33%205%2061%2075%2005%2067" value="+33561750567" target="_blank">+33 5 61 75 05 67