File:  [parser3project] / parser3 / tests / 010.html
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Tue Dec 3 04:19:58 2024 UTC (18 months, 4 weeks ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, HEAD
tests for $.(expression)[value], $a.(expression), ^v.(expression)[args] added (related to feature #1064)

@main[]

1. $x.$y

2. $a[ $.b[value] ]
   ${a.b}.something
   ${a.b}[something]

3. $b[finally works]
   $[a]{$b}
   $a!

4. $a[ $.b[c] ]
   $v[^hash::create[]]
   $v.[$a.b][ $.x[y] ]
   $v.c.x

5. $a[c]
   $b[x]
   $v.$a.$b

6. $b[a]
   $v.[$$b].x

7. ${v.[$$b].x}.extra

8. $a[ $.b[m] ]
   ^MAIN:[$a.b][arg]

9. $b[2]
   $h[ $.1[1] $.(5)[5] $.[1.b][1] ]
   $h.[$b $b][$b $b]
   $h.($b+$b)($b+$b)
   ^json:string[$h]

10. ${h.($b+2)}.extra

11. ^MAIN:($b+$b)[arg]

12. $h.( $h.[$h.(0+1)] + ${h.(1+0)} + ^MAIN:($b + $h.(0.5+0.5) + $h.[${h.(4/4)}.b] )(2) )

13. $MAIN:(2+2)[4]
    $MAIN:4

14. ^(2+2)[1]


@m[v]
$v

@4[v]
$v

E-mail: