Skip to content
Snippets Groups Projects

Draft: Fortran Support

1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -22,7 +22,7 @@ print_template_fort = "print *, \"@STRING@\"@ARGS@"
class PrintInst(Instruction):
@override
def __init__(self, string: str, args: List[str] = []):
def __init__(self, string: str, args: List[str] = [], rank: str | int = 'all', identifier: str = None):
"""
Creates a new print instruction
@@ -30,7 +30,7 @@ class PrintInst(Instruction):
string: String to print
args: List of variables to print (postfix)
"""
super().__init__("")
super().__init__("", rank, identifier)
self._string = string
self._args = args
Loading