Search found 1340 matches

by jofers
Jan 06, 2014 23:33
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 10778

A lexical analyzer generator for FreeBASIC

Hey all, It's been awhile since I touched anything FreeBASIC, so I started toying with a project called Poodle-Lex. It's a lexical analyzer generator which emits FreeBASIC code, similar to lex and its ilk: https://github.com/parkertomatoes/poodle-lex/releases/tag/0.5-alpha It's written in Python, bu...
by jofers
Feb 07, 2009 20:00
Forum: Libraries
Topic: Allegro compilation error
Replies: 2
Views: 1449

I got the same problem you did, but you just need to link to a few more libraries when you compile. When I compiled your code like this:

Code: Select all

fbc test.bas -l alleg -l Xxf86vm -l Xcursor

It worked.
by jofers
Feb 07, 2009 18:03
Forum: General
Topic: return pattern matches with pcre
Replies: 1
Views: 974

Yeah, Perl is pretty good for that sort of thing. Unfortunately, though you can only do one search at a time. However, you do have the option of starting midway through the string, so you find all your matches in a loop: #include once "pcre/pcre.bi" #define OVECCOUNT 30 ' Compile pattern D...
by jofers
Feb 07, 2009 12:34
Forum: Libraries
Topic: FreeBASIC and Google Chrome's V8
Replies: 1
Views: 1616

FreeBASIC and Google Chrome's V8

So, Google released a browser this year, and it uses a pretty fast just-in-time Javascript engine, called v8 . The library is full of C++ templates, Boost-like pseudo-garbage collection and other unportable code, and I like a challenge, so I wrote part of a wrapper library. Result: #include "fb...
by jofers
Jan 31, 2009 20:28
Forum: Projects
Topic: TTF Converter for DRAW STRING
Replies: 41
Views: 14935

Heh, whoops, link fixed :)
by jofers
Jan 12, 2009 23:39
Forum: Projects
Topic: TTF Converter for DRAW STRING
Replies: 41
Views: 14935

Thanks Zippy, I've updated the download:
http://betterwebber.com/stuff/ttf_to_gfxlib_v20.zip

I didn't test it though, so if there are errors let me know.
by jofers
Jan 12, 2009 22:22
Forum: Projects
Topic: FadeText - output text via FreeType fading in the letters!
Replies: 4
Views: 1210

Actually, I have draconian views on licensing code snippets. The distribution of line-by-line translations of public domain C code publicly posted on websites is strictly forbidden. That code was clearly for you to look at and never, ever use it for any purpose whatsoever without filling out a $30 l...
by jofers
Jan 12, 2009 22:06
Forum: Community Discussion
Topic: Hi guys. Long time since last...
Replies: 21
Views: 5737

All these "fat cop" posts are giving me an amazing idea for a reality TV show. I am in the middle of transitioning my degree from MS to PhD to hopefully ride out the economy. My guess is around 2 years left if I finish my course work this semester. I'm still programming, just not as much "me time" p...
by jofers
Jan 06, 2009 16:52
Forum: Community Discussion
Topic: Hi guys. Long time since last...
Replies: 21
Views: 5737

I'm still around, I just lurk from time to time because I'm busy with grad school. Good to know everyone's still around.
by jofers
Sep 25, 2008 13:32
Forum: Windows
Topic: Vista "glossy text" effect
Replies: 3
Views: 1609

It doesn't appear to do anything, but if you're wondering what "reinterpret_cast" is, it's just an unsafe cast. If you use CPtr(NCCALCSIZE_PARAMS Ptr, lParam), you'll have the same effect.
by jofers
Sep 23, 2008 14:49
Forum: General
Topic: 18b programs not compiling with Version 0.20.0 Beta
Replies: 3
Views: 1332

Yeah, those are really common symbols that every library thinks they own. For a temporary fix, try putting #undef TRUE #undef FALSE before you include the FreeImage header. PS: Oh, and for the code you posted, you might run into problems. If TRUE is already defined by a C library, it's likely to be ...
by jofers
Sep 16, 2008 22:16
Forum: Beginners
Topic: Wow. This is so cool
Replies: 16
Views: 3899

Sorry, that was my fault. I have to bite my tongue now to keep from writing a 12-page post about the availability of prescription drugs in 3rd-world countries.

So yeah, speaking of drugs, add a steroids mode to the baseball game.
by jofers
Sep 16, 2008 22:09
Forum: Community Discussion
Topic: searching members
Replies: 19
Views: 4236

I may be old and grumpy, but why not make a shout-out? I bet 75% of the members on this forum aren't active anyway. Just posting "who here is from madeupistan?" would catch the eye of anyone who is interested.
by jofers
Sep 16, 2008 22:06
Forum: Beginners
Topic: fast one: bools and types?
Replies: 13
Views: 2076

Oh, shoot, I completely forgot you were talking about using this in types. Yes, yes you can have boolean type members very easily: Type game isRunning:1 As Integer isPaused:1 As Integer End Type The type still aligns to 4 bytes, but the code is much more readable than masking bitflags. Oh, and the c...
by jofers
Sep 16, 2008 15:47
Forum: Beginners
Topic: allegro 4.2?
Replies: 8
Views: 1701

Well, it's tough to find graphics card drivers for DOS.

The built in library isn't slow though, it's well coded and uses MMX instructions where available. I've never used it with DOS though, and have no idea how it and Allegro compare.

Go to advanced search