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

Generate scdlang from other formats #22

Open
4 tasks
DrSensor opened this issue Jun 21, 2019 · 0 comments
Open
4 tasks

Generate scdlang from other formats #22

DrSensor opened this issue Jun 21, 2019 · 0 comments
Labels
prototype Prototype an idea/wishlist
Milestone

Comments

@DrSensor
Copy link
Owner

DrSensor commented Jun 21, 2019

[Scope] only support formats that (pick one):

  • not being used to describe a state machine or configuration
    • and not literally statecharts or it's derivative
  • or standardized interchangeable formats
    • and generated from another system
Possible formats:
API (prone to changes)
let parser = Scdlang::new();

parser.transform().expressions
    .nth(0).current_state("B")?
    .next_state("A")?.event("C")?;

assert_eq!("A -> B", &parser.to_string());

Possibly, it will use the caches to build the syntax string

Resources
@DrSensor DrSensor added the prototype Prototype an idea/wishlist label Jun 21, 2019
@DrSensor DrSensor added this to the v1.0 milestone Jun 21, 2019
@DrSensor DrSensor modified the milestones: v1.0, v2.0-dev Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prototype Prototype an idea/wishlist
Projects
None yet
Development

No branches or pull requests

1 participant