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

Question: Generate KiCad File from json #1

Open
torik42 opened this issue Sep 15, 2021 · 1 comment
Open

Question: Generate KiCad File from json #1

torik42 opened this issue Sep 15, 2021 · 1 comment

Comments

@torik42
Copy link

torik42 commented Sep 15, 2021

I just tried this nice parser, and it works great!

Is there an easy way to turn the json back into an s-expression? I don’t need a full working KiCad file. I intend to pick some modules, traces, et cetera, modify them, and paste them into another KiCad file later.

@jdthorpe
Copy link
Owner

jdthorpe commented Sep 15, 2021

I'm glad you like the parser, but for the time being it's just a parser and not a generator. It's based on a cool package called PegJS, which makes parsing pretty straight forward, but doesn't generate code for going in reverse (in part b/c the output of the package is so flexible). That said, you might search for a library that handles the round trip from generic S-expressions and JSON.

If you do find a package that works for you, feel free to add it to the discussion.

jdthorpe pushed a commit that referenced this issue Sep 16, 2024
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