Closed pwightman closed 12 years ago
Im looking into it, just one second
Ah, just need to run it with python instead of executing it straight up. But I'm also missing the ply.lex module. Do I get this from his code? Maybe we can add that to the repo as well?
ImportError: No module named ply.lex
what version of python are you using?
I have 3 and 3.2 and it gives me the same error with both.
On his website, he has the ply folder:
http://eng.utah.edu/~cs3100/lectures/l14/ply-3.4/ply/
Is it just a matter of dropping that in the repo? I'll give it a try.
Just did, we think alike. Sorry about forgetting that.
It works! Do you mind if I put a:
at the top so I can call them like an executable? I suppose if everyone doesn't have their python3 in /usr/local/bin it might not be wise...
Also, is there a way not to print out hundreds of lines of debugging from Ganesh's files? :-)
Ah, I'm guessing his files just aren't meant to be run from the command-line? I suppose I can write my own file that imports them and calls them.
Let me work on that tonight, unless you have already made progress with the python code. Yeah those files (I pulled all of his directly instead of using mine so that we can be sure they all work correctly) are not set up as scripts.
I haven't done much, but I've just created a test/ folder in the python folder that I'm writing up test harnesses for to wrap my head around how exactly they're going to work, so I'll just keep working in there for now and leave the python files alone.
I wanted to take a look at my code again anyway so that I have a better idea of what we need in c++
Sounds good. I'm removing all the pycache directories as well since I'm under the impression they get regenerated each time you run the files right?
Yes they do. So do parser.out and parsetab.py
Ok, I just added them to a .gitignore and pushed.
I'm getting an error:
from: can't read /var/mail/nfa
Am I missing a dependency that you know of Adam?