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

enki can't generate correct uint startX for this grammar

 
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: Mon Nov 20, 2006 4:34 am    Post subject: enki can't generate correct uint startX for this grammar Reply with quote

.import("enki.BaseParser");
.import("std.conv");
.import("calc");
.define("String","digit","true","Digit");

AddExpression = float add(num1,num2,opr)
::= (nubmer:num1|MulExpression:num1|AddExpression:num1
) [
( "+":opr |
"-":opr
) MulExpression:num2
];
MulExpression = float mul(num1,num2,opr)
::= (number:num1|MulExpression:num1) [
( "*":opr |
"/":opr
) number:num2
];
number = float toFloat(num1)
::= {digit}:num1;

miss identifier start15
Back to top
View user's profile Send private message
davidl



Joined: 17 Aug 2006
Posts: 27

PostPosted: Mon Nov 20, 2006 4:35 am    Post subject: Reply with quote

and till now i haven't figured out an elegant way of implementing an evaluator....
Back to top
View user's profile Send private message
pragma



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

PostPosted: Mon Nov 20, 2006 10:55 am    Post subject: Reply with quote

davidl: sorry this didn't work. I'm going to look into this as soon as time permits. The codebase in SVN is in need of a touch-up, as there are already a few fixes pending.

I have added a ticket for this issue:
http://www.dsource.org/projects/ddl/ticket/57
_________________
-- !Eric.t.Anderton at gmail
Back to top
View user's profile Send private message Yahoo Messenger
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