Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
We have upgraded GitLab to 15.1. Due to major code changes GitLab was down for some time.
Open sidebar
badw-it
DHParser
Commits
4c4dcef5
Commit
4c4dcef5
authored
Oct 27, 2017
by
Eckhart Arnold
Browse files
Update Introduction.md
parent
0639eb2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Introduction.md
View file @
4c4dcef5
...
@@ -169,9 +169,9 @@ the poem in the domain specific version into the XML-version, DHParser
...
@@ -169,9 +169,9 @@ the poem in the domain specific version into the XML-version, DHParser
requires a structural description of the domain specific encoding. This
requires a structural description of the domain specific encoding. This
is a bit similar to a document type definition (DTD) in XML. This
is a bit similar to a document type definition (DTD) in XML. This
structural description uses a slightly enhanced version of the
structural description uses a slightly enhanced version of the
[
Extended-Backus-Naur-Form (EBNF)
](
https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form
)
[
Extended-Backus-Naur-Form (EBNF)
](
https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form
)
,
that
is a well-established formalism for the structural description of
which
is a well-established formalism for the structural description of
formal languages in computer sciences. An
d
excerpt of the EBNF-definition
formal languages in computer sciences. An excerpt of the EBNF-definition
of our domain-specific encoding for the poem looks like this. (We leave out
of our domain-specific encoding for the poem looks like this. (We leave out
the meta-data here. See
the meta-data here. See
[
`examples/Tutorial/Lyrik.ebnf`
](
https://gitlab.lrz.de/badw-it/DHParser/blob/master/examples/Tutorial/Lyrik.ebnf
)
[
`examples/Tutorial/Lyrik.ebnf`
](
https://gitlab.lrz.de/badw-it/DHParser/blob/master/examples/Tutorial/Lyrik.ebnf
)
...
@@ -208,7 +208,7 @@ of verses, each of which starts, i.e. is preceeded by a new line.
...
@@ -208,7 +208,7 @@ of verses, each of which starts, i.e. is preceeded by a new line.
Can you figure out the rest? Hint: The angular brackets
`[`
and
`]`
mean that and
Can you figure out the rest? Hint: The angular brackets
`[`
and
`]`
mean that and
item is optional and the
`§`
sign means that it is obligatory. (Strictly speaking,
item is optional and the
`§`
sign means that it is obligatory. (Strictly speaking,
the §-signs are not necessary, because an item that is not optional is always
the §-signs are not necessary, because an item that is not optional is always
obligatory, but the §-signs help the converter to produce
the right
error
obligatory, but the §-signs help the converter to produce
more useful
error
messages.)
messages.)
This should be enough for an introduction to the purpose of DSLs in the
This should be enough for an introduction to the purpose of DSLs in the
...
...
Write
Preview
Supports
Markdown
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