CS计算机代考程序代写 Haskell algorithm Overview
Overview 在本作业中,您将重构一个文本匹配正则表达式引擎以使用 一个更强类型的接口。这些更强的类型不仅减少了可能性 对于错误,同时也提高了代码库的可读性和清晰度。在上面 强类型版本,您将实现许多额外的便利组合 nators 用于处理正则表达式。这个任务会给你经验 使用 Haskell 类型系统扩展(特别是 GADTs),有编程经验 使用 monads 和 applicative functors,并向您介绍一些概念,例如 alternatives。 1Provided Code 提供的代码由多个模块组成: Hare.hs contains the stubs of the code you should implement. Untyped.hs contains an untyped, unextended version of the regex engine. HareMonad.hs contains the monadic type used to write the matching algorithm. Tests.hs contains the main […]
CS计算机代考程序代写 Haskell algorithm Overview Read More »