Skip to content

marcoscleison/chapel-tcl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chapel-tcl

TCL binding for Chapel Language.

Install dependency

sudo apt-get install tcl-dev

Example

module Main{
use Tcl;

    proc main(){

        var tcl = new Tcl();

        tcl.Eval("puts Marcos; hello");
       begin tcl.EvalFromFile("test.tcl");
       begin foo();

    }

    proc foo(){
        var i=0;
        while(i<=100000){
            writeln("#Chapel i=",i);
            i+=1;
        }

    }
}
for {set i 0} {$i < 100000} {incr i} {
    puts "I inside first loop TCL: $i"
}

To Compile and run

chpl -o t test.chpl tcl.chpl -ltcl
./t

Warning

Some Binding functions need to be rewritten.

Very alpha.

About

TCL binding for Chapel Language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published