perl6 / Pugs.hs

(ARCHIVE) Raku User's Golfing System in Haskell
84 stars 17 forks source link

Pugs multiline comments #32

Closed stasoid closed 5 years ago

stasoid commented 5 years ago

Can someone please tell how to introduce multiline comment in Pugs? Perl6 embedded comment doesn't work:

#`(
fdsd
)
say 123

There is multiLineComment in Lexer.hs, so I am assuming it supports some kind of multiline comments, although I can't figure out which one (I don't know Haskell).

zoffixznet commented 5 years ago

(on an off chance that you're just trying to use Perl 6 rather than specifically its Pugs implementation, note that there hasn't been any commits in this repo since mid-2015 and the compiler that fully supports Perl 6 is currently Rakudo https://rakudo.org/ )

stasoid commented 5 years ago

@zoffixznet Yes, I am aware of that.

stasoid commented 5 years ago

Pugs multiline comments differ from modern Perl6 embedded comments in two ways: no backtick after # and multiline comment must not start at start of the line. So this doesn't work:

#(
fdsd
)
say 123

but this works:

 #(
fdsd
)
say 123