Picolab/pico-engine

Need a better parser/compile error message for mis-placed bindings/assignments

オープン

#595 opened on 2022/03/30

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (10 件のフォーク)auto 404
help wanted

Repository metrics

Stars
 (51 個のスター)
PR merge metrics
 (PR metrics pending)

説明

KRL doesn't allow name/value bindings except in a prelude or in a function definition. When these are tried in other places, the error messages are unclear/misleading and sometimes don't fail until JavaScript compilation. Need specific examples. But, see also, issue #528, which makes a case for such bindings in an every action block.

KRL doesn't allow entity variable assignments anywhere but in a postlude. When one is attempted in a defaction the error message seen is "ParseError: Expected '('" which is not helpful.

コントリビューターガイド