On Oct 2, 2005, at 1:40 AM, Will Coleda wrote:
I've attached the generated PIR output for the sample program,
which outputs "10"
set a 0
while {$a < 10} {
incr a
}
puts $a
Ok, technically, it's not the output of a complete PIR program, it's
the concatenated output of several chunks. O
The simple version of the compiler is now mostly done in my sandbox:
Failed Test Stat Wstat Total Fail Failed List of Failed
---
t/cmd_global.t 3 768 63 50.00% 2-4
t/cmd_proc.t 4 1024
Eeek. Yes, I forgot just how crazy a language it was. :-D
> Yes, that's the plan, but the initial implementation isn't going to
> be a compiler like most people would expect:
>
> For example, something like:
>
> while {$a < 10} { incr a }
>
> while isn't language syntax. it's a command. So, this c
Yes, that's the plan, but the initial implementation isn't going to
be a compiler like most people would expect:
For example, something like:
while {$a < 10} { incr a }
while isn't language syntax. it's a command. So, this code would
result in creating two PMCs for the args (first arg is {$
Very cool. Will have to look into it soon.
Are you still contemplating making the whole thing compiled?
> Tcl's [expr] command now compiles expressions to PIR (before, it would
create an AST that it would then interpret when you wanted the value.).
Note: the language itself is still interpreted, t
Tcl's [expr] command now compiles expressions to PIR (before, it
would create an AST that it would then interpret when you wanted the
value.). Note: the language itself is still interpreted, this is only
one command in the language.
E.g: given a command like
while {$a < 10} {incr $a}
Orig