Click here to Skip to main content
14,543,385 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: Sound of the Week Pin
Sander Rossel31-Jan-20 3:37
professionalSander Rossel31-Jan-20 3:37 
GeneralRe: Sound of the Week Pin
Greg Utas31-Jan-20 3:50
professionalGreg Utas31-Jan-20 3:50 
GeneralRe: Sound of the Week Pin
Sander Rossel31-Jan-20 4:18
professionalSander Rossel31-Jan-20 4:18 
GeneralRe: Sound of the Week Pin
David O'Neil2-Feb-20 19:53
professionalDavid O'Neil2-Feb-20 19:53 
GeneralRe: Sound of the Week Pin
Sander Rossel2-Feb-20 23:58
professionalSander Rossel2-Feb-20 23:58 
GeneralRe: Sound of the Week Pin
David O'Neil3-Feb-20 7:47
professionalDavid O'Neil3-Feb-20 7:47 
GeneralRe: Sound of the Week Pin
Sander Rossel3-Feb-20 8:24
professionalSander Rossel3-Feb-20 8:24 
GeneralI don't know that I'll have a major deliverable for CP this month Pin
honey the codewitch30-Jan-20 11:29
mvahoney the codewitch30-Jan-20 11:29 
I was hoping to push out my unicode version of Rolex, but problem after problem and 3 implementations later I'm still in the weeds, but at least it's spitting *something* back at me finally. That's not much of a milestone, but the way things have been going i'll take it.

I had to hijack the parse process and gut it, using bits and pieces of what was left over in an awful hack I'll lose sleep over.

I barely know what this does, and I just wrote it. Unfortunately there's no intelligible way to do this short of somehow entirely rewriting the Gplex parser internals which I'm not here for.

aast.visibility = "internal";
useUnicode = true;
int cardinality = (!useUnicode ? asciiCardinality : unicodeCardinality);
if (targetSymCardinality == notSet || targetSymCardinality == cardinality)
	targetSymCardinality = cardinality;

if (useUnicode)
{
	charClasses = true;
	if (!compressMapExplicit)
		compressMap = true;
}
//parser.Parse();
var lc = LexContext.Create(input);
var rules = _ParseRules(aast, sbuf, lc);
_FillRuleIds(rules);
_FixRules(rules);
// add an error rule
var str = ".return -1;";
var buf = new StringBuffer(str);
LexSpan ls = new LexSpan(1, 0, 1, 0, 0, 1, buf);
LexSpan las = new LexSpan(1, 1, 1, str.Length, 1, str.Length, buf);
RuleDesc desc = new RuleDesc(ls, las, new List<StartState>(), false);
desc.useCount = 1;
aast.ruleList.Add(desc);
desc.ParseRE(aast);
aast.FixupBarActions();


Aaaand now for some reason certain regexs aren't matching. I'm done. This is just messed up.

I'm buying a book and finishing my own code this is ridiculous.
Real programmers use butterflies


modified 30-Jan-20 19:51pm.

GeneralRe: I don't know that I'll have a major deliverable for CP this month Pin
Sander Rossel30-Jan-20 21:15
professionalSander Rossel30-Jan-20 21:15 
GeneralRe: I don't know that I'll have a major deliverable for CP this month Pin
OriginalGriff30-Jan-20 21:30
mveOriginalGriff30-Jan-20 21:30 
GeneralRe: I don't know that I'll have a major deliverable for CP this month Pin
musefan30-Jan-20 22:28
Membermusefan30-Jan-20 22:28 
GeneralRe: I don't know that I'll have a major deliverable for CP this month Pin
honey the codewitch30-Jan-20 23:05
mvahoney the codewitch30-Jan-20 23:05 
GeneralRe: I don't know that I'll have a major deliverable for CP this month Pin
musefan30-Jan-20 23:23
Membermusefan30-Jan-20 23:23 
GeneralRe: I don't know that I'll have a major deliverable for CP this month Pin
honey the codewitch30-Jan-20 23:29
mvahoney the codewitch30-Jan-20 23:29 
GeneralThis will never work! Pin
Cp-Coder30-Jan-20 11:14
MemberCp-Coder30-Jan-20 11:14 
GeneralRe: This will never work! Pin
OriginalGriff30-Jan-20 11:21
mveOriginalGriff30-Jan-20 11:21 
GeneralRe: This will never work! Pin
Cp-Coder30-Jan-20 11:24
MemberCp-Coder30-Jan-20 11:24 
GeneralRe: This will never work! Pin
honey the codewitch30-Jan-20 11:32
mvahoney the codewitch30-Jan-20 11:32 
GeneralRe: This will never work! Pin
musefan30-Jan-20 23:03
Membermusefan30-Jan-20 23:03 
GeneralRe: This will never work! Pin
Daniel Pfeffer30-Jan-20 23:48
professionalDaniel Pfeffer30-Jan-20 23:48 
GeneralRe: This will never work! Pin
Cp-Coder31-Jan-20 1:05
MemberCp-Coder31-Jan-20 1:05 
GeneralRe: This will never work! Pin
honey the codewitch30-Jan-20 11:25
mvahoney the codewitch30-Jan-20 11:25 
JokeRe: This will never work! Pin
Cp-Coder30-Jan-20 11:31
MemberCp-Coder30-Jan-20 11:31 
GeneralRe: This will never work! Pin
dandy7231-Jan-20 4:02
Memberdandy7231-Jan-20 4:02 
GeneralRe: This will never work! Pin
DerekT-P30-Jan-20 12:23
professionalDerekT-P30-Jan-20 12:23 

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.