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

Ada.Text_IO. missing in a template #5

Closed
zertovitch opened this issue May 27, 2023 · 1 comment
Closed

Ada.Text_IO. missing in a template #5

zertovitch opened this issue May 27, 2023 · 1 comment
Labels

Comments

@zertovitch
Copy link

On testing aflex_1.6.0_b3c21d99 for P2Ada, I get:
pascal_io.adb:108:7: error: "Put_Line" is not visible

...which is solved by adding a heading "Ada.Text_IO" at line 288 of template_manager-templates.ads
L_165 : aliased constant String := " Put_Line (""Input line """;

...or better (I guess) at line 125 of templates/body-io.adb

@stcarrez stcarrez added the bug label May 27, 2023
@stcarrez
Copy link
Collaborator

Thanks! I've tried to cleanup the generated code to make it more Ada 95 friendly but I was not able to verify completely the aflex -E option.

Yes, the fix must be made in templates/body-io.adb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants