haskeme-0.1.0.0: Compiler from I- to S-Expressions for the Scheme Programming Language

Copyright(c) Felix Springer 2019
LicenseBSD3
Maintainerfelixspringer149@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

Haskeme

Description

This module implements the necessary functions for the Haskeme Main executable.

Synopsis

Documentation

data IndentedLine Source #

Hold Indent and Line in a data type.

Constructors

IndLine Indent String 
Instances
Eq IndentedLine Source # 
Instance details

Defined in Haskeme

Show IndentedLine Source # 
Instance details

Defined in Haskeme

toIndentedLine :: String -> IndentedLine Source #

Transform a String (Line) into IndentedLine.

data Program Source #

Hold a program as a list of Expressions.

Constructors

Prog [Expression] 
Instances
Eq Program Source # 
Instance details

Defined in Haskeme

Methods

(==) :: Program -> Program -> Bool #

(/=) :: Program -> Program -> Bool #

Show Program Source # 
Instance details

Defined in Haskeme

stringToProgram :: String -> Program Source #

Transform String to IndentedLines. Remove empty lines. Wrap lines in the Program data type and turn IndentedLines into Expressions. Fix ExprDeeper to ExprsDeeper.

progToSExprs :: Program -> String Source #

Return a correct Program of S-Expressions.