1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/openharmony-arkcompiler_ets_frontend

 / Детали:

[ArkTS][Frontend] Design and implement proof-of-concept of multiple error reporting in Parser

Предстоит сделать
Владелец
Создано  
26.11.2024

Description

For each case of ThrowSyntaxError,

  • add the error to the log
  • move to an appropriate position in the parser's stack, by returning special error codes from the intermediate functions. How far to back up has to be decided individually case by case.
  • move to an appropriate position in the input stream of tokens. Again, how far to move forward (or backward!) has to be decided on a case by case basis.

Example

Let's say, that POC on the following code sample:

class TESTCLASS {
     function bar(): void {}
     let asd: number = 2;
}    
  • produce more than one error message
  • output some AST dump with --dump-ast option enabled

Task source

Internal issue #18636.

Комментарий (0)

GitLife Service Account Задача создана
GitLife Service Account добавлено
 
waiting_for_assign
label.
Развернуть журнал операций

Вход Перед тем как оставить комментарий

Статус
Ответственный
Контрольная точка
Pull Requests
Связанные запросы на слияние могут быть закрыты после их объединения
Ветки
Дата начала   -   Крайний срок
-
Закрепить/Открепить
Приоритет
Участники(1)
1
https://api.gitlife.ru/oschina-mirror/openharmony-arkcompiler_ets_frontend.git
git@api.gitlife.ru:oschina-mirror/openharmony-arkcompiler_ets_frontend.git
oschina-mirror
openharmony-arkcompiler_ets_frontend
openharmony-arkcompiler_ets_frontend