]> git.corax.cc Git - ccc/log
ccc
5 years agoparser: Implement parsing of inclusive-or-expression, exclusive-or-expression, and...
Matthias Kruk [Sun, 5 Jul 2020 08:58:38 +0000 (17:58 +0900)]
parser: Implement parsing of inclusive-or-expression, exclusive-or-expression, and-expression, and equality-expression grammar constructs

5 years agolex: Fix lexing of xor operators
Matthias Kruk [Sun, 5 Jul 2020 08:48:59 +0000 (17:48 +0900)]
lex: Fix lexing of xor operators

5 years agoparser: Implement parsing of logical-or-expression grammar constructs; add prototypes...
Matthias Kruk [Sun, 5 Jul 2020 08:30:18 +0000 (17:30 +0900)]
parser: Implement parsing of logical-or-expression grammar constructs; add prototypes for parser functions

5 years agoparser: Implement parsing of cast-expression and conditional-expression grammar types
Matthias Kruk [Sun, 5 Jul 2020 08:14:46 +0000 (17:14 +0900)]
parser: Implement parsing of cast-expression and conditional-expression grammar types

5 years agoparser: Add type-name grammar type
Matthias Kruk [Sun, 5 Jul 2020 08:14:06 +0000 (17:14 +0900)]
parser: Add type-name grammar type

5 years agoparser: Implement parsing of assignment expressions
Matthias Kruk [Sun, 5 Jul 2020 07:28:46 +0000 (16:28 +0900)]
parser: Implement parsing of assignment expressions

5 years agoparser: Add various grammatical types and allocator functions
Matthias Kruk [Sun, 5 Jul 2020 07:28:25 +0000 (16:28 +0900)]
parser: Add various grammatical types and allocator functions

5 years agoparser: Implement parsing of strings, identifiers, and primary expressions
Matthias Kruk [Sun, 5 Jul 2020 05:57:33 +0000 (14:57 +0900)]
parser: Implement parsing of strings, identifiers, and primary expressions

5 years agolex: Return wide strings and wide character literals as one token
Matthias Kruk [Sun, 5 Jul 2020 05:38:07 +0000 (14:38 +0900)]
lex: Return wide strings and wide character literals as one token

5 years agoparser: Implement parsing of integer, character, and floating point constants
Matthias Kruk [Sat, 4 Jul 2020 08:50:22 +0000 (17:50 +0900)]
parser: Implement parsing of integer, character, and floating point constants

5 years agolex: Add token type for floating pointer literals and parse them correctly
Matthias Kruk [Sat, 4 Jul 2020 08:49:10 +0000 (17:49 +0900)]
lex: Add token type for floating pointer literals and parse them correctly

5 years agoparser: Implement parsing of declaration-specifiers
Matthias Kruk [Sat, 20 Jun 2020 07:47:02 +0000 (16:47 +0900)]
parser: Implement parsing of declaration-specifiers

5 years agotoken: Add token_value() method to get the lexeme of a token
Matthias Kruk [Sat, 20 Jun 2020 07:46:02 +0000 (16:46 +0900)]
token: Add token_value() method to get the lexeme of a token

5 years agoparser: Move structs that describe the C grammar to grammar.h and their methods to...
Matthias Kruk [Sun, 7 Jun 2020 23:11:31 +0000 (08:11 +0900)]
parser: Move structs that describe the C grammar to grammar.h and their methods to grammar.c

5 years agolex: Add file attribute to tokens to identify the file a token came from
Matthias Kruk [Sun, 7 Jun 2020 09:53:28 +0000 (18:53 +0900)]
lex: Add file attribute to tokens to identify the file a token came from

5 years agoparser: Implement parsing of translation units, external declarations, storage class...
Matthias Kruk [Sun, 7 Jun 2020 09:52:36 +0000 (18:52 +0900)]
parser: Implement parsing of translation units, external declarations, storage class specifiers, type specifiers, and type qualifiers

5 years agoparser: Implement parsing of type qualifiers
Matthias Kruk [Sun, 7 Jun 2020 04:03:39 +0000 (13:03 +0900)]
parser: Implement parsing of type qualifiers

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