D parsing
    Jacob Carlborg 
    doob at me.com
       
    Wed Nov  6 00:21:56 PST 2013
    
    
  
On 2013-11-05 18:23, Martin Nowak wrote:
> Sounds promising.
> I think I found a way to implement a D REPL but are lacking a reliable
> way to classify code snippets (expressions, declarations, statements)
> and get introduced symbol names.
> Do you think it will be able to handle that (performance is not an issue)?
>
> If there is no parser I either have to use a crude heuristic
> or I could use machine learning to classify the code based on token
> histograms (after all we have at least 2 D lexers).
There's a parser available, DScanner: 
https://github.com/Hackerpilot/Dscanner. It's part of DCD, autocomplete 
daemon.
-- 
/Jacob Carlborg
    
    
More information about the Digitalmars-d
mailing list