created development branch

This commit is contained in:
weckyy702
2021-03-28 12:12:46 +02:00
parent d3ca77c98a
commit 3860250e31
2 changed files with 11 additions and 2 deletions

8
interpreter/Lexer.py Normal file
View File

@@ -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"""

View File

@@ -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