This is about adding Pascal templates to coctus generate-stub.
[x] Added preprocessor for forward declarations (@ellnix)
[x] Added Pascal templates.
[x] Test it against the CoC database.
[ ] (Optional) Support WriteJoin commands.
Also:
[x] Added new language parameters (copies of TypeToken) (This should require a renaming in the future.)
[x] Allow for case dependent keyword comparison in VariableNameOptions.
[x] Fix (tera) jinja error not being properly displayed.
[ ] (Optional) At the moment index idents are PascalCase in declarations but not in their respective loops (this will require case casting the ALPHABET). This is visual only, the code works just fine.
String inside loopline - Note that this (intentionally) crashes the template of loopline since type_parsers doesn't contain an entry for String.
From teststub.py:
pascal: {'n_skipped': 16, 'n_checked': 2810, 'n_errors': 22}
From which:
1 is gameloop not supported (wontfix).
9 are duplicated identifiers (wontfix).
12 are from strings inside looplines (these will crash in any JVM language, so I issued a bug report hoping they will invalidate this construct and fix the relevant clashes)
This is about adding Pascal templates to
coctus generate-stub
.WriteJoin
commands.Also:
TypeToken
) (This should require a renaming in the future.)VariableNameOptions
.ALPHABET
). This is visual only, the code works just fine.Errors that also happen in CG:
type_parsers
doesn't contain an entry forString
.From
teststub.py
:pascal: {'n_skipped': 16, 'n_checked': 2810, 'n_errors': 22}
From which: