Skip to content

Commit 0e650c5

Browse files
committed
implement DIP1027 - Easy String Interpolation
1 parent 842de6e commit 0e650c5

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

compiler/src/dmd/tokens.d

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ import dmd.common.outbuffer;
2323
import dmd.root.rmem;
2424
import dmd.root.utf;
2525

26+
/* if you change this, remember to update:
27+
compiler/test/unit/lexer/location_offset.d
28+
compiler/src/tests/cxxfrontend.cc
29+
*/
30+
2631
enum TOK : ubyte
2732
{
2833
reserved,

compiler/src/tests/cxxfrontend.cc

+22
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/tests/cxxfrontend.c, _cxxfrontend.c)
99
*/
1010

11+
#include <stdio.h>
12+
1113
#include "root/array.h"
1214
#include "root/bitarray.h"
1315
#include "root/complex_t.h"
@@ -1704,27 +1706,47 @@ void test_backend(FuncDeclaration *f, Type *t)
17041706

17051707
int main(int argc, char **argv)
17061708
{
1709+
fprintf(stderr, "cxxfrontend.cc starting test\n");
17071710
frontend_init();
17081711

1712+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17091713
test_tokens();
1714+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17101715
test_compiler_globals();
1716+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17111717
test_visitors();
1718+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17121719
test_semantic();
1720+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17131721
test_skip_importall();
1722+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17141723
test_expression();
1724+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17151725
test_target();
1726+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17161727
test_emplace();
1728+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17171729
test_parameters();
1730+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17181731
test_types();
1732+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17191733
test_location();
1734+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17201735
test_array();
1736+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17211737
test_outbuffer();
1738+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17221739
test_cppmangle();
1740+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17231741
test_module();
1742+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17241743
test_optional();
1744+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17251745
test_filename();
17261746

1747+
fprintf(stderr, "cxxfrontend.cc %d \n", __LINE__);
17271748
frontend_term();
17281749

1750+
fprintf(stderr, "cxxfrontend.cc exit\n");
17291751
return 0;
17301752
}

compiler/test/unit/lexer/location_offset.d

+1
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ enum ignoreTokens
502502
int128Literal,
503503
uns128Literal,
504504
halt,
505+
istring,
505506
tuple,
506507
error,
507508
int128,

0 commit comments

Comments
 (0)