Thread: java to pbasic
View Single Post
  #12   Spotlight this post!  
Unread 09-01-2003, 19:24
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
The thing to keep in mind is that nothing is new on the hardware level. Truth be told, the new interpreter probably just converts this new syntax to the old style.

For example,

if <condition> then <expression>
-converts to-
if NOT <condition> then no_exp
<expression>
no_exp

SELECT expr
CASE a TO b
expr1
CASE c to d
expr2
case else
expr3
endselect
-converts to-
if expr>a AND expr<b then case1
if expr>c AND expr<d then case2
expr3
goto end_select
case1:
expr1
goto end_select
case2:
expr2
goto end_select
end_select:
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php