ソースを参照

Note non-standard JSON grammar in tutorial

Closes #305.
tags/gm/2021-09-23T00Z/github.com--lark-parser-lark/0.66
Zac Hatfield-Dodds 5年前
committed by GitHub
コミット
23feacad05
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更4行の追加1行の削除
  1. +4
    -1
      docs/json_tutorial.md

+ 4
- 1
docs/json_tutorial.md ファイルの表示

@@ -79,7 +79,10 @@ By the way, if you're curious what these terminals signify, they are roughly equ

Lark will accept this, if you really want to complicate your life :)

(You can find the original definitions in [common.lark](/lark/grammars/common.lark).)
You can find the original definitions in [common.lark](/lark/grammars/common.lark).
They're a bit looser than [json.org](https://json.org/) - accepting `\f` as whitespace,
`.1` as a number, unicode digits, and unescaped control characters in strings - but
strict standards-compliance would make for a somewhat longer tutorial.

Notice that terminals are written in UPPER-CASE, while rules are written in lower-case.
I'll touch more on the differences between rules and terminals later.


読み込み中…
キャンセル
保存