You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is that when you find /* you increment a counter and decrement it when you find */. But the result of the parser can differ if the counter is back to zero. And if you reach EOF while the counter is positive then everything is a comment, or you can return an error.
hi,
I was looking for example of parsing comments.
Single line
// And this will be a comment
And multiline
The text was updated successfully, but these errors were encountered: