[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Patches for Dlang support] modifications in examples
From: |
Adela Vais |
Subject: |
[Patches for Dlang support] modifications in examples |
Date: |
Sat, 16 Jan 2021 23:19:00 +0200 |
Hello!
>From Dlang v2.095.0 onwards, the std.conv.parse function, used in the calc
example, reports the number of consumed characters, so I modifed the calc
example to use it.
I want to demonstrate the new code version because currently, the D example
makes a copy of the input, calls parse (which consumes the input), and then
iterates through the copy up until it has the same start character as the
input. It is not the most efficient way to do this task, but it's the only
correct method I could find way back in September.
Because it is a new addition to the language (Jan 1st 2021), I want to
support both (before and after v2.095.0) versions of the code.
I also made 2 small modifications for the examples: I removed the Value
value from the Lexer class in the calc example and did style fix for
paranthesis in the simple example.
Adela
0001-d-examples-simple-stylefix-for-paranthesis.patch
Description: Binary data
0002-d-examples-calc-demonstrate-the-use-of-std.conv.pars.patch
Description: Binary data
0003-d-examples-calc-remove-Value-from-Lexer.patch
Description: Binary data
- [Patches for Dlang support] modifications in examples,
Adela Vais <=