Skip to content

Commit

Permalink
Import simple NodeSet2 file is incomplete #510
Browse files Browse the repository at this point in the history
- added SemanticData/BuildingErrorsHandling/IIdentifierSyntax.md to formaly define syntax of the build errors.
- no code changes
  • Loading branch information
mpostol committed Mar 4, 2021
1 parent 7c1d13a commit 75f9d14
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions SemanticData/BuildingErrorsHandling/IIdentifierSyntax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# BuildError.Identifier syntax

## ABNF

``` TXT
Identyfier = Part - Section Number
Part = Prefix 2DIGIT
Prefix = "P"
Section = 8DIGIT
Number = 2DIGIT
```

where:

| Rule | Meaning | Syntax |
| ------- | ------------------ | ---------------------------------------------------- |
| Prefix | | matches the character `P` literally (case sensitive) |
| Part | OPC UA part number | matches a digit (equal to [0-9]) exactly 2 times |
| Section | section number | matches a digit (equal to [0-9]) exactly 8 times |
| Number | sequential number | matches a digit (equal to [0-9]) exactly 2 times |

## Reqular expresion

`(P\d{2,2})-(\d{8,8})(\d{2,2})`

where:

- `Part`: OPC UA part number; 1st Capturing Group (P\d{2,2})
- `P` matches the character `P` literally (case sensitive)
- `\d{2,2}` matches a digit (equal to [0-9])
- {2,2} Quantifier — Matches exactly 2 times
- `-` matches the character `-` literally (case sensitive)
- `Section`: section number; 2nd Capturing Group (\d{8,8})
- `\d{8,8}` matches a digit (equal to [0-9])
- {8,8} Quantifier — Matches exactly 8 times
- `Number`: sequential number; 3rd Capturing Group (\d{2,2})
- \d{2,2} matches a digit (equal to [0-9])
- {2,2} Quantifier — Matches exactly 2 times

## Example

- [P3-0503030201](https://reference.opcfoundation.org/v104/Core/docs/Part3/#5.3.3.2)

## See also

- [Augmented BNF for Syntax Specifications: ABNF; RFC5234; 2008](https://tools.ietf.org/html/rfc5234)
- [Regular expression; From Wikipedia, the free encyclopedia](https://en.wikipedia.org/wiki/Regular_expression)
Binary file not shown.

0 comments on commit 75f9d14

Please sign in to comment.