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

errors in compiller #39

Open
golosalex opened this issue Jun 1, 2023 · 1 comment
Open

errors in compiller #39

golosalex opened this issue Jun 1, 2023 · 1 comment

Comments

@golosalex
Copy link

not correct 2d (and more) arrays
return whithout statement not work
errors in lexer:
'\0'
'''
/x11 <- code of char

no empty statement, so for(;;) - not work
bad preprocessor realisation : '#define macros macros' <- endless loop preprocessing when find 'macros' in code
declaration scope - not correct
possible redeclarate variable with same name
not correct declaration specifiers analis : 'long short int' run without problem
incorrect block initialising int arr[2] = {2.0f, 3.0f} <- run whithout cast float to int. it's not correct

no switch
no ellipsis
no goto
incorrect || && logic operators. right hand expressin not run if left ensure logic result '1||2/0' no devision by zero error
constant expression not correct - you need to calc result on your virtual mashine, but you calculate in code.

@golosalex
Copy link
Author

if you interesting in my code for this issues, i can share it by pull request.

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