Skip to content

Commit

Permalink
Use CamelCase instead of both camel case and snake case (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysthakur committed Aug 5, 2021
1 parent 5a98a09 commit 1f6d733
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vyxal/Structure.py → vyxal/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def transpile(self) -> str:
return "Yesn't"


class If_Statement(Structure):
class IfStatement(Structure):
def __init__(self, branches: list[list[Structure]]):
self.truthy = branches[0]
self.falsey = []
Expand All @@ -29,7 +29,7 @@ def transpile(self) -> str:
return ""


class For_Loop(Structure):
class ForLoop(Structure):
def __init__(self, branches: list[list[Structure]]):
self.name = ""
self.body = []
Expand All @@ -44,7 +44,7 @@ def transpile(self) -> str:
return ""


class While_Loop(Structure):
class WhileLoop(Structure):
def __init__(self, branches: list[list[Structure]]):
self.condition = [Structure(["1"])]
self.body = []
Expand All @@ -57,7 +57,7 @@ def transpile(self) -> str:
return ""


class Function_Call(Structure):
class FunctionCall(Structure):
def __init__(self, branches: list[list[Structure]]):
self.parameters = branches[0]
self.body = None
Expand All @@ -80,15 +80,15 @@ def transpile(self) -> str:
return ""


class Function_Reference(Structure):
class FunctionReference(Structure):
def __init__(self, branches: list[list[Structure]]):
self.name = branches[0]

def transpile(self) -> str:
return ""


class List_Literal(Structure):
class ListLiteral(Structure):
def __init__(self, branches: list[list["Structure"]]):
self.items = branches

Expand Down

0 comments on commit 1f6d733

Please sign in to comment.