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

Allow definable keyword prefix #97

Closed
youreperfect opened this issue Jun 24, 2019 · 3 comments
Closed

Allow definable keyword prefix #97

youreperfect opened this issue Jun 24, 2019 · 3 comments

Comments

@youreperfect
Copy link

This is a feature request, the current version is 1.3

I would like to have a keyword slash magic variable similar to:
QB_KEYWORD_PREFIX

setting this magic variable to a string would change the way the new keywords added in QB64 are named.

So currently you have:
PRINT _AXIS(a)

With this feature you could have:

QB_KEYWORD_PREFIX = ""
PRINT AXIS(a)

or

QB_KEYWORD_PREFIX = "QB64_"
PRINT QB64_AXIS(a)

The first example could be a way for people who don't like the underscores to remove them.
The second example could be used by larger projects that may use leading underscore naming in their own code (ie for pseudo-private functions and variables) or large projects where keeping track where a function or variable is defined is useful.

I presume the convention would be to define this at the top of the script (though I'm not sure if that sould be compiler-enforced).

@youreperfect
Copy link
Author

After thinking about it some more I think its ok to close this as "wontfix" personally.

@FellippeHeitor
Copy link
Collaborator

Let's just let it sink a bit more :-)

@FellippeHeitor
Copy link
Collaborator

Moved to https://github.com/QB64Team/qb64

mkilgore pushed a commit to mkilgore/qb64 that referenced this issue Apr 18, 2022
Minimal terminal features for *nix systems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants