Here's a simple piece of ada code :
Now, when using the ada95 wordfile from Downloads - Extras - Wordfiles, there are several problems :
1. the 'a' @ line 2 should be displayed like the "string" @ line 3, as stated in /C1 part.
2. the ' of integer'image hasn't the same meaning, and shouldn't lead to corruption of the next lines as it will never be "closed" (remove it and the last 2 lines will look the way they should).
Seeing single quotes need only to be matched for 1 character long expressions, whereas single quotes used to access special attributes of a given type will always be fallowed by a opening parenthesis, as in "type'attribute(", I guess there should be an easy way to fix this. I would be much gratefull if someone fluent with Wordfiles and regular expressions could provide me with the solution.
Code: Select all
with text_io;
procedure proc is
subtype string6 is string(1..6);
achar : character := 'a';
astring : string6 := "string";
begin
text_io.put("toto" & integer'image(10));
null;
end;
1. the 'a' @ line 2 should be displayed like the "string" @ line 3, as stated in /C1 part.
2. the ' of integer'image hasn't the same meaning, and shouldn't lead to corruption of the next lines as it will never be "closed" (remove it and the last 2 lines will look the way they should).
Seeing single quotes need only to be matched for 1 character long expressions, whereas single quotes used to access special attributes of a given type will always be fallowed by a opening parenthesis, as in "type'attribute(", I guess there should be an easy way to fix this. I would be much gratefull if someone fluent with Wordfiles and regular expressions could provide me with the solution.