Re: [m5-dev] Python SLICC

2009-08-04 Thread Beckmann, Brad
] On Behalf Of nathan binkert Sent: Monday, August 03, 2009 9:46 PM To: M5 Developer List Subject: Re: [m5-dev] Python SLICC The initial step is to simply translate the C++ code to python. I plan to change nothing about the AST structure or anything like that. The end result should be files that can

Re: [m5-dev] Python SLICC

2009-08-04 Thread Derek Hower
, August 03, 2009 9:46 PM To: M5 Developer List Subject: Re: [m5-dev] Python SLICC The initial step is to simply translate the C++ code to python.  I plan to change nothing about the AST structure or anything like that. The end result should be files that can be diffed, though will likely need

Re: [m5-dev] Python SLICC

2009-08-04 Thread nathan binkert
I hope you don't mind me asking, but why does the fragility of generated code matter?  One should never modify generated code and only rarely look at it. I'm referring to the generator itself. It's pretty hard to follow what's going on, so if you want to modify the generator itself, you need

Re: [m5-dev] Python SLICC

2009-08-04 Thread Derek Hower
On Tue, Aug 4, 2009 at 10:46 AM, nathan binkertn...@binkert.org wrote: I hope you don't mind me asking, but why does the fragility of generated code matter?  One should never modify generated code and only rarely look at it. I'm referring to the generator itself.  It's pretty hard to follow

Re: [m5-dev] Python SLICC

2009-08-04 Thread nathan binkert
Just an FYI, I'm currently making changes to both the parser and code generator.  I should be able to push those today if you want to hold off on the conversion. Ok, no problem. Let me know if you need any help updating parser.py. Also, for those of you SLICC experts out there, I'm curious

Re: [m5-dev] Python SLICC

2009-08-04 Thread Beckmann, Brad
] On Behalf Of nathan binkert Sent: Tuesday, August 04, 2009 9:20 AM To: M5 Developer List Subject: Re: [m5-dev] Python SLICC Just an FYI, I'm currently making changes to both the parser and code generator.  I should be able to push those today if you want to hold off on the conversion. Ok

[m5-dev] Python SLICC

2009-08-03 Thread nathan binkert
So, maybe I'm crazy, but a whole bunch of things got me convinced to started converting SLICC to python. Before I go way too far, I want to see if any of the Wisc have any objections to this. Here are what I see as the benefits: 1) Use python's powerful formatting function + triple quoted

Re: [m5-dev] Python SLICC

2009-08-03 Thread Beckmann, Brad
, August 03, 2009 8:29 PM To: M5 Developer List Subject: [m5-dev] Python SLICC So, maybe I'm crazy, but a whole bunch of things got me convinced to started converting SLICC to python. Before I go way too far, I want to see if any of the Wisc have any objections to this. Here are what I see

Re: [m5-dev] Python SLICC

2009-08-03 Thread nathan binkert
03, 2009 8:29 PM To: M5 Developer List Subject: [m5-dev] Python SLICC So, maybe I'm crazy, but a whole bunch of things got me convinced to started converting SLICC to python.  Before I go way too far, I want to see if any of the Wisc have any objections to this. Here are what I see