Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
boolangery committed Oct 24, 2024
1 parent 17812ea commit 27f6d6b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion luaparser/parser/LuaLexer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated from luaparser/parser/LuaLexer.g4 by ANTLR 4.13.2
# Generated from ./luaparser/parser/LuaLexer.g4 by ANTLR 4.13.2
from antlr4 import *
from io import StringIO
import sys
Expand Down
2 changes: 1 addition & 1 deletion luaparser/parser/LuaParser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated from luaparser/parser/LuaParser.g4 by ANTLR 4.13.2
# Generated from ./luaparser/parser/LuaParser.g4 by ANTLR 4.13.2
# encoding: utf-8
from antlr4 import *
from io import StringIO
Expand Down
2 changes: 1 addition & 1 deletion luaparser/parser/LuaParserListener.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated from luaparser/parser/LuaParser.g4 by ANTLR 4.13.2
# Generated from ./luaparser/parser/LuaParser.g4 by ANTLR 4.13.2
from antlr4 import *
if "." in __name__:
from .LuaParser import LuaParser
Expand Down
2 changes: 1 addition & 1 deletion luaparser/parser/LuaParserVisitor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated from luaparser/parser/LuaParser.g4 by ANTLR 4.13.2
# Generated from ./luaparser/parser/LuaParser.g4 by ANTLR 4.13.2
from antlr4 import *
if "." in __name__:
from .LuaParser import LuaParser
Expand Down
20 changes: 11 additions & 9 deletions luaparser/tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,19 @@ def test_cont_int_4(self):
0: {} 1 key
LocalFunction: {} 5 keys
wrapped: False
name: {} 3 keys
Name: {} 3 keys
name: {} 4 keys
Name: {} 4 keys
wrapped: False
id: 'sayHello'
args: [] 0 item
body: {} 2 keys
Block: {} 2 keys
body: [] 1 item
0: {} 1 key
Call: {} 4 keys
Call: {} 5 keys
wrapped: False
func: {} 3 keys
Name: {} 3 keys
func: {} 4 keys
Name: {} 4 keys
wrapped: False
id: 'print'
args: [] 1 item
Expand All @@ -175,14 +175,16 @@ def test_cont_int_4(self):
wrapped: False
s: 'hello world !'
delimiter: SINGLE_QUOTE
style: DEFAULT
1: {} 1 key
Call: {} 4 keys
Call: {} 5 keys
wrapped: False
func: {} 3 keys
Name: {} 3 keys
func: {} 4 keys
Name: {} 4 keys
wrapped: False
id: 'sayHello'
args: [] 0 item"""
args: [] 0 item
style: DEFAULT"""
)
self.assertEqual(exp, pretty_str)
ast.to_xml_str(tree)
Expand Down

0 comments on commit 27f6d6b

Please sign in to comment.