Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Duh! was - (Parsing a "Brick Wall")

From: webmaster::windsweptfarm::com at: 10-Sep-2002 12:42

Dear Self, loop forever [rebol: elegance] Am I a dope, or what? Instead of solving the problem from the bottom up I came in from the top and wasted time churning around trying to fathom a miriad of interactions that were unrelated to the real problem. What was I thinking? This is the essence of the solution: ;===== Start Code GPGLL: "$GPGLL,4238.683,N,08359.840,W,151748,A*3D" GPGLL_EXPANSION: parse GPGLL "," print GPGLL_EXPANSION foreach element GPGLL_EXPANSION [print element] ;===== End Code ;====== start output ==>
>> GPGLL: "$GPGLL,4238.683,N,08359.840,W,151748,A*3D"
== "$GPGLL,4238.683,N,08359.840,W,151748,A*3D"
>> GPGLL_EXPANSION: parse GPGLL ","
== ["$GPGLL" "4238.683" "N" "08359.840" "W" "151748" "A*3D"]
>> >> print GPGLL_EXPANSION
$GPGLL 4238.683 N 08359.840 W 151748 A*3D
>> >> foreach element GPGLL_EXPANSION [print element]
$GPGLL 4238.683 N 08359.840 W 151748 A*3D
>>
;====== End output ==^ Sorry for the stupid post! Jim _ wrote: