File: arraytest1.cfdg

package info (click to toggle)
contextfree 3.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,432 kB
  • sloc: cpp: 34,857; lex: 416; makefile: 124; sh: 42; python: 41
file content (22 lines) | stat: -rw-r--r-- 468 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
startshape foo

vec0 = 1, 2, 3, 4, 5, 6, 7, 8//, [s 10]
vec1 = 1, 2, 3, 4, 5, 6, 7, 8, 9
vec2 = 1, 2, 3, 4, 5, 6, 7, 8, 9…12

vector3 f1(i) = i, 2, 1

shape foo {
  a¿ = 1
  b7 = 5
b9 = [s 10]
  vec3 = 1, 2, 3, 4, 5, 6, 7, 8, 9…12
  loop i = 0, 8 [x i y i h 30]
    SQUARE [s vec1[i, 2, 1] sat 1 b 1 a -0.5]
  loop i = 0, 8 [x i h 30]
    SQUARE [s vec2[i, 2, 1] sat 1 b 1 a -0.5]
  loop i = 0, 8 [x i y -i h 30]
    SQUARE [s vec3[i, 2, 1] sat 1 b 1 a -0.5]
}