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

'true' vs true ? #12

Open
gtoal opened this issue Aug 22, 2023 · 2 comments
Open

'true' vs true ? #12

gtoal opened this issue Aug 22, 2023 · 2 comments

Comments

@gtoal
Copy link

gtoal commented Aug 22, 2023

This came up when trying to compile the x8algol compiler. Here's a minimal version of the problem:

'begin'
  'integer' fred, true;
  'Boolean' jim;
  true := 42;
  fred := true;
  jim := 'true';
'end';

This gives a compile error. Variable true seems to be clashing with keyword true.

@gtoal
Copy link
Author

gtoal commented Aug 22, 2023

Addendum: It appears to happen only when using 'Boolean' rather than 'boolean'. It may be my fault from the change I made when you added the capitalised Boolean - I updated just the operator_e file rather than downloading the entire compiler again - if your update changed some other part of the compiler in addition, then I may not have updated everything necessary?

@JvanKatwijk
Copy link
Owner

JvanKatwijk commented Aug 23, 2023 via email

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
@JvanKatwijk @gtoal and others