Skip to content

Commit ccadb01

Browse files
Added support for while loops
1 parent 66621f7 commit ccadb01

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

bashparser.egg-info/PKG-INFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.1
22
Name: bashparser
3-
Version: 0.7
3+
Version: 0.9
44
Summary: A framework for manipulating and analysing bash scripts
55
Home-page: https://github.com/BlankCanvasStudio/bashparse
66
Author: Spencer Stingley

bashparser/ast.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, root):
2020
self.no_children = {'operator', 'reservedword', 'pipe', 'parameter', 'tilde', 'heredoc'}
2121
self.parts_children = {'list', 'pipeline', 'if', 'for', 'while', 'until', 'command', 'function', 'word', 'assignment'}
2222
self.command_children = {'commandsubstitution', 'processsubstitution'}
23-
self.passable_nodes = {'command', 'list', 'compound', 'for', 'parameter', 'function', 'pipeline', 'if'}
23+
self.passable_nodes = {'command', 'list', 'compound', 'for', 'parameter', 'function', 'pipeline', 'if', 'while'}
2424
self.list_children = {}
2525
self.contains_variable_text = {'word', 'assignment'}
2626

@@ -52,7 +52,6 @@ def apply_fn(node):
5252
self._string = self._string + word + ' '
5353
return DONT_DESCEND
5454
else:
55-
print('node: ', node.dump())
5655
raise ValueError('Error! Unsupported node kind encountered when converting NodeVisitor to string: ', node.kind)
5756
self._string = self._string + word + ' '
5857
return CONT

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = bashparser
3-
version = 0.9
3+
version = 0.10
44
author = Spencer Stingley
55
description = A framework for manipulating and analysing bash scripts
66
long_description = A framework for manipulating and analysing bash scripts

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setuptools.setup(
99
name="bashparser",
10-
version="0.9",
10+
version="0.10",
1111
author="Spencer Stingley",
1212
author_email="[email protected]",
1313
description="A framework for manipulating and analysing bash scripts",

0 commit comments

Comments
 (0)