Compare commits

...

2 Commits

Author SHA1 Message Date
7bc353c7aa
Fix errors 2025-01-06 13:58:40 +11:00
c7e4a0aeca
Fix indentation in ppp_ast.py 2024-11-22 18:45:55 +11:00
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
a: (int, int) = (0, 1);
for i in range(0, 100) {
a = (a[1], a[0] + a[1]);
print(int_to_str(a[0])+"\n");
a = (a.1, a.0 + a.1);
print(int_to_str(a.0)+"\n");
}

View File

@ -43,7 +43,7 @@ class TypeSpecification(TypeExpression):
types: List[TypeExpression]
def represent(self) -> str:
return f'{self.type.represent()}<{', '.join([type.represent() for type in self.types])}>'
return f"{self.type.represent()}<{', '.join([type.represent() for type in self.types])}>"
@dataclass
class FunctionTypeExpr(TypeExpression):
@ -518,4 +518,4 @@ class TypeDefinition(Statement):
@dataclass
class DeferStatement(Statement):
statement: Statement
statement: Statement