aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/testLua/yueliang-0.4.1/nat-5.1.3/test/parser_log/sample_21.lua
blob: b2bac4b239ec31d681eb2d38bc021ce562656013 (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
67
68
69
70
71
72
73
74
75
76
77
-- START OF SOURCE --
  local a,b,c
  do
    local b
    print(b)
  end
  print(b)
-- END OF SOURCE --

-- TOP: begin
  open_func
  
  chunk:
  -- STATEMENT: begin 'local' line=1
  local_stat: local statement
    localstat: begin
        str_checkname: 'a'
        new_localvar: 'a'
        str_checkname: 'b'
        new_localvar: 'b'
        str_checkname: 'c'
        new_localvar: 'c'
    localstat: end
  -- STATEMENT: end 'local'
  
  -- STATEMENT: begin 'do' line=2
  do_stat: begin
  block: begin
    enterblock(isbreakable=false)
    chunk:
    -- STATEMENT: begin 'local' line=3
    local_stat: local statement
      localstat: begin
          str_checkname: 'b'
          new_localvar: 'b'
      localstat: end
    -- STATEMENT: end 'local'
    
    -- STATEMENT: begin 'expr' line=4
    prefixexp: <name>
        str_checkname: 'print'
        singlevar(kind): 'VGLOBAL'
    primaryexp: ( funcargs
      funcargs: begin '('
        explist1: begin
        expr:
        prefixexp: <name>
            str_checkname: 'b'
            singlevar(kind): 'VLOCAL'
        explist1: end
      funcargs: end -- expr is a VCALL
    expr_stat: function call k='VCALL'
    -- STATEMENT: end 'expr'
    
    leaveblock
  block: end
  do_stat: end
  -- STATEMENT: end 'do'
  
  -- STATEMENT: begin 'expr' line=6
  prefixexp: <name>
      str_checkname: 'print'
      singlevar(kind): 'VGLOBAL'
  primaryexp: ( funcargs
    funcargs: begin '('
      explist1: begin
      expr:
      prefixexp: <name>
          str_checkname: 'b'
          singlevar(kind): 'VLOCAL'
      explist1: end
    funcargs: end -- expr is a VCALL
  expr_stat: function call k='VCALL'
  -- STATEMENT: end 'expr'
  
  close_func
-- TOP: end