10BC0 GitHub - citon9/JsonParser: Recursive descent JSON parser for PascalScript
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
/ JsonParser Public archive
forked from koldev/JsonParser

Recursive descent JSON parser for PascalScript

Notifications You must be signed in to change notification settings

citon9/JsonParser

 
 

Repository files navigation

JsonParser

Recursive descent JSON parser for PascalScript

I translated Douglas Crockford's recursive descent parser into PascalScript. Since PascalScript doesn't handle pointers and classes, I used dynamic arrays to store JSON values in a type-safe way. The parser can also be used from Standard Pascal or Object Pascal (Delphi), but since these don't suffer from the constraints of PascalScript, other parsers may be more efficient (see here and here). If you need to parse JSON strings from PascalScript, the best option is to add one of the fast parsers to the host code, and make it accessible from script code. This implementation is for those who don't have access to the host code.

The JSON testfiles contain the examples from here.

This code is in the Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.

About

Recursive descent JSON parser for PascalScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Pascal 100.0%
0