aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/testLua/yueliang-0.4.1/nat-5.0.3/test/parser_log/sample_08.lua
blob: d086c988e6492da6297a407c84fdf93ee8ef53be (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
-- START OF SOURCE --
do return end
do return 123 end
do return "foo","bar" end
-- END OF SOURCE --

-- TOP: begin
  open_func
  
  chunk:
  -- STATEMENT: begin 'do' line=1
  do_stat: begin
  block: begin
    enterblock(isbreakable=false)
    chunk:
    -- STATEMENT: begin 'return' line=1
    return_stat: no return values
    -- STATEMENT: end 'return'
    leaveblock
  block: end
  do_stat: end
  -- STATEMENT: end 'do'
  
  -- STATEMENT: begin 'do' line=2
  do_stat: begin
  block: begin
    enterblock(isbreakable=false)
    chunk:
    -- STATEMENT: begin 'return' line=2
    return_stat: begin
      explist1: begin
      expr:
      simpleexp: <number>=123
      explist1: end
    return_stat: end
    -- STATEMENT: end 'return'
    leaveblock
  block: end
  do_stat: end
  -- STATEMENT: end 'do'
  
  -- STATEMENT: begin 'do' line=3
  do_stat: begin
  block: begin
    enterblock(isbreakable=false)
    chunk:
    -- STATEMENT: begin 'return' line=3
    return_stat: begin
      explist1: begin
      expr:
      simpleexp: <string>=foo
          codestring: "foo"
      explist1: ',' -- continuation
      expr:
      simpleexp: <string>=bar
          codestring: "bar"
      explist1: end
    return_stat: end
    -- STATEMENT: end 'return'
    leaveblock
  block: end
  do_stat: end
  -- STATEMENT: end 'do'
  
  close_func
-- TOP: end