@@ -83,6 +83,7 @@ const comma = punctuation
8383const optionalComma = optional ( comma ) ;
8484const word = specificToken ( "word" ) . map ( ( { word } ) => word ) ;
8585const properWords = specificToken ( "proper word" ) . map ( ( { words } ) => words ) ;
86+
8687function wordFrom ( set : Set < string > , description : string ) : Parser < string > {
8788 return word . filter ( ( word ) =>
8889 set . has ( word ) ||
@@ -128,6 +129,7 @@ const emphasis = choice<Emphasis>(
128129 specificWord ( "a" ) . map ( ( word ) => ( { type : "word" , word } ) ) ,
129130) ;
130131const optionalEmphasis = optional ( emphasis ) ;
132+
131133const alaXLongGlyph = memoize ( ( word : string ) =>
132134 specificWord ( word )
133135 . skip ( specificToken ( "headless long glyph end" ) )
@@ -335,6 +337,7 @@ const longAnu = sequence(
335337)
336338 . skip ( specificToken ( "headless long glyph end" ) )
337339 . map ( ( [ phrase , morePhrase ] ) => [ phrase , ...morePhrase ] ) ;
340+
338341function nestedPhrasesOnly (
339342 nestingRule : ReadonlyArray < "en" | "li" | "o" | "e" | "anu" > ,
340343) : Parser < MultiplePhrases > {
@@ -471,6 +474,7 @@ const preposition = choice<Preposition>(
471474 } ) ) ,
472475)
473476 . filter ( filter ( PREPOSITION_RULE ) ) ;
477+
474478function associatedPredicates (
475479 nestingRule : ReadonlyArray < "li" | "o" | "anu" > ,
476480) : Parser < Predicate > {
0 commit comments