Skip to content

Commit

Permalink
Add informational disclaimers to grammar files (FHIR#1399)
Browse files Browse the repository at this point in the history
This partially addresses FHIR-42281.
  • Loading branch information
cmoesel authored Dec 18, 2023
1 parent a44195a commit 1450d27
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions antlr/src/main/antlr/FSH.g4
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* FSH.g4: An ANTLR v4 parser representation of the FHIR Shorthand syntax, intended to be used with
* the corresponding FSHLexer.g4 lexer representation. This file is considered "informational"
* material in respect to the FSH specification. If there is a conflict between the FSH language
* specification and this file, the language specification takes precedence.
*/
grammar FSH;

options { tokenVocab = FSHLexer; }
Expand Down
6 changes: 6 additions & 0 deletions antlr/src/main/antlr/FSHLexer.g4
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* FSHLexer.g4: An ANTLR v4 lexer representation of the FHIR Shorthand syntax, intended to be used
* with the corresponding FSH.g4 parser representation. This file is considered "informational"
* material in respect to the FSH specification. If there is a conflict between the FSH language
* specification and this file, the language specification takes precedence.
*/
lexer grammar FSHLexer;

// KEYWORDS
Expand Down
4 changes: 4 additions & 0 deletions antlr/src/main/antlr/MiniFSH.g4
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* MiniFSH.g4: A minimal ANTLR v4 parser representation useful only in the context of certain
* functions within SUSHI. See FSH.g4 for a more complete FSH parser grammar.
*/
grammar MiniFSH;

options { tokenVocab = MiniFSHLexer; }
Expand Down
4 changes: 4 additions & 0 deletions antlr/src/main/antlr/MiniFSHLexer.g4
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* MiniFSHLexer.g4: A minimal ANTLR v4 lexer representation useful only in the context of certain
* functions within the SUSHI. See FSHLexer.g4 for a more complete FSH lexer grammar.
*/
lexer grammar MiniFSHLexer;

STAR: ([\r\n] | LINE_COMMENT) WS* '*' [ \u00A0];
Expand Down

0 comments on commit 1450d27

Please sign in to comment.