Liberty BASIC Community Forum
« Search Results »

Welcome Guest. Please Login or Register.
Dec 22nd, 2014, 01:04am


Rules|Home|Help|Search|Recent Posts|Notification

--Liberty BASIC Resources--
Yahoo Code Repository (source must be included)
Liberty BASIC Community WikiSpace
Liberty Labs
Bay Six Software Forum
Liberty BASIC Home Page

Official Liberty BASIC Support
Liberty BASIC Programmer's Encyclopedia
Liberty BASIC 5 Handbook
Liberty BASIC on Rosetta Code

Search Results

Total results: 10


 1   Contests / Re: Variables  on: Yesterday at 03:25am
Started by Rod | Post by Rod
I have decided to exclude the system variables. It seemed easier to exclude everything you can identify then parse the rest. But it is really up to you since it is meant to be a fun head scratcher for the extra time folks will have over the break.
 
  Reply Quote Notify of replies

 2   Contests / Re: Variables  on: Dec 20th, 2014, 4:34pm
Started by Rod | Post by tenochtitlanuk
Great bit of coding there Jim/MKnarr.
I'd got far enough into the challenge to have started to meet some of the things you mention- and use in the code.

I think I'd heard of your prog. before, but not tried it. Very helpful as an example of a large bit of useful coding.

Thanks for creating and sharing...

PS liked Rod's description of it as a 'little programming task'.....
 
  Reply Quote Notify of replies

 3   Contests / Re: Variables  on: Dec 20th, 2014, 4:07pm
Started by Rod | Post by Chris Iverson
A quick question - are LB's built in variables(WindowWidth, DefaultDir$, etc) supposed to be included in this?
 
  Reply Quote Notify of replies

 4   Contests / Re: Variables  on: Dec 19th, 2014, 12:44pm
Started by Rod | Post by MKnarr
Quote:
Pretty cool that it knows the difference between a function and an array.


That's because it looks for dim statements first and removes them then eventually looks for the word sub and function. Turns out, the program must look for things in a specific order.

On my system with a 3.2 GHz processor, it takes a minute 50 to go through a 15681 working line program.
 
  Reply Quote Notify of replies

 5   Hardware Interface Coding / Re: Programming the Arduino Uno  on: Dec 18th, 2014, 10:11pm
Started by mscorley | Post by Chris Iverson
It can't be directly done.

The Arduino is essentially programmed using C(if using the Arduino editor/studio), or can be programmed directly in ATmega assembly. There have been LB-to-C compilers/converters in the past, but none have been very feature-complete, and not many would be useful on an Uno, anyway.

You CAN use LB to communicate to a program running on an Uno(the USB cable also provides a serial COM interface that LB can use). I've done this myself; I own an Uno and like playing around with it.
 
  Reply Quote Notify of replies

 6   General Board / Moved: Programming the Arduino Uno  on: Dec 18th, 2014, 9:04pm
Started by mscorley | Post by mscorley
This topic has been moved to Hardware Interface Coding by Stefan Pendl.

 
  Reply Quote Notify of replies

 7   Hardware Interface Coding / Programming the Arduino Uno  on: Dec 18th, 2014, 9:04pm
Started by mscorley | Post by mscorley
Does anyone have information on using Liberty Basic to write programs for the Arduino Uno? Any information would be appreciated.
 
  Reply Quote Notify of replies

 8   Contests / Re: Variables  on: Dec 18th, 2014, 2:08pm
Started by Rod | Post by hooshnik
That is a pretty good program! I tried it on my project. It took 90 seconds for lbreader to chew through it. Pretty cool that it knows the difference between a function and an array.

The only alternatives I found is to use linux with perl...

Code:
cat myprogram.bas | perl -ne 'print /\s*(\w*)\s/ ? "\n$1" : ""' | sort | uniq | less
 


... or Liberty Basic Workshop which both don't really do what yours does. LBW has lots of dupes and only looks at variables. That linux line eliminates the dupes but again only really works for variables and doesn't eliminate key words.

I found a minor bug. I sadly can't reproduce without my proprietary code. Any numeric variable (or function?) ending in the word "Validator" show hits for both an ending of "Validator" and "Validato" with no 'r' at the end.

Also my hand was getting tired from having no keyboard support ;D
 
  Reply Quote Notify of replies

 9   Contests / Re: Variables  on: Dec 18th, 2014, 08:45am
Started by Rod | Post by MKnarr
I would like to submit a program I wrote several years ago in LB 4.04 and have now saved it with version 4.5 beta 3. It includes string and numeric reserved keywords words that are new in version 4.5.

It not only finds all the string and numeracy variables in any program but arrays, handles, labels, goto, gosub and subs and function names.

It is in a zip file because it contains bitmaps etc.

http://users.sisna.com/jbross/lbreader.zip
 
  Reply Quote Notify of replies

 10   Liberty BASIC Code / Re: BEEP doesn't work...  on: Dec 17th, 2014, 9:51pm
Started by mskl007 | Post by Mattestion
See this thread for more information as well as some helpful workarounds.
 
  Reply Quote Notify of replies


Rules|Home|Help|Search|Recent Posts|Notification



Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls