summary refs log tree commit diff stats
path: root/compiler/ast.nim
Commit message (Collapse)AuthorAgeFilesLines
* Initial implementation of the parseExpr, parseStmt, getAst macro routines:Zahary Karadjov2011-09-201-20/+25
| | | | | | | | | | | | | | | | | | proc parseExpr*(s: string) : expr {.magic: "ParseExprToAst".} ## Compiles the passed string to its AST representation ## Expects a single expression proc parseStmt*(s: string) : stmt {.magic: "ParseStmtToAst".} ## Compiles the passed string to its AST representation ## Expects one or more statements proc getAst*(macroOrTemplate: expr): expr {.magic: "ExpandMacroToAst".} ## Obtains the AST nodes returned from a macro or template invocation ## example: ## macro FooMacro() = ## var ast = getAst(BarTemplate()) Handling of the node.toYaml magic moved to the evaluation engine.
* Added AST introspection routines as a part of the standard libraryZahary Karadjov2011-09-201-1/+1
|
* bugfixes for generics; new threads implementation still brokenAraq2011-09-201-2/+6
|
* finally got rid of nkPassAsOpenArrayAraq2011-08-161-1/+0
|
* added system.slurp for easy embedding of resourcesAraq2011-08-101-1/+1
|
* support for C++ code generation; importcpp and importobjc pragmasAraq2011-08-071-5/+7
|
* preparation for new 'is' operator; breaks bootstrapping again, sorry (use ↵Araq2011-07-311-1/+2
| | | | generated C code)
* bugfix: 'final' not passed to genericAraq2011-07-291-11/+9
|
* bugfixes; step one for 'var T' as return type supportAraq2011-07-281-3/+3
|
* bugfix: 'set' overloadable; further steps for multi threading supportAraq2011-07-081-4/+5
|
* importCompilerProc pragma introduced because the hacks for typeinfo.nim did ↵Araq2011-06-271-1/+2
| | | | not suffice
* zipfiles compiles again; added system.shallowCopyAraq2011-06-201-1/+1
|
* intsets are now a proper module and part of the stdlibAraq2011-06-141-141/+3
|
* first (non working) implementation of global thread analysisAraq2011-06-131-1/+2
|
* got rid of nstrtabs and nhashes modulesAraq2011-06-101-1/+1
|
* Added typeinfo moduledom962011-06-091-1/+1
|
* newStringOfCap implemented and used to optimize some procsAraq2011-05-081-1/+3
|
* cleaned up the tests; fixes #30; fixes #26Araq2011-05-011-1/+1
|
* const table supportAraq2011-04-291-0/+4
|
* big repo cleanupAraq2011-04-121-0/+1137