Closed lefouvert closed 7 months ago
Should work now with 0.5.2.4
version : 0.5.2.5 (Ckan)
Hi, I encounter similar behavior in an other case : gitreport::commentparsing.to2
const Sexagesimal: float = 60.0
pub fn hms(timespan: float) -> (hour: int, minute: int, second: float) = {
return (
hour: truncate(timespan / Sexagesimal**2).to_int, // foo
minute: truncate((timespan % Sexagesimal**2) / Sexagesimal).to_int, // bar
second: timespan % Sexagesimal // foobar
)
}
give this error :
Rebooted in 00:00:02.4082456 ERROR: [gitreport\commentparsing.to2(36, 57)] Parsing gitreport\commentparsing.to2(36, 57): Expected ')'
Edit Maybe this behavior could also come with large array manualy instancied row by row and... commented. Dunno, I didn't test it, but I mention it just in case...
This should work now in 0.5.2.6 ... though there are probably still some places left where comments do not work as intended.
Don't worry, it's expected. Parser rules are a nightmare (I know about, I built two for KSP1 KOS : one to minify my code, and the second one to serialize JSON files, holding various kind of parameters, and able to deserialize them into a lexicon), not about complexity, but about completeness. If I catch a another one, I'll let you know :)
This issue is stale because it has been open for 60 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Hi ! First, many thanks for this mod ❤️.
Here the code :
This code give this error message :
However, if we uncomment the lower function block and comment the upper function block, everything is fine. I suspect the parser is confused with inline comment in ongoing instruction.
I assume it was not an expected behavior.
Have a great day !
Edit : typo