changed "cell" to "cell+" to be compliant with Forth 200x standard

This commit is contained in:
Carsten Strotmann 2017-02-26 23:30:05 +01:00
parent 1726c49c3e
commit 711a691dee

4
foco65
View File

@ -255,7 +255,7 @@ class BranchTarget:
class Words:
def __init__(self):
self.lst = []
self.aliases = {"cells": "2*", "cell": "2+", "not": "0="}
self.aliases = {"cells": "2*", "cell+": "2+", "not": "0="}
def __iter__(self):
return iter(self.lst)
@ -397,7 +397,7 @@ class Forth:
elif token == "cells":
x = self.pop(token)
self.push(2 * x)
elif token == "cell":
elif token == "cell+":
x = self.pop(token)
self.push(x + 2)
elif token == "/":