1 /* 2 * Copyright (c) 1991-2007 Kawahara Lab., Kyoto University 3 * Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology 4 * Copyright (c) 2005-2007 Julius project team, Nagoya Institute of Technology 5 * All rights reserved 6 */ 7 8 typedef struct __wtoken__ { 9 WORD_ID wid; 10 struct __wtoken__ *next; 11 } WTOKEN; 12 13 typedef struct __state_chain__ { 14 int state; 15 struct __state_chain__ *next; 16 } STATECHAIN; 17 18 void put_wtoken(WTOKEN **wseq, int nseq); 19 boolean new_get_wtoken(char *buf, WTOKEN **wseq, int *nseq_ret); 20 void free_wtoken(WTOKEN **wseq, int nseq); 21 int next_terms(int stateid, int *termbuf, int *nextstatebuf); 22 int compaction_int(int *a, int num); 23 char *rl_gets (char *prompt); 24 char *dfaterm_generator(char *text, int state); 25 char *dfaword_generator(char *text, int state); 26 void init_term(char *filename, char **termname); 27