Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 26 Nov 2014, 16:42
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
BaCon - Bash-based Basic-to-C converter/compiler
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 6 of 36 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, ..., 34, 35, 36 Next
Author Message
2lss

Joined: 20 Sep 2009
Posts: 225

PostPosted: Sat 13 Nov 2010, 02:09    Post_subject:  

BarryK wrote:
The next Wary Puppy, probably version 097, that I expect to release in 2-3 days, has BaCon support all setup and ready to go. See blog announcement:

http://bkhome.org/blog/?viewDetailed=01950

Also, see my BaCon intro page:

http://bkhome.org/bacon/


Thanks Barry, I'm going to give this a try.
Back to top
View user's profile Send_private_message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7083
Location: Perth, Western Australia

PostPosted: Sat 13 Nov 2010, 06:11    Post_subject:  

2lss wrote:
BarryK wrote:
The next Wary Puppy, probably version 097, that I expect to release in 2-3 days, has BaCon support all setup and ready to go. See blog announcement:

http://bkhome.org/blog/?viewDetailed=01950

Also, see my BaCon intro page:

http://bkhome.org/bacon/


Thanks Barry, I'm going to give this a try.


I have uploaded Wary 097, which has all the bacon goodies in it. I am having a sound problem, which I why I haven't formally announced 097 on my blog, and 098 will be uploaded soon. But 097 should be fine for BaCon development -- and most likely you won't even get the sound problem.

Get 097 from here:
http://distro.ibiblio.org/pub/linux/distributions/quirky/wary-097/

_________________
http://bkhome.org/news/
Back to top
View user's profile Send_private_message Visit_website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7083
Location: Perth, Western Australia

PostPosted: Sat 13 Nov 2010, 06:14    Post_subject:  

Note, I think that some of the .bac include files are broken in Wary 097, /usr/local/BaCon -- I created them by opening the .bac.html files on the BaCon website and saving them as plain text -- but the files have lots of '*' characters everywhere.

Note that Wary 097 has a compiled /usr/bin/bacon compiler, so doesn't need Bash 4.x.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send_private_message Visit_website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 13 Nov 2010, 09:32    Post_subject:  

Quote:
Note, I think that some of the .bac include files are broken in Wary 097


Shocked

Downloaded and setup 097 (sound worked on initial boot and then never again - no persistence)

ahem . . .

Downloaded and setup 097

then went to usr/share/BaCon

Code:
# bacon c calculator.bac
Starting conversion... done.   
Starting compilation... done.
Program 'calculator' ready.


I have pork

Code:
# ./calculator

-= BACON Calculator =-

1) Perform addition
2) Perform substraction
3) Perform multiplication
4) Perform division
5) Quit


Sadly hug.bac, editor.bac
etc are broken as mentioned

Code:
# bacon c glade.bac
Starting conversion... 28   
ERROR: could not parse line 28 in file 'glade.bac'!
# bacon c editor.bac
Starting conversion... done.   
Starting compilation... Compiler emits messages!

Problem:
    file 'editor.bac' line 227: WRITELN "font ", ptr1 TO settings
Cause:
    incompatible type for argument 1 of '__b2c__str'

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
Ray MK


Joined: 05 Feb 2008
Posts: 767
Location: UK

PostPosted: Sat 13 Nov 2010, 09:45    Post_subject:  

Hi Barry

Just a note to say Wary 097 seems fine - all the basic's,
from a n00b viewpoint seem to work.

Woof woof at startup ok, nico edit seems fine, using it now.

Wired internet - good. Not tried wifi yet, or dialup.

Had to setup mouse tapping - no prob's.
(051 tapping worked auto-magically)

097 not quite so snappy as 051 -
(guessing thats because of extra drivers etc)

Manual frugal to sda1 ext3, 256mb ram,
Celeron 2.5Ghz proc, 700mb swap partition,
Acer Travelmate 243LC laptop. approx 8yrs old.

Very best regards and many thanks for all you do - Ray
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Sat 13 Nov 2010, 10:19    Post_subject: Lobster's woes  

Dear Lobster,

I am attaching the latest hug.bac and glade.bac as an archive. I know they work fine. Just unpack and replace your old files with these.

With kind regards,
vovchik
hug-glade.tar.gz
Description 
gz

 Download 
Filename  hug-glade.tar.gz 
Filesize  12.63 KB 
Downloaded  252 Time(s) 
Back to top
View user's profile Send_private_message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Sat 13 Nov 2010, 13:27    Post_subject:  

I'm probably doing something wrong, but:

Code:

~/Downloads/bacon/cli-demos $ sudo bacon c mastermind.bac
Starting conversion... done.   
Applying indentation... sh: indent: command not found
Unable to delete file: No such file or directory


I'm using Lucid 2.3.5, with GNU bash, version 4.1.0(1)-release (i686-pc-linux-gnu).
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Sat 13 Nov 2010, 13:53    Post_subject: indent binary  

Dear jpes,

Looks as if you are missing the indent binary (and who knows what else). In any case, here is the indent binary. Place it in /usr/bin and give it another try.

With kind regards,
vovchik

PS. And just run "bacon mastermind" for compilation of the source.
indent.tar.gz
Description 
gz

 Download 
Filename  indent.tar.gz 
Filesize  28.46 KB 
Downloaded  242 Time(s) 
Back to top
View user's profile Send_private_message 
NinerSevenTango

Joined: 17 Jun 2007
Posts: 186

PostPosted: Sat 13 Nov 2010, 14:58    Post_subject:  

Who dares to attempt to compile and run the gtk-server demo on the BaCon website?

Or the Glade example calculator.

--97T--
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Sat 13 Nov 2010, 15:28    Post_subject: gtk server demo  

Dear NinerSevenTango,

The program compiles fine and will work if you first install Peter's gtk-server (http://www.gtk-server.org/). Get the latest version and compile it. Make certain your /etc/gtk-server.cfg file corresponds to your version of gtk, otherwise you will have problems. Gtk-server is very picky about correspondences between the config file and the version of gtk you are running.

With kind regards,
vovchik
Back to top
View user's profile Send_private_message 
NinerSevenTango

Joined: 17 Jun 2007
Posts: 186

PostPosted: Sat 13 Nov 2010, 15:52    Post_subject:  

Thanks, vovchik.

I did download and install the latest version of gtk-server.

This is a full install of Quirky 1.3.

I installed it as a 'shared object', after installing FFCall.

There is no /etc/gtk-server.cfg. I found it at /usr/local/etc/gtk-server.cfg. Should I move it, reinstall with some different options, or add a path variable? Hmmmm.

Edit: The file lists a bunch of libraries. I could find them all except:

libgtkgl-2.0.so, libgtkglext-x11-1.0.so, libgdkglext-x11-1.0.so, libgtkembedmoz.so, libpoppler-glib.so

Now I'm wondering, if the program calling it can actually find it, will it bomb if these libraries are not present?

I appreciate your response, thanks again,

--97T--
Back to top
View user's profile Send_private_message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Sat 13 Nov 2010, 17:05    Post_subject: Re: indent binary  

vovchik wrote:
Dear jpes,

Looks as if you are missing the indent binary (and who knows what else). In any case, here is the indent binary. Place it in /usr/bin and give it another try.


Thanks vovchik; working now, although "calc.bac" has strange way of adding: 20 + 35 = 2035 Very Happy
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Sat 13 Nov 2010, 17:57    Post_subject:  

Dear NinerSevenTango,

I seem to have all the libs you list installed and I also have a the .cfg file in your location, in addition to /etc. If I remove the .cfg file in /etc, then gtk-server refuses to run, so in my installation that is the correct location. I remember from my previous gtk-server experiments (quite a few), that the libs called for in the config file had to be on your system. I will look into this tomorrow, since I am trying to finish an urgent job....

With kind regards,
vovchik
Back to top
View user's profile Send_private_message 
NinerSevenTango

Joined: 17 Jun 2007
Posts: 186

PostPosted: Sat 13 Nov 2010, 18:37    Post_subject:  

Thanks, vovchik, I believe that's enough information to save me a bunch of time fixing it. I can hunt those libs down and install them.

Happy coding!

--97T--
Back to top
View user's profile Send_private_message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Sat 13 Nov 2010, 20:09    Post_subject:  

Math '+' function in calc.bac needs () to add.

PRINT (f+g)
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 6 of 36 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, ..., 34, 35, 36 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0866s ][ Queries: 12 (0.0071s) ][ GZIP on ]