Skip to content

Commit

Permalink
Intermediate commit -- haven't backed up in ages
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidchu committed Oct 1, 2023
1 parent 26f981e commit 4f394df
Show file tree
Hide file tree
Showing 6 changed files with 423 additions and 212 deletions.
8 changes: 8 additions & 0 deletions prototype/analyzer/c_builtins/libc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""This file aids with the libc libraries."""


class CLibrary:
def __init__(self, name):
pass


2 changes: 1 addition & 1 deletion prototype/analyzer/deprecated/lol_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def analyze_function(
global_var: Dict[str, ASTNode],
func_def: FunctionDefinitionNode,
) -> None:
body = func_def.body
body = func_def._body
local_var: Dict[str, ASTNode] = {}
for j, statement in enumerate(body):
if isinstance(statement, DefinitionNode):
Expand Down
4 changes: 2 additions & 2 deletions prototype/analyzer/lol_analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def get_prototypes(module: LolModule, ast_nodes: List[ASTNode], raw_text: str):
def get_bodies(module: LolModule, ast_nodes: List[ASTNode], raw_text: str):
for i, node in enumerate(ast_nodes):
if isinstance(node, FunctionDefinitionNode):
module.add_func_body(node)
module.add_function_body(node)
elif isinstance(node, VariableDefinitionNode):
module.add_defn_body(node)
module.add_variable_definition_body(node)
elif isinstance(node, ImportModuleNode):
pass
else:
Expand Down
Loading

0 comments on commit 4f394df

Please sign in to comment.