|
Yay someone grokked it!
The only trick is making sure your subparser knows when to terminate its expression. It's easy to do once you get used to it.
It's also a lot less complicated for me to develop than an LL(k) parser generator, so there's that.
I have to believe someone has thought of this before. Or if they haven't, it's only because next to nobody writes parser generators that generate *recursive descent* parsing code.
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.
|
|
|
|
|
I am not sure I understand what a subparser is other then a recognizer for the input string derived from a given non-terminal?
Do you then mean generated - either table driven or recursive descent - parsers for these non-terminals
If that is the case then can you elaborate on the foreseen difficulties in finding the proper place to terminate recognition of a subparse? Is it more that handing over the followset to
the subparser?
Anyway, app 45 years ago we had some compiler stuff (in and for some long forgotten languages) where a syntax directed - hand written - parser called from time to time an LALR based table driven parser to recognize expressions and I do not recall any (serious) problem (but then, that is a long time ago).
Why is it that we do not see you on a compiler forum (comp. compilers moderated by John Levine).
It seems to me that from such a forum you (can) get more feedback than here and you have the
chance to elaborate on you work, and we get a chance to follow what you are actually doing
|
|
|
|
|
A subparser is exactly what you said. The only thing that makes it special is nothing. It's just a parser. But the other parser knows how to call it. That's important, because the other parser delegates to it.
They share the same lexer and symbol table but different parse tables.
And yes, effectively, all a follows does as i'm meaning it here is augment the follows set (in this case for the start production) - this is so the master parser can use the subparser during its own parse. So the follows set addition is so you can stop the subordinate parse when you need to, such as terminating a type declaration on a trailing } so it can appear inside a namespace
As far as why i'm not on usenet i dunno. maybe i should be
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.
|
|
|
|
|
Hey, she's our witch.
We want to keep her.
|
|
|
|
|
It used to be, I had to download a few DLL's, maybe a sys or an ini, inf or a vxd, dump them somewhere, and install like that.
Boom, my nvidia card works.
Now my drivers try to sell me games while I install them.
Please can i subscribe to your service? jerks.
I will not buy things that are forced upon me. I don't game anyway much (except for fallout) so they probably don't care, but whatever.
/annoyed
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.
|
|
|
|
|
Quote: I will not buy things that are forced upon me.
That's a tautology.
Buy => freedom of choice (consumer)
Forced => can't say no (e.g. protection money, taxes--but I repeat myself)
|
|
|
|
|
What I mean is, if you market to a captive audience, and I am part of that audience i will not buy your product.
That includes paying money for an event, and then having to sit through advertisements in order to see the event i paid for, or sitting through ads in a driver install on a card i already bought.
No. Just no.
You can get all semantic with that, but i feel with this explanation, I've made myself clear enough.
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.
|
|
|
|
|
Totally agree. I got pedantic because the word "force" gets misused.
|
|
|
|
|
and yet people wonder why I think the non-aggression principle is a non-starter in practice.
No two people can totally agree on what constitutes an initial act of force or aggression. It's a moral argument.
And with that you need a judge, and then you have a state, and all of the sudden you're a liberal.
*shrug*
and I'm just not smart enough to be minarchist because I haven't figured out a way to keep a state from growing and growing until it subverts the people it's supposed to represent. Jefferson saw it, couldn't stop it. Marx planned for a way to stop it, which failed in spectacular soviet style.
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.
|
|
|
|
|
If it is sponsered by someone else, I expect a discount on the hardware. If the ads are there without the discount nor consent, it'd be stealing my processor-time and electricity for a service I did not want; and worse, if it is done like the ads in a webbrowser, it is an attack-vector for hackers. As such, the driver could be classified as malware, both stealing from you and compromising it.
The easy solution is to update your hostsfile. The better solution is to mail the company. For such cases, I always add a CC to "everyone@company.com", which surprisingly often works
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
They're webbased and in the installer itself, although i would like to send them a nastygram about their bloated driver control app(s)
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.
|
|
|
|
|
If you do send them a complaint, be sure to include some ads and a EULA
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Go for it
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
|
|
|
|
|
I've been installing the bare minimum to get drivers to work and avoiding all the extra crapware since said crapware started insisting I need to log in in order to automatically update to new drivers on my behalf, spam me, etc.
It's just drivers. That's all I need. If I have to do a login, you've lost the plot.
|
|
|
|
|
|
"People come and people go, naturally."
Saddened by this.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
He had TV series many years ago "The Innes Book of records", with some good original music.
|
|
|
|
|
One of the most unexpected things I saw him do was host an educational series about English etymology, which he made as entertaining as it was educational.
I've tried multiple times to find it on tape or disc -- and even pirated, as a last resort -- but no dice.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
|
Hmm. I tend to avoid that site (and the company that owns it) as much as possible.
... But, in this case, I'll make an exception! Cheers!
(Of course, had I been able to remember the title of the damned show, I might have found it a bit easier to find -- search on "Away with Words", and it's everywhere!)
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
"Five fruits and vegetables a day? What a joke!
Personally, after the third watermelon, I'm full."
|
|
|
|
|
|
E's expired and gone to meet 'is maker!
|
|
|
|
|
Good man was Neil, saw him in the 70's at Brooklands Tech in Weybridge with Principal Edwards taking the piss out of rock guitarists of the era and outplaying all of them
"We can't stop here - this is bat country" - Hunter S Thompson - RIP
|
|
|
|
|
... and Keith is wearing a hoodie that has emblazoned on the back in large, friendly letters:
Rope. Tree.
MP
(Some assembly required)
Yep. Spot on!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|