You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make semicolon (';') optional in cases when statement end is known by program text context.
Lets make semicolon optional when not needed anyway..
Example
proceduresemicolonis
i, n : natural
c : constant positive := 123functionfunc (p : integer) return integer
functionfunc (p : integer) return integer isbeginreturn p + 5 + c
endbeginnull-- comment
n := 3 ; n := c + 5-- semicolon needed
i := func (n)
end semicolon
However, you should supply more information on your issues, so that we can at least understand what you are proposing. Could you please fill the description with a small explanation of the problem and potential solution ?
This looks like this is out of the scope of what we want to accomplish, and more in the scope of a more in-depth syntax revisit of Ada, so we'll be closing this.
Proposal
Make semicolon (';') optional in cases when statement end is known by program text context.
Lets make semicolon optional when not needed anyway..
Example
Parser outputs
Outputs from GNAT compiler:
This indicates that the semicolon is redundant in many if not most cases.
Rationale
The semicolon (';') was introduced to help the parser.
Implementation
This proposal is expected to be easy to implement in the compiler parser.
The text was updated successfully, but these errors were encountered: