[][src]Function liblet::derivation::step

pub fn step(p_index: usize, index: usize) -> DerivationStep

Convenience function for creating a step from a production index and a sentential form symbol index.

Examples

use liblet::derivation::step;
use liblet::symbol::symbol;

let s = step(0,0);

assert_eq!(s.p_index, 0);
assert_eq!(s.index, 0);