Skip to content

Commit

Permalink
Add API for Exp traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
ampli committed Jul 18, 2019
1 parent 6766538 commit a1df0ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions link-grammar/dict-common/dict-structures.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ static inline char lg_exp_get_dir(const Exp* exp) { return exp->dir; }
static inline bool lg_exp_get_multi(const Exp* exp) { return exp->multi; }
const char* lg_exp_get_string(const Exp*);
static inline double lg_exp_get_cost(const Exp* exp) { return exp->cost; }
static inline Exp* lg_exp_operand_first(Exp* exp) { return exp->operand_first; }
static inline Exp* lg_exp_operand_next(Exp* exp) { return exp->operand_next; }

/**
* The dictionary is stored as a binary tree comprised of the following
Expand Down

0 comments on commit a1df0ca

Please sign in to comment.