Esperanto.Barrier behaviour (esperanto v0.1.0)

An interface responsible to stop the walker and also return a new walker with the barrier desotroyed

Link to this section Summary

Callbacks

Remove the barrier from the walker paremters

Check if parser should barrier the walker paremters

Link to this section Callbacks

Link to this callback

destroy_barrier(walker)

Specs

destroy_barrier(walker :: Esperanto.Walker.t()) :: Esperanto.Walker.t()

Remove the barrier from the walker paremters:

  • walker- Parse is responsible to walk trough input returns: A new walker without the barrier`
Link to this callback

should_bar(walker)

Specs

should_bar(walker :: Esperanto.Walker.t()) :: boolean()

Check if parser should barrier the walker paremters:

  • walker- Parse is responsible to walk trough input returns: true if the the walker should be barried`