aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/testLua/yueliang-0.4.1/nat-5.1.3/test/parser_log/sample_23.lua
blob: eb658ed6e848903a6788bacb033ff913dc10d392 (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
-- START OF SOURCE --
  do
    local function foo() end
    bar = foo
  end
  baz = foo
-- END OF SOURCE --

-- TOP: begin
  open_func
  
  chunk:
  -- STATEMENT: begin 'do' line=1
  do_stat: begin
  block: begin
    enterblock(isbreakable=false)
    chunk:
    -- STATEMENT: begin 'local' line=2
    local_stat: local function
    localfunc: begin
        str_checkname: 'foo'
        new_localvar: 'foo'
    localfunc: body
      open_func
      body: begin
      body: parlist
        parlist: begin
        parlist: end
      body: chunk
      chunk:
      body: end
      close_func
    localfunc: end
    -- STATEMENT: end 'local'
    
    -- STATEMENT: begin 'expr' line=3
    prefixexp: <name>
        str_checkname: 'bar'
        singlevar(kind): 'VGLOBAL'
    expr_stat: assignment k='VGLOBAL'
    assignment: '=' -- RHS elements follows
      explist1: begin
      expr:
      prefixexp: <name>
          str_checkname: 'foo'
          singlevar(kind): 'VLOCAL'
      explist1: end
    -- STATEMENT: end 'expr'
    
    leaveblock
  block: end
  do_stat: end
  -- STATEMENT: end 'do'
  
  -- STATEMENT: begin 'expr' line=5
  prefixexp: <name>
      str_checkname: 'baz'
      singlevar(kind): 'VGLOBAL'
  expr_stat: assignment k='VGLOBAL'
  assignment: '=' -- RHS elements follows
    explist1: begin
    expr:
    prefixexp: <name>
        str_checkname: 'foo'
        singlevar(kind): 'VGLOBAL'
    explist1: end
  -- STATEMENT: end 'expr'
  
  close_func
-- TOP: end