Sanchime.Json/Syntax.fs

17 lines
318 B
Forth
Raw Permalink Normal View History

2022-06-25 16:49:05 +08:00
namespace Sanchime.Json
type Token =
| Whitespace
| Symbol of char
| StringLiteral of string
| NumberLiteral of float
| BooleanLiteral of bool
type Json =
| String of string
| Array of Json list
| Boolean of bool
| Number of float
| Object of (string * Json) list
| Null