We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Грамматики можно показывать как на http://json.org/ . Например
REGION_CITY_SHORT_GRAMMAR = grammar( 'г', '.', is_capitalized(True) ) REGION_TYPE_BEFORE_GRAMMAR = grammar( gram('Geo/Type'), is_capitalized(True) ) REGION_TYPE_AFTER_GRAMMAR = grammar( is_capitalized(True), gram('Geo/Type') ) REGION_GRAMMAR = or_( REGION_CITY_SHORT_GRAMMAR, REGION_TYPE_BEFORE_GRAMMAR, REGION_TYPE_AFTER_GRAMMAR )
TITLE_GRAMMAR = grammar( gram('L-QUOTE'), not_(gram('QUOTE')).repeatable(), gram('R-QUOTE'), ) TYPE_TITLE = grammar( gram('Item/Type'), TITLE_GRAMMAR )
Есть библиотека https://github.com/tabatkins/railroad-diagrams с реализаций на Питоне. Будет полезно при работе в Jupyter для отладки. Можно делать супер документацию для Наташи
The text was updated successfully, but these errors were encountered:
На практике представления в виде обычных граммикит оказалось достаточно
SIZE -> KEY VALUE KEY -> 'р' '.' | 'размер' VALUE -> in_(...)
Sorry, something went wrong.
No branches or pull requests
Грамматики можно показывать как на http://json.org/ . Например
Есть библиотека https://github.com/tabatkins/railroad-diagrams с реализаций на Питоне. Будет полезно при работе в Jupyter для отладки. Можно делать супер документацию для Наташи
The text was updated successfully, but these errors were encountered: