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

[Lexer] Operators need space before writing the next token #65

Open
wesuRage opened this issue Dec 20, 2024 · 0 comments
Open

[Lexer] Operators need space before writing the next token #65

wesuRage opened this issue Dec 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@wesuRage
Copy link
Contributor

the code bellow throws an lexer error:

extern int writeln(string) ; 
extern string strrep(string, int) ; 

def main() -> int: 
  writeln("oi" * 20);

  return 0; 
end; 

It's needed to write it like this for it to work:

extern int writeln( string) ; 
extern string strrep( string, int) ; 

def main( ) -> int: 
  writeln( "oi" * 20 ) ;

  return 0; 
end; 
@wesuRage wesuRage added the bug Something isn't working label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant