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.

115 lines
2.6 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. :caption: Overview
  10. :hidden:
  11. philosophy
  12. features
  13. parsers
  14. .. toctree::
  15. :maxdepth: 2
  16. :caption: Tutorials & Guides
  17. :hidden:
  18. json_tutorial
  19. how_to_use
  20. how_to_develop
  21. recipes
  22. examples/index
  23. .. toctree::
  24. :maxdepth: 2
  25. :caption: Reference
  26. :hidden:
  27. grammar
  28. tree_construction
  29. classes
  30. visitors
  31. nearley
  32. Lark is a modern parsing library for Python. Lark can parse any context-free grammar.
  33. Lark provides:
  34. - Advanced grammar language, based on EBNF
  35. - Three parsing algorithms to choose from: Earley, LALR(1) and CYK
  36. - Automatic tree construction, inferred from your grammar
  37. - Fast unicode lexer with regexp support, and automatic line-counting
  38. Install Lark
  39. --------------
  40. .. code:: bash
  41. $ pip install lark-parser
  42. Syntax Highlighting
  43. -------------------
  44. - `Sublime Text & TextMate`_
  45. - `Visual Studio Code`_ (Or install through the vscode plugin system)
  46. - `Intellij & PyCharm`_
  47. - `Vim`_
  48. .. _Sublime Text & TextMate: https://github.com/lark-parser/lark_syntax
  49. .. _Visual Studio Code: https://github.com/lark-parser/vscode-lark
  50. .. _Intellij & PyCharm: https://github.com/lark-parser/intellij-syntax-highlighting
  51. .. _Vim: https://github.com/lark-parser/vim-lark-syntax
  52. Resources
  53. ---------
  54. - :doc:`philosophy`
  55. - :doc:`features`
  56. - `Examples`_
  57. - `Online IDE`_
  58. - Tutorials
  59. - `How to write a DSL`_ - Implements a toy LOGO-like language with
  60. an interpreter
  61. - :doc:`json_tutorial` - Teaches you how to use Lark
  62. - Unofficial
  63. - `Program Synthesis is Possible`_ - Creates a DSL for Z3
  64. - Guides
  65. - :doc:`how_to_use`
  66. - :doc:`how_to_develop`
  67. - Reference
  68. - :doc:`grammar`
  69. - :doc:`tree_construction`
  70. - :doc:`visitors`
  71. - :doc:`classes`
  72. - :doc:`nearley`
  73. - `Cheatsheet (PDF)`_
  74. - Discussion
  75. - `Gitter`_
  76. - `Forum (Google Groups)`_
  77. .. _Examples: https://github.com/lark-parser/lark/tree/master/examples
  78. .. _Online IDE: https://lark-parser.github.io/lark/ide/app.html
  79. .. _How to write a DSL: http://blog.erezsh.com/how-to-write-a-dsl-in-python-with-lark/
  80. .. _Program Synthesis is Possible: https://www.cs.cornell.edu/~asampson/blog/minisynth.html
  81. .. _Cheatsheet (PDF): _static/lark_cheatsheet.pdf
  82. .. _Gitter: https://gitter.im/lark-parser/Lobby
  83. .. _Forum (Google Groups): https://groups.google.com/forum/#!forum/lark-parser