This repo contains code to mirror other repos. It also contains the code that is getting mirrored.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.4 KiB

  1. .. Lark documentation master file, created by
  2. sphinx-quickstart on Sun Aug 16 13:09:41 2020.
  3. You can adapt this file completely to your liking, but it should at least
  4. contain the root `toctree` directive.
  5. Welcome to Lark's documentation!
  6. ================================
  7. .. toctree::
  8. :maxdepth: 2
  9. :hidden:
  10. philosophy
  11. features
  12. parsers
  13. .. toctree::
  14. :maxdepth: 2
  15. :caption: Tutorials & Guides
  16. :hidden:
  17. json_tutorial
  18. how_to_use
  19. how_to_develop
  20. nearley
  21. recipes
  22. .. toctree::
  23. :maxdepth: 2
  24. :caption: Reference
  25. :hidden:
  26. grammar
  27. tree_construction
  28. visitors
  29. classes
  30. Lark is a modern parsing library for Python. Lark can parse any context-free grammar.
  31. Lark provides:
  32. - Advanced grammar language, based on EBNF
  33. - Three parsing algorithms to choose from: Earley, LALR(1) and CYK
  34. - Automatic tree construction, inferred from your grammar
  35. - Fast unicode lexer with regexp support, and automatic line-counting
  36. **Install Lark**:
  37. .. code:: bash
  38. $ pip install lark-parser
  39. **Syntax Highlighting**:
  40. - `Sublime Text & TextMate`_
  41. - `Visual Studio Code`_ (Or install through the vscode plugin system)
  42. - `Intellij & PyCharm`_
  43. .. _Sublime Text & TextMate: https://github.com/lark-parser/lark_syntax
  44. .. _Visual Studio Code: https://github.com/lark-parser/vscode-lark
  45. .. _Intellij & PyCharm: https://github.com/lark-parser/intellij-syntax-highlighting