8 ms·
First you need a parser, since the rust parser can't parse everything that is valid in python and it excludes whitespace. After it has been parsed in an valid
by stop50 2y ago
First you need a parser, since the rust parser can't parse everything that is valid in python and it excludes whitespace.
After it has been parsed in an valid manner, simple scripts can be converted to rust. types that require lifetimes, pointers and generics will be much harder.
- nothrowaways 2y agoI was thinking about rewriting the rust compiler to take python syntax?
- zahlman 2y agoPython syntax simply doesn't describe all the concepts in the Rust language, or vice-versa.