File: exI2.block

package info (click to toggle)
msc-generator 8.6.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180,484 kB
  • sloc: cpp: 129,931; yacc: 23,655; ansic: 7,464; sh: 5,026; makefile: 948
file content (9 lines) | stat: -rw-r--r-- 480 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
a, b [color=red];    //a, b does not yet exist, create them
box a;               //always defines a block. Now we have 2 blocks named 'a'
b, c [color=aqua];   //creates 'c', but not b. Only makes 'b' blue
box BIG {
    use shape=oval;  //make the default shape the oval
    c->d;            //'c' already exist (outside BIG), but 'BIG.d' is created oval
}
BIG.d [color=green]; //update the color of 'BIG.d'
BIG.e [color=red];   //error, we cannot create a block with a dot in name