Skip to content

Commit 851ea59

Browse files
committed
Small fixes
1 parent dd7bfb2 commit 851ea59

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ AI-assisted development tools to understand and execute these tasks.
1717
## Features
1818

1919
- Parse `CEDARScript` Abstract Syntax Tree (`AST`) that was generated by Tree-Sitter into a list of commands
20-
- Support for various code manipulation andn analysis commands (CREATE, UPDATE, RM, MV, SELECT)
20+
- Support for various code manipulation and analysis commands (CREATE, UPDATE, RM, MV, SELECT)
2121
- Return results in `XML` format for easier parsing and processing by LLM systems
2222

2323
## Installation

src/cedarscript_ast_parser/cedarscript_ast_parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,8 @@ def parse_relative_indent_block(self, node) -> str:
619619
lines.append(f"{' ' * (4 * indent)}{content.text}")
620620
return '\n'.join(lines)
621621

622-
def find_first_by_type(self, nodes: Sequence[any], child_type):
622+
@staticmethod
623+
def find_first_by_type(nodes: Sequence[any], child_type):
623624
if isinstance(child_type, list):
624625
for child in nodes:
625626
if child.type in child_type:

0 commit comments

Comments
 (0)