question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

remove constraints on rules and token names

See original GitHub issue

First 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:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
bd82commented, Dec 22, 2020

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.

0reactions
bd82commented, Jan 2, 2021

released in 7.1.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found