Supposing one would like to create some custom tool for nim or improving the IDE support for Nim in other platforms (ie JetBrains intellij), is there a standalone API for creating a Lexer and/or a Parser for Nim? I'm sure there is, given that the Nim Compiler is written in Nim itself, but my question is more about knowing if the API is loosely decoupled and so easily integrating in a custom application.
Furthermore looking at the GSOC 2015 proposal i think that the integration of nim with the intellij platform is a nice project and i've been tempted to start working to the proposed nimfmt tool