这来自在线 Ada 参考手册: http: //www.adaic.org/resources/add_content/standards/05rm/RM.pdf (第 2.3 节)
A decimal_literal is a numeric_literal in the conventional decimal notation (that is, the base is ten).
Syntax
decimal_literal ::= numeral [.numeral] [exponent]
**numeral ::= digit {[underline] digit}**
exponent ::= E [+] numeral | E – numeral
digit ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
An exponent for an integer literal shall not have a minus sign.
Static Semantics
**An underline character in a numeric_literal does not affect its meaning.** The letter E of an exponent can be
written either in lower case or in upper case, with the same meaning.
如果我做
my_literal ::= 123_456;
下划线(下划线)是什么意思?它说它不影响意思。那它是干什么用的?我相信有一个简单的答案,但阅读和重新阅读这篇文章并没有帮助我。