Added tokenizer.py

This commit is contained in:
2019-02-06 19:38:21 +01:00
parent 74a0d25926
commit 47e3272458
2 changed files with 72 additions and 0 deletions
+2
View File
@@ -3,6 +3,7 @@ Contains class PARSER
'''
from itertools import count
import os
from tokenizer import TOKENIZER
#Element type definitions. Used in the parse process.
ELEMENT_TYPE_PREPROCESS = 1
@@ -82,6 +83,7 @@ class PARSEOBJECT:
_passes = count(0)
def __init__(self):
self.tokenize = TOKENIZER()
self.parseline = []
self.parsefile = []
self.passes = 0