GithubHelp home page GithubHelp logo

clean-bbedit's Introduction

Hi there ๐Ÿ‘‹

clean-bbedit's People

Contributors

dvanarkel avatar

Watchers

 avatar  avatar

clean-bbedit's Issues

Char constant '\\' does not syntax colour correctly

eg from scanner module of clean compiler:

ScanChar :: !Input -> (!Token, !Input)
ScanChar input
# (eof, c, input) = ReadChar input // PK: was ReadNormalChar input
| eof = (ErrorToken "End of file inside Char denotation", input)
| c==''' = (CharListToken "", input)
| c=='\' = ScanBSChar 0 ['''] input ScanEndOfChar
= ScanEndOfNoBSChar c input

ScanBSChar :: !Int ![Char] !Input (Int [Char] Input -> (Token, Input)) -> (!Token, !Input)
ScanBSChar n chars input cont
# (eof, c, input) = ReadNormalChar input
| eof = cont n chars input
= case c of
'n' -> cont (n+2) ['n','\':chars] input // (['n','\':chars], n + 2, input)
'r' -> cont (n+2) ['r','\':chars] input // (['r','\':chars], n + 2, input)
'f' -> cont (n+2) ['f','\':chars] input // (['f','\':chars], n + 2, input)
'b' -> to_chars '\b' input
't' -> cont (n+2) ['t','\':chars] input // (['t','\':chars], n + 2, input)
'v' -> to_chars '\v' input
'\' -> cont (n+2) ['\','\':chars] input // (['\','\':chars], n + 2, input)
'"' -> cont (n+2) ['"','\':chars] input // (['"' ,'\':chars], n + 2, input)
''' -> cont (n+2) [''','\':chars] input // ([''','\':chars], n + 2, input)
'x' -> ScanNumChar Hex isHexDigit 2 0 input // max 2 characters
'X' -> ScanNumChar Hex isHexDigit 2 0 input // max 2 characters
'd' -> ScanNumChar Dec isDigit 3 0 input // max 3 characters
'D' -> ScanNumChar Dec isDigit 3 0 input // max 3 characters
'0' -> ScanNumChar Oct IsOct 3 0 input // max 3 characters
c | IsOct c
-> ScanNumChar Oct IsOct 2 (digitToInt c) input // max 2 more characters, 3 including current
-> cont (n+1) [c:chars] input

shows the error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.