Skip to content

Commit

Permalink
Fixing l suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
llvm-beanz committed Apr 30, 2024
1 parent 84b3672 commit 563a069
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions specs/language/lex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@
\texttt{u} or \texttt{U} & \texttt{uint32\_t} & \texttt{uint32\_t} \\
& \texttt{uint64\_t} & \texttt{uint64\_t} \\
\hline
\texttt{l} or \texttt{L} & \texttt{uint32\_t} & \texttt{uint32\_t} \\
& \texttt{uint64\_t} & \texttt{uint64\_t} \\
\texttt{l} or \texttt{L} & \texttt{int64\_t} & \texttt{int64\_t} \\
& & \texttt{uint64\_t} \\
\hline
Both \texttt{u} or \texttt{U} & \texttt{uint64\_t} & \texttt{uint64\_t} \\
and \texttt{l} or \texttt{L} & & \\
Expand All @@ -314,6 +314,9 @@
type in the corresponding list, the integer literal has no type and the program
is ill-formed.

\p An implementation may support the integer suffixes \texttt{ll} and
\texttt{ull} as equivalent to \texttt{l} and \texttt{ul} respectively.

%\Sub{Character Literals}{Lex.Literal.Char}

%\Sub{Floating-point Literals}{Lex.Literal.Float}
Expand Down

0 comments on commit 563a069

Please sign in to comment.