Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Yab to C converter
#1
Brick 
I know a technique to write a Basic compiler using C or C++ as a backend. Currently the stand-alone executable codes from Yab appear to just link an interpreter to a zipped copy of the source and I think I can do better.

Since BASIC isn't fully structured it'll have to be written using a Switch command in a While loop to act as a state machine. Also, to implement declaration of variables on-the-fly, it will have to be a pass-and-a-half compiler. That's a fancy way to say the compiler will have to write to a header file or so at the same time as the C source that includes it using its preprocessor.

Is there interest? My goal is to have some code written to serve as an example for another BASIC compiler I want to write. I may need help with the Haiku runtimes.
Reply


Messages In This Thread
Yab to C converter - by SamuraiCrow - 10-06-2018, 04:53 AM
RE: Yab to C converter - by bbjimmy - 10-07-2018, 01:42 AM
RE: Yab to C converter - by SamuraiCrow - 12-29-2020, 07:50 AM
RE: Yab to C converter - by SamuraiCrow - 10-11-2018, 03:08 PM
RE: Yab to C converter - by SamuraiCrow - 10-22-2018, 06:32 AM
RE: Yab to C converter - by bbjimmy - 01-15-2021, 02:05 AM
RE: Yab to C converter - by SamuraiCrow - 02-25-2021, 04:43 PM
RE: Yab to C converter - by SamuraiCrow - 02-26-2021, 01:54 PM
RE: Yab to C converter - by lorglas - 02-27-2021, 03:03 AM
RE: Yab to C converter - by SamuraiCrow - 02-27-2021, 07:35 AM
RE: Yab to C converter - by bbjimmy - 02-27-2021, 10:38 AM
RE: Yab to C converter - by SamuraiCrow - 03-10-2021, 02:10 PM
RE: Yab to C converter - by SamuraiCrow - 03-14-2021, 09:36 AM
RE: Yab to C converter - by bbjimmy - 03-15-2021, 12:35 AM
RE: Yab to C converter - by SamuraiCrow - 03-15-2021, 01:55 PM
RE: Yab to C converter - by SamuraiCrow - 03-19-2021, 12:04 AM
RE: Yab to C converter - by bbjimmy - 03-20-2021, 12:12 AM
RE: Yab to C converter - by SamuraiCrow - 03-20-2021, 10:30 AM
RE: Yab to C converter - by bbjimmy - 03-21-2021, 12:59 AM
RE: Yab to C converter - by SamuraiCrow - 03-21-2021, 01:53 AM
RE: Yab to C converter - by SamuraiCrow - 03-25-2021, 09:21 AM
RE: Yab to C converter - by bbjimmy - 03-25-2021, 09:35 AM
RE: Yab to C converter - by SamuraiCrow - 03-28-2021, 05:07 AM
RE: Yab to C converter - by bbjimmy - 03-28-2021, 05:36 AM
RE: Yab to C converter - by SamuraiCrow - 03-30-2021, 05:54 AM
RE: Yab to C converter - by bbjimmy - 03-30-2021, 10:12 AM
RE: Yab to C converter - by SamuraiCrow - 03-31-2021, 09:26 AM
RE: Yab to C converter - by SamuraiCrow - 04-08-2021, 04:07 AM
RE: Yab to C converter - by bbjimmy - 04-09-2021, 03:05 AM
RE: Yab to C converter - by SamuraiCrow - 04-09-2021, 07:58 AM
RE: Yab to C converter - by SamuraiCrow - 04-13-2021, 12:05 PM
RE: Yab to C converter - by SamuraiCrow - 04-17-2021, 01:10 PM
RE: Yab to C converter - by bbjimmy - 04-17-2021, 11:43 PM
RE: Yab to C converter - by SamuraiCrow - 04-22-2021, 12:26 PM
RE: Yab to C converter - by SamuraiCrow - 04-30-2021, 08:44 PM
RE: Yab to C converter - by lorglas - 05-01-2021, 05:38 AM
RE: Yab to C converter - by bbjimmy - 05-02-2021, 01:58 AM
RE: Yab to C converter - by SamuraiCrow - 05-02-2021, 01:55 PM
RE: Yab to C converter - by SamuraiCrow - 05-06-2021, 01:03 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)
Free Web Hosting