aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
AgeCommit message (Collapse)Author
2016-11-26IR: add inline gotoAndrew Kelley
2016-11-26IR: fix parsing while loopAndrew Kelley
2016-11-26IR: support inline switchAndrew Kelley
2016-11-24IR: generating a switch statementAndrew Kelley
2016-11-17remove AST cloning code and add AST render for while loopsAndrew Kelley
2016-11-17IR: pointers to constants don't copy dataAndrew Kelley
2016-11-03add concept of inline for, inline while, inline varAndrew Kelley
2016-10-16IR working for if statementsAndrew Kelley
2016-09-30empty function compiles successfully with IRAndrew Kelley
2016-09-28remove compiler directivesAndrew Kelley
* add `setFnTest`, `setFnVisible`, `setFnStaticEval`, `setFnNoInline` builtin functions to replace previous directive functionality * add `coldcc` and `nakedcc` as keywords which can be used as part of a function prototype. * `setDebugSafety` builtin can be used to set debug safety features at a per block scope level. * closes #169
2016-09-26add this keyword refers to thing in immediate scopeAndrew Kelley
See #169
2016-09-19use size_t for indexesAndrew Kelley
protect against incorrect copies in debug mode
2016-09-08ability to infer parameter typesAndrew Kelley
2016-08-08add zeroes valueAndrew Kelley
2016-08-04new multiline string syntaxAndrew Kelley
This patch also moves a bunch of the parser code into the tokenizer. Closes #162.
2016-07-27explicit wrapping integer operationsAndrew Kelley
instead of wrapping integer types closes #159
2016-07-26std: improve rand implementation and APIAndrew Kelley
2016-07-25inline parametersAndrew Kelley
This replaces the current generic syntax for functions and replaces it with the concept of inline parameters. This paves the way for the "all structs anonymous" proposal. Closes #151.
2016-07-17rename NodeTypeStructDecl to NodeTypeContainerDeclAndrew Kelley
2016-05-18inline assembly: allow empty output listAndrew Kelley
2016-05-18fix offset map for inline assembly error messagesAndrew Kelley
2016-05-18fix raw string literal crashAndrew Kelley
2016-05-09fix ability to use previous generic params andAndrew Kelley
add error when `%return` shows up in a function with incorrect return type
2016-05-09support variable declarations in structsAndrew Kelley
See #22
2016-05-07support generic data structuresAndrew Kelley
See #22
2016-05-07better array concatenation semanticsAndrew Kelley
closes #87
2016-05-03support maybe destructuring into a pointer variableAndrew Kelley
2016-05-01implement string escapesAndrew Kelley
2016-04-28add array multiplication operatorAndrew Kelley
2016-04-28ability to specify body of an extern functionAndrew Kelley
closes #101
2016-04-24add skeleton for union supportAndrew Kelley
2016-04-22add syntax to allow symbols to have arbitrary strings as namesAndrew Kelley
2016-04-20for loop: add ability to get pointer to elem varAndrew Kelley
see #51
2016-04-19add optional continue expression to while loopAndrew Kelley
closes #139
2016-04-14fix crash with generic function and implicit castAndrew Kelley
2016-04-13fix evaluating generic functions in wrong contextAndrew Kelley
2016-04-08support hex escapes in string literalsAndrew Kelley
2016-04-08fix crash when passing empty string to functionAndrew Kelley
2016-04-07fix segfault in generic functionsAndrew Kelley
See #22
2016-04-07support multiple generic function instancesAndrew Kelley
See #22
2016-04-06support simple generic functionsAndrew Kelley
2016-04-03add multiline string literalAndrew Kelley
and make multiple lines in normal string literals an error
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-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-11fix undefined LONG_LONG_MAX compilation errorSerge Paquet
2016-02-06rhs of ?? and %% can be any expressionAndrew Kelley
2016-02-06parser recognizes %return in a prefix op expressionAndrew Kelley
also defer only valid at statement level now see #110
2016-02-06simple unconditional defer supportAndrew Kelley
See #110
2016-02-05parsing code for defer and moreAndrew Kelley
* disable goto and label support see #44 * refactor the way block contexts work
2016-02-05update for loop syntaxAndrew Kelley
it matches more closely the %% binary operator syntax See #51