antlr / grammars-v4

Grammars written for ANTLR v4; expectation that the grammars are free of actions.
MIT License
10.22k stars 3.71k forks source link

Add TypeScript target for Rust #4275

Closed rafed closed 1 month ago

rafed commented 1 month ago

Added TypeScript target for Rust.

I updated desc.xml to test for the quicker files (examples/quick/.rs) even though it parses the long (examples/long/.rs) files (a bit slower though). Let me know if that should be changed.

kaby76 commented 1 month ago

I think the partitioning is fine. The problem with testing is that the time for parsing all input files depends on the OS, hardware, machine load, etc., none of which can be predicted. As long as at least the collection of targets covers the entire set of input files, that's probably the best we can do.

teverett commented 1 month ago

@rafed thanks!