SC (sc v1.0.2)

View Source

⚠️ DEPRECATED: This package has been renamed to Statifier.

Migration

This sc package is deprecated. Please migrate to the new statifier package:

# In mix.exs
def deps do
  [
    {:statifier, "~> 1.1"}  # ✅ Use this instead
    # {:sc, "~> 1.0"}      # ❌ Deprecated
  ]
end

Code Migration

Simply replace SC. with Statifier. throughout your codebase:

# Old (deprecated)
{:ok, document} = SC.parse(xml)
{:ok, state_chart} = SC.interpret(document)

# New (current)
{:ok, document} = Statifier.parse(xml)
{:ok, state_chart} = Statifier.interpret(document)

New Repository: https://github.com/riddler/statifier Documentation: https://hexdocs.pm/statifier

Summary

Functions

interpret(document)

This function is deprecated. Use Statifier.interpret/1 instead. Add {:statifier, "~> 1.1"} to deps and replace SC with Statifier..

See SC.Interpreter.initialize/1.

parse(source_string)

This function is deprecated. Use Statifier.parse/1 instead. Add {:statifier, "~> 1.1"} to deps and replace SC with Statifier..

See SC.Parser.SCXML.parse/1.

validate(document)

This function is deprecated. Use Statifier.validate/1 instead. Add {:statifier, "~> 1.1"} to deps and replace SC with Statifier..

See SC.Validator.validate/1.