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.

113 lines
2.5 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. .. _Sublime Text & TextMate: https://github.com/lark-parser/lark_syntax
  48. .. _Visual Studio Code: https://github.com/lark-parser/vscode-lark
  49. .. _Intellij & PyCharm: https://github.com/lark-parser/intellij-syntax-highlighting
  50. Resources
  51. ---------
  52. - :doc:`philosophy`
  53. - :doc:`features`
  54. - `Examples`_
  55. - `Online IDE`_
  56. - Tutorials
  57. - `How to write a DSL`_ - Implements a toy LOGO-like language with
  58. an interpreter
  59. - :doc:`json_tutorial` - Teaches you how to use Lark
  60. - Unofficial
  61. - `Program Synthesis is Possible`_ - Creates a DSL for Z3
  62. - Guides
  63. - :doc:`how_to_use`
  64. - :doc:`how_to_develop`
  65. - Reference
  66. - :doc:`grammar`
  67. - :doc:`tree_construction`
  68. - :doc:`visitors`
  69. - :doc:`classes`
  70. - :doc:`nearley`
  71. - `Cheatsheet (PDF)`_
  72. - Discussion
  73. - `Gitter`_
  74. - `Forum (Google Groups)`_
  75. .. _Examples: https://github.com/lark-parser/lark/tree/master/examples
  76. .. _Online IDE: https://lark-parser.github.io/lark/ide/app.html
  77. .. _How to write a DSL: http://blog.erezsh.com/how-to-write-a-dsl-in-python-with-lark/
  78. .. _Program Synthesis is Possible: https://www.cs.cornell.edu/~asampson/blog/minisynth.html
  79. .. _Cheatsheet (PDF): _static/lark_cheatsheet.pdf
  80. .. _Gitter: https://gitter.im/lark-parser/Lobby
  81. .. _Forum (Google Groups): https://groups.google.com/forum/#!forum/lark-parser