Commit graph

1537 commits

Author SHA1 Message Date
Olivier Goffart
f88d856990 Put the diagnostic printing in the compiler lib
(with an option so we don't drag the codemap dependencies for the proc_macro case)
2020-05-12 17:42:25 +02:00
Olivier Goffart
638c445cf9 Support for rendering sub-elements with proper offset 2020-05-12 15:38:50 +02:00
Olivier Goffart
6e794bec18 Have a small Expression AST 2020-05-12 14:54:32 +02:00
Olivier Goffart
7c2f40da90 Generator for the rust API 2020-05-12 11:43:29 +02:00
Olivier Goffart
3936272384 Move the build_array_helper in the generator module 2020-05-12 09:47:54 +02:00
Olivier Goffart
8bcd4b1115 CI: build with all features 2020-05-12 08:23:51 +02:00
Olivier Goffart
dbada7977e Fix C++ build 2020-05-12 08:03:18 +02:00
Olivier Goffart
b9cd725f78 Allow to use proc_macro tokens
And report errors
2020-05-11 22:24:28 +02:00
Olivier Goffart
f3deea066b Make the C++ output a feature 2020-05-11 20:21:12 +02:00
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
bd039be10c Introduce the datastructure to allow models and repeater 2020-05-11 10:10:25 +02:00
Olivier Goffart
cc170d1d76 More comments 2020-05-11 09:00:21 +02:00
Olivier Goffart
a9690a2fa3 Add a bunch of comments 2020-05-07 14:39:54 +02:00
Olivier Goffart
2f16517291 Put the CompoentType inside the class in the generated code
and start working on safe wrapper
2020-05-07 10:36:23 +02:00
Olivier Goffart
bdaf14ae23 Parse numbers 2020-05-07 09:06:58 +02:00
Olivier Goffart
ecf1599d35 Silent warnings 2020-05-07 08:20:44 +02:00
Olivier Goffart
b128a848e2 Parse quoted string 2020-05-06 18:24:30 +02:00
Olivier Goffart
05624c68ee Add some properties in the Rectangle 2020-05-06 17:53:42 +02:00
Olivier Goffart
3a541ec1eb Handle children elements 2020-05-06 16:43:04 +02:00
Olivier Goffart
b2b57887e2 add sixtyfps-cpp draft 2020-05-06 12:52:31 +02:00
Olivier Goffart
30646068c0 Fix the CodeStatement::from_node 2020-05-05 18:36:24 +02:00
Olivier Goffart
da31466e64 Ident the C++ code properly 2020-05-05 18:31:00 +02:00
Olivier Goffart
acccb33c8c Lower and generate some C++ 2020-05-05 18:31:00 +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
Simon Hausmann
a4b69b23c0 Fix contact info in Cargo manifests 2020-05-04 11:54:45 +02:00
Simon Hausmann
c6553d007e Initial commit laying out the structure 2020-05-04 10:49:58 +02:00