remove constraints on rules and token names
See original GitHub issueFirst of all, thanks for this great lib.
I have this error during the performSelfAnalysis
check.
Error: Parser Definition Errors detected:
Invalid Grammar Token name: ->ENCODING-CONTROL<- it must match the pattern: ->/^[a-zA-Z_]\w*$/<-
at D:\formation\asn.1\node_modules\chevrotain\src\parse\parser\parser.ts:237:15
at ASN1CstParser.PerformanceTracer.TRACE_INIT (D:\formation\asn.1\node_modules\chevrotain\src\parse\parser\traits\perf_tracer.ts:50:14)
at ASN1CstParser.Parser.j(D:\formation\asn.1\node_modules\chevrotain\src\parse\parser\parser.ts:151:10)
at new ASN1CstParser (D:\formation\asn.1\src\analysis\ASN1CstParser.ts:169:10)
In the ASN1 language, there are some keyword that contains a dash character (-) like for instance :
ENCODING-CONTROL
RELATIVE-OID-IRI
ABSTRACT-SYNTAX
TYPE-IDENTIFIER
MINUS-INFINITY
PLUS-INFINITY
NOT-A-NUMBER
RELATIVE-OID
TIME-OF-DAY
DATE-TIME
OID-IRI
Is there a reason for this control ? What is the recommanded way to proceed with this kind of keyword?
You can see my library that is using chevrotain here: https://github.com/jlguenego/asn.1
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
DROP CONSTRAINT | CockroachDB Docs
The DROP CONSTRAINT statement is part of ALTER TABLE and removes CHECK and FOREIGN KEY constraints from columns. Note: The DROP CONSTRAINT statement...
Read more >Defining Constraints and Indexes
Please ensure that the ForeignKey and ForeignKeyConstraint objects involved in the cycle have names so that they can be dropped using DROP CONSTRAINT....
Read more >Working with size constraint conditions - AWS Documentation
In the navigation pane, choose Rules. · Choose the name of a rule that is using the size constraint condition that you want...
Read more >Organization policy constraints | Resource Manager ...
Service(s) Constraint Supported Prefixes
App Engine Disable Source Code Download "is:"
BigQuery Disable BigQuery Omni for Cloud AWS "is:"
BigQuery Disable BigQuery Omni for Cloud Azure...
Read more >Appendix B. Defaults, Constraints, and Extensions for ...
Authentication Token Subject Name Default; B.1.4. Basic Constraints Extension Default; B.1.5. CA Validity Default; B.1.6. Certificate Policies Extension ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Now I finally know what ASN.1 is:
I will hopefully release a new Version of Chevrotain with the fix later this week. I will keep the issue open until then.
released in 7.1.0