aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
AgeCommit message (Collapse)Author
2016-04-13fix evaluating generic functions in wrong contextAndrew Kelley
2016-04-12more eval tests and fix eval call analyze codeAndrew Kelley
2016-04-12add error for dividing by zero in static function evaluationAndrew Kelley
2016-04-12passing all testsAndrew Kelley
2016-04-12eval: ability to eval more thingsAndrew Kelley
2016-04-12compile-time function evaluation of pure functionsAndrew Kelley
2016-04-12add error for unable to infer expression type in if statementsAndrew Kelley
closes #136
2016-04-11unsigned ints implicitly cast to signed ints when they fitAndrew Kelley
also fix #135
2016-04-10add error for accessing empty arrayAndrew Kelley
closes #134
2016-04-10fix crash when casting undefined to sliceAndrew Kelley
also fix crash having to do with runtime allocated stack memory
2016-04-09add error for assigning null to non-nullable pointerAndrew Kelley
closes #133
2016-04-09add @breakpoint()Andrew Kelley
2016-04-09re-introduce gotoAndrew Kelley
see #44
2016-04-09fix debug symbols regression after llvm 3.8.0Andrew Kelley
2016-04-09implement @err_name builtin functionAndrew Kelley
2016-04-08fix gcc compile errorJosh Wolfe
2016-04-08update cat example, refactor stdAndrew Kelley
partial implementation of @err_name
2016-04-07fix gcc compile errorsJosh Wolfe
2016-04-07fix evaluating generic function instance in wrong contextAndrew Kelley
See #22
2016-04-07generic functions use correct type for generic argsAndrew Kelley
See #22
2016-04-07support multiple generic function instancesAndrew Kelley
See #22
2016-04-06add error for gt and lt comparison of invalid typesAndrew Kelley
2016-04-06ability to compare function pointers at compile timeAndrew Kelley
2016-04-06fix generics not using ast cloneAndrew Kelley
2016-04-06support simple generic functionsAndrew Kelley
2016-03-08update to llvm 3.8.0Andrew Kelley
2016-03-01fix detection of @import and @c_import inside fn bodyAndrew Kelley
2016-03-01c_void is provided outside of C importsAndrew Kelley
2016-03-01fix comparison of unsigned integers errorAndrew Kelley
2016-03-01rewrite how importing worksAndrew Kelley
* Introduce the concept of packages. Closes #3 * Add support for error notes. * Introduce `@import` and `@c_import` builtin functions and remove the `import` and `c_import` top level declarations. * Introduce the `use` top level declaration. * Add `--check-unused` parameter to perform semantic analysis and codegen on all top level declarations, not just exported ones and ones referenced by exported ones. * Delete the root export node and add `--library` argument.
2016-02-16back to normal print specifiersAndrew Kelley
disable warnings for format specifiers on mingw since the compiler emits bogus warnings
2016-02-16use PRIuMAX instead of PRIu64 for mingwAndrew Kelley
2016-02-16prepend underscore to non exported functionsAndrew Kelley
to prevent symbol collisions
2016-02-16update bootstrap to work for macos tooAndrew Kelley
* Directives can have arbitrary expressions as parameters * Fix switch statement not generating code sometimes * Rename "main" fn in bootstrap.zig to "zig_user_main" to avoid name collisions * codegen: fix badref when unreachable is last thing in an expression * support #condition directive on exported functions
2016-02-15handle libc include path and libc lib path differentlyAndrew Kelley
2016-02-14parseh: fix __cdecl causing a fn ptr to be double ptrAndrew Kelley
2016-02-13if any c imports fail, don't emit undefined identifier errorsAndrew Kelley
2016-02-13a = b % c uses the types of b and c instead of aAndrew Kelley
2016-02-13parseh: fix branching on undefined memoryAndrew Kelley
2016-02-13add @ctz, @clz and compiler_rt implementationAndrew Kelley
2016-02-12if statement children nodes know if they're compiled outAndrew Kelley
2016-02-12avoid codegening functions never called from conditional compilationAndrew Kelley
2016-02-12add @compile_var("environ")Andrew Kelley
2016-02-11add @compile_var("os") and @compile_var("arch")Andrew Kelley
2016-02-11add compile error for missing enumeration value in switchAndrew Kelley
2016-02-11fix division by 0 crashing compilerAndrew Kelley
closes #99 closes #124 thanks to Michael Patraw for submitting a patch for this.
2016-02-11ability to cross compileAndrew Kelley
hello_libc.zig can produce a windows build
2016-02-09don't create debug type for void arraysAndrew Kelley
2016-02-09if statements can be const expr evaluatedAndrew Kelley
also introduce error for unnecessary if statement but if the condition depends on a compile variable, then the if statement is OK
2016-02-09@const_eval returns poison value for type when it failsAndrew Kelley
resulting in fewer redundant error messages