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.

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