Module CPP.ICode.ICodeParser

The Parser for Curry with Integrated Code

Author: Jasper Sikorra - jsi@informatik.uni-kiel.de

Version: March 2014

Summary of exported operations:

parse :: String -> String -> IO (PM [StandardToken])  Deterministic 
The parse function is the main function of the Code Integration Parser.

Exported operations:

parse :: String -> String -> IO (PM [StandardToken])  Deterministic 

The parse function is the main function of the Code Integration Parser. The functions partitions the input in normal code and integrated expressions, disassembles the integrated code and removes its offset.

Example call:
(parse filename input)
Parameters:
  • filename : The filename of the input file
  • input : The input string containing language with integrated code
Returns:
  • A list of StandardTokens which contain either the common language or the DSL code with some extra information