Click here to Skip to main content
15,890,043 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
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
Tim 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
mvahoney the codewitch11-May-19 9:49 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
User 1106097911-May-19 9:59
User 1106097911-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
mvahoney the codewitch11-May-19 10:08 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
User 1106097911-May-19 10:13
User 1106097911-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
mvahoney 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
mvahoney 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
User 1106097911-May-19 10:46
User 1106097911-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
mvahoney the codewitch11-May-19 10:48 
GeneralRe: Really really excited. I have an algorithm that's got me hot Pin
User 1106097911-May-19 10:59
User 1106097911-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
mvahoney 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
mvahoney 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
mvahoney 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
Super 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
professionalKornfeld 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
mvahoney 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
professionalKornfeld 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
mvahoney the codewitch11-May-19 22:33 
GeneralGood morning ;) Pin
User 1106097911-May-19 8:02
User 1106097911-May-19 8:02 
GeneralRe: Good morning ;) Pin
Mike Hankey11-May-19 8:30
mveMike Hankey11-May-19 8:30 
GeneralRe: Good morning ;) Pin
User 1106097911-May-19 9:09
User 1106097911-May-19 9:09 
GeneralRe: Good morning ;) Pin
User 1106097930-May-19 12:17
User 1106097930-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.