Changes between Version 5 and Version 6 of NQPDocs
- Timestamp:
- 11/21/09 21:31:25 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NQPDocs
v5 v6 8 8 19:52:02 < cconstantine> rule cons { [<term> ]* {*}} <---- loop through the <term>s backwards 9 9 }}} 10 11 {{{ 12 my $n := +$<term> - 1; 13 while $n >= 0 { 14 # do something with $<term>[$n] here 15 $n := $n - 1; 16 } 17 }}} 18 10 19 * A basic tutorial for HLL implementers that starts from step 1 of using mk_language_shell.pl and ends with some new type of builtin implemented and a custom Configure-time check being added to the build process in the new HLL. Basically, an updated squawk tutorial, but perhaps shorter and easier to get into. 20 21 nqp-rx abandons mk_language_shell.pl altogether. We'll probably come up with a new one. Yes, we need a full-on tutorial, I just haven't had time to write it. It would help to know a language to use as a tutorial example. 22 11 23 12 24 * How do I use threads in NQP? 13 25 26 How does one use threads in Parrot? (This isn't meant to be glib -- before I can explain how to use threads in NQP, I need to know how one can use them in Parrot. --Pm) 27 14 28 * How do I use PIR from NQP? 29 30 One can either use the PIR opcodes directly with pir::opcode($args), or one can substitute long sequences of PIR using Q:PIR { ... }. 31