STRING

A single-quote-delimited string literal token. The content may include any character or an escape sequence. Supports \', \", \\, \/, \f, \n, \r, \t, and Unicode escapes (\uXXXX).

Examples

Simple string literal

'Hello, World!'

URI string (used in declarations)

codesystem "SNOMED-CT": 'http://snomed.info/sct'

String with escape sequence

'It\'s a test'

Version specifier string

library MyLib version '1.0.0'
Railroad Diagram
100%
' ESC any character '

scroll to zoom · drag to pan · click green rules or blue tokens to navigate

EBNF

STRING
  : '\'' (ESC | .)*? '\''
  ;

Used In