openscad-parser 2.1.0__tar.gz → 2.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: openscad_parser
3
- Version: 2.1.0
3
+ Version: 2.2.0
4
4
  Summary: A PEG parser to read OpenSCAD language source code, with optional AST tree generation.
5
5
  Keywords: openscad,openscad parser,parser
6
6
  Author: Revar Desmera
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "openscad_parser"
7
- version = "2.1.0"
7
+ version = "2.2.0"
8
8
  description = "A PEG parser to read OpenSCAD language source code, with optional AST tree generation."
9
9
  readme = "README.rst"
10
10
  authors = [
@@ -127,7 +127,6 @@ class ASTBuilderVisitor(PTNodeVisitor):
127
127
  if visit_method:
128
128
  try:
129
129
  result = visit_method(node, children)
130
- print(f"\n#####################\n{visit_method_name=}\n{node=}\n{children=}\n{result=}\n")
131
130
  return result
132
131
  except Exception as e:
133
132
  # If visit method fails, return children or None
@@ -331,7 +331,7 @@ def empty_statement():
331
331
 
332
332
 
333
333
  def statement_block():
334
- return (TOK_BRACE, ZeroOrMore(statement), TOK_ENDBRACE)
334
+ return (TOK_BRACE, ZeroOrMore([statement, comment]), TOK_ENDBRACE)
335
335
 
336
336
 
337
337
  def module_definition():