Skip to content

justromeon/jsonad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonad

A simple JSON parser written from scratch in Haskell. This project demonstrates parsing principles using a custom parsing library and the Applicative and Alternative typeclasses.

Directory Structure

  • src/JsonParser.hs: Contains the core logic for parsing JSON values.
  • src/Parser.hs: This is the custom parsing combinator library used by JsonParser.hs test/Main.hs: The test suite for the parser.

Running the Tests

  1. Install Haskell and Cabal if not already installed. You can follow the instructions here.

  2. Clone the repository and navigate into the project directory:

    git clone https://github.com/justromeon/jsonad.git
    cd codingbat
    
  3. Install dependencies and build the project:

    cabal update
    cabal build
    
  4. Running the test

    cabal test
    

This will run all the test cases.

About

JSON Parser from scratch in Haskell

Topics

Resources

License

Stars

Watchers

Forks