53 lines
517 B
Plaintext
53 lines
517 B
Plaintext
# Block comments
|
|
|
|
/*
|
|
* Block comments
|
|
*/
|
|
|
|
/* Comment with asterisks **/
|
|
|
|
==>
|
|
|
|
SourceFile(
|
|
BlockComment,
|
|
BlockComment)
|
|
|
|
|
|
# Nested block comments
|
|
|
|
/* /* double nested */ */
|
|
|
|
// ---
|
|
|
|
/*/*/* triple nested */*/*/
|
|
|
|
// ---
|
|
|
|
/****
|
|
/****
|
|
nested with extra stars
|
|
****/
|
|
****/
|
|
|
|
// ---
|
|
|
|
==>
|
|
|
|
SourceFile(
|
|
BlockComment(BlockComment),
|
|
LineComment,
|
|
BlockComment(BlockComment(BlockComment)),
|
|
LineComment,
|
|
BlockComment(BlockComment),
|
|
LineComment)
|
|
|
|
|
|
# Line comments
|
|
|
|
// Comment
|
|
|
|
==>
|
|
|
|
SourceFile(
|
|
LineComment)
|