Search found 1284 matches

by AGS
Jan 09, 2015 8:58
Forum: Projects
Topic: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)
Replies: 647
Views: 167073

Re: FB debugger : 2.81 Beta 01 (november 30th, 2014)

When opening an executable you always get the following message Error : objdump.exe must be in the directory of fbdebugger Only usefull in case of option -gcc, in case -gas option don't take it in account Objdump is also needed if case -gcc and -gas mixed code But you also get that message after a c...
by AGS
Dec 13, 2014 3:57
Forum: Projects
Topic: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)
Replies: 647
Views: 167073

Re: FB debugger : 2.81 Beta 01 (november 30th, 2014)

I tried the UTF8 file from the /FREEBASIC_INSTALLATION_DIRECTORY/EXAMPLES/UNICODE/ and that worked. I added some UTF8 characters to that example (added a couple of multi-byte characters to a comment) and that worked out all right. Only one small issue: at the top of the gui there is a line that says...
by AGS
Dec 04, 2014 8:25
Forum: Projects
Topic: FB debugger : 2.96 32/64 BIT ..... (2020/02/17)
Replies: 647
Views: 167073

Re: FB debugger : 2.81 Beta 01 (november 30th, 2014)

I downloaded the program, compiled it using option -exx and the fbdebugger.rc I already had (using fbc version 0.91.0 on win7/64bit) and got a runtime error when loading a program (pushing button SELECT EXE/BAS and then selecting an executable). Aborting due to runtime error 6 (out of bounds array a...
by AGS
Nov 29, 2014 2:37
Forum: Documentation
Topic: Ordering of properties (wikkawikki tags)
Replies: 0
Views: 1015

Ordering of properties (wikkawikki tags)

A question regarding tags starting with {{image The wikkawikki documentation states that all image properties except for url are optional. But it does not state whether the order of properties is fixed. For example: can the property class appear anywhere in the list of properties or should it always...
by AGS
Nov 24, 2014 19:15
Forum: Tips and Tricks
Topic: Deductive database (datalog)
Replies: 3
Views: 1271

Re: Deductive database (datalog)

It is always a gamble when you put an example on the forum that has dependencies beyond what's in the fb distribution. Sometimes the example works and sometimes it doesn't. @anonymous1337 Output to drool at :) Output should look something like this high level interface example number of answers = 2 ...
by AGS
Nov 20, 2014 7:22
Forum: Tips and Tricks
Topic: Deductive database (datalog)
Replies: 3
Views: 1271

Deductive database (datalog)

Datalog is a language used to create/query a deductive database. A deductive database consists of facts and rules (rules are based on facts). An example of a couple of facts. programmer(carl). programmer(john). programmer(linus). A fact can contain a list of terms enclosed between parens (much like ...
by AGS
Nov 16, 2014 10:25
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 11607

Re: A lexical analyzer generator for FreeBASIC

I tried the new version and got an error when generating xml code. The message I am getting looks like this Unable to load language plug-in 'xml': No module named xml.etree.cElementTree I checked the library.zip you provided (I am guessing that whatever Python packages poodle uses must be in the pac...
by AGS
Nov 04, 2014 8:15
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 11607

Re: A lexical analyzer generator for FreeBASIC

I found an interesting optimization that can be performed using a small program that operates on lexicalanalyzer.bas. The optimization has to do with replacing the code representing a part of the state machine with a smaller piece of code. It operates on states in the state machine that are -final; ...
by AGS
Nov 04, 2014 7:30
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 11607

Re: A lexical analyzer generator for FreeBASIC

While working on the java grammar \w* would not match enough characters while [a-zA-Z_][a-zA-Z0-9]* would. And there was an issue with the definition for string literals and character literals. The variables I tried to use are part of the grammer definition in the form of comments. I could not use t...
by AGS
Nov 04, 2014 7:26
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 11607

Re: A lexical analyzer generator for FreeBASIC

This post is long overdure. I finished the java grammar weeks ago. And wrote the rest of the messages round about the same time. I just did not get around to posting any of it on the forum. Below you'll find the redone java grammar. I ran into several issues while creating the grammar (more about th...
by AGS
Oct 02, 2014 5:09
Forum: Projects
Topic: h_2_bi.bas, a tool for translating .h files into .bi
Replies: 290
Views: 58643

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

I could not find code in the h2bi package that shows how to deal with platform dependent differences (64bit). On a 64bit version of windows an integer is 32 bits, a long is 32 bits and a long long is 64 bits. On a 64bit version of linux an integer is 32 bits, a long is 64 bits and a long long is 64 ...
by AGS
Aug 31, 2014 8:13
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 11607

Re: A lexical analyzer generator for FreeBASIC

But, Unicode properties are really handy. Luckily, the Unicode consortium published this handy technical report: http://www.unicode.org/reports/tr18/ Which i guess I can treat as a standard. Unluckily, the standard is bananas. In addition to categories, scripts, and blocks, you also have to support...
by AGS
Aug 22, 2014 3:25
Forum: Projects
Topic: A lexical analyzer generator for FreeBASIC
Replies: 50
Views: 11607

Re: A lexical analyzer generator for FreeBASIC

How about unicode aware character classes? The other day I was trying to create a lexer for the Java programming language. Using poodle-lex I found it hard to specify the token identifier. I could have used a bunch of character classes but that would get ugly. You see, an identifier in Java can cons...
by AGS
Aug 02, 2014 3:55
Forum: Projects
Topic: json basic scripting language [update 7/18]
Replies: 40
Views: 5980

Re: json basic scripting language [update 7/18]

I found a couple of things in jsb_lexer.bas that are not bugs but seem out of place. case asc("+"), asc("/"), asc("*"), asc("%"), asc("^") check_quotes() if check1 <> "" then var_or_func(tokens) endif addToken(_MATHOP_,ascii(s[i]),tokens) c...
by AGS
Jul 20, 2014 0:30
Forum: Projects
Topic: json basic scripting language [update 7/18]
Replies: 40
Views: 5980

Re: json basic scripting language [update 7/18]

I've 'found' a way to get a nice execution trace. I use it so I can get a clear view of what is going on when jsb_parser.exe executes. To get a simple trace of the functions executed during execution of jsb_parser: --> compile jsb_parse.bas using fbc -g -pp jsb_parse.bas (preprocessing only) --> ope...

Go to advanced search