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

Syntax error raised when variable name is "ret" #18

Open
tuannguyen8961 opened this issue May 22, 2019 · 3 comments
Open

Syntax error raised when variable name is "ret" #18

tuannguyen8961 opened this issue May 22, 2019 · 3 comments

Comments

@tuannguyen8961
Copy link

using a variable name "ret" causes syntax error, such as: int ret

@Kamilcuk
Copy link

The same happens when any variable name is ptr.

@ledzepFan
Copy link

ledzepFan commented Oct 3, 2020

The same happens with func.

void (*func)(void *)

Is this a result of adding support for Apple block code? func is a keyword in Swift I believe.

@ledzepFan
Copy link

ledzepFan commented Oct 3, 2020

Ok, whatever has been reported here appears to be because these identifiers are treated as valid tokens by the lexer and hence once interpreted as such, they would lead to errors obviously.

ret -> RETURNING
ptr -> POINTER
func -> FUNCTION

I believe the issues should be marked as a limitation.

c.f [Code]

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

3 participants