Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Ticket #57 (closed defect: wontfix)

Opened 13 years ago

Last modified 11 years ago

Enki Grammar Problems

Reported by: pragma Assigned to: pragma
Priority: major Milestone:
Component: Enki Version:
Keywords: Cc:

Description

The following grammar fails to compile:

.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

Reference thread: http://www.dsource.org/forums/viewtopic.php?p=11774

Change History

05/14/08 21:05:40 changed by pragma

  • status changed from new to closed.
  • resolution set to wontfix.

Superceded by Enki2. No need to fix.