can I revive this question? How to import [the compiler parser 
module](https://nim-lang.org/docs/intern.html#the-compiler-s-architecture) and 
its procs in nim 2.0? E.g. 
[parseString()](https://nim-lang.org/docs/compiler/parser.html#parseString%2Cstring%2CIdentCache%2CConfigRef%2Cstring%2Cint%2CErrorHandler)
 seems to be the right thing to parse a string into an AST. Is it possible to 
do something like:
    
    
    import parser
    
    let
      code_string = "echo \"Hello world!\""
    
    let
      code_ast = parseString(code_string)
    
    echo code_ast
    
    
    Run

The compiler cannot find the parser module:
    
    
    $ nim c -r parse_nimcode.nim
    /.../parse_nimcode.nim(1, 8) Error: cannot open file: parser
    
    
    Run

Is it under some intern/compilertools/parser ?

Reply via email to