diff --git a/interpreter/Lexer.py b/interpreter/Lexer.py new file mode 100644 index 0000000..51adf2f --- /dev/null +++ b/interpreter/Lexer.py @@ -0,0 +1,8 @@ +"""Lexer.py: Definition for Lexer class""" + +from function_scope import Function_scope + +class Lexer: + """This class will lex the provided Java source and generate a list of Function_scopes""" + + diff --git a/interpreter/function_scope.py b/interpreter/function_scope.py index c6ebf7e..02acd12 100644 --- a/interpreter/function_scope.py +++ b/interpreter/function_scope.py @@ -1,12 +1,13 @@ -"""function_scope.py: #TODO""" +"""function_scope.py: Class for Function scopes""" __author__ = "Weckyy702" from typing import Iterable, List from draw.Iinstruction import Iinstruction - class Function_scope(Iterable): + """This class serves as a container for Instructions""" + def __init__(self, child_instructions: List[Iinstruction], name: str, return_type: str, args: List[str]) -> None: self.contents = child_instructions self.name = name