1 /*************************************************************************/ 2 /* Copyright (c) 2004 */ 3 /* Daniel Sleator, David Temperley, and John Lafferty */ 4 /* All rights reserved */ 5 /* */ 6 /* Use of the link grammar parsing system is subject to the terms of the */ 7 /* license set forth in the LICENSE file included with this software. */ 8 /* This license allows free redistribution and use in source and binary */ 9 /* forms, with or without modification, subject to certain conditions. */ 10 /* */ 11 /*************************************************************************/ 12 13 #include <stdbool.h> 14 #include "pp-structures.h" 15 16 pp_linkset *pp_linkset_open(int size); 17 void pp_linkset_close (pp_linkset *ls); 18 void pp_linkset_clear (pp_linkset *ls); 19 bool pp_linkset_add (pp_linkset *ls, const char *str); 20 bool pp_linkset_match (pp_linkset *ls, const char *str); 21 bool pp_linkset_match_bw (pp_linkset *ls, const char *str); 22 size_t pp_linkset_population(pp_linkset *ls); 23