-
Notifications
You must be signed in to change notification settings - Fork 119
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: easy_skidl - parsing component descriptions #25
Comments
This looks good to me. What are the implications of using nearly.js? Does this drag in some Javascript dependencies. I noticed you're using quantiphy. How does this compare to using Pint? (At least on Github, Pint has much more favoriting/forking.) I don't concern myself too much with licensing, as long as people are free to use stuff and maintain as much control as possible over what they create. Keeping easy_skidl and Electro Grammar as separate entities allows people to choose whether to use them or not. |
No, the python version of Electro Grammar is transformed using Lark and does not have any JS dependencies after transformation.
No idea, It was just the first thing I found when I realised that my values where in floating point and that SKiDL expects strings. Re: licensing, sounds sensible. One thing I had been thinking of is allowing from skidl import Part
c1 = Part('1uF 0603') What do you think? |
I made a component description parser called Electro Grammar that currently works on SMD resistor, capacitors and LEDs (planning to expand this to other types of components as well).
I have been porting it to Python (still very much work-in-progress) and thought I would try and use it to make SKiDL a bit easier. Here is an example of what I have been playing around with today:
more details in a notebook
Some things to note:
thoseeasy_skidl
functions currently break the*
comprehensions i.e.r1, r2 = resistor('1k') * 2
won't work, do you see a good way around that?Nevermind, I was confused about the
TEMPLATE
thing.Any comments on this at all are very much appreciated.
The text was updated successfully, but these errors were encountered: