aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/testLua/yueliang-0.4.1/nat-5.1.3/test/parser_log/sample_12.lua
blob: c423d853bbae8227df3dee480be930c0a3c4f789 (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
-- START OF SOURCE --
local foo
local foo,bar,baz
local foo,bar="foo","bar"
-- END OF SOURCE --

-- TOP: begin
  open_func
  
  chunk:
  -- STATEMENT: begin 'local' line=1
  local_stat: local statement
    localstat: begin
        str_checkname: 'foo'
        new_localvar: 'foo'
    localstat: end
  -- STATEMENT: end 'local'
  
  -- STATEMENT: begin 'local' line=2
  local_stat: local statement
    localstat: begin
        str_checkname: 'foo'
        new_localvar: 'foo'
        str_checkname: 'bar'
        new_localvar: 'bar'
        str_checkname: 'baz'
        new_localvar: 'baz'
    localstat: end
  -- STATEMENT: end 'local'
  
  -- STATEMENT: begin 'local' line=3
  local_stat: local statement
    localstat: begin
        str_checkname: 'foo'
        new_localvar: 'foo'
        str_checkname: 'bar'
        new_localvar: 'bar'
    localstat: -- assignment
      explist1: begin
      expr:
      simpleexp: <string>=foo
          codestring: "foo"
      explist1: ',' -- continuation
      expr:
      simpleexp: <string>=bar
          codestring: "bar"
      explist1: end
    localstat: end
  -- STATEMENT: end 'local'
  
  close_func
-- TOP: end