d: add an example

* examples/d/calc.test, examples/d/calc.y, examples/d/local.mk:
This commit is contained in:
Akim Demaille
2018-11-30 08:17:57 +01:00
parent 0ebcae4a54
commit f15382f7d7
6 changed files with 227 additions and 3 deletions

View File

@@ -176,7 +176,7 @@ read_signed_integer (]AT_YYLEX_FORMALS[)
]AT_YYLEX_PROTOTYPE[
{
int c;
/* Skip current token, then white spaces. */
/* Skip white spaces. */
do
{
]AT_LOCATION_IF(
@@ -186,7 +186,7 @@ read_signed_integer (]AT_YYLEX_FORMALS[)
}
while ((c = get_char (]AT_YYLEX_ARGS[)) == ' ' || c == '\t');
/* process numbers */
/* Process numbers */
if (c == '.' || isdigit (c))
{
unget_char (]AT_YYLEX_PRE_ARGS[ c);