View previous topic :: View next topic |
Author |
Message |
davidl
Joined: 17 Aug 2006 Posts: 27
|
Posted: Wed Sep 20, 2006 10:44 pm Post subject: enki slash match question |
|
|
what would Foobar ::= {"foo"} /!"bar" "barred"; match?
look into the code generated it would only match
barfoobarfoobar.....foobarred |
|
Back to top |
|
|
pragma
Joined: 28 May 2004 Posts: 607 Location: Washington, DC
|
Posted: Thu Sep 21, 2006 11:37 am Post subject: Re: enki slash match question |
|
|
davidl wrote: | what would Foobar ::= {"foo"} /!"bar" "barred"; match?
look into the code generated it would only match
barfoobarfoobar.....foobarred |
You're right. The codegen isn't handling this grammar correctly.
My apologies if this is holding up your project. I'll see what I can do to fix this. _________________ -- !Eric.t.Anderton at gmail |
|
Back to top |
|
|
pragma
Joined: 28 May 2004 Posts: 607 Location: Washington, DC
|
Posted: Thu Sep 21, 2006 12:00 pm Post subject: |
|
|
Well that didn't take long. I'll have a patch comitted relatively soon.
In the meantime, if you're up to rebuilding Enki from source, try patching Expression.d like so:
Code: |
// enki/Expression.d
// line 594
render(expr,gotoLoop,gotoLoopEnd);
|
FYI this was originally doing this:
Code: |
render(expr,gotoLoop,exprFail);
|
Which isn't correct since a zero or more expression can't fail, so it should never trigger the containing expression to fail. _________________ -- !Eric.t.Anderton at gmail |
|
Back to top |
|
|
davidl
Joined: 17 Aug 2006 Posts: 27
|
Posted: Thu Sep 21, 2006 9:45 pm Post subject: |
|
|
nope, i don't have any project on hand right now.
i just trying to know more about enki
I told u i would write some docs for enki, so i need some research on it. I found this problem when i wasn't sure about my understanding of ur articles about that grammar.
I would take a look when i have time~ |
|
Back to top |
|
|
|