Skip to content

Commit

Permalink
python.tlt still remains Python2 compatible
Browse files Browse the repository at this point in the history
...as it is used in a legacy project.
  • Loading branch information
phorward committed Sep 17, 2024
1 parent 76abac2 commit 71f7b82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions targets/python.tlt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
#
@@prologue

class @@prefixNode:
class @@prefixNode(object):
"""
This is an AST node.
Expand Down Expand Up @@ -135,7 +135,7 @@ class @@prefixParseException(Exception):
self.expecting = expecting


class _@@prefixToken:
class _@@prefixToken(object):
"""
Only used internally;
Represents a token on the stack.
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 71f7b82

Please sign in to comment.