Commit graph

16 commits

Author SHA1 Message Date
Dennis
b289b6a6dc
Refactor use of Loc/SourceLoc (#20785) 2025-01-26 14:06:14 +01:00
Walter Bright
a99a3894be
add __rvalue(expression) builtin (#17050) 2024-12-15 12:13:28 -08:00
Adam D. Ruppe
d8dcb940ab
Enhanced version of dip1036 implementation (#15715)
This implements the Enhanced Interpolated Expression Sequence proposal:

i"" or iq{} or q`` with a $(expression) in the middle are converted to a tuple of druntime types for future processing by library code.
2024-01-19 22:21:40 -08:00
Walter Bright
8fd1beb3a2
resurrect hex string literals (#15393) 2023-09-01 16:30:55 +02:00
Iain Buclaw
0325bdcb9d Merge remote-tracking branch 'upstream/stable' into merge_stable 2023-05-01 17:22:00 +00:00
Teodor Dutu
1db1ba87fd
Translate _d_arraycatnTX to a template (#14550)
This brings the following changes:
- Improves the existing template `_d_arraycatnTX`, to now concatenates
both arrays and single elements
- Changes the lowerings to `_d_arraycatT` to use the new template
- Moves the lowering logic to `_d_arraycatnTX` to expressionsem.d
- Adds a new field to `CatExp` called `lowering` to store the template
  lowering
- Removes the old non-template `_d_arraycatnTX` and `_d_arraycatT` hooks
- Moves `test19688.d` from `runnable/` to `compilable/` until
https://issues.dlang.org/show_bug.cgi?id=23408 is fixed

Signed-off-by: Teodor Dutu <teodor.dutu@gmail.com>
2023-04-28 10:33:48 +03:00
Dennis
dbabffbe5f
Deprecate invalid # tokens in q{} strings (#15002) 2023-04-06 17:03:04 +03:00
Walter Bright
5a79fff38f
fix Issue 23014 - importC: static thread-locals do not work (#15069) 2023-04-04 13:15:58 +03:00
Walter Bright
a986508ed0 add CompileEnv to lexer 2023-03-06 10:59:32 +01:00
Dennis Korpel
0f4cd1d35f Deduplicate lexer unittest code 2023-02-28 09:23:03 +01:00
Walter Bright
49dec45f3c
add errorsink.d, an abstract interface to error messages (#14906) 2023-02-26 15:08:59 -08:00
Walter Bright
300ba0c0b8
ImportC: add __check(assign-expression) extension (#14026) 2023-02-07 12:57:43 +02:00
Walter Bright
14fd150a87
ImportC better error message for __int128 (#14797) 2023-01-09 14:20:46 -08:00
Walter Bright
a852b8ec82 extricate location.d into its own file 2022-12-25 06:32:05 +01:00
Ate Eskola
a658f02da9
Fix security issue 22495 (#14538)
Fix security issue 22495 - unicode bidirectional controls should be forbidden.
2022-10-29 06:05:31 +08:00
Iain Buclaw
6374bb87b7 Move dmd files into compiler/ 2022-07-09 18:53:07 +02:00