aboutsummaryrefslogtreecommitdiff
path: root/old-tests/pairs/buildfile
blob: 3b5504412d0fb9ab4884b1ce32433c61f3b6e1db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
print foo@bar       # foo@bar
print foo@{bar}     # foo@bar
print {foo}@bar     # foo@bar
print {foo@bar}     # foo@bar
print {{foo}@{bar}} # foo@bar
print "{foo}@bar"   # {foo}@bar

print foo@          # foo@{}
print {foo}@        # foo@{}
print {foo}@{}      # foo@{}
print {foo}@ {FOO}@ # foo@{} FOO@{}
v=foo@
print $v            # foo@{}

print @bar          # {}@bar
print @{bar}        # {}@bar
print {}@{bar}      # {}@bar
print @{BAR} @{bar} # {}@BAR {}@bar
v=@bar
print $v            # {}@bar

print @             # {}@{}
print @{}           # {}@{}
print {}@           # {}@{}
print {}@{}         # {}@{}
print {@}           # {}@{}
v=@
print $v            # {}@{}

print @ @           # {}@{} {}@{}
v=@ @
print $v            # {}@{} {}@{}

print @{bar BAR}    # {}@bar {}@BAR
print @{bar {BAR}}  # {}@bar {}@BAR
print foo@{bar BAR} # foo@bar foo@BAR

#print @@           # error: double pair separator

./: