Skip to content

Commit

Permalink
Add description of string to language reference
Browse files Browse the repository at this point in the history
Ref. #292, #704
  • Loading branch information
treiher committed Jul 28, 2021
1 parent b7f16ab commit 6c7da05
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/Language-Reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
The specification language describes protocol message formats based on types. For each type of the specification language a description of its syntax and semantics and an example is given. A simple variant of Backus-Naur Form is used to describe the syntax. Reserved keywords and literals are marked in *bold*. References to syntactic categories are xref:none[highlighted]. To convey some semantic information the name of some syntactic categories are prefixed by a non-highlighted part. Syntactic categories with prefixes are equivalent to the category without the prefix. The following basic elements are used to describe the syntax of the language:

[[syntax-name]]
name: A name consists of alphanumeric characters and underscores. By convention a name starts with a capital and after each underscore follows a capital as well (e.g., Mixed_Case_With_Underscores).
name: A name consists of alphanumeric characters and underscores. By convention a name starts with a capital and after each underscore follows a capital as well (e.g., `Mixed_Case_With_Underscores`).

[[syntax-number]]
number: A number consists of numerical digits. An underscore can be added between two digits to improve readability.
number: A number consists of numerical digits. An underscore can be added between two digits to improve readability (e.g., `1_234`).

[[syntax-string]]
string: A string literal is a sequence of characters delimited by double quotes (e.g., `"String"`).

[[syntax-mathematical_expression]]
mathematical_expression: A mathematical expression consists of numbers and names combined by mathematical operators (addition *+*, subtraction *-*, multiplication *\**, division */*, exponentiation **********).
Expand Down

0 comments on commit 6c7da05

Please sign in to comment.