Search found 1284 matches

by AGS
Feb 03, 2014 17:43
Forum: Sources, Examples, Tips and Tricks
Topic: Using Python as a database (in-memory and on disk) package
Replies: 5
Views: 2721

Using Python as a database (in-memory and on disk) package

Python (=an interpreted language) comes with some handy container data structures that can be written to disk and read back again later. This allows for the creation of an in-memory database that can be saved to disk (and read back from disk to memory). Python comes with a C interface that a FreeBAS...
by AGS
Jan 30, 2014 6:19
Forum: Community Discussion
Topic: FreeBASIC 64bit Compiler
Replies: 27
Views: 10203

Re: FreeBASIC 64bit Compiler

There is no x64 back end for FreeBASIC. The instruction set used by x64 is the same as that for x86. So as far as changing things go there might be little that need to be done. One thing that has changed (a lot) is the passing of parameters. C code (gcc,linux) uses 6 registers to pass arguments alon...
by AGS
Jan 28, 2014 6:24
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 16914

Re: A lexical analyzer generator for FreeBASIC

I've taken a closer look at the generated code and found something interesting. Whenever a transition can only lead to one target state ( which is a final state without outgoing edges) four statements get executed --> A new state number is assigned to the current state. --> The current character is ...
by AGS
Jan 24, 2014 6:52
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 16914

Re: A lexical analyzer generator for FreeBASIC

I have fixed the bug that prevented poodle from generating code. Removing the ? from the regular expression was enough to get the code running. The regex on line 38 now reads: match = re.match(r"(^([ \t]*))\$([a-zA-Z0-9_]+)", line) I just dropped the ? from the regular expression. I figure...
by AGS
Jan 24, 2014 0:40
Forum: Archive
Topic: mingw libraries at opensuse (sticky request)
Replies: 4
Views: 12502

Re: mingw libraries at opensuse (sticky request)

Apologies for the very late reply. The unpacker I use (os: win7\64bit) is peazip. When you open the package it's got a .cpio extension. On the subject of line endings: I use programmer's notepad. I insert line endings myself as programmer's notepad does not do that for you. It simply wraps after 134...
by AGS
Jan 16, 2014 17:16
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 16914

Re: A lexical analyzer generator for FreeBASIC

Just to clarify the import scintilla in my Python code. I am using Programmer's Notepad. And Programmer's Notepad uses scintilla. About Geany: you can write a Lua script (using the geanylua plugin) that accesses scintilla. geanylua also comes with some gui support (you can create a dialog using Lua ...
by AGS
Jan 16, 2014 17:01
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 16914

Re: A lexical analyzer generator for FreeBASIC

I have tried your package with a set of regular expressions that represent a large subset of the C preprocessing tokens. String/char literals are kinda hard to express as regular expressions as the content of a string literal can be any of ASCII, utf8, utf16, utf32 or wchar_t. The prefix of a string...
by AGS
Jan 14, 2014 8:24
Forum: Projects
Topic: h_2_bi.bas, a tool for translating .h files into .bi
Replies: 290
Views: 79005

Re: h_2_bi.bas, a tool for translating .h files into .bi

In 2011 a new version of the C standard, C11, was released. And gcc has implemented most of the changes from C11. As h2bi translates C header files to fb header files the new standard could have an impact on h2bi. I've looked at the new standard to see whether it contains things h2bi should be able ...
by AGS
Jan 11, 2014 21:15
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 16914

Re: A lexical analyzer generator for FreeBASIC

What a wonderful answer, Jofers. I'm a bit 'flabbergasted' (really). I am installing python 2.7 (I had 2.6 installed) as I write this ( (done :) ) and I will test your tool. I have written a very bad C scanner myself using Python (I used python as the editor I use comes with python scripting). I use...
by AGS
Jan 10, 2014 8:32
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 16914

Re: A lexical analyzer generator for FreeBASIC

A couple of questions/remarks. First one: what does the version number 0.5alpha? Does the alpha mean 'it does not work' or does the alpha mean 'it works but I need to test a bit more to make sure it works well'. Secondly: why Python? Why not everything in FreeBASIC? I have experimented with tools li...
by AGS
Dec 10, 2013 2:46
Forum: Archive
Topic: mingw libraries at opensuse (sticky request)
Replies: 4
Views: 12502

mingw libraries at opensuse (sticky request)

I think it was TJF that once upon a time showed me that I could get win32 cross compiled binaries from an opensuse repository. As this repository contains quite a few usable libraries I think it might be a good idea to sticky a link to the repository. What is on offer are --> binary versions of libr...
by AGS
Dec 10, 2013 2:24
Forum: Community Discussion
Topic: relsoft...
Replies: 28
Views: 10443

Re: relsoft...

Has anyone heard from him? I have been pretty out of touch... with everyone. I was wondering if anyone around here has heard from him since that typhoon hit. I don't know how recent that typhoon hit but I found relsoft software dated 21 October 2013. He has moved on to Java (the programming languag...
by AGS
Nov 15, 2013 5:41
Forum: Sources, Examples, Tips and Tricks
Topic: Replacing select case with binary search (many large ranges)
Replies: 3
Views: 1384

Re: Replacing select case with binary search (many large ran

When I first examined the code, and considered the large number of conditionals and the resulting code size, I suspected that caching effects were going to kill its performance. To my surprise, at least for gen gas and running on my old systems, your binary search code outperforms a function that g...
by AGS
Nov 15, 2013 3:37
Forum: Community Discussion
Topic: fbc-ng
Replies: 10
Views: 3325

Re: fbc-ng

FreeBASIC Compiler next generation is a project that will add sound and other game dev functions to FreeBASIC. What other game dev functions do you have in mind? And if you want to add new commands to freebasic that resemble functions that look like LINE, CIRCLE etc... then you'll have to add code ...
by AGS
Nov 15, 2013 1:56
Forum: Documentation
Topic: FB manual for Devhelp (LINUX)
Replies: 10
Views: 8127

Re: FB manual for Devhelp (LINUX)

Thanks for the code, TJF. I have added an index to the epub that works with the calibre viewer. I'm going to extend the index a bit so it looks (almost) like the one you get with the official compiled html file. After extending the index I'll release the epub 'officially' (put it up for download in ...