Search found 1284 matches

by AGS
Feb 11, 2008 16:55
Forum: Projects
Topic: Mini-basic (a basic interpreter)
Replies: 5
Views: 5291

1 /'*************************************************************** 2 * Mini BASIC * 3 * by Malcolm McLean * 4 * version 1.0 * 5 * * 6 * Translated To FreeBASIC by * 7 * Arjan Schillemans * 8 ****************************************************************'/ 9 10 #include "crt/stdio.bi" 1...
by AGS
Feb 10, 2008 1:14
Forum: Projects
Topic: FreeBASIC Extended Library Release 0.2.2
Replies: 127
Views: 57285

The macro system is our substitue for templates, its not perfect but it works for the most part. I agree the docs need more work, if someone would like to help with them everyone in #freebasic-ext on freenode would more than happy to answer any questions you have. I think I understand why you use m...
by AGS
Feb 09, 2008 23:52
Forum: Projects
Topic: FreeBASIC Extended Library Release 0.2.2
Replies: 127
Views: 57285

AGS - what version of the ext lib do you have? With the latest svn, what's in the include file is exactly the same as what you see in the online docs (the online docs are actually compiled from the source files). I have version 0.03b (windows), binaries with header - files. As for the ##T_ and T_ s...
by AGS
Feb 08, 2008 19:45
Forum: General
Topic: Programming editors do not support FreeBASIC
Replies: 7
Views: 1914

Programming editors do not support FreeBASIC

I've been playing around with different programming - editors from the Gnome Files - repository. There is some nice editors to be found there but thus far no editor comes with syntax - highlighting for FreeBASIC. What's up with that? All these editors come with syntax - highlighting for the most obs...
by AGS
Feb 08, 2008 17:30
Forum: Projects
Topic: FreeBASIC Extended Library Release 0.2.2
Replies: 127
Views: 57285

Every now and then I look at the online - documentation of the library. And there is a difference between that documentation and what you get in the form of include - files. An example: Online - doc: declare function Transform overload ( byval first as T_ ptr, byval last as T_ ptr, byval result ...
by AGS
Feb 04, 2008 20:52
Forum: Tips and Tricks
Topic: 2D Fourier Transform On Images
Replies: 6
Views: 1729

Hey, I've just finished translating this tutorial to FB, so I've decided to share it with you guys. To use program, you need to place "image.bmp" into same folder, also image.bmp should be 128x128. To change effects, just use arrow keys. Also, if you want to download the "complete package" (source ...
by AGS
Jan 29, 2008 21:37
Forum: Projects
Topic: 1337 programming language interpreter
Replies: 3
Views: 2482

Thanks for the suggestions and the links, they look useful for a project I have in mind ;) One last thing, HD_. A lot of existing programming languages come a grammar that contains ambiguities. A wiki - page explains it all: http://en.wikipedia.org/wiki/Ambiguity The grammar for FreeBASIC..... is a...
by AGS
Jan 28, 2008 23:39
Forum: Projects
Topic: 1337 programming language interpreter
Replies: 3
Views: 2482

What about using some symbolic constants? I've checked the site you refer too out and the language l33t consists of 10 opcodes. Of course those 'magic' numbers appear in your source but wouldn't it be nice to define something like: #define NOP 0 #define WRT 1 #define RD 2 #define kIF 3 #define EIF 4...
by AGS
Jan 27, 2008 19:51
Forum: Projects
Topic: Mini-basic (a basic interpreter)
Replies: 5
Views: 5291

Mini-basic (a basic interpreter)

On the internet you can find some small basic - interpreters. As a programming language these interpreters usually have an instruction - set that is much smaller than the instruction - set of FreeBASIC. These interpreters are, however, a nice way to get an idea of how interpreters work. Mini - basic...
by AGS
Jan 25, 2008 22:13
Forum: Libraries
Topic: IUP-CD-IM
Replies: 5
Views: 1853

Re: image array IUM

Thanks for your suggestion. I have experimented a bit and I think that the correct expression is: *((*myImage).data). It compiles fine anyway. But it still generates an execution error. I'm suspecting a problem with the way C and FreeBASIC store array. I have a very simplistic solution which is to ...
by AGS
Jan 17, 2008 19:58
Forum: General
Topic: Using library created with FreeBASIC with other lang(SOLVED)
Replies: 3
Views: 1457

Thanks for the reactions! Problem solved.
by AGS
Jan 17, 2008 19:08
Forum: General
Topic: Using library created with FreeBASIC with other lang(SOLVED)
Replies: 3
Views: 1457

Using library created with FreeBASIC with other lang(SOLVED)

I am translating a library from C to FreeBASIC. When I am done with that I want to build a dynamic library (fbc -dylib <list of source-files>) and a static library (fbc -lib <list of source-files>). I want to call functions inside those libraries from a language other then FreeBASIC and I do not kno...
by AGS
Jan 15, 2008 6:36
Forum: Beginners
Topic: Organizing code ("SOLVED")
Replies: 20
Views: 4502

There is no universal method of capitalisation. No standard yet? When you look at programs written in other languages they always seem to have been written with some kind of universal standard (keywords are in lowercase, variables start with an uppercase etc... etc...) in mind. But then again... it...
by AGS
Jan 14, 2008 1:10
Forum: Beginners
Topic: Organizing code ("SOLVED")
Replies: 20
Views: 4502

If I am to learn FreeBASIC, I wish to learn all good habits as soon as possible. -- First letter of a keyword in uppercase Dim a As Integer a = 10 If (a = 10) Then Print "a seems to be 10" End If End -- Variables... in lowercase -- Constants.... uppercase Const FB = 10 -- Names of...
by AGS
Jan 13, 2008 17:58
Forum: Beginners
Topic: Organizing code ("SOLVED")
Replies: 20
Views: 4502

As I understand it, libraries (lib*.a) are basically a bunch of modules (*.o files) that have been linked together in a single file. When using a library with multiple modules, the modules which contain functions that you are using are the only modules from that lib that will actually be linked int...

Go to advanced search