On Mon, 06 Oct 2008 00:14:37 -0700, process wrote:
> On Oct 6, 8:13 am, Aidan <[EMAIL PROTECTED]> wrote:
>> process wrote:
>> > I am trying to solve project euler problem 18 with brute force(I will
>> > move on to a better solution after I have done that for problem 67).
>> >http://projecteuler.ne
process wrote:
On Oct 6, 8:13 am, Aidan <[EMAIL PROTECTED]> wrote:
process wrote:
I am trying to solve project euler problem 18 with brute force(I will
move on to a better solution after I have done that for problem 67).
http://projecteuler.net/index.php?section=problems&id=18
However I can't g
On Oct 6, 8:13 am, Aidan <[EMAIL PROTECTED]> wrote:
> process wrote:
> > I am trying to solve project euler problem 18 with brute force(I will
> > move on to a better solution after I have done that for problem 67).
> >http://projecteuler.net/index.php?section=problems&id=18
>
> > However I can't g
process wrote:
I am trying to solve project euler problem 18 with brute force(I will
move on to a better solution after I have done that for problem 67).
http://projecteuler.net/index.php?section=problems&id=18
However I can't get the recursive function right.
I always have to use return right?
I am trying to solve project euler problem 18 with brute force(I will
move on to a better solution after I have done that for problem 67).
http://projecteuler.net/index.php?section=problems&id=18
However I can't get the recursive function right.
I always have to use return right? Unless I am prin
Hey,
Thanks for the further explanations. I'm going to play around more
with the 'recursive grammar' and 'parse-time dynamic grammar element'
stuff so that I understand it a bit better.
I liked the changes you suggested. The alternative grammar definitely
makes the code easier to understand, plu
On Jul 26, 10:40 pm, [EMAIL PROTECTED] wrote:
> Hey,
>
> Thanks Neil and Paul!
>
> After reading Neil's advice I started playing around with the
> setParseAction method, and then I found Paul's script
> 'macroExpander.py' (http://pyparsing.wikispaces.com/space/showimage/
> macroExpander.py).
>
Gr
Hey,
Thanks Neil and Paul!
After reading Neil's advice I started playing around with the
setParseAction method, and then I found Paul's script
'macroExpander.py' (http://pyparsing.wikispaces.com/space/showimage/
macroExpander.py).
With only a few modifications to macroExpander.py (and reversing
On Jul 26, 3:27 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote:
>
> Hopefully I'll have time to help you a bit more later, or Paul
> MaGuire will swoop down in his pyparsing powered super-suit. ;)
>
There's no need to fear...!
Neil was dead on, and your parser is almost exactly right.
Congratulations
On 2007-07-26, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Using pyparser, I'm trying to parse a string like this:
>
>:Start: first SECOND THIRD :SECOND: second1 | second2 :THIRD: third1 |
> FOURTH :FOURTH: fourth1 | fourth2
>
> I want the parser to do the following:
> 1) Get the text for the :
Hi,
Using pyparser, I'm trying to parse a string like this:
:Start: first SECOND THIRD :SECOND: second1 | second2 :THIRD: third1 |
FOURTH :FOURTH: fourth1 | fourth2
I want the parser to do the following:
1) Get the text for the :Start: label e.g ('first SECOND THIRD')
2) Do nothing with the l
Spiro wrote:
> XWindow have all drawing functionality and Windows[] object which holds
> all child windows.
>
> Function Draw looks like this:
> def Draw(self):
> self.Back.blit
> for wnd in self.Windows:
> wnd.Draw(OffsetX, OffsetY)
>
> Now in main module i make objec
Hi all,
i'm trying to make some user interface objects in python.
I have classes XWindow and XMainWindow(XWindow) (XMainWindow inherited
from XWindow)
XWindow have all drawing functionality and Windows[] object which holds
all child windows.
Function Draw looks like this:
def Draw(self):
I am trying to make convert a directory "tree" in a list of list, but cant
find the algoritm =( ,for example a directory tree like :
+root
+doc
ele1
ele2
+doc3
ele3
+doc2
ele4
ele5
should convert into:
root[
doc,
[ele1,ele2,doc3,[ele3]],
doc2,
[ele4],
14 matches
Mail list logo