-
Notifications
You must be signed in to change notification settings - Fork 2
variables
abinition edited this page Oct 22, 2014
·
4 revisions
HS variable names (identifiers) are case-sensitive strings consisting of one or more characters formatted as follows:
- Must begin with an alphabetic character, "_", or "$".
- Cannot be a HS keyword (e.g. a type declaration).
- Can contain a colon that separates a namespace from a tag, ie: "namespace:tag"
- Must not exceed 64 characters.
The following are valid identifiers:
- foobar
- xmlns:soap
- $recipe
- LIST
- _lotid
- _
- x500
The following cannot be used as identifiers:
- 0data
- list
- lot.id
- foo~bar
- a name
- if
- :tag:
An identifier can also be a string of any characters enclosed in single quotes. When enclosed in single quotes, identifiers can contain any ASCII characters. Names can be up to 64 characters long and are case-sensitive.
The following quoted strings are valid identifiers:
- 'lot id'
- '&Enter value'
- '@^@'
- 'list'