Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
654b8909
Commit
654b8909
authored
Jan 30, 2011
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix documentation bugs
parent
126fe260
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
CHANGELOG.txt
CHANGELOG.txt
+1
-1
s-expressions.txt
Documentation/s-expressions.txt
+12
-12
No files found.
CHANGELOG.txt
View file @
654b8909
...
@@ -12,7 +12,7 @@ email address.
...
@@ -12,7 +12,7 @@ email address.
constraints put on us by the Specctra DSN spec.
constraints put on us by the Specctra DSN spec.
* Added Documentation/s-expressions.txt to explain all this.
* Added Documentation/s-expressions.txt to explain all this.
* Enhanced our quoting protocol by moving away from doubling up double quotes
* Enhanced our quoting protocol by moving away from doubling up double quotes
to a C li
n
e escape mechanism.
to a C li
k
e escape mechanism.
* Now support multi-line strings, which when properly escaped, can still be
* Now support multi-line strings, which when properly escaped, can still be
read in as a token originating on a single line.
read in as a token originating on a single line.
...
...
Documentation/s-expressions.txt
View file @
654b8909
...
@@ -11,7 +11,7 @@ corresponds to a string, while a list corresponds to an s-expression. The
...
@@ -11,7 +11,7 @@ corresponds to a string, while a list corresponds to an s-expression. The
following grammar represents our definition of an s-expression:
following grammar represents our definition of an s-expression:
sexpr ::= ( sx )
sexpr ::= ( sx )
sx ::= atom sxtail | sexp
t
r sxtail | NULL
sx ::= atom sxtail | sexpr sxtail | NULL
sxtail ::= sx | NULL
sxtail ::= sx | NULL
atom :: quoted | value
atom :: quoted | value
quoted :: "ws_string"
quoted :: "ws_string"
...
@@ -62,12 +62,12 @@ Any null string is wrapped in quotes, and so is any string which starts with
...
@@ -62,12 +62,12 @@ Any null string is wrapped in quotes, and so is any string which starts with
Kicad S-expression Syntax and Quoting Protocol (non-specctraMode):
Kicad S-expression Syntax and Quoting Protocol (non-specctraMode):
==================================================================
==================================================================
*)
All Kicad s-expression files are saved using a UTF8 encoding and should
*)
Some atoms are considered keywords, and constitute a grammar superimposed on
support any international characters in the atoms. Some atoms are considered
the s-expressions. All keywords are ASCII and lowercase. International characters
keywords, and constitute a grammar superimposed on the s-expressions
.
are not to be used here
.
*) All
keywords are ASCII and lowercase. International characters are not to be
*) All
Kicad s-expression files are saved using a UTF8 encoding and should
used here
.
support any international characters in the atoms which are not keywords
.
*) DSNLEXER::NextTok() requires that any token be on a single line of input. If
*) DSNLEXER::NextTok() requires that any token be on a single line of input. If
you want to save a multi-line string, Quoted() will automatically escape the \n
you want to save a multi-line string, Quoted() will automatically escape the \n
...
@@ -75,10 +75,10 @@ or \r for you and put the output on a single line. It should round-trip fine.
...
@@ -75,10 +75,10 @@ or \r for you and put the output on a single line. It should round-trip fine.
*) There can be escape sequences in a quoted string only. Escape sequences allow
*) There can be escape sequences in a quoted string only. Escape sequences allow
foreign tools to generate byte patterns in the input stream. C style 2 byte hex
foreign tools to generate byte patterns in the input stream. C style 2 byte hex
codes are supported, and so are 3 byte octal escape sequences.
See DSNLEXER::NextTok()
codes are supported, and so are 3 byte octal escape sequences.
See
for the full list of escape sequences, by searching file dsnlexer.cpp for th
e
DSNLEXER::NextTok() for the full list of escape sequences, by searching fil
e
string "ESCAPE SEQUENCES". Any use of the escape mechanism must still produce
dsnlexer.cpp for the string "ESCAPE SEQUENCES". Any use of the escape mechanism
UTF-8 encoded text after the escape handling is applied.
must still produce
UTF-8 encoded text after the escape handling is applied.
*) Just because an escape sequence is supported on input, does not mean that
*) Just because an escape sequence is supported on input, does not mean that
OUTPUTFORMATTER::Quoted() must generate such an escape sequence for output. For
OUTPUTFORMATTER::Quoted() must generate such an escape sequence for output. For
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment