|
hahaha
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.
|
|
|
|
|
honey the monster, codewitch wrote:
grammar-> productions
productions-> production productions
productions-> production
production-> Wow!
That's almost Java!
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
it's actually not a programming language at all, but a grammar, and it's presented in a really common format for grammars, that's sort of pseudo-bnf.
You can feed it to parser generators LL(1) Parser Generator. First, Follow, & Predict Sets. Table[^]
To make parsers with it.
Hacking off isn't the only website that supports this format. Other tools and sites will too, or will with slight variations.
I wish there was a name for the format. It's very similar to a .y file format (YACC)
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.
|
|
|
|
|
honey the monster, codewitch wrote: is this too much BS? Not at all, but is the Lounge the right place for it ?
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot
|
|
|
|
|
honey the monster, codewitch wrote: My question is, is this too much BS?
The Linux geeks will love it!
|
|
|
|
|
that was my thinking. frankly, i like the flexibility. Command line apps are the easiest to integrate with other tools.
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.
|
|
|
|
|
Is bunny an abundance of bread rolls?
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
That's a rabbit of humor, indeed! Glad to hare about it.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
coz bread like rabbits?
Message Signature
(Click to edit ->)
|
|
|
|
|
|
|
I've tested pck and it works
currently exports to yacc and lex as well as being a parser generator in its own right.
I intend to add more importers and exporters to the thing.
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.
|
|
|
|
|
My question is somewhat religious and definitely mundane compared to the guy who wants to write an OS in .net, but I live in the world of maintenance code. My bugaboo is consistency. Take a project of veteran developers (they each have their own style) add a few whiz kids (who have their own styles), add code standards that are pretty much ignored, and shake. The results can be mind-boggling. I've seen coding conventions deal with many issues, but I don't think I've seen one dealing with filenames and their construction. In the project I am re-factoring now, the file system is fixed. The primary folders in the root are fixed, so we have something like:
\root
application
backup
archives
I have a lot of code that builds file specifications including folder names. A great deal of concatenation, removing slashes, adding slashes and what not, it just begs for errors. So instead of something like this:
#define ROOT_FOLDER L"\\root"
#define APP_FOLDER L"application"
#define BACKUP_FOLDER L"backup"
#define ARCHIVE_FOLDER L"archives"
and then constructing complete file specs, I re-factored to something like this:
#define ROOT_FOLDER L"\\root"
#define APP_FOLDER L"\\root\\application"
#define BACKUP_FOLDER L"\\root\\backup"
#define ARCHIVE_FOLDER L"\\root\\archives"
and deleted as much string formatting code that I could. Then I got to thinking, maybe there should be a trailing slash as well - which led me here to ask how others like to do this...
Thoughts?
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
charlieg wrote: I live in the world of maintenance code. We will have you in our prayers.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Nah, it comes with its own set of challenges. Besides, I can always blame the original developers.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Path.Combine() automatically handles doubled up or missing backslashes so I don't worry about it.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
that looks like C, not C#
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.
|
|
|
|
|
My thoughts exactly
I'm not sure if that's available in C, but it shouldn't be hard to write
|
|
|
|
|
I'm so used to Path.Combine, that if I had to go to a system without it, I'd probably have to roll my own - it's just too useful!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
It's actually C++ code, but what amazes me is the lack of writing something like PathCombine. Yes, I have a new project.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
This may help: Reference Source: Path.Combine[^]
And when you get it working, stick it up as an article / tip for others to enjoy!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
As long as I've been on this site, you have a point.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
i prefer trailing slashes at the end of directory names. That way you can distinguish them programmatically and visually from filenames
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.
|
|
|
|
|
BURN THE W... Oh wait, that actually makes a lot of sense
|
|
|
|