08-08-2023 дата публикации
Номер: CN116560717A
Принадлежит:
The embodiment of the invention provides a configuration language code compiling method and system, and the method comprises the steps: generating a syntax tree based on a configuration language code, and checking the syntax tree, nodes in the syntax tree respectively correspond to a syntax structure in the configuration language code, and the syntax structure comprises an operation object and an operation; obtaining error information, wherein the error information comprises the category and the position of an error occurring in the configuration language code; the error category value nodes are added into the syntax tree based on the positions, then an updated syntax tree is obtained, and the error category value nodes correspond to the categories; an updated configuration language code is obtained based on the updated syntax tree, and the position, corresponding to the position, in the updated configuration language code contains an error prompt text corresponding to the error category ...
Подробнее