]> git.corax.cc Git - ccc/log
ccc
5 years agolex: Add token types for keywords lexer unstable
Matthias Kruk [Mon, 1 Jun 2020 01:13:41 +0000 (10:13 +0900)]
lex: Add token types for keywords

5 years agolex: Add functions to the lexer so the tokens can be accessed more flexibly
Matthias Kruk [Sun, 31 May 2020 23:39:06 +0000 (08:39 +0900)]
lex: Add functions to the lexer so the tokens can be accessed more flexibly

5 years agolex: Assign tokens a type during the lexing step
Matthias Kruk [Sun, 31 May 2020 05:53:29 +0000 (14:53 +0900)]
lex: Assign tokens a type during the lexing step

5 years agolex: Clean up the token type
Matthias Kruk [Sun, 31 May 2020 05:51:54 +0000 (14:51 +0900)]
lex: Clean up the token type

5 years agolex: Refactor the tokenizer into a lexer module
Matthias Kruk [Sun, 31 May 2020 04:16:17 +0000 (13:16 +0900)]
lex: Refactor the tokenizer into a lexer module

5 years agoRename tokenize.c to lex.c
Matthias Kruk [Sun, 31 May 2020 03:49:36 +0000 (12:49 +0900)]
Rename tokenize.c to lex.c

5 years agotokenize: Add parser for '->' tokens and make sure the last token is returned even... tokenizer
Matthias Kruk [Sat, 30 May 2020 15:41:10 +0000 (00:41 +0900)]
tokenize: Add parser for '->' tokens and make sure the last token is returned even if the output does not end with a newline

5 years agotokenize: Fix mistaken use of putchar() where putnext() should have been
Matthias Kruk [Sat, 30 May 2020 14:28:27 +0000 (23:28 +0900)]
tokenize: Fix mistaken use of putchar() where putnext() should have been

5 years agotokenize: Fix off-by-one bug in the column number
Matthias Kruk [Sat, 30 May 2020 14:15:06 +0000 (23:15 +0900)]
tokenize: Fix off-by-one bug in the column number

5 years agotokenize: Implement recognition of identifiers, numeric literals, and several operators
Matthias Kruk [Sat, 30 May 2020 09:24:34 +0000 (18:24 +0900)]
tokenize: Implement recognition of identifiers, numeric literals, and several operators

5 years agotokenize: Add token_new_from_char() helper function
Matthias Kruk [Sat, 30 May 2020 09:23:14 +0000 (18:23 +0900)]
tokenize: Add token_new_from_char() helper function

5 years agotokenize: Implement tokenization of bitwise operators, string literals, character...
Matthias Kruk [Fri, 29 May 2020 11:01:53 +0000 (20:01 +0900)]
tokenize: Implement tokenization of bitwise operators, string literals, character literals, and some others

5 years agotokenize: Implement correct tokenization of comments and operators starting with...
Matthias Kruk [Thu, 28 May 2020 00:27:28 +0000 (09:27 +0900)]
tokenize: Implement correct tokenization of comments and operators starting with < and >

5 years agoAdd first attempt at writing a tokenizer
Matthias Kruk [Wed, 27 May 2020 00:34:05 +0000 (09:34 +0900)]
Add first attempt at writing a tokenizer

5 years agodoc: Fix error in the tokenizer chart
Matthias Kruk [Wed, 27 May 2020 00:32:22 +0000 (09:32 +0900)]
doc: Fix error in the tokenizer chart

5 years agodoc: Add graph of the tokenizer automaton master
Matthias Kruk [Tue, 26 May 2020 11:06:47 +0000 (20:06 +0900)]
doc: Add graph of the tokenizer automaton