Click here to Skip to main content
14,265,558 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: Mini CCCs 89 Pin
Peter_in_278011-May-19 18:33
professionalPeter_in_278011-May-19 18:33 
GeneralRe: Mini CCCs 89 - Done Pin
Tim Deveaux11-May-19 18:52
memberTim Deveaux11-May-19 18:52 
GeneralReally really excited. I have an algorithm that's got me hot Pin
honey the codewitch11-May-19 9:49
memberhoney the codewitch11-May-19 9:49 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
0x01AA11-May-19 9:59
professional0x01AA11-May-19 9:59 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
honey the codewitch11-May-19 10:08
memberhoney the codewitch11-May-19 10:08 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
0x01AA11-May-19 10:13
professional0x01AA11-May-19 10:13 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
honey the codewitch11-May-19 10:24
memberhoney the codewitch11-May-19 10:24 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
honey the codewitch11-May-19 10:27
memberhoney the codewitch11-May-19 10:27 
sorry, I'll explain. Coco/R can't use this grammar. It's too "ambiguous" (it's not ambiguous though, it's just not LL(1) deterministic)

/*
	ebnf.ebnf - A grammar for a simple to use and concise attributed EBNF variant 
	by codewitch honey crisis
*/
grammar<start>=productions;
productions= productions production | production;
production=identifier ["<" attributes ">"] "=" expressions ";";
expressions= expressions "|" expression | expression;
symbol = literal | regex | identifier | 
	"(" expressions ")" | 
	"[" expressions "]" |
	"{" expressions "}";
expression = symbols;
symbols= symbol symbols |;
attributes= attributes "," attribute | attribute;
attribute= identifier ["=" attrval];
attrval= literal | integer | identifier;

literal = '"([^"\\]|\\.)*"';
regex = '\'([^\'\\]|\\.)*\'';
identifier= '[A-Z_a-z][\-0-9A-Z_a-z]*';
integer='\-?[0-9]+';
whitespace<hidden>= '[ \v\f\t\r\n]';
lineComment<hidden>= '//[^\n]*';
blockComment<hidden,blockEnd="*/">="/*";


And even if it did left factor, which it doesn't seem to, it doesn't have a mechanism for collapsing factored non-terminals in the resulting parse tree
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
0x01AA11-May-19 10:46
professional0x01AA11-May-19 10:46 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
honey the codewitch11-May-19 10:48
memberhoney the codewitch11-May-19 10:48 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
0x01AA11-May-19 10:59
professional0x01AA11-May-19 10:59 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
honey the codewitch11-May-19 11:11
memberhoney the codewitch11-May-19 11:11 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
Ravi Bhavnani11-May-19 12:20
professionalRavi Bhavnani11-May-19 12:20 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
honey the codewitch11-May-19 12:29
memberhoney the codewitch11-May-19 12:29 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
Ravi Bhavnani11-May-19 13:04
professionalRavi Bhavnani11-May-19 13:04 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
honey the codewitch11-May-19 14:34
memberhoney the codewitch11-May-19 14:34 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
Super Lloyd11-May-19 13:38
memberSuper Lloyd11-May-19 13:38 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
Kornfeld Eliyahu Peter11-May-19 20:48
mveKornfeld Eliyahu Peter11-May-19 20:48 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
honey the codewitch11-May-19 21:38
memberhoney the codewitch11-May-19 21:38 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
Kornfeld Eliyahu Peter11-May-19 21:46
mveKornfeld Eliyahu Peter11-May-19 21:46 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
honey the codewitch11-May-19 22:33
memberhoney the codewitch11-May-19 22:33 
GeneralGood morning ;) Pin
0x01AA11-May-19 8:02
professional0x01AA11-May-19 8:02 
GeneralRe: Good morning ;) Pin
Mike Hankey11-May-19 8:30
professionalMike Hankey11-May-19 8:30 
GeneralRe: Good morning ;) Pin
0x01AA11-May-19 9:09
professional0x01AA11-May-19 9:09 
GeneralRe: Good morning ;) Pin
0x01AA30-May-19 12:17
professional0x01AA30-May-19 12:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.