Deducteam / Dedukti

Implementation of the λΠ-calculus modulo rewriting
https://deducteam.github.io
Other
200 stars 22 forks source link

Module identifier quoting #295

Closed gabrielhdt closed 7 months ago

gabrielhdt commented 2 years ago

There seem to be some incoherence in module name quoting. For instance, consider the following module

invalid-name.dk

0: Type.

and let's try to type check several modules.

M.dk

#REQUIRE invalid-name.

Checking that gives

$ dk check M.dk
[ERROR CODE:701] [M.dk] [line:1 column:16]
Lexer error: Unexpected characters '-'.

which seems reasonable. But

Mq.dk

#REQUIRE {|invalid-name|}.

does not work either, checking results in Lexer error: Unexpected characters '#'.. But not requiring anything is ok,

Mnothing.dk

1: {|invalid-name|}.0.

succeeds.