Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
sarah.grebing
ProofScriptParser
Commits
40e5a455
Commit
40e5a455
authored
Sep 11, 2017
by
Alexander Weigl
Browse files
language for website
parent
5c39bc2a
Pipeline
#13554
failed with stage
in 2 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
website/docs/language.md
View file @
40e5a455
#
<h1>
Language Constructs
# Language Constructs
Proof scripts are textual representations of rule applications, settings changes
and macro invocations.
...
...
@@ -21,14 +21,40 @@ A script variable has a name, a type and a value.
Variables are declared by
```
var0 : type
var1 : type := value
var0 : type;
var1 : type := value;
var2 := value;
```
Both statements declare a variable, in the later we directly assign a value, in
the first form
`var0`
receives a default value.
### Types and Literals
We have following types:
`INT`
,
`Term<Sort>`
,
`String`
We have following types:
`INT`
,
`TERM<Sort>`
,
`String`
.
*
`INT`
represents integer of arbitrary size.
```
42
-134
```
*
`TERM<S>`
represents a term of sort
`S`
in KeY.
`S`
can be any sort of KeY. If the sort is ommitied, then
`S=Any`
.
```
`f(x)`
`g(a)`
`imp(p,q)`
```
*
`STRING`
```
"i am a string"
```
### Special Variables
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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