Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for petcat as a compiler target #135

Closed
gitjeff2 opened this issue Aug 7, 2021 · 1 comment
Closed

Add support for petcat as a compiler target #135

gitjeff2 opened this issue Aug 7, 2021 · 1 comment

Comments

@gitjeff2
Copy link

gitjeff2 commented Aug 7, 2021

First off, this is a fantastic project! I see in #82 you're working towards adding additional platforms. Would it be possible to add VICE's petcat as a compiler target eventually? Obviously, instead of converting XC-BASIC's intermediate representation into ASM it would output tokenized BASIC instead. This would allow users to write and maintain well structured BASIC, via XC-BASIC, but keep their code interpreted via the C64's BASIC interpeter.

C64list already does basically this, but it's closed source and Windows only. It would be very nice to have a multi-platform open source tool that has this feature.

@neilsf
Copy link
Owner

neilsf commented Aug 8, 2021

Nice idea but XC=BASIC can't do that. It wasn't designed to output BASIC code and the language is not compatible with CBM BASIC. What you're talking about - if I understand well - is a structured BASIC language that is somehow translated to CBM BASIC. For example a local variable is given another name so it doesn't conflict global variables, etc.

@neilsf neilsf closed this as completed Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants