Search found 1340 matches

by jofers
Jan 27, 2015 7:03
Forum: Projects
Topic: QBasic Gaming Museum
Replies: 4
Views: 1774

Re: QBasic Gaming Museum

It looks like a few of the games did make it into the internet archive's DOS collection. Here's Dark Woods 2: https://archive.org/details/msdos_Dark_Woods_2_2002 And here's.... Bob Saget Killer 2000? Okay, whatever internet preservationists. https://archive.org/details/msdos_Bob_Saget_Killer_2000_19...
by jofers
Jan 20, 2015 20:37
Forum: Projects
Topic: QBasic Gaming Museum
Replies: 4
Views: 1774

QBasic Gaming Museum

The internet archive just posted 2400+ old MS-DOS games on-line, powered by a port of DosBox to Javascript using Emscripten. em-dosbox is on github, and while it was a pain to set up, it turns out it's pretty dead simple to zip up dos programs into a website. So, I tried it with a few QBasic gems. I...
by jofers
Nov 09, 2014 4:21
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 10680

Re: A lexical analyzer generator for FreeBASIC

I applied your optimization for sink states in the FB lexer and submitted it to the git repository.
by jofers
Nov 09, 2014 0:30
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 10680

Re: A lexical analyzer generator for FreeBASIC

Looking at that wiki example I think you just want a parser generator. With sections, Poodle could be used as a rudimentary parser generator, but a really terrible. It's like writing an OS in a batch file. Yes, it's possible, but yes, it's horrible (and after 16 levels of recursion you'll run out of...
by jofers
Nov 08, 2014 23:32
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 10680

Re: A lexical analyzer generator for FreeBASIC

WIth the error lines, that turned out to be a case of lazy initialization. Variables aren't parsed until they're instanced, so the exception was caught while processing the line which actually instanced the variable. The issue is fixed now in the git repository. I'll replace the installer I posted l...
by jofers
Nov 08, 2014 22:39
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 10680

Re: A lexical analyzer generator for FreeBASIC

After fixing some dumb errors in Poodle, I tried out your java lexer. I didn't observe any errors with Token.ToString(), but identifiers were not getting captured. It did seem to choke on a string literal in the hello world example I tried. I looked a bit at the dot graph and it's getting confused b...
by jofers
Nov 08, 2014 21:21
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 10680

Re: A lexical analyzer generator for FreeBASIC

On the stack code, you caught me being lazy :) I might spend some time and update that in the future. Man, I wish FB had generics. [EDIT] Ouch, tried the java example and got an error because "protected" was misspelled in the reserved keyword list. Fixed! [EDIT] Oh man, it took me awhile t...
by jofers
Nov 08, 2014 21:11
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 10680

Re: A lexical analyzer generator for FreeBASIC

Been awhile, right? I took a small break to deal with some things, but I've working on and off on Poodle ironing out kinks with Unicode and bringing back GraphViz (.dot) output. I also found some time to add an XML output plug-in. Here's another pre-release to capture that progress: https://github.c...
by jofers
Sep 04, 2014 13:21
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 10680

Re: A lexical analyzer generator for FreeBASIC

Yeah, but I'm uncomfortable with the idea of half-assing a standard, so I went ahead and implemented it anyway. I think I have all of the RL's in level 1 compliance, though I couldn't implement unicode line and word boundaries since Poodle doesn't support those. Adding the Unicode databases shot up ...
by jofers
Aug 24, 2014 16:07
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 10680

Re: A lexical analyzer generator for FreeBASIC

I've kind of resisted treating Perl regex as a de facto standard, so with the exception of variable substitution all conventions thus far have come from the POSIX ERE standard. But, Unicode properties are really handy. Luckily, the Unicode consortium published this handy technical report: http://www...
by jofers
Aug 21, 2014 4:58
Forum: Community Discussion
Topic: New FB release soon
Replies: 73
Views: 7664

Re: New FB release soon

I'd say any software that's been publicly released and actively developed for 9 years deserves at least a 1.0 release. I'm looking forward to checking it out!
by jofers
Aug 21, 2014 4:50
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 10680

Re: A lexical analyzer generator for FreeBASIC

Another 2.0 pre-release: https://github.com/parkertomatoes/poodle-lex/releases/tag/v1.9.6-alpha This round adds the following changes: * Numerous fixes to hierarchical lexer generation * Named codepoint constants for the FB emitter * Experimental FBC lexer example The 2.0 release is starting to soli...
by jofers
Jul 23, 2014 12:05
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 10680

Re: A lexical analyzer generator for FreeBASIC

Despite the lack of posts, I've made some pretty good progress on version 2 of Poodle-Lex. Basically, this version brings in recursive rules, which brings the tool to feature parity with lex/flex and finally allows for the creation of a FreeBasic lexer (specifically, nested comments). While I have y...
by jofers
May 06, 2014 13:23
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 10680

Re: A lexical analyzer generator for FreeBASIC

Okay, fixed what I think are the issues with whitespace and comments at the end of the file, line numbers, underscores, and unclosed strings. https://github.com/parkertomatoes/poodle-lex/releases/tag/1.0.1 I'll integrate these changes into the unstable branch and write some unit tests to cover them ...
by jofers
May 06, 2014 1:51
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 10680

Re: A lexical analyzer generator for FreeBASIC

Wow, I can't believe I missed this stuff.

The comment issue and the newline issue seem related. I think I'll probably need to push out a bugfix release, maybe 1.1. I'll be sure to add some unit tests for this stuff as well.

Go to advanced search