Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7417c33

Browse files
committed
Update special constants specification.
Minor update to the specification of special constants: * a binary integer requires an '0b' prefix * sequences of digits and underscores should neither start nor end with an underscore.These correspond to the support in SML/NJ and MLton. In particular,they rule out 0wx_FF_FFwhere an underscore immediately follows the prefix (much as anunderscore cannot immediately precede or follow "." or "e" in a realconstant).
1 parentfeef547 commit7417c33

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

‎definition/syncor.tex‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ \subsection{Special constants}
2626
a non-empty sequence of decimal digits
2727
$\boxml{0},\twoldots,\boxml{9}$ and the underscore (\wildpat) that
2828
neither starts nor ends with an underscore.
29-
An\index{6.2} {\sl integer constant} is an optional negation symbol
29+
An\index{6.2} {\sl integer constant (in decimal notation)} is an optional negation symbol
3030
(\tttilde) followed by a positive integer constant. }{%
3131
An\index{6.2} {\sl integer constant (in
3232
decimal notation)} is an optional negation symbol (\tttilde)
@@ -36,25 +36,25 @@ \subsection{Special constants}
3636
hexadecimal notation)} is an optional negation symbol
3737
followed by\boxml{0x} followed by a non-empty sequence of
3838
hexadecimal digits$\boxml{0},\twoldots,\boxml{9}$
39-
and$\boxml{a},\twoldots,\boxml{f}$\ADD{, and the underscore thatdoes not
40-
end with an underscore}.
39+
and$\boxml{a},\twoldots,\boxml{f}$\ADD{ and the underscore thatneither starts nor ends
40+
ends with an underscore}.
4141
($\boxml{A},\twoldots,\boxml{F}$
4242
may be used as alternatives for$\boxml{a},\twoldots,\boxml{f}$.)
4343
\ADD{
4444
An {\sl integer constant (in binary notation)} is an optional negation
45-
symbol followed by a non-empty sequence of binary digits\boxml{0},\boxml{1},
46-
and the underscore thatdoes not end with an underscore.
45+
symbol followed by\boxml{0b} followed bya non-empty sequence of binary digits$\boxml{0},\boxml{1}$
46+
and the underscore thatneither starts nor ends with an underscore.
4747
}
4848

4949
A {\sl word constant (in decimal notation)} is\boxml{0w} followed
50-
by a non-empty sequence of decimal digits\ADD{ and the underscore thatdoes not
51-
end with an underscore}.
50+
by a non-empty sequence of decimal digits\ADD{ and the underscore thatneither starts nor
51+
ends with an underscore}.
5252
A {\sl word constant
5353
(in hexadecimal notation)} is\boxml{0wx} followed by a non-empty
54-
sequence of hexadecimal digits\ADD{ and the underscore thatdoes not
55-
end with an underscore}.
54+
sequence of hexadecimal digits\ADD{ and the underscore thatneither starts nor
55+
ends with an underscore}.
5656
\ADD{A word constant (in binary notation) is\boxml{0wb} followed by a non-empty
57-
sequence of binary digits\boxml{0},\boxml{1},and the underscorenot ending with
57+
sequence of binary digits and the underscorethat neither starts nor ends with
5858
an underscore.}
5959

6060
A {\sl real constant} is an integer constant in decimal notation,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp