From bd96df4e85566ab269a79055472f0942ffd20cc6 Mon Sep 17 00:00:00 2001 From: ochafik Date: Mon, 18 Mar 2024 04:42:25 +0000 Subject: [PATCH] json: ws nit --- examples/json-schema-to-grammar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/json-schema-to-grammar.py b/examples/json-schema-to-grammar.py index 0311fe715..559545a83 100755 --- a/examples/json-schema-to-grammar.py +++ b/examples/json-schema-to-grammar.py @@ -156,7 +156,7 @@ class SchemaConverter: def to_rule(s: Tuple[str, bool]) -> str: (txt, is_literal) = s return "\"" + txt + "\"" if is_literal else txt - + def transform() -> Tuple[str, bool]: ''' Parse a unit at index i (advancing it), and return its string representation + whether it's a literal.