|
It's parsing but I need to put in error recovery and do more debugging. Then I can refactor it and add the actual code generation. The whole thing should take me no more than a week (*knock on wood*)
Real programmers use butterflies
|
|
|
|
|
No hurry!
Sounds interesting!
Next step is write a book about it!
|
|
|
|
|
Ha! Anyway I'm glad you're feeling better.
Real programmers use butterflies
|
|
|
|
|
<Looks for pitchfork>
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
|
"The trophy would not fit in the suitcase because it was too big" would render one parse tree.
However, semantic analysis - which is not what my parser does would be further processing on that tree. Because of the final "it", semantic analysis would yield two trees, one where "it" referred to the trophy, and one where "it" referred to the suitcase - it if worked like my parser does.
Real programmers use butterflies
|
|
|
|
|
well.. I doubt you can really parse human language like that...
a natural language parser should cater for spelling mistake, grammar mistake, forgotten words, puns....
|
|
|
|
|
Parsing is one thing. Semantic analysis is a whole different story.
That said, GLR was actually invented to process natural language.
So yes, given a proper grammar (which would include a vocabulary) it would parse it, no matter how ambiguous.
It simply returns every possible tree from that parse.
Real programmers use butterflies
|
|
|
|
|
okay then!
just a little step on the way!
|
|
|
|
|
I see: [^]
«One day it will have to be officially admitted that what we have christened reality is an even greater illusion than the world of dreams.» Salvador Dali
|
|
|
|
|
Country watering hole surrounded by historical object (8)
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
Barbados?
I can only justify some of the solution though, so not confident...
|
|
|
|
|
I am curious on your some of the justification.
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
Barbados = Country
Bar (as in pub) = watering hole
Now this next bit was reeeaaaallly stretching it:
Dos = historical object (as in MS DOS)
Hence the lack of confidence!
|
|
|
|
|
Wow nice, I liked the MS dos analogy.
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
Republic
One morning I shot an elephant in my pajamas. How he got in my pajamas, I don't know.
|
|
|
|
|
Got me while I was typing it!
Well done, I suspect you are up tomorrow.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Yeah, that makes a lot more sense than my lousy attempt
|
|
|
|
|
We have a winner.
So you are up tomorrow.
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
Country
watering hole PUB
surrounded by
historical object RE LIC
REPUBLIC
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
You get the honorary podium for writing the solution. This is best as you get to solve again tomorrow.
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
@User-36644
You won on Friday, remember?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Oh man, Forgot.. Comes in a min...
should be easy as I am thinking it while I type.
cheers,
Super
------------------------------------------
Too much of good is bad,mix some evil in it
|
|
|
|
|
|
Have they started filming on Live and Let Stay at Home, unless they come and Break your Door down to Cart you off to a Rapidly-built Hospital, yet?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|