From 71f7b825b055e7b467ff8b4d3256b5e41bcbf451 Mon Sep 17 00:00:00 2001 From: Jan Max Meyer Date: Tue, 17 Sep 2024 14:27:52 +0200 Subject: [PATCH] `python.tlt` still remains Python2 compatible ...as it is used in a legacy project. --- targets/python.tlt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/targets/python.tlt b/targets/python.tlt index 3a916ae..9bbbc02 100644 --- a/targets/python.tlt +++ b/targets/python.tlt @@ -86,7 +86,7 @@ # @@prologue -class @@prefixNode: +class @@prefixNode(object): """ This is an AST node. @@ -135,7 +135,7 @@ class @@prefixParseException(Exception): self.expecting = expecting -class _@@prefixToken: +class _@@prefixToken(object): """ Only used internally; Represents a token on the stack. @@ -147,7 +147,7 @@ class _@@prefixToken: @@value-type-definition -class _@@prefixControlBlock: +class _@@prefixControlBlock(object): """ Only used internally; Represents the current parser state, and allows to @@ -191,7 +191,7 @@ class _@@prefixControlBlock: self.column = 1 @@pcb -class @@prefixParser: +class @@prefixParser(object): """ Implements a LALR-Parser for @@name. Call @@prefixParser.parse() to start parsing a given string.