Pyparsing:skip comments that start with // and end with \n | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Pyparsing:skip comments that start with // and end with \n

guys is there any way to do this?(I'll update my pattern code for parsing as soon as someone tell me is there any way to access this q&a from my laptop (already I'm using the app on my phone)) ------------------------------------------------------ what I am trying to parse:(want if someone add a comment to below code my parsing don't give an error) module xor_gate(input i1, input i2, output out); wire mid1 = i1 & ~i2; wire mid2 = ~i1 & i1; out = mid1 | mid2; endmodule and here is what I have tried(anyway if you think reading this code is hard it is not necessary to read it): https://code.sololearn.com/cezO1IY1Mw07/#py

10th Jan 2018, 3:01 PM
Mirana
4 Answers
+ 12
Login to your account on the website using the credentials you used on your phone (Gmail perhaps) https://www.sololearn.com
10th Jan 2018, 2:14 PM
jay
jay - avatar
+ 12
O.o Can you save that in code playground and link it here, it will be easier for people the help that way. btw, I have no idea, just trying to help you get help.
10th Jan 2018, 2:44 PM
jay
jay - avatar
+ 12
It's okay, it is really easy if you on a Web browser. Click the code playground button, Click create a new code, Select the language Python (it will say HTML/CSS/JS by default) Paste your code and Click Save Copy and paste the URL in your question details
10th Jan 2018, 2:54 PM
jay
jay - avatar
+ 1
sorry guys but I'm completely new in q&a even don't know how to do that :|
10th Jan 2018, 2:50 PM
Mirana