亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? unlit.hs

?? Haskell是一種程序語言。特別的
?? HS
字號:
-----------------------------------------------------------------------------
-- |
-- Module      :  Unlit
-- Copyright   :  Haskell Committee
-- 
-- Maintainer  :  Malcolm Wallace <Malcolm.Wallace@cs.york.ac.uk>
-- Stability   :  Stable
-- Portability :  All
--
-- Remove the "literal" markups from a Haskell source file, including
-- ">", "\begin{code}, \end{code}", and "#"
--
-- Part of the following code is from
-- "Report on the Programming Language Haskell",
--   version 1.2, appendix C.
-----------------------------------------------------------------------------

module Unlit(unlit,plain) where

import Char

-- exports:

unlit :: String -> String -> String
unlit file lhs = (unlines . map unclassify . adjacent file (0::Int) Blank
                 . classify 0) (tolines lhs)

plain :: String -> String -> String	-- no unliteration
plain file hs = hs
----

data Classified = Program String | Blank | Comment
		| Include Int String | Pre String

classify :: Int -> [String] -> [Classified]
classify _ []                = []
classify _ (('\\':x):xs) | x == "begin{code}" = Blank : allProg xs
   where allProg [] = []	-- Should give an error message, but I have no
				-- good position information.
         allProg (('\\':x):xs) |  x == "end{code}" = Blank : classify 0 xs
	 allProg (x:xs) = Program x:allProg xs
classify 0 (('>':x):xs)  = let (sp,code) = span isSpace x in
                           Program code : classify (length sp + 1) xs
classify n (('>':x):xs)  = Program (drop (n-1) x) : classify n xs
classify _ (('#':x):xs)  =
     (case words x of
        (line:file:_) | all isDigit line -> Include (read line) file
        _                                -> Pre x
     ) : classify 0 xs
classify _ (x:xs) | all isSpace x = Blank:classify 0 xs
classify _ (x:xs)                 = Comment:classify 0 xs

unclassify :: Classified -> String
unclassify (Program s) = s
unclassify (Pre s)     = '#':s
unclassify (Include i f) = '#':' ':show i ++ ' ':f
unclassify Blank       = ""
unclassify Comment     = ""

adjacent :: String -> Int -> Classified -> [Classified] -> [Classified]
adjacent file 0 _             (x              :xs) = x: adjacent file 1 x xs
					-- force evaluation of line number
adjacent file n y@(Program _) (x@Comment      :xs) =
				error (message file n "program" "comment")
adjacent file n y@(Program _) (x@(Include i f):xs) = x: adjacent f    i     y xs
adjacent file n y@(Program _) (x@(Pre _)      :xs) = x: adjacent file (n+1) y xs
adjacent file n y@Comment     (x@(Program _)  :xs) =
				error (message file n "comment" "program")
adjacent file n y@Comment     (x@(Include i f):xs) = x: adjacent f    i     y xs
adjacent file n y@Comment     (x@(Pre _)      :xs) = x: adjacent file (n+1) y xs
adjacent file n y@Blank       (x@(Include i f):xs) = x: adjacent f    i     y xs
adjacent file n y@Blank       (x@(Pre _)      :xs) = x: adjacent file (n+1) y xs
adjacent file n _             (x@next         :xs) = x: adjacent file (n+1) x xs
adjacent file n _             []                    = []

message "\"\"" n p c = "Line "++show n++": "++p++ " line before "++c++" line.\n"
message []     n p c = "Line "++show n++": "++p++ " line before "++c++" line.\n"
message file   n p c = "In file " ++ file ++ " at line "
                              ++show n++": "++p++ " line before "++c++" line.\n"


-- Re-implementation of 'lines', for better efficiency (but decreased
-- laziness).  Also, importantly, accepts non-standard DOS and Mac line
-- ending characters.
tolines s = lines' s id
  where
  lines' []             acc = [acc []]
  lines' ('\^M':'\n':s) acc = acc [] : lines' s id      -- DOS
  lines' ('\^M':s)      acc = acc [] : lines' s id      -- MacOS
  lines' ('\n':s)       acc = acc [] : lines' s id      -- Unix
  lines' (c:s)          acc = lines' s (acc . (c:))



{-
-- A very naive version of unliteration....
module Unlit(unlit) where
-- This version does not handle \begin{code} & \end{code}, and it is
-- careless with indentation.
unlit = map unlitline

unlitline ('>' : s) = s
unlitline _ = ""
-}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久亚洲影视婷婷| 日本一区二区成人在线| 久久久久国产成人精品亚洲午夜| 国产精品萝li| 黄色资源网久久资源365| 一本久道中文字幕精品亚洲嫩 | 日韩精品电影一区亚洲| 高清免费成人av| 这里只有精品视频在线观看| 亚洲精选视频免费看| 国产又黄又大久久| 欧美电影免费观看高清完整版 | 91丨porny丨中文| 久久综合久色欧美综合狠狠| 亚洲大片在线观看| 色菇凉天天综合网| 国产精品剧情在线亚洲| 精品系列免费在线观看| 欧美日韩成人综合| 亚洲国产精品一区二区尤物区| 99国产精品一区| 国产免费观看久久| 成人午夜视频福利| 国产欧美日产一区| 国产很黄免费观看久久| 亚洲精品一线二线三线无人区| 国产成人av电影在线| 91精品国产美女浴室洗澡无遮挡| 亚洲自拍偷拍综合| 在线观看一区二区精品视频| 亚洲日本护士毛茸茸| 91亚洲精品久久久蜜桃网站| 国产精品久久久久影院亚瑟| 懂色av一区二区三区蜜臀| 久久精品一区二区三区不卡牛牛| 精品一区二区三区久久| 亚洲精品在线免费观看视频| 国产综合久久久久久鬼色| 精品国产精品网麻豆系列| 国产曰批免费观看久久久| 欧美国产亚洲另类动漫| 99国内精品久久| 尤物av一区二区| 欧美日本免费一区二区三区| 日韩福利视频网| 26uuu亚洲| 成年人网站91| 一区二区欧美视频| 欧美一区二区三区日韩视频| 久久99久久99小草精品免视看| 精品电影一区二区| 成人午夜伦理影院| 午夜精品久久久久久久久久 | thepron国产精品| 亚洲一区二区在线免费看| 91 com成人网| 国产在线播放一区三区四| 国产精品久久久久影院老司 | 精品国产乱码久久久久久闺蜜 | 久久国产精品第一页| 久久久www成人免费无遮挡大片| 成人精品电影在线观看| 亚洲最大成人网4388xx| 91精品啪在线观看国产60岁| 高清在线观看日韩| 亚洲va在线va天堂| 国产情人综合久久777777| 91社区在线播放| 日本欧美在线观看| 中文字幕一区二区三区蜜月| 欧美日韩1区2区| 国产成人精品免费一区二区| 亚洲欧美日韩一区二区| 日韩欧美国产电影| 99国产精品久久久久| 午夜精品久久久久久久久| 中文字幕精品一区二区精品绿巨人 | 久久国产尿小便嘘嘘| 亚洲视频1区2区| 6080国产精品一区二区| 成人性生交大片免费看中文网站| 午夜精品福利视频网站| 国产精品人成在线观看免费| 69堂亚洲精品首页| 99久久免费精品| 国内国产精品久久| 婷婷开心久久网| 亚洲女与黑人做爰| 国产日韩av一区二区| 777精品伊人久久久久大香线蕉| 91视频国产观看| 奇米精品一区二区三区在线观看一 | 17c精品麻豆一区二区免费| 欧美一区二区三区在| 在线观看亚洲a| www.66久久| 成人午夜伦理影院| 56国语精品自产拍在线观看| 成人黄色大片在线观看| 久草这里只有精品视频| 丝袜亚洲另类欧美综合| 亚洲午夜久久久久久久久久久| 亚洲国产成人私人影院tom| 日韩精品一区在线观看| 欧美视频三区在线播放| 色94色欧美sute亚洲线路一ni | 成人免费在线播放视频| 国产性做久久久久久| 精品国产成人在线影院| 日韩欧美一区二区不卡| 日韩美一区二区三区| 欧美一级精品在线| 日韩欧美中文字幕精品| 日韩欧美国产综合一区| 欧美大片在线观看一区二区| 制服丝袜日韩国产| 日韩欧美不卡一区| 久久久久久久久久久久久女国产乱| 欧美va日韩va| 久久在线免费观看| 欧美激情一区二区三区四区| 国产精品午夜久久| 国产精品久久久久久久久动漫| 国产欧美精品区一区二区三区 | 欧美在线你懂的| 欧美亚洲综合另类| 欧美美女一区二区在线观看| 欧美军同video69gay| 日韩色在线观看| 337p粉嫩大胆色噜噜噜噜亚洲| 久久久三级国产网站| 国产精品午夜春色av| 亚洲色图丝袜美腿| 午夜在线成人av| 精品亚洲国产成人av制服丝袜| 国产精品综合二区| 一本色道久久综合亚洲aⅴ蜜桃| 欧美专区日韩专区| 欧美成人精品福利| 中文字幕一区二区三区在线播放| 亚洲人一二三区| 日本欧美加勒比视频| 国产99久久久久久免费看农村| 91老司机福利 在线| 欧美精品在线视频| 久久久不卡影院| 一个色在线综合| 久久99精品国产麻豆不卡| 丁香婷婷综合激情五月色| 91麻豆免费观看| 日韩一区二区免费高清| 国产精品欧美综合在线| 午夜伦欧美伦电影理论片| 国产九色sp调教91| 欧美日韩第一区日日骚| 久久久99精品免费观看不卡| 一级做a爱片久久| 国产成人免费网站| 欧美另类videos死尸| 国产片一区二区| 日本三级亚洲精品| 99精品欧美一区二区蜜桃免费| 7777女厕盗摄久久久| 亚洲人成网站在线| 国产精品一卡二| 日韩欧美国产综合一区| 亚洲精品成人精品456| 激情综合色综合久久| 欧洲日韩一区二区三区| 久久久久久99精品| 日韩高清不卡一区二区三区| 色综合久久久久久久| 久久蜜桃av一区精品变态类天堂| 亚洲高清视频在线| 99久久精品免费看国产| 精品国产自在久精品国产| 亚洲国产毛片aaaaa无费看 | 欧美一区二区精品| 粉嫩在线一区二区三区视频| 欧美丰满一区二区免费视频 | 中文字幕一区不卡| 国产一区二区在线免费观看| 欧美视频一区二区| 伊人一区二区三区| av在线不卡观看免费观看| 久久久99免费| 国产精品资源在线看| 欧美一卡二卡在线| 亚洲成a人片在线不卡一二三区| 色综合一个色综合| 日韩一区在线看| 不卡的av在线播放| 中文字幕亚洲区| 99精品视频在线免费观看| 国产精品入口麻豆九色| 成人免费毛片aaaaa**| 国产调教视频一区| 丁香天五香天堂综合| 国产精品美女www爽爽爽| 成人一区二区三区中文字幕|