pwightman / nfa_evaluator

NFA evaluation
1 stars 1 forks source link

Python reparse.py #2

Closed pwightman closed 12 years ago

pwightman commented 12 years ago

I'm getting an error:

from: can't read /var/mail/nfa

Am I missing a dependency that you know of Adam?

adamwalz commented 12 years ago

Im looking into it, just one second

pwightman commented 12 years ago

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

adamwalz commented 12 years ago

what version of python are you using?

pwightman commented 12 years ago

I have 3 and 3.2 and it gives me the same error with both.

pwightman commented 12 years ago

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.

adamwalz commented 12 years ago

Just did, we think alike. Sorry about forgetting that.

pwightman commented 12 years ago

It works! Do you mind if I put a:

! /usr/loca/bin/python3

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...

pwightman commented 12 years ago

Also, is there a way not to print out hundreds of lines of debugging from Ganesh's files? :-)

pwightman commented 12 years ago

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.

adamwalz commented 12 years ago

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.

pwightman commented 12 years ago

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.

adamwalz commented 12 years ago

I wanted to take a look at my code again anyway so that I have a better idea of what we need in c++

pwightman commented 12 years ago

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?

adamwalz commented 12 years ago

Yes they do. So do parser.out and parsetab.py

pwightman commented 12 years ago

Ok, I just added them to a .gitignore and pushed.