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

Railroad diagram command #360

Closed
SlashScreen opened this issue Aug 16, 2023 · 6 comments
Closed

Railroad diagram command #360

SlashScreen opened this issue Aug 16, 2023 · 6 comments

Comments

@SlashScreen
Copy link

The readme mentions a railroad diagram command using the EBNF produced by Parser.String(). How do I use this? The link provided simply leads to blob.master, which doesn't tell me anything, unless I'm missing something.
I'd like to use it to debug some odd behavior of my grammar.

@alecthomas
Copy link
Owner

@SlashScreen
Copy link
Author

Thanks. Pressing control-D doesn't seem to do anything, only add ^D. Am I missing something?

@alecthomas
Copy link
Owner

What's Ctrl-D got to do with Railroad?

@alecthomas
Copy link
Owner

Fixed the link in the README

@SlashScreen
Copy link
Author

What's Ctrl-D got to do with Railroad?

The instructions say (Use control-D to end input) (

fmt.Fprintln(os.Stderr, " (Use control-D to end input)")
)

@SlashScreen
Copy link
Author

@alecthomas as said here, it's not completely clear how to use railroad. I don't know how to end input, despite following instructions.

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