FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

enki slash match question

 
Post new topic   Reply to topic     Forum Index -> DDL - D Dynamic Libraries
View previous topic :: View next topic  
Author Message
davidl



Joined: 17 Aug 2006
Posts: 27

PostPosted: Wed Sep 20, 2006 10:44 pm    Post subject: enki slash match question Reply with quote

what would Foobar ::= {"foo"} /!"bar" "barred"; match?
look into the code generated it would only match
barfoobarfoobar.....foobarred
Back to top
View user's profile Send private message
pragma



Joined: 28 May 2004
Posts: 607
Location: Washington, DC

PostPosted: Thu Sep 21, 2006 11:37 am    Post subject: Re: enki slash match question Reply with quote

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
View user's profile Send private message Yahoo Messenger
pragma



Joined: 28 May 2004
Posts: 607
Location: Washington, DC

PostPosted: Thu Sep 21, 2006 12:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
davidl



Joined: 17 Aug 2006
Posts: 27

PostPosted: Thu Sep 21, 2006 9:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DDL - D Dynamic Libraries All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group