-
Notifications
You must be signed in to change notification settings - Fork 0
Home
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.
To use KotlinJsonParser in your development environment:
-
Clone the Repository:
git clone https://github.com/QuickWrite/KotlinJsonParser.git
-
Open the Project: Open the project in an IDE like IntelliJ IDEA, which supports Kotlin.
-
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
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.
KotlinJsonParser is a toy project created for educational purposes. It is not intended for production use, and while efforts have been made to ensure the code is functional, it may not cover all edge cases or be optimized for performance. Use at your own risk.
But most importantly: Have fun! :D
The content of this wiki is licensed under the CC-BY-NC-SA 4.0 License.
