RagnarGrootKoerkamp / BAPCtools

Tools for developing ICPC-style programming contest problems.
GNU General Public License v3.0
48 stars 18 forks source link

substitute {count} #379

Closed mzuenni closed 2 months ago

mzuenni commented 2 months ago

Fixes #378

mzuenni commented 2 months ago

@thorehusfeldt it seems like the regex is wrong here? A generator is allowed to have {name} (and now) {count} any number of times?

mzuenni commented 2 months ago

can someone proofread my regex? ^^' And changes to the schemas have to be submitted somewhere else too, right?

thorehusfeldt commented 2 months ago

The regex seems to do what we want it to. (I’ve tested a bunch of them now…) You can always write more no-instances in https://github.com/RagnarGrootKoerkamp/BAPCtools/blob/master/test/generator_yaml/bad_generators.yaml ; the CUE schema should then reject them automagically.

The JSON schema indeed has to be submitted to schemastore.org, and that takes typically a few days. (I’ve done this so far.)

mzuenni commented 2 months ago

Can you submit this update again? :)