mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-python
synced 2026-01-15 01:52:56 +01:00
algo.ShuntingYard: Add operator()
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
2efe2f97fa
commit
29f57ec187
1 changed files with 3 additions and 0 deletions
|
|
@ -57,6 +57,9 @@ class ShuntingYard(object): # export
|
|||
if len(msg):
|
||||
print(msg[1:])
|
||||
|
||||
def operator(self, key: str) -> Operator:
|
||||
return self.__ops[key]
|
||||
|
||||
def token_string(self):
|
||||
r = ""
|
||||
for k in sorted(self.__ops):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue