|
Last night I had a dream. Don't remember much but from it but I know there was a Dutch class somewhere close as I could hear one person speaking Dutch alphabets and students reciting it. When I was half awake half asleep, I could still hear that sound of classroom. Which I found weird. I concentrated a little and noticed that it was our son's breathing sound (who has cold and blocked nose so is breathing heavily while asleep). My brain was reading these sounds and somehow changing it to classroom sound. I then wondered if I could hear that class room sound again and I could!
It was spooky and interesting.
And no, there was no alcohol (or any other stuff) involved.
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|
|
This is not dutch. This was parseltongue and he was actually summoning a deamon.
|
|
|
|
|
But I was already next to him.
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|
|
don't be afraid. your son is being guided and kept safe through this trial.
after many otherwise intelligent sounding suggestions that achieved nothing the nice folks at Technet said the only solution was to low level format my hard disk then reinstall my signature. Sadly, this still didn't fix the issue!
|
|
|
|
|
Slightly related:
My ex-wife's father was Dutch, so she could speak the Dutch language. In her late teens, as a student, she had summer jobs at the tourist information office. When a group of tourists arrived, she could understand their chatting, but it was not in any language she knew. Or knew that she knew...
They talked to her in English, not revealing their nationality. Later, she concluded that they must have been from South Africa, speaking Afrikaans, which is halfway between a strange Dutch dialect and a language of its own.
|
|
|
|
|
It is interesting how the mind works. My grandfather used to call it midnight engineering...go to sleep thinking about a problem and wake up with a solution.
The other night it happened to me. I saw a 3d int array floating in space. Each point had either a 0 or a sub-account id. I implemented it yesterday as a lookup array. (worked the first time too!) Maybe I should get more sleep!
"Go forth into the source" - Neal Morse
|
|
|
|
|
I was asleep and dreaming once, where in my dream I was listening to another person who told a joke. I had never heard that joke before and the joke was funny. Somehow in my dream state, I realized that I was dreaming and realized the profoundness of the situation. I woke up and have pondered this many times since.
I'm retired. There's a nap for that...
- Harvey
|
|
|
|
|
Well, I suppose that's progress. I brought my "Rolex" lexer project back from the brink of disaster a few times yesterday and I've finally got it rendering lexers from my preferred input format.
So this:
integerLiteral= '(0x[0-9A-Fa-f]{1,16}|([0-9]+))([Uu][Ll]?|[Ll][Uu]?)?'
floatLiteral= '(([0-9]+)(\.[0-9]+)?([Ee][\+\-]?[0-9]+)?[DdMmFf]?)|((\.[0-9]+)([Ee][\+\-]?[0-9]+)?[DdMmFf]?)'
whitespace<hidden>='[ \t\r\n\v\f]+'
lineComment<hidden>='\/\/[^\n]*'
blockComment<hidden,blockEnd="*/">="/*"
identifier='[_[:IsLetter:]][_[:IsLetterOrDigit:]]*
instead of this nonsense:
%%
[_[:IsLetter:]][_[:IsLetterOrDigit:]]* { return 0; }
\"([^\"]|[\\.])*\" { return 1; }
"+" {return 2;}
"-" {return 3;}
[0-9]+ {return 4;}
[ \t\r\n\v\f]+ { }
. { return -1; }
And now the output is in a nice, single file, with the primary output implementing IEnumerable<Token>/IEnumerator<Token>
I still have to update the command line argument parsing and a bit of the grammar spec but at least I'll have a deliverable for Codeproject very early this next month
Accomplishing this was so much harder than it looks. I'm using some really grotty code someone else wrote and hasn't maintained for 6 years and I had to retool the front end and back end of it both.
I still barely understand it, but apparently well enough to get it to tease out a lexer that looks how I want it.
The hard part was adjusting the input file format. The original parser is heavily embedded with the app's logic. I had to reverse engineer it, and it's not a hand written parser. It's not even top down so it's impossible to follow in a debugger. It's a table driven LALR(1) parser with syntax directed actions. Fun. =(
I finally went back to the original .y file to get at the parser logic. Of course to change it I had to find an old copy of gppg.exe on the web somewhere (behind a "dangerous" link so I had to wget it - my browser refused to download) - that's so I could get GPLEX to rebuild its parser code.
Anyway, I can see daylight now. I just have to change a few more things with the input spec and then change up the command line argument processing some more.
I'm probably the only person that will ever use this.
Real programmers use butterflies
|
|
|
|
|
Wrong type
Consider posting it as a tip or something instead of a lounge post?
|
|
|
|
|
sorry. i guess the lounge is my rubber duck this morning. i'll back away.
Real programmers use butterflies
|
|
|
|
|
honey the codewitch wrote: sorry. i guess the lounge is my rubber duck this morning. i'll back away.
Oh Please no. I really admire your work and your persistence. In fact I envy you sometime
|
|
|
|
|
Thanks. I just have a lot of time on my hands.
Anyway, I got it working. Making the devstudio add in now and then i'll have an article
Real programmers use butterflies
|
|
|
|
|
For extra credit, rewrite the code in CNoEvil - a library to completely destroy the C language
Seriously, well done. It's unlikely that I'd ever use your program (my interests are more in the direction of scientific computing), but I can appreciate the magnitude of the accomplishment.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
I see that you now allow leading zeros (IIRC, you used to have [1-9]([0-9])+ ) but you still don't allow leading + or -.
|
|
|
|
|
because it comes from a different spec. the first one is an excerpt from C#'s spec
Real programmers use butterflies
|
|
|
|
|
It’s been drawn out and tedious at times, but today, 3 years later, we will finally deliver on the 17 million f*** offs to the EU.
|
|
|
|
|
Will tomorrow still be called Saturday, or nah?
I just want to be sure that when I tell the boss "F*** off it's Saturday!" that I don't make myself look stupid.
|
|
|
|
|
Parsing ambiguity: is "F*** off" an instruction, or a name?
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Did you see a comma, mother******?
|
|
|
|
|
Daniel Pfeffer wrote: Parsing ambiguity: is "F*** off" an instruction, or a name? ask the witch above :P
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Getting a bit political in the Lounge mate. Best avoided.
|
|
|
|
|
Mind you he has been Pompey3 I think for a long time, didn't try to get barred every day at one time?
|
|
|
|
|
|
Pete O'Hanlon wrote: Getting a bit political
My name's Ben Elton, thank-you, GOOD NIGHT!
veni bibi saltavi
|
|
|
|
|
So Mr Vilimos, still with us in sprit!
|
|
|
|