Author |
Topic: precedence climbing parser - evaluator (Read 640 times) |
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: precedence climbing parser - evaluator
« Reply #5 on: Jul 17th, 2017, 08:37am » |
|
on Jul 16th, 2017, 10:18pm, aurel wrote:I see that in evaluator we cannot use parens () is it problematic to add () in program ? |
|
I would not expect it to be "problematic" but I've not tried it myself. You can treat a parenthesised expression as a 'number' so I would expect that the correct place to handle it is where the program has the VAL function.
Richard.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: precedence climbing parser - evaluator
« Reply #6 on: Jul 17th, 2017, 4:15pm » |
|
on Jul 17th, 2017, 08:37am, Richard Russell wrote:| I would not expect it to be "problematic" but I've not tried it myself. |
|
For a version which supports parentheses see the Just BASIC forum.
Richard.
|
|
Logged
|
|
|
|
aurel
New Member
member is offline


Posts: 7
|
 |
Re: precedence climbing parser - evaluator
« Reply #7 on: Jul 18th, 2017, 10:09pm » |
|
Hi Richard It looks that someone remove linked topic well nothing new those people don't like you because you create better PL than Carl. not worry i will try...
|
|
Logged
|
http://basicpro.mipropia.com/smf/index.php
|
|
|
RNBW
Full Member
member is offline


Gender: 
Posts: 106
|
 |
Re: precedence climbing parser - evaluator
« Reply #8 on: Jul 20th, 2017, 08:23am » |
|
REPLY #6 Richard Could you kindly reproduce the code to which your link was directed in JB because the whole topic has been deleted on JB and my requests on the JB forum have also been deleted. I can't remember if you produced the code or just referred to it (I only had the opportunity to glance at it when it was posted so I wasn't sure). If it's not your code then I understand that you won't be able to produce it.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: precedence climbing parser - evaluator
« Reply #9 on: Jul 20th, 2017, 10:48am » |
|
on Jul 20th, 2017, 08:23am, RNBW wrote:| Could you kindly reproduce the code to which your link was directed in JB because the whole topic has been deleted |
|
I don't think I kept a copy of the 'parentheses' version; I posted it to the JB forum thinking it would be a secure repository for it. I do know that it took me longer than I expected to get that version working so I'd be pretty upset if it was now 'lost'.
Why was the topic deleted? I realise that Just BASIC doesn't have EVAL, but surely it's legitimate to work around that by writing an equivalent user-defined function. Such a substitute is never going to be as fast as, and probably not as functional as, the native LB/LBB function (and indeed even LBB's version isn't fully compatible with LB4) so I can't see how it can be argued that it's a 'forbidden' means of working around JB's limitations.
As for Aurel's comment that "those people don't like you" I don't think that can be an issue on this occasion because it would surely only have been my posts that were deleted, not the entire thread (which wasn't started by me).
Richard.
|
|
|
|
RNBW
Full Member
member is offline


Gender: 
Posts: 106
|
 |
Re: precedence climbing parser - evaluator
« Reply #10 on: Jul 20th, 2017, 1:07pm » |
|
Richard The strange thing is that it's not only the original total link that has been deleted, my subsequent posts have also been deleted (and very quickly). Someone doesn't want to see any reference to it for some reason. I wonder if it's because they are talking of a Just Basic 2 and that this new version still doesn't include EVAL. That would be strange but no stranger than what has happened. In my posts, I requested a reason for the deletions and I didn't even receive the courtesy of a response, just deletion of my posts. I must say I find LB and JB's aversion to LBB very strange. All the other "BASIC" forums seem to talk freely about other versions. Some even include sections where one can freely discuss other programming languages.
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
Re: precedence climbing parser - evaluator
« Reply #11 on: Jul 20th, 2017, 2:30pm » |
|
on Jul 20th, 2017, 1:07pm, RNBW wrote:| I wonder if it's because they are talking of a Just Basic 2 and that this new version still doesn't include EVAL. |
|
It seems ridiculous to me if users are not allowed to devise workarounds for limitations of the language. I've seen some cunning uses of the JB RUN statement which can go some way to compensate for the absence of CALLDLL, yet it's never been suggested that these are 'illegal'. 'Clever' programming should be encouraged rather than penalised!
Quote:| In my posts, I requested a reason for the deletions and I didn't even receive the courtesy of a response, just deletion of my posts. |
|
That is disgraceful. You could try appealing to one of the other admins: Rod Bird (who posts here) is listed as an admin of the Just BASIC forum so he might be able to shed some light on what is going on. There has been some pretty inexcusable behaviour at the Liberty BASIC Community Forum in the past but the Just BASIC forum has (at least until now) seemed to be run quite responsibly.
Quote:| I must say I find LB and JB's aversion to LBB very strange. All the other "BASIC" forums seem to talk freely about other versions. Some even include sections where one can freely discuss other programming languages. |
|
The rules of the Just BASIC forum specifically allow discussion of other languages so long as it is not "in depth" and is not "promoting" them. They state: "Other languages may be mentioned when discussing code to be converted or tools that can be adapted" (Rule 2, just in case they are retrospectively changed, as happened at the LB forum).
But that's not an issue in this case. The substitute EVAL function had no specific connection with LBB or any other BASIC dialect, it was perfectly ordinary Just BASIC code. There were a couple of references to LBB in the thread because, coincidentally, expression evaluation was being discussed here but that should have been covered under the "discussing code to be converted or tools that can be adapted" clause - and anyway those individual posts could have been removed if anybody felt that strongly.
Richard.
|
|
|
|
aurel
New Member
member is offline


Posts: 7
|
 |
Re: precedence climbing parser - evaluator
« Reply #12 on: Jul 20th, 2017, 9:25pm » |
|
Hi guys interesting discussion but what a worth of all this. honestly i think that all those people arounded around CG are servant or are very limited mind probably they think that whole basic world start with JB/LB but that times are gone.
|
|
Logged
|
http://basicpro.mipropia.com/smf/index.php
|
|
|
|