Shop OBEX P1 Docs P2 Docs Learn Events
Pbasic 2.5 — Parallax Forums

Pbasic 2.5

ArchiverArchiver Posts: 46,084
edited 2004-04-21 08:50 in General Discussion
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++

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-01-08 17:31
    Hi Steve,

    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?
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-08 19:10
    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]
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-08 23:38
    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


    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]
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-09 00:18
    Actually in C++, the 'C++' is not the most efficient way of doing it.


    --- 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
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-09 00:33
    It's not likely that will happen since the ++ operator is used in C and Java,
    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]
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-09 08:47
    Well a slightly delayed release for even more features/improvements is well
    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/
    >
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-13 05:56
    Does any one know where i can get PBASIC 2.5 or does any one know
    when it's comming out.

    Eric
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-13 10:46
    Rumor has it the first beta version will be released this week.

    Original Message

    > Does any one know where i can get PBASIC 2.5 or does any one know
    > when it's comming out.
  • ArchiverArchiver Posts: 46,084
    edited 2003-01-13 13:21
    You can only get it from Parallax and you can get it this Friday, January 17,
    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]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-21 00:39
    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?
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-21 00:51
    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]
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-21 00:55
    Yup, just did a "shift-PrtScrn" and pasted it in "paint" then printed it out
    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
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-21 03:57
    --- 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
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-21 04:43
    Well, as someone already said on here....they update the electronic faster
    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
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-21 11:59
    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=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?
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-21 12:55
    No biggy...just convenient is all.
    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
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-30 03:24
    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
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-30 12:31
    The editor is actually 2.1 -- the language is 2.5. You can get the
    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
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-19 12:12
    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
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-19 18:03
    No new hardware is required; PBASIC 2.5 works on all BS2-family modules.

    -- 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
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-21 08:31
    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
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-21 08:50
    At 07:31 AM 4/21/04 +0000, Adrian Schneider wrote:
    >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
    >
    >
    >
    >
Sign In or Register to comment.