mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-30 23:33:27 +03:00
Merge pull request #887 from AleoHQ/feature/abnf-reorder-and-doc
Feature/abnf reorder and doc
This commit is contained in:
commit
c100ac92e7
@ -336,9 +336,16 @@ not-double-quote = %x0-22 / %x24-10FFFF ; anything but "
|
|||||||
not-star = %x0-29 / %x2B-10FFFF ; anything but *
|
not-star = %x0-29 / %x2B-10FFFF ; anything but *
|
||||||
|
|
||||||
not-line-feed-or-carriage-return = %x0-9 / %xB-C / %xE-10FFFF
|
not-line-feed-or-carriage-return = %x0-9 / %xB-C / %xE-10FFFF
|
||||||
; anything but LF or CR
|
; anything but <LF> or <CR>
|
||||||
|
|
||||||
not-star-or-slash = %x0-29 / %x2B-2E / %x30-10FFFF ; anything but * or /
|
not-double-quote-or-open-brace = %x0-22 / %x24-7A / %x7C-10FFFF
|
||||||
|
; anything but " or {
|
||||||
|
|
||||||
|
not-double-quote-or-close-brace = %x0-22 / %x24-7C / %x7E-10FFFF
|
||||||
|
; anything but " or }
|
||||||
|
|
||||||
|
not-star-or-slash = %x0-29 / %x2B-2E / %x30-10FFFF
|
||||||
|
; anything but * or /
|
||||||
|
|
||||||
; Lines in Leo may be terminated via
|
; Lines in Leo may be terminated via
|
||||||
; a single carriage return,
|
; a single carriage return,
|
||||||
@ -447,10 +454,6 @@ package-name = 1*( lowercase-letter / digit )
|
|||||||
|
|
||||||
format-string-container = "{}"
|
format-string-container = "{}"
|
||||||
|
|
||||||
not-double-quote-or-open-brace = %x0-22 / %x24-7A / %x7C-10FFFF
|
|
||||||
|
|
||||||
not-double-quote-or-close-brace = %x0-22 / %x24-7C / %x7E-10FFFF
|
|
||||||
|
|
||||||
format-string-element = not-double-quote-or-open-brace
|
format-string-element = not-double-quote-or-open-brace
|
||||||
/ "{" not-double-quote-or-close-brace
|
/ "{" not-double-quote-or-close-brace
|
||||||
/ format-string-container
|
/ format-string-container
|
||||||
@ -996,16 +999,17 @@ file = *declaration
|
|||||||
; Format Note
|
; Format Note
|
||||||
; -----------
|
; -----------
|
||||||
|
|
||||||
; The ABNF standard requires grammars to consist of lines terminated by CR LF
|
; The ABNF standard requires grammars to consist of lines terminated by <CR><LF>
|
||||||
; (i.e. carriage return followed by line feed, DOS/Windows-style),
|
; (i.e. carriage return followed by line feed, DOS/Windows-style),
|
||||||
; as explained in the background on ABNF earlier in this file.
|
; as explained in the background on ABNF earlier in this file.
|
||||||
; This file's lines are therefore terminated by CR LF.
|
; This file's lines are therefore terminated by <CR><LF>.
|
||||||
; To avoid losing this requirement across systems,
|
; To avoid losing this requirement across systems,
|
||||||
; this file is marked as 'text eol=crlf' in .gitattributes:
|
; this file is marked as 'text eol=crlf' in .gitattributes:
|
||||||
; this means that the file is textual, enabling visual diffs,
|
; this means that the file is textual, enabling visual diffs,
|
||||||
; but its lines will always be terminated by CR LF on any system.
|
; but its lines will always be terminated by <CR><LF> on any system.
|
||||||
|
|
||||||
; Note that this CR LF requirement only applies to the grammar files themselves.
|
; Note that this <CR><LF> requirement only applies
|
||||||
|
; to the grammar files themselves.
|
||||||
; It does not apply to the lines of the languages described by the grammar.
|
; It does not apply to the lines of the languages described by the grammar.
|
||||||
; ABNF grammars may describe any kind of languages,
|
; ABNF grammars may describe any kind of languages,
|
||||||
; with any kind of line terminators,
|
; with any kind of line terminators,
|
||||||
|
Loading…
Reference in New Issue
Block a user