Maybe you can try to implement pegs in newLisp, there's already some Scheme/CL implementations given here :
http://pdos.csail.mit.edu/~baford/packrat/
Search found 9 matches
- Sun Dec 07, 2008 11:27 pm
- Forum: Anything else we might add?
- Topic: replace regular expressions
- Replies: 10
- Views: 12128
- Tue Dec 02, 2008 4:16 pm
- Forum: newLISP in the real world
- Topic: functions parameters
- Replies: 6
- Views: 3591
Thanks for all your replies, newdep : &rest and &optional were exactly what I was looking for. Now I need to test "args" within newLisp. Lutz : this is a great example of a macro use : thanks for it ! Do you think such a markup langage http://www.nongnu.org/skribilo/ can be implemented in newLisp? I...
- Tue Dec 02, 2008 12:05 pm
- Forum: newLISP in the real world
- Topic: functions parameters
- Replies: 6
- Views: 3591
functions parameters
Hi,
I just wanted to know how to handle functions parameters in newLisp, in particular those ones (I only saw optionnal parameters in the docs):
- rest parameters;
- keyword parameters;
Thanks.
I just wanted to know how to handle functions parameters in newLisp, in particular those ones (I only saw optionnal parameters in the docs):
- rest parameters;
- keyword parameters;
Thanks.
- Tue Nov 11, 2008 9:36 am
- Forum: Anything else we might add?
- Topic: Before starting
- Replies: 21
- Views: 16491
Kazimir : thanks for all these references and snippets, you're handling CL or newLisp with great ease: congrats ! Your psychedelic webpages reminds me the times when I was coding on a Commodore 64 computer. I also just saw you came from Croatia, I've been there 2 years ago and I must say it has bee...
- Mon Nov 10, 2008 12:36 pm
- Forum: Anything else we might add?
- Topic: Before starting
- Replies: 21
- Views: 16491
Note that CL has not fexprs=Newlisp macros. Older, pre-CL Lisps had fexprs. It would be hard to implement fexprs in CL; on the other hand, it is easy to implement CL macros in Newlisp. ok, that suggest me some more questions : - if fexprs were so good, why do they disappear from CL ? - P.Seibel sai...
- Mon Nov 10, 2008 9:55 am
- Forum: Anything else we might add?
- Topic: Before starting
- Replies: 21
- Views: 16491
-->cormullion : "You're almost learning two languages at once... And why not! :)" You're right, maybe that's not the good approach. Thanks for telling me about the CL fexprs : I wasn't aware of them. -->Kazimir : Thanks for your nice sample. Maybe I'm wrong, but the simple 'if' cannot be a function ...
- Fri Nov 07, 2008 10:34 pm
- Forum: Anything else we might add?
- Topic: Before starting
- Replies: 21
- Views: 16491
Hi cormullion, I've taken the sample from chapter 3 of PCL : http://gigamonkeys.com/book/practical-a-simple-database.html (about 3/4 of the page, or search for the word 'macro', it's quicker). PCL is not like other academic books, it has been a pleasure to read. Yes, once I saw the result in my newL...
- Fri Nov 07, 2008 9:42 pm
- Forum: Anything else we might add?
- Topic: Before starting
- Replies: 21
- Views: 16491
Hi unixtechie, You're right I've not read the entire docs (but if you want to test a new language, you often read between the lines...and the manual is just 329 pages long!). I've no interest in building shell scripts-like, I'm using Python, Perl or Ruby for such everyday tasks. Nor do I want to wri...
- Fri Nov 07, 2008 8:19 pm
- Forum: Anything else we might add?
- Topic: Before starting
- Replies: 21
- Views: 16491
Before starting
Hi, I'm new to newLisp, but before I really start playing with it, I need your lights on several points : - can we make an executable file from a lsp one ? I know that asking such a question on a Lisp forum would result in "you don't have to, just run your script from the REPL". But I really do care...