syntax for multiline comments
See original GitHub issuewhat would be the grammar to parse expressions like (Delphi):
(* this is a multiline comment
// containing a single line comment
{ and possibly another
multiline comment, and so on recursively}
*)
thanks ! (I’ll share the Delphi grammar as soon as it works)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Python Comments - W3Schools
Multi Line Comments. Python does not really have a syntax for multi line comments. To add a multiline comment you could insert a...
Read more >How to Comment Out Multiple Lines in Python - freeCodeCamp
To comment out multiple lines in Python, you can prepend each line with a hash ( # ). # print("Hello world") # print("Hello...
Read more >Multiline comments in Python - GeeksforGeeks
Python multi-line comment is a piece of text enclosed in a delimiter (“””) on each end of the comment. Again there should be...
Read more >/* Multi-line comments */ - Progress Software
Allows you to add explanatory text to code. The comment begins with /* and ends with */. This type of comment can wrap...
Read more >How do I create multiline comments in Python? - Stack Overflow
Python does have a multiline string/comment syntax in the sense that unless used as docstrings, multiline strings generate no bytecode ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, just want to feedback back that defining grammar in a python file should be done as a raw string was a gotcha to me. Perhaps it might be helpful to add it in the examples or something.
Anyhow, lark is a joy to use, thanks for maintaining it 😃
@mcondarelli If you’re defining the grammar in a Python file, you should define it as a raw string: