Version 0 of Parenthetcl

Updated 2005-02-15 15:01:34 by suchenwi

http://www.smilax.org/99 - "ParentheTcl (pronounced "parenTHETical," abbreviated "p7tcl" or "P7") is a safe language for writing fast, compiled extensions for Tcl."

The language seems to RS a curious mix of Tcl and C - variables are strongly typed, expression syntax in parentheses is part of the language. Vector elements are also marked by parentheses (unlike C, but Fortran had it so...) Example:

 pproc (uni*)to_lower { (uni*)x } {
    for {set (int)i 0} ($i< [len $x] ) {incr i} {
        if ( 'A' <= $x($i) && $x($i) <= 'Z' ) {
            set x($i) ($x($i) - 'A' + 'a')
        }
    }
    set x
 }Commands so defined are compiled (to C), and made available as Tcl commands.

Commands such defined are compiled, and made available as Tcl commands. Notice that all extensions to Tcl syntax are marked with Parentheses -- thus the name ParentheTcl.

AK Feb 15, 2005: From the description above it sounds as if this wants to be or is already for Tcl what Pyrex is for Python. (So, if Python has Pyrex, Tcl should have...T-Rex?)


Category Languages