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

stb_c_lexer.h: STB_C_LEX_C_IDENTIFIERS macro definition is not used. #1703

Open
kevreco opened this issue Oct 10, 2024 · 0 comments
Open

stb_c_lexer.h: STB_C_LEX_C_IDENTIFIERS macro definition is not used. #1703

kevreco opened this issue Oct 10, 2024 · 0 comments

Comments

@kevreco
Copy link

kevreco commented Oct 10, 2024

STB_C_LEX_C_IDENTIFIERS is defined with a Y but I can't see it used anywhere.

#define STB_C_LEX_C_IDENTIFIERS     Y   //  "[_a-zA-Z][_a-zA-Z0-9]*"               CLEX_id

There are other non-used macro definition but there are mentioned in the documentation:

// Status:
//     - haven't tested compiling as C++
//     - haven't tested the float parsing path
//     - haven't tested the non-default-config paths (e.g. non-stdlib)
//     - only tested default-config paths by eyeballing output of self-parse
//
//     - haven't implemented multiline strings
//     - haven't implemented octal/hex character constants
//     - haven't implemented support for unicode CLEX_char
//     - need to expand error reporting so you don't just get "CLEX_parse_error"

I might miss something but since it appeared to be a bit odd I created this issue.

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

1 participant