aboutsummaryrefslogtreecommitdiff
path: root/src-self-hosted/tokenizer.zig
AgeCommit message (Collapse)Author
2018-02-09self hosted compiler: move tokenization and parsing to std libAndrew Kelley
2018-01-25syntax: functions require return type. remove `->`Andrew Kelley
The purpose of this is: * Only one way to do things * Changing a function with void return type to return a possible error becomes a 1 character change, subtly encouraging people to use errors. See #632 Here are some imperfect sed commands for performing this update: remove arrow: ``` sed -i 's/\(\bfn\b.*\)-> /\1/g' $(find . -name "*.zig") ``` add void: ``` sed -i 's/\(\bfn\b.*\))\s*{/\1) void {/g' $(find ../ -name "*.zig") ``` Some cleanup may be necessary, but this should do the bulk of the work.
2018-01-22add new kind of test: generating .h files. and moreAndrew Kelley
* docgen supports obj_err code kind for demonstrating errors without explicit test cases * add documentation for `extern enum`. See #367 * remove coldcc keyword and add @setIsCold. See #661 * add compile errors for non-extern struct, enum, unions in function signatures * add .h file generation for extern struct, enum, unions
2018-01-07replace `a %% b` with `a catch b`Andrew Kelley
See #632 better fits the convention of using keywords for control flow
2018-01-03add building the self hosted compiler to the main test suiteAndrew Kelley
2017-12-26move utf8 parsing to stdJosh Wolfe
source files no longer need to end with a newline
2017-12-23[self-hosted] source must be valid utf8. see #663Josh Wolfe
2017-12-23[self-hosted] tokenizer error for ascii control codesJosh Wolfe
2017-12-23source files must end with newlineJosh Wolfe
2017-12-17roughly parsing infix operatorsJosh Wolfe
2017-12-11self-hosted: refactor into multiple filesAndrew Kelley
add return expression add number literal