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

[RFC] TOML v0.4.x grammar in ABNF #334

Closed
wants to merge 1 commit into from
Closed

[RFC] TOML v0.4.x grammar in ABNF #334

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jun 22, 2015

This is a specification for the supposed TOML v0.4.x in ABNF.

Basically it is based on v0.4.0, or it is just what I think v0.4.0 should be. Nothing new is added to the grammar. But this is the best I can do to clarify my idea. And I think these grammar rules are quite concise and not hard to understand.

I hope this can help to establish the new TOML v1.0.0 in the future. Welcome to criticize the grammar here!

Ping: #236 #330

@ghost
Copy link
Author

ghost commented Jun 22, 2015

/cc @mojombo @BurntSushi

@karupanerura
Copy link
Contributor

👍

@Profpatsch
Copy link

There is another, more recent try: #236

@ghost
Copy link
Author

ghost commented Nov 12, 2015

@Profpatsch I know, and the grammar file and discussions there are a little messy, so I write my own with more details.

@ghost
Copy link
Author

ghost commented Nov 27, 2015

Closed because I think TOML is not smart enough. There is still time to make a good new format.

@ghost ghost closed this Nov 27, 2015
@ghost ghost deleted the spec branch November 27, 2015 21:05
@Profpatsch
Copy link

@jakwings Interesting, what brings you to that conclusion?

@ghost
Copy link
Author

ghost commented Nov 27, 2015

First, the most important reason: TOML is not that popular and easy to parse as I think and there are still many variants of ini format (for ease of use, performance rather than consistency). Everyone can learn the basics of ini-like format in a few minutes. If TOML can't be the best default, and it is really easy to write a parser, why should I stick to it?

Biggest flaws in TOML: DateTime; not easy to parse [[section array]]; T.
(I won't discuss here.)

@Profpatsch
Copy link

I see.

= %x5F ; _

Letter
= %x41-5A ; "A" to "Z"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not allow all unicode letter characters?

http://www.fileformat.info/info/unicode/category/index.htm

Just include all unicode classes with the name Letter, < something >

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, you'd better ask the original designers of TOML 0.4.0, because I just wanted to get more details of 0.4.0 depicted.
PS. The chart of Unicode characters is just a mess. Be careful. Also, my grammar still has bugs, but I've no interest to improve it any more.

This pull request was closed.
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

Successfully merging this pull request may close these issues.

3 participants