Pbasic 2.5
Archiver
Posts: 46,084
Jon or other guru who might know:
Probably a little late to be asking/requesting, but...
One way this new editor might be implemented is to simply generate
an intermediate version of pre-2.5 source code from the 2.5 source
code, then feed that intermediate source code to the tokenizer. To
use the new IF-ELSE-ENDIF construct as an example:
IF x = y THEN
z = x
ELSE
z = k
ENDIF
This 2.5 version could be translated to pre-2.5 as:
IF x = y THEN zEqx
z = k
GOTO zSet
zEqx:
z = x
zSet:
Or, it could be translated as:
z = x
IF x = y THEN zSet
z = k
zSet:
If in fact an intermediate/temporary set of source code is
generated, the capability to examine that code for optimization or
other comparison purposes could be most helpful. Taking the example
above, it may be that a programmer may choose to use pre-2.5
constructs to optimize code space depending on how the 2.5 version
is handled. The concept is akin to the option to expand macros or
not--allows you to see the underlying mechanism.
Any chance this is or could become part of the PBASIC 2.5 package?
Also, since I'm asking too late, could I also ask that the new
editor has the ability to comment out blocks of code rather than one
line at a time? Sort of like the /* ... */ thingy in C++ or the
common conditional assembly directive.
If you have any further need for "requirements creep", just ask.
As an aside, anyone with sufficient desire and skill could also
program their Stamps in their high level language of choice (or a
subset thereof) through this same intermediate translation approach.
Anybody up for Pascal, Java, FORTRAN...COBOL maybe?
Steve++
Probably a little late to be asking/requesting, but...
One way this new editor might be implemented is to simply generate
an intermediate version of pre-2.5 source code from the 2.5 source
code, then feed that intermediate source code to the tokenizer. To
use the new IF-ELSE-ENDIF construct as an example:
IF x = y THEN
z = x
ELSE
z = k
ENDIF
This 2.5 version could be translated to pre-2.5 as:
IF x = y THEN zEqx
z = k
GOTO zSet
zEqx:
z = x
zSet:
Or, it could be translated as:
z = x
IF x = y THEN zSet
z = k
zSet:
If in fact an intermediate/temporary set of source code is
generated, the capability to examine that code for optimization or
other comparison purposes could be most helpful. Taking the example
above, it may be that a programmer may choose to use pre-2.5
constructs to optimize code space depending on how the 2.5 version
is handled. The concept is akin to the option to expand macros or
not--allows you to see the underlying mechanism.
Any chance this is or could become part of the PBASIC 2.5 package?
Also, since I'm asking too late, could I also ask that the new
editor has the ability to comment out blocks of code rather than one
line at a time? Sort of like the /* ... */ thingy in C++ or the
common conditional assembly directive.
If you have any further need for "requirements creep", just ask.
As an aside, anyone with sufficient desire and skill could also
program their Stamps in their high level language of choice (or a
subset thereof) through this same intermediate translation approach.
Anybody up for Pascal, Java, FORTRAN...COBOL maybe?
Steve++
Comments
Actually, I did that for a project of the month a while back (May 2001)
-- RatBas I think I called it. We used to use RatFor to do the same
thing for Fortran, hence the name. RatBas has block If/then and few
other things.
I think it didn't survive our last server hop, and it hardly makes sense
to ressurect it now, but if anyone is actually interested, drop me a
note and I'll put it up somewhere. There was a Java version and a very
poor Perl version.
Al Williams
AWC
* Easy RS-232 Prototyping
http://www.al-williams.com/awce/rs1.htm
> As an aside, anyone with sufficient desire and skill could also
> program their Stamps in their high level language of choice (or a
> subset thereof) through this same intermediate translation approach.
> Anybody up for Pascal, Java, FORTRAN...COBOL maybe?
>
programmer like you could, in fact, write a little filter app to do what you
suggest. I'm actually considering a PBASIC reformatter (like the old Turbo
Pascal Pretty Printer [noparse][[/noparse]I still have the source]) -- but again, it would be an
outside app.
I'm giving our Engineering staff enough trouble with feature creep -- sent in
a request today, in fact, based on something a customer was attempting to do
[noparse][[/noparse]but couldn't] that just made sense. We'll see if it makes it in. Every
time we add something new we delay the release.
-- Jon Williams
-- Parallax
In a message dated 1/8/2003 11:26:01 AM Central Standard Time,
parkiss@e... writes:
> Any chance this is or could become part of the PBASIC 2.5 package?
> Also, since I'm asking too late, could I also ask that the new
> editor has the ability to comment out blocks of code rather than one
> line at a time? Sort of like the /* ... */ thingy in C++ or the
> common conditional assembly directive.
>
> If you have any further need for "requirements creep", just ask.
>
[noparse][[/noparse]Non-text portions of this message have been removed]
of the x=x+1) is really nice when x is really Step_to_go_count or some other
long winded label for commenting.
Ex Step_to_go_count = Step_to_go_count +1
Original Message
From: jonwms@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=26y0i8Pcp9xV9r0NcVKUBbY2jldhPs8OVsVkdPY0luzAwr92NUJH-Pzw2z5bkAv7n9hUfnc]jonwms@a...[/url
Sent: Wednesday, January 08, 2003 2:10 PM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] PBASIC 2.5
Probably not. The editor does not modify user source code. An excellent
programmer like you could, in fact, write a little filter app to do what you
suggest. I'm actually considering a PBASIC reformatter (like the old Turbo
Pascal Pretty Printer [noparse][[/noparse]I still have the source]) -- but again, it would be
an
outside app.
I'm giving our Engineering staff enough trouble with feature creep -- sent
in
a request today, in fact, based on something a customer was attempting to do
[noparse][[/noparse]but couldn't] that just made sense. We'll see if it makes it in. Every
time we add something new we delay the release.
-- Jon Williams
-- Parallax
In a message dated 1/8/2003 11:26:01 AM Central Standard Time,
parkiss@e... writes:
> Any chance this is or could become part of the PBASIC 2.5 package?
> Also, since I'm asking too late, could I also ask that the new
> editor has the ability to comment out blocks of code rather than one
> line at a time? Sort of like the /* ... */ thingy in C++ or the
> common conditional assembly directive.
>
> If you have any further need for "requirements creep", just ask.
>
[noparse][[/noparse]Non-text portions of this message have been removed]
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
[noparse][[/noparse]Non-text portions of this message have been removed]
--- In basicstamps@yahoogroups.com, Sadler Porter
<porter.sadler@s...> wrote:
> Here's a request for the next round. The c increment/decrement
(x++ instead
> of the x=x+1) is really nice when x is really Step_to_go_count or
some other
> long winded label for commenting.
>
> Ex Step_to_go_count = Step_to_go_count +1
>
>
but not in BASIC. We are trying -- to the degree possible with an embeded
language -- to stay as "standard" to BASIC as possible.
Personally, I like the way C and Java handle FOR-NEXT better than BASIC, but
I'm not going to get that style in a BASIC Stamp.
-- Jon Williams
-- Parallax
In a message dated 1/8/2003 5:56:58 PM Central Standard Time,
porter.sadler@s... writes:
> Here's a request for the next round. The c increment/decrement (x++ instead
> of the x=x+1) is really nice when x is really Step_to_go_count or some
> other
> long winded label for commenting.
>
> Ex Step_to_go_count = Step_to_go_count +1
[noparse][[/noparse]Non-text portions of this message have been removed]
worth it in my opinion, though I'm already dieing to get my hands on the new
editor and try it out. ;-)
Chris
Original Message
From: <jonwms@a...>
To: <basicstamps@yahoogroups.com>
Sent: Thursday, January 09, 2003 3:10 AM
Subject: Re: [noparse][[/noparse]basicstamps] PBASIC 2.5
> Probably not. The editor does not modify user source code. An excellent
> programmer like you could, in fact, write a little filter app to do what
you
> suggest. I'm actually considering a PBASIC reformatter (like the old
Turbo
> Pascal Pretty Printer [noparse][[/noparse]I still have the source]) -- but again, it would be
an
> outside app.
>
> I'm giving our Engineering staff enough trouble with feature creep -- sent
in
> a request today, in fact, based on something a customer was attempting to
do
> [noparse][[/noparse]but couldn't] that just made sense. We'll see if it makes it in. Every
> time we add something new we delay the release.
>
> -- Jon Williams
> -- Parallax
>
> In a message dated 1/8/2003 11:26:01 AM Central Standard Time,
> parkiss@e... writes:
>
> > Any chance this is or could become part of the PBASIC 2.5 package?
> > Also, since I'm asking too late, could I also ask that the new
> > editor has the ability to comment out blocks of code rather than one
> > line at a time? Sort of like the /* ... */ thingy in C++ or the
> > common conditional assembly directive.
> >
> > If you have any further need for "requirements creep", just ask.
> >
>
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
when it's comming out.
Eric
Original Message
> Does any one know where i can get PBASIC 2.5 or does any one know
> when it's comming out.
2003. We will release a Public Beta to get user feedback of language
features. The first Beta will only include new language features, and not
include syntax highlighting that will be part of the final release.
New lanaguage features:
* PIN type definition
* IF...THEN...ELSE
* DO...LOOP
* SELECT...CASE
* EXIT (terminates FOR...NEXT and DO...LOOP)
* ON...GOSUB
* ON...GOTO
* Word modifier available for READ and WRITE
* Line continuation to next line
* Conditional complation support
Again, this is a Public Beta program. The compiler will come will essential
support information, but not the full help file. If you're not an
experienced PBASIC programmer you should wait for the full release and the
complete support package.
-- Jon Williams
-- Parallax
In a message dated 1/12/2003 11:56:43 PM Central Standard Time,
morpheus358@c... writes:
> Does any one know where i can get PBASIC 2.5 or does any one know
> when it's coming out.
[noparse][[/noparse]Non-text portions of this message have been removed]
Been playing with the stamp again and went to print out a page off the help
file and couldn't.
It would lock up.
John/Eric...anyone else have this problem?
steve.brady@r... writes:
> Been playing with the stamp again and went to print out a page off the help
> file and couldn't.
> It would lock up.
>
Steve, I think this is a universal problem; however, you can copy and paste
to Word, then print it out. Understand Parallax is working on this problem.
Sid Weaver
[noparse][[/noparse]Non-text portions of this message have been removed]
with a little cropping!
Hadn't remembered anyone saying anything about it in here, so I thought I'd
mention it!
thanks
Original Message
From: <Newzed@a...>
To: <basicstamps@yahoogroups.com>
Sent: Saturday, March 20, 2004 7:51 PM
Subject: Re: [noparse][[/noparse]basicstamps] Pbasic 2.5
> In a message dated 3/20/2004 7:41:40 PM Eastern Standard Time,
> steve.brady@r... writes:
>
>
> > Been playing with the stamp again and went to print out a page off the
help
> > file and couldn't.
> > It would lock up.
> >
>
> Steve, I think this is a universal problem; however, you can copy and
paste
> to Word, then print it out. Understand Parallax is working on this
problem.
>
> Sid Weaver
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
> Yahoo! Groups Links
>
>
>
>
>
> Hey guys,
>
> Been playing with the stamp again and went to print out a page off
the help
> file and couldn't.
> It would lock up.
>
> John/Eric...anyone else have this problem?
What page ? anything specific ?
I often print to Adobe Acrobat (full version, not the free one) and I
can print to a page, then print that page to my printer.
If it is a continuing problem, I would expect that Parallax could
offer chapters seperatly.
Dave
than the paper.
While running Pbasic, go in to HELP. I was looking up some of the new
commands off of the help file and when I went to print....nothing happened.
Not a HUGE deal....just convenient.
Original Message
From: "Dave Mucha" <davemucha@j...>
To: <basicstamps@yahoogroups.com>
Sent: Saturday, March 20, 2004 10:57 PM
Subject: [noparse][[/noparse]basicstamps] Re: Pbasic 2.5
> --- In basicstamps@yahoogroups.com, "SB" <steve.brady@r...> wrote:
> > Hey guys,
> >
> > Been playing with the stamp again and went to print out a page off
> the help
> > file and couldn't.
> > It would lock up.
> >
> > John/Eric...anyone else have this problem?
>
> What page ? anything specific ?
>
> I often print to Adobe Acrobat (full version, not the free one) and I
> can print to a page, then print that page to my printer.
>
> If it is a continuing problem, I would expect that Parallax could
> offer chapters seperatly.
>
> Dave
>
>
>
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
> Yahoo! Groups Links
>
>
>
>
>
standard Windows CHM file with the Print button enabled. I'm attending
a seminar this weekend so I won't be able to investigate until Monday.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: SB [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=dyJYWIlmptU8n3hKCOfvK-uxhx4J4UPbgZRXXU-Ds1AkcQhfwuWnxK98KM6a6LFFj3sgXdHHV81Hv-fo0vi6eA]steve.brady@r...[/url
Sent: Saturday, March 20, 2004 6:40 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Pbasic 2.5
Hey guys,
Been playing with the stamp again and went to print out a page off the
help file and couldn't. It would lock up.
John/Eric...anyone else have this problem?
Thanks for the action though!
sb
Original Message
From: "Jon Williams" <jwilliams@p...>
To: <basicstamps@yahoogroups.com>
Sent: Sunday, March 21, 2004 6:59 AM
Subject: RE: [noparse][[/noparse]basicstamps] Pbasic 2.5
> That has not been reported. The Help file (my project to manage) is a
> standard Windows CHM file with the Print button enabled. I'm attending
> a seminar this weekend so I won't be able to investigate until Monday.
>
> -- Jon Williams
> -- Applications Engineer, Parallax
> -- Dallas Office
>
>
>
Original Message
> From: SB [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=_CzF6QzFwOYFSUQwq6hcxK_Gru5LY2UO_6Ms-LcKvh9eMzNwgVAa_ZtwSSyXaHAoWtmKuI5kkL2U--M18Ny92w]steve.brady@r...[/url
> Sent: Saturday, March 20, 2004 6:40 PM
> To: basicstamps@yahoogroups.com
> Subject: [noparse][[/noparse]basicstamps] Pbasic 2.5
>
>
> Hey guys,
>
> Been playing with the stamp again and went to print out a page off the
> help file and couldn't. It would lock up.
>
> John/Eric...anyone else have this problem?
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
>
> Yahoo! Groups Links
>
>
>
>
>
anywhere on the Parallx website?? The download page only offers pdf
documents but nothing else??
Can someone tell me where they hide it!
THX
chantsmagnetiques
Regards
Adrian
setup program here:
http://www.parallax.com/html_pages/downloads/software/software_basic_sta
mp.asp
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: chantsmagnetiques [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=gF8aoCPlz2IxES3Fyu49kNHUjnw8phyh9gRSVQ4FdhfjIYHQTcbMI4gLfegsqpcucFDiVDbdXET_4mS4KPaP-Ao96c05]magneticfields_1@h...[/url
Sent: Monday, March 29, 2004 8:25 PM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] PBASIC 2.5
I tried to find Pbasic 2.5 editor for my Stamp2e but I can't find it
anywhere on the Parallx website?? The download page only offers pdf
documents but nothing else??
Can someone tell me where they hide it!
THX
chantsmagnetiques
allow me to use or do I need new hardware also? If Pbasic 2.5 is
burned into the Stamps chip can I access that code to burn it into my
BS2? Thank You
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: klippman2 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=zZgdlOZQjTNn5OUpSXOUiufXqmnfIxld-8S73yCR_oj4t4e3s6TO6G4FYu-oJfeftIUZ0WsoQn_K]mlippman@f...[/url
Sent: Monday, April 19, 2004 6:13 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Pbasic 2.5
Is Pbasic 2.5 Just a programming language that the new editor will
allow me to use or do I need new hardware also? If Pbasic 2.5 is
burned into the Stamps chip can I access that code to burn it into my
BS2? Thank You
compatible with the existing hardware. There is no need to upgrade
the basic stamps to be able to use PBasic 2.5.
Regards
Adrian
>PBasic 2.5 is an extension of the previous PBasic 2.0 and is
>compatible with the existing hardware. There is no need to upgrade
>the basic stamps to be able to use PBasic 2.5.
>Regards
>Adrian
Just for additional clarification the Stamp PROGRAM which wishes to take
advantage of the PBasic 2.5 extensions must contain the following directive in
the program:
'{$PBASIC 2.5}
but no HARDWARE or firmware update is required.
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and Body
of the message will be ignored.
>
>Yahoo! Groups Links
>
>
>
>