Skip to content
QuickWrite edited this page Sep 2, 2024 · 1 revision

Welcome to the KotlinJsonParser wiki!

KotlinJsonParser is a toy project designed as a learning tool for myself (@quickwrite) to gain a deeper understanding of Kotlin and the fundamentals of building language parsers. The project specifically focuses on implementing a simple JSON parser, where the primary goal is to learn and practice how to tokenize and parse JSON strings using Kotlin. It uses a basic LL(1) parser to build the resulting data structure.

Installation and Setup

To use KotlinJsonParser in your development environment:

  1. Clone the Repository:

    git clone https://github.com/QuickWrite/KotlinJsonParser.git
  2. Open the Project: Open the project in an IDE like IntelliJ IDEA, which supports Kotlin.

  3. Write some code like this in your Main.kt:

    val jsonString = """{"name": "John", "age": 30}"""
    val json = jsonParse(jsonString)
    
    println(json["name"]) // Output: John
    println(json["age"])  // Output: 30

Wiki content

Some of the stuff that is happening in the repository is in this wiki. But there is no guarantee that everything will be in this wiki.

This wiki is more or less a way of documenting some stuff that I think can be interesting.

Clone this wiki locally