* Break-out RFC 7950 Section 6.1 tokenization

* This enables full string lexical parsing of some rules previously not fully compliant, including:
    * refine
    * user-augment
    * if-feature
  * Also solves previous tokenization issues
This commit is contained in:
Olof hagsand 2022-07-22 09:17:43 +02:00
parent f9eacebf68
commit 9d65fb81d7
21 changed files with 811 additions and 218 deletions

View file

@ -36,8 +36,7 @@ module example3{
type union {
type w;
type enumeration {
enum "bounded";
enum "un bounded"; /* note w space */
enum bounded;
}
}
}
@ -272,9 +271,6 @@ EOF
new "cli validate"
expectpart "$($clixon_cli -1f $cfg -l o -l o validate)" 0 '^$'
new "cli set transitive union string (and space)"
expectpart "$($clixon_cli -1f $cfg -l o set c ulle "un\ bounded")" 0 '^$'
new "cli validate"
expectpart "$($clixon_cli -1f $cfg -l o -l o validate)" 0 '^$'