Skip to content

БАГ: парсер sbdl неправильно парсит 3 и более выражения в секции УПОРЯДОЧИТЬ #309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
artbear opened this issue Mar 19, 2025 · 0 comments · May be fixed by #310

Comments

@artbear
Copy link
Contributor

artbear commented Mar 19, 2025

@nixel2007 @theshadowco я правильно понимаю, что в бсл-парсере ошибка для УПОРЯДОЧИТЬ ПО ?

// упорядочивание
orderBy: ORDER (BY_EN | PO_RU) orders+=ordersByExpession (COMMA orders+=ordersByExpession)?; // вот тут не знак вопроса должен быть. а *
ordersByExpession: expression (direction=(ASC | DESC) | (hierarchy=HIERARCHY direction=DESC?))?;

не знак вопроса должен быть. а звездочка *

т.е. сейчас правильно работает для 2х выражений в Упорядочить
но 3 и более выражений не считываются

проверил и девелоп и мастер, там так и написано, со знаком вопроса
https://github.com/1c-syntax/bsl-parser/blob/develop/src/main/antlr/SDBLParser.g4#L143C1-L146C1

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant