Recent Posts

Pages: 1 ... 4 5 [6] 7 8 ... 10
51
Tutorials and articles / Re: Luiji's Tiny BASIC Compiler
« Last post by Cybermonkey on August 31, 2019, 10:15:12 AM »
Here's the link to github:
https://github.com/Luiji/TinyBASIC-C
52
Tutorials and articles / Luiji's Tiny BASIC Compiler
« Last post by Aurel on August 30, 2019, 05:21:30 PM »
i JUST FOUND THIS THING ON GITHUB
i just copy/paste cod to Falcon IDE and voila ..
it is compiled ..
this tiny basic compiler is interesting just in a 900 lines of C code
53
Code and examples / Re: Multiplication with all decimal digits
« Last post by Aurel on August 30, 2019, 05:02:28 PM »
well i connot found that iBASIC but i found Ecma55
but it looks that is not the same ,,,ecma use line numbers and this one not
and iBASIC looking more modern?
54
Code and examples / Re: Multiplication with all decimal digits
« Last post by Galileo on August 30, 2019, 08:09:07 AM »
iBASIC is an outdated interpreter developed by a spanish programmer. Slow, with many bugs but operational. It is interesting to try to write code that overcomes its limitations and takes advantage of its qualities.

Code: [Select]
window TITLE "All Digits Multiplication Galileo mod of B+ 25/01/2019"

'// Display all multiplications of two numbers such that,
'   between the multiplicants and the result are represented once and only once each digit in the decimal system.
'// Developed in Yabasic by Galileo, 01/2019
' iBASIC conversion of Galileo, 08/2019 (http://ibasic.arredemo.org/download.htm)

FOR a = 1 TO 99
    FOR b = 1 TO 9999
        IF call(haveAllDigits(TRIM$(STR$(a)) + TRIM$(STR$(b)) + TRIM$(STR$(a * b)))) = true AND a < b THEN PRINT a; "*"; b; "="; a * b
    NEXT
NEXT

input chr$(10)+"Press ENTER to exit",a$
end

procedure haveAllDigits (in a$) returns r
    la = LEN(a$)
    IF la <> 10 THEN endproc
    allDigits$ = "0123456789"
    FOR i = 1 TO la
        p = INSTR(allDigits$, a$[i])
        IF p THEN allDigits$[p] = "" ELSE endproc
    NEXT
    r = true
ENDproc
55
Community news and announcements / Re: MasmBasic
« Last post by Aurel on August 26, 2019, 01:32:09 PM »
no i don't have
i have things written in o2
but then i can use o2 assembly even i think that is not fast as masm
and of course i don't know assembly programming
in first place i am just wondering...ok ?
56
Community news and announcements / Re: MasmBasic
« Last post by jj2007 on August 26, 2019, 12:59:23 PM »
Hi Aurel,

MasmBasic is strong on strings (but a bit weak on numbers). So yes, a fast tokeniser would be possible.

With Recall somefile, some$() you load your source into a string array, then you need to parse each line for labels, keywords, arguments etc.

Instr() is your friend. And many more functions; besides, you can use plain assembler, too. These functions are really, really fast, about twice as fast as equivalent C code.

Do you have an example of a source using your interpreted language?
57
Community news and announcements / Re: MasmBasic
« Last post by Aurel on August 26, 2019, 11:09:15 AM »
Quote
Case-sensitive sorts are now over 20% faster

that sounds great JJ
now
i am wondering is it possible on reletive easy way to made fast tokenizer or maybe
even complete interpreter using MASM + MasmBasic to one standalone exe?
what you think about that?
58
SmallBASIC / Re: Android update
« Last post by johnno56 on August 26, 2019, 06:55:31 AM »
Installed SB om Samsung Galaxy Tab A and took if for a spin through the online menu...
Shuffleboard and VJ's fractal gave it a real workout. Still working through the list, apart from the previous programs, all seems to be going well... I will let you know if I have any errors or difficulties... Cool.
59
SmallBASIC / Re: Android update
« Last post by B+ on August 25, 2019, 05:59:53 PM »
I have spread the word of your announcement to QB64 forum. Some there have expressed great interest in an Android Basic.
60
SmallBASIC / Android update
« Last post by chrisws on August 25, 2019, 12:41:32 AM »
Just published android version 0.12.16. This hopefully fixes most of the stability issues when using Chromebooks.
Pages: 1 ... 4 5 [6] 7 8 ... 10