r/Basic • • Aug 07 '23

Why call it BASIC Anywhere Machine?

/r/BASICAnywhereMachine/comments/15kqzad/why_call_it_basic_anywhere_machine/
1 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/CharlieJV13 Aug 09 '23

I have a hard time with c# for whatever reason, but I'm betting your code has some wee treasures in it (at the very least can inspire some wee treasures).

Even if I have trouble making heads/tails of anything in there, without a doubt others will be in there like the crowds waiting outside the stores on Black Friday.

Me trying to convert C# code to javascript, that could be priceless entertainment...

2

u/JQB45 Aug 09 '23

I use fairly simple oop and follow the kiss methodology so most of it should be fairly easy to read since you have C like language experience.

All of it is done except the backend emit class.

The original goal was to emit x86 Assembler language, which would be human readable, ready for assembly with NASM or hand edited before final assembly, as this is more of a system level development language.

The compiler was designed so that only keywords were included in the language specification. Traditional BASIC routines like string and math routines would be libraries to be added after the fact, similar to C.

1

u/JQB45 Aug 09 '23

I use fairly simple oop and follow the kiss methodology so most of it should be fairly easy to read since you have C like language experience.

All of it is done except the backend emit class.

The original goal was to emit x86 Assembler language, which would be human readable, ready for assembly with NASM or hand edited before final assembly, as this is more of a system level development language.

The compiler was designed so that only keywords were included in the language specification. Traditional BASIC routines like string and math routines would be libraries to be added after the fact, similar to C.