Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path-root can be \ #9

Open
TimothyGu opened this issue Jun 16, 2021 · 4 comments
Open

path-root can be \ #9

TimothyGu opened this issue Jun 16, 2021 · 4 comments

Comments

@TimothyGu
Copy link

The grammar says

LHS ::= RHS
path-root ::= s
s ::= / }  —  in generic-mode
s ::= /\ }  —  in web-mode and in file-mode

so theoretically path-root can be \. However, in the URL Model section, there's a constraint that says

The path-root of an URL is the string /.

Is there anything that specifies (path-root \) are to be converted to (path-root /)?

@TimothyGu
Copy link
Author

Insofar as it relates to converting grammar to structure, this may be part of #4.

@alwinb
Copy link
Owner

alwinb commented Jun 17, 2021

So true! I wondered if anyone would notice!

@alwinb
Copy link
Owner

alwinb commented Jun 17, 2021

Is there anything that specifies (path-root \) are to be converted to (path-root /)?

It should be converted to (path-root /) always, and no, I did not make that explicit. And yes it would be part of #4.

@alwinb
Copy link
Owner

alwinb commented Jun 17, 2021

I'm considering taking another hint from RFC3986, and write sections that mirror their chapter 2 (Characters) and 3 (Syntax components) before introducing the full grammar. And then don't do #4 formally, but just informal. Not sure yet.

Related to some of the discussion in #8. Suggestions/ ideas are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants