www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Yet another D editor

reply Sergey Gromov <snake.scaly gmail.com> writes:
I wrote a D lexer for Scintilla.  It highlights D better than any editor 
I've tried yet.  It's even better than DCode/Entice, though the 
advantage is somewhat minor.  What it does:

* Recognizes all kinds of D numbers, including hex floats.
* Can recognize errors in many numeric literals.
* Supports all types of D2 strings, including hex strings, delimited 
strings with nesting delimiters, and heredoc strings.
* Recognizes escape sequences in strings, character literals and as 
stand-alone escape strings.
* Recognizes errors in strings like unsupported or incomplete escape 
sequences, invalid chars in hex strings, bad chars in heredoc string 
delimiters, or trailing chars after the end of a delimited string.
* Supports EOL, stream and nesting comments.
* Recognizes DDOC comments.
* Recognizes DDOC section names and macros.
* Recognizes macros lacking a closing bracket.
* Supports code folding.

Probably that's it.  The question is, what do I do with the code?  It's 
probably too small a project to open a page on DSource.  It doesn't use 
any 3rd-party libraries nor a D front-end.  Anybody needs it or wants it 
published?
Sep 19 2008
next sibling parent reply BCS <ao pathlink.com> writes:
Reply to Sergey,

 The question is, what do I do with the code? It's probably too small a
 project to open a page on DSource.
 

send me your dsource username and I'll get you access to scrapple and you can add it there.
Sep 19 2008
parent reply Sergey Gromov <snake.scaly gmail.com> writes:
BCS <ao pathlink.com> wrote:
 Reply to Sergey,
 
 The question is, what do I do with the code? It's probably too small a
 project to open a page on DSource.
 

send me your dsource username and I'll get you access to scrapple and you can add it there.

My username is 'SnakE'. I've also sent you an e-mail earlier but it probably got lost. Thank you.
Sep 20 2008
parent reply BCS <ao pathlink.com> writes:
Reply to Sergey,

 SnakE
 

your in. "Try not to step on toes and all that..." :-b
Sep 22 2008
parent Sergey Gromov <snake.scaly gmail.com> writes:
BCS <ao pathlink.com> wrote:
 Reply to Sergey,
 
 SnakE
 

your in. "Try not to step on toes and all that..." :-b

Thank you very much. Code is uploaded into: http://dsource.org/projects/scrapple/browser/trunk/scilexer There are sources, some instructions, and a DLL compiled for Scintilla/SciTE 1.76 for Windows. Have fun.
Sep 22 2008
prev sibling parent reply BLS <nanali nospam-wanadoo.fr> writes:
Sergey Gromov schrieb:
 I wrote a D lexer for Scintilla.  It highlights D better than any editor 
 I've tried yet.  It's even better than DCode/Entice, though the 
 advantage is somewhat minor.  What it does:
 
 * Recognizes all kinds of D numbers, including hex floats.
 * Can recognize errors in many numeric literals.
 * Supports all types of D2 strings, including hex strings, delimited 
 strings with nesting delimiters, and heredoc strings.
 * Recognizes escape sequences in strings, character literals and as 
 stand-alone escape strings.
 * Recognizes errors in strings like unsupported or incomplete escape 
 sequences, invalid chars in hex strings, bad chars in heredoc string 
 delimiters, or trailing chars after the end of a delimited string.
 * Supports EOL, stream and nesting comments.
 * Recognizes DDOC comments.
 * Recognizes DDOC section names and macros.
 * Recognizes macros lacking a closing bracket.
 * Supports code folding.
 
 Probably that's it.  The question is, what do I do with the code?  It's 
 probably too small a project to open a page on DSource.  It doesn't use 
 any 3rd-party libraries nor a D front-end.  Anybody needs it or wants it 
 published?

WOW, that is already something. IMO The D Lexer should become part of the official Scintilla distribution. A DSource project makes sense. F.I. It would be nice to have your sourses in order to build a DLL. I am very interested to get your sources ASAP. :) Thanks, Bjoern
Sep 20 2008
parent Sergey Gromov <snake.scaly gmail.com> writes:
BLS <nanali nospam-wanadoo.fr> wrote:
 IMO The D Lexer should become part of the official Scintilla distribution.
 A DSource project makes sense. F.I. It would be nice to have your 
 sourses in order to build a DLL. I am very interested to get your 
 sources ASAP. :)
 Thanks, Bjoern

D Lexer *is* a part of the official distribution. However it's probably made out of C++ lexer and lacks support for so many features of D. I'll put the project in scrapples as soon as I get the access.
Sep 20 2008