File: examplescript.vys

package info (click to toggle)
vym 2.9.604-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 20,476 kB
  • sloc: cpp: 45,317; ruby: 2,181; xml: 667; sh: 70; makefile: 15
file content (18 lines) | stat: -rw-r--r-- 410 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//Example function definition

function foofunction(s) {
  vym.print ("Foofunction output: " +  s); 
  s = "changed par";
  return {a: "ret-value", b: "bla"};
}

par = "I am a parameter!";
vym.print (foofunction(par));
vym.print ("par is now: " + par);
//abort("xxx");
vym.print ("bar");

map = vym.currentMap();
branch = map.selectedBranch();
branch.setHeadingText("foobar");
vym.print( branch.headingText());