Skip to content

Commit

Permalink
Added Type Builder and Type Collector
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-pino committed Feb 26, 2021
1 parent 347ffcb commit 986e16f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/semantics/autotype_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,4 +298,4 @@ def visit(self, node, scope):
# todo: Annadir error en VarDeclarationNode
# todo: Annadir error en MethodCallNode (2)
# todo: annadir error en INsyantiate Node
# todo: Cambiar self.error a que cada error tengo la tupla de localizacion, asi permite organizar los errores
# todo: Cambiar self.error a que cada error tengo la tupla de localizacion, asi permite organizar los errores
2 changes: 1 addition & 1 deletion src/semantics/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from collections import OrderedDict
from typing import FrozenSet

from semantics.utils import conform_to_condition, order_set_by_index
from semantics.utils import conform_to_condition, from_dict_to_set, order_set_by_index

class InternalError(Exception):
@property
Expand Down
2 changes: 1 addition & 1 deletion src/semantics/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ def from_dict_to_set(types:dict):
type_set = set()
for typex in types:
type_set.add(types[typex])
return type_set
return type_set

0 comments on commit 986e16f

Please sign in to comment.