Re: dmt: Python-like indentation in D programming language

2022-04-23 Thread Witold Baryluk via Digitalmars-d-announce
On Friday, 1 April 2022 at 12:39:15 UTC, Marcone wrote: Your dmt.d not compile for exe in Windows with last version of dmd 2.099.0 dmt.d(71): Deprecation: Usage of the `body` keyword is deprecated. Use `do` instead. dmt.d(125): Deprecation: Usage of the `body` keyword is deprecated. Use `do`

Re: dmt: Python-like indentation in D programming language

2022-04-01 Thread Marcone via Digitalmars-d-announce
I changed the body to do, and added pure @nogc and your program compiled. But I did not like it. I didn't find the program useful. I highly doubt this program will please D programmers. I have a request. Please make a version of your program that just makes the use of the semicolon (;) optional

Re: dmt: Python-like indentation in D programming language

2022-04-01 Thread Marcone via Digitalmars-d-announce
Your dmt.d not compile for exe in Windows with last version of dmd 2.099.0 dmt.d(71): Deprecation: Usage of the `body` keyword is deprecated. Use `do` instead. dmt.d(125): Deprecation: Usage of the `body` keyword is deprecated. Use `do` instead. dmt.d(206): Deprecation: Usage of the `body` key

Re: dmt: Python-like indentation in D programming language

2022-03-29 Thread Abdulhaq via Digitalmars-d-announce
On Monday, 28 March 2022 at 22:22:18 UTC, mw wrote: Just FYI: I found a working Python PEG grammar file here https://github.com/we-like-parsers/pegen/blob/main/data/python.gram it will be a great helper to to trans-compile Python to D. E.g. to try parse Python code and execute the parsed co

Re: dmt: Python-like indentation in D programming language

2022-03-28 Thread mw via Digitalmars-d-announce
On Wednesday, 17 November 2021 at 17:23:14 UTC, Witold Baryluk wrote: I'm wondering if it can translate existing Python code (e.g with a bit py3 type annotations) to D code, then it may attract much more users. No. And not planned. Sparkling some `auto` here and there manually, makes it quite

Re: dmt: Python-like indentation in D programming language

2021-11-20 Thread uranuz via Digitalmars-d-announce
On Wednesday, 17 November 2021 at 11:00:46 UTC, JN wrote: On Tuesday, 16 November 2021 at 21:58:24 UTC, Witold Baryluk wrote: Hi, `dmt` is an old project of mine from around year 2006. I ported it recently from D1 to D2, and added some extra features and support for extra keywords, and fixed

Re: dmt: Python-like indentation in D programming language

2021-11-19 Thread Witold Baryluk via Digitalmars-d-announce
On Friday, 19 November 2021 at 10:03:00 UTC, bauss wrote: Isn't def redundant in this since D already declares types then you can assume if it's not enum, template, mixin template, class, struct or union then it must be a function if it also end with (...): Like: ```d int foo():

Re: dmt: Python-like indentation in D programming language

2021-11-19 Thread bauss via Digitalmars-d-announce
On Tuesday, 16 November 2021 at 21:58:24 UTC, Witold Baryluk wrote: Hi, `dmt` is an old project of mine from around year 2006. I ported it recently from D1 to D2, and added some extra features and support for extra keywords, and fixed few bugs here and there. `dmt` is a converter (offline or

Re: dmt: Python-like indentation in D programming language

2021-11-17 Thread Witold Baryluk via Digitalmars-d-announce
On Wednesday, 17 November 2021 at 08:28:07 UTC, mw wrote: To be frank, by just Python syntax alone I wasn't sure how many people want to try it. There are good reasons for it. 1) It enforces indentations, so code is harder to screw up. Also because you need to indent, it often is easier to

Re: dmt: Python-like indentation in D programming language

2021-11-17 Thread JN via Digitalmars-d-announce
On Tuesday, 16 November 2021 at 21:58:24 UTC, Witold Baryluk wrote: Hi, `dmt` is an old project of mine from around year 2006. I ported it recently from D1 to D2, and added some extra features and support for extra keywords, and fixed few bugs here and there. `dmt` is a converter (offline or

Re: dmt: Python-like indentation in D programming language

2021-11-17 Thread mw via Digitalmars-d-announce
On Tuesday, 16 November 2021 at 21:58:24 UTC, Witold Baryluk wrote: Hi, `dmt` is an old project of mine from around year 2006. I ported it recently from D1 to D2, and added some extra features and support for extra keywords, and fixed few bugs here and there. `dmt` is a converter (offline or

Re: dmt: Python-like indentation in D programming language

2021-11-16 Thread Imperatorn via Digitalmars-d-announce
On Tuesday, 16 November 2021 at 21:58:24 UTC, Witold Baryluk wrote: Hi, `dmt` is an old project of mine from around year 2006. I ported it recently from D1 to D2, and added some extra features and support for extra keywords, and fixed few bugs here and there. [...] Nice, remember to put it

dmt: Python-like indentation in D programming language

2021-11-16 Thread Witold Baryluk via Digitalmars-d-announce
Hi, `dmt` is an old project of mine from around year 2006. I ported it recently from D1 to D2, and added some extra features and support for extra keywords, and fixed few bugs here and there. `dmt` is a converter (offline or auto-invoking compiler after conversion) from Python-like indention