-- Copyright (c) 2002-2013, Tim Sheard, Gabor Greif -- OGI School of Science & Engineering, Oregon Health & Science University -- Maseeh College of Engineering, Portland State University -- See LICENSE.txt for details. -- Wed Aug 21 12:06:10 CEST 2013 -- Omega Interpreter: version 1.5.2 module CommentDef(cLine,cStart,cEnd,nestedC) where -- This is a sample CommentDef module. Usually one exists in the -- same directory as the file that imports ParserAll ----------------------------------------------------------- -- In order to do layout, we need to "skip white space" -- We need combinators that compute white space. Thus we -- need to know how comments are formed. These constants -- let us compute a whitespace parser. They fields in -- TokenDef are derived from these definitions -- Haskell Style cStart = "{-" -- (commentStart tokenDef) cEnd = "-}" -- (commentEnd tokenDef) cLine = "--" -- (commentLine tokenDef) nestedC = True -- (nestedComment tokenDef) -- Java Style {- cStart = "/*" cEnd = "*/" cLine = "//" nestedC = True -}