Nand2Tetris Questions and Answers Forum
›
Compiler
›
Chapter 10
Search
everywhere
only in this topic
Advanced Search
Cannot process .jack files in directory
Classic
List
Threaded
♦
♦
Locked
2 messages
Ju Se Hoon
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Cannot process .jack files in directory
https://gist.github.com/ilovealbis/d51b3b0077e94a879d926ebdb2277094
The code above is my JackAnalyzer.py.
When I set a source file to a single .jack file it works flawlessly.
But when it handles a directory, it only works for the very first file in the file list.
terminal screen below.
https://gist.github.com/ilovealbis/80d1d56076f643d44017ffdf8984dba2
I looked into the error and found that somehow the tokenizer was malfunctioning for the second one.
But I do think this is about class instance init since it works for a single file. Still confused though.
cadet1620
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
Re: Cannot process .jack files in directory
Administrator
I can not debug this for you without tknzr.py and cmpEngine.py.
Please email them to me. (We don't want complete solutions posted on the forum.)
Also include JackAnalyzer.py if you have changed since you posted it here.
--Mark
Free forum by Nabble
Edit this page