Skip to content

Commit

Permalink
folder
Browse files Browse the repository at this point in the history
  • Loading branch information
prp97 committed Dec 22, 2023
1 parent 6ec630d commit 2f853cd
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Empty file removed src/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions src/cool_lexer.py → src/lexer/cool_lexer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from errors import * # import LexicographicError
from utils.errors import * # import LexicographicError
from ply import lex

from utils import tokens, keywords, literals
from utils.utils import tokens, keywords, literals


class CoolLexer:
Expand Down
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys

from cool_lexer import CoolLexer
from cool_parser import CoolParser
from lexer.cool_lexer import CoolLexer
from parser.cool_parser import CoolParser


def main(_input, _output):
Expand Down
6 changes: 3 additions & 3 deletions src/cool_parser.py → src/parser/cool_parser.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from ply.yacc import yacc
from errors import SyntacticError
from utils import tokens
from cool_ast import *
from utils.errors import SyntacticError
from utils.utils import tokens
from utils.cool_ast import *


class CoolParser:
Expand Down
2 changes: 1 addition & 1 deletion src/semantic/context.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from errors import *
from src.utils.errors import *
from semantic import Type


Expand Down
2 changes: 1 addition & 1 deletion src/semantic/cool_types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from errors import *
from src.utils.errors import *
from semantic import *

class Type:
Expand Down
2 changes: 1 addition & 1 deletion src/semantic/semantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from tokenize import String

from traitlets import Int
from errors import SemanticError
from src.utils.errors import SemanticError

class Attribute:
def __init__(self, name, typex):
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2f853cd

Please sign in to comment.