Commit graph

17 commits

Author SHA1 Message Date
Olivier Goffart
6cf327166e Parser: add support for parentheses in expressions 2020-05-11 11:19:57 +02:00
Olivier Goffart
1673f12652 Implement for loop in the parser
Not yet implemented in the object tree
2020-05-11 10:46:42 +02:00
Olivier Goffart
a9690a2fa3 Add a bunch of comments 2020-05-07 14:39:54 +02:00
Olivier Goffart
bdaf14ae23 Parse numbers 2020-05-07 09:06:58 +02:00
Olivier Goffart
b128a848e2 Parse quoted string 2020-05-06 18:24:30 +02:00
Olivier Goffart
3a541ec1eb Handle children elements 2020-05-06 16:43:04 +02:00
Olivier Goffart
f0b5a9fee9 Use the parser_test only in test mode
So it does not have to be published on crate.io
2020-05-05 16:37:49 +02:00
Olivier Goffart
cd670d6012 Compiler tests 2020-05-05 12:43:42 +02:00
Olivier Goffart
3a6d39bfe9 Generate an object tree 2020-05-05 11:18:13 +02:00
Olivier Goffart
b7633f78d6 parse() returns a rowan::SynstaxNode 2020-05-05 09:21:04 +02:00
Olivier Goffart
081310e3ac Use codemap to show diagnostics 2020-05-04 20:14:29 +02:00
Olivier Goffart
684d516fee Small cleanups to get rid of the .0 2020-05-04 19:36:32 +02:00
Olivier Goffart
e76b2e5c0f Use a macro to declare the token so each token is declared next to its regexp 2020-05-04 19:11:58 +02:00
Olivier Goffart
e1b7949864 proc_macro to have parser tests 2020-05-04 17:11:02 +02:00
Olivier Goffart
112613712f Move the actual parsing in its own file 2020-05-04 14:44:34 +02:00
Olivier Goffart
1b69df8087 Parsing: The small example parses 2020-05-04 14:40:32 +02:00
Olivier Goffart
fbf0eebfd5 Draft of the parser 2020-05-04 14:30:05 +02:00