[tracker/whitespace: 4/4] Fixed tabulation and indentation for all imported .[ch] code
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/whitespace: 4/4] Fixed tabulation and indentation for all imported .[ch] code
- Date: Thu, 10 Dec 2009 18:41:52 +0000 (UTC)
commit 91f523b98ae24c64949b3b719e99c77e2ff39c43
Author: Martyn Russell <martyn lanedo com>
Date: Thu Dec 10 18:32:32 2009 +0000
Fixed tabulation and indentation for all imported .[ch] code
This is done in a separate commit in case we want to revert this and
leave imported code as it was when it was imported.
src/libinotify/inotify-handle.c | 342 +++---
src/libinotify/inotify-handle.h | 26 +-
src/libinotify/inotify-listhash.c | 90 +-
src/libinotify/inotify-log.h | 14 +-
src/libinotify/inotify-monitor.c | 528 +++++-----
src/libinotify/inotify-monitor.h | 8 +-
src/libstemmer/api.c | 98 +-
src/libstemmer/api.h | 12 +-
src/libstemmer/header.h | 8 +-
src/libstemmer/libstemmer.c | 122 +-
src/libstemmer/libstemmer.h | 124 +-
src/libstemmer/modules.h | 150 ++--
src/libstemmer/stem_UTF_8_danish.c | 462 ++++----
src/libstemmer/stem_UTF_8_danish.h | 6 +-
src/libstemmer/stem_UTF_8_dutch.c | 978 ++++++++--------
src/libstemmer/stem_UTF_8_dutch.h | 6 +-
src/libstemmer/stem_UTF_8_english.c | 1640 ++++++++++++++--------------
src/libstemmer/stem_UTF_8_english.h | 6 +-
src/libstemmer/stem_UTF_8_finnish.c | 1132 ++++++++++----------
src/libstemmer/stem_UTF_8_finnish.h | 6 +-
src/libstemmer/stem_UTF_8_french.c | 1896 ++++++++++++++++----------------
src/libstemmer/stem_UTF_8_french.h | 6 +-
src/libstemmer/stem_UTF_8_german.c | 782 +++++++-------
src/libstemmer/stem_UTF_8_german.h | 6 +-
src/libstemmer/stem_UTF_8_hungarian.c | 1586 +++++++++++++-------------
src/libstemmer/stem_UTF_8_hungarian.h | 6 +-
src/libstemmer/stem_UTF_8_italian.c | 1504 +++++++++++++-------------
src/libstemmer/stem_UTF_8_italian.h | 6 +-
src/libstemmer/stem_UTF_8_norwegian.c | 390 ++++----
src/libstemmer/stem_UTF_8_norwegian.h | 6 +-
src/libstemmer/stem_UTF_8_porter.c | 1108 ++++++++++----------
src/libstemmer/stem_UTF_8_porter.h | 6 +-
src/libstemmer/stem_UTF_8_portuguese.c | 1406 ++++++++++++------------
src/libstemmer/stem_UTF_8_portuguese.h | 6 +-
src/libstemmer/stem_UTF_8_russian.c | 908 ++++++++--------
src/libstemmer/stem_UTF_8_russian.h | 6 +-
src/libstemmer/stem_UTF_8_spanish.c | 1516 +++++++++++++-------------
src/libstemmer/stem_UTF_8_spanish.h | 6 +-
src/libstemmer/stem_UTF_8_swedish.c | 402 ++++----
src/libstemmer/stem_UTF_8_swedish.h | 6 +-
src/libstemmer/utilities.c | 596 +++++-----
41 files changed, 8956 insertions(+), 8956 deletions(-)
---
diff --git a/src/libinotify/inotify-handle.c b/src/libinotify/inotify-handle.c
index b828cb9..4e920e2 100644
--- a/src/libinotify/inotify-handle.c
+++ b/src/libinotify/inotify-handle.c
@@ -26,249 +26,249 @@
#include "inotify-log.h"
enum inh_state
-{
- inh_state_initial,
- inh_state_deleted,
- inh_state_created
-};
+ {
+ inh_state_initial,
+ inh_state_deleted,
+ inh_state_created
+ };
struct _INotifyHandle
{
- int refcount;
- INotifyCallback callback;
- gpointer user_data;
- gint32 wd;
- guint32 mask;
- char *filename;
- unsigned long flags;
- enum inh_state state;
- INotifyHandle *parent;
+ int refcount;
+ INotifyCallback callback;
+ gpointer user_data;
+ gint32 wd;
+ guint32 mask;
+ char *filename;
+ unsigned long flags;
+ enum inh_state state;
+ INotifyHandle *parent;
};
INotifyHandle *
inotify_handle_new( const char *filename, guint32 mask, unsigned long flags )
{
- INotifyHandle *inh;
-
- inh = g_new( INotifyHandle, 1 );
- inh->wd = -1;
- inh->mask = mask;
- inh->filename = g_strdup( filename );
- inh->refcount = 1;
- inh->callback = NULL;
- inh->user_data = NULL;
- inh->flags = flags;
- inh->state = inh_state_initial;
- inh->parent = NULL;
-
- inotify_debug( "New handle %p on %s", inh, inh->filename );
-
- return inh;
+ INotifyHandle *inh;
+
+ inh = g_new( INotifyHandle, 1 );
+ inh->wd = -1;
+ inh->mask = mask;
+ inh->filename = g_strdup( filename );
+ inh->refcount = 1;
+ inh->callback = NULL;
+ inh->user_data = NULL;
+ inh->flags = flags;
+ inh->state = inh_state_initial;
+ inh->parent = NULL;
+
+ inotify_debug( "New handle %p on %s", inh, inh->filename );
+
+ return inh;
}
void
inotify_handle_ref( INotifyHandle *inh )
{
- inotify_debug( "Ref handle %p on %s", inh, inh->filename );
+ inotify_debug( "Ref handle %p on %s", inh, inh->filename );
- g_atomic_int_inc( &inh->refcount );
+ g_atomic_int_inc( &inh->refcount );
}
void
inotify_handle_unref( INotifyHandle *inh )
{
- inotify_debug( "Deref handle %p on %s", inh, inh->filename );
-
- if( g_atomic_int_dec_and_test( &inh->refcount ) )
- {
- inotify_debug( " and destroy" );
- g_free( inh->filename );
- g_free( inh );
- }
+ inotify_debug( "Deref handle %p on %s", inh, inh->filename );
+
+ if( g_atomic_int_dec_and_test( &inh->refcount ) )
+ {
+ inotify_debug( " and destroy" );
+ g_free( inh->filename );
+ g_free( inh );
+ }
}
gint32
inotify_handle_get_wd( INotifyHandle *inh )
{
- return inh->wd;
+ return inh->wd;
}
void
inotify_handle_set_wd( INotifyHandle *inh, gint32 wd )
{
- inh->wd = wd;
+ inh->wd = wd;
}
guint32
inotify_handle_get_mask( INotifyHandle *inh )
{
- return inh->mask;
+ return inh->mask;
}
const char *
inotify_handle_get_filename( INotifyHandle *inh )
{
- return inh->filename;
+ return inh->filename;
}
const char *
inotify_handle_get_basename( INotifyHandle *inh )
{
- const char *bn;
+ const char *bn;
- bn = rindex( inh->filename, '/' );
+ bn = rindex( inh->filename, '/' );
- if( bn == NULL )
- return NULL;
+ if( bn == NULL )
+ return NULL;
- if( bn == inh->filename )
- return bn;
+ if( bn == inh->filename )
+ return bn;
- return bn + 1;
+ return bn + 1;
}
void
inotify_handle_set_parent( INotifyHandle *inh, INotifyHandle *parent )
{
- inh->parent = parent;
+ inh->parent = parent;
}
INotifyHandle *
inotify_handle_get_parent( INotifyHandle *inh )
{
- return inh->parent;
+ return inh->parent;
}
void
inotify_handle_set_callback( INotifyHandle *inh, INotifyCallback callback,
- gpointer user_data )
+ gpointer user_data )
{
- inh->callback = callback;
- inh->user_data = user_data;
+ inh->callback = callback;
+ inh->user_data = user_data;
}
static guint32
inotify_handle_event_applicable( INotifyHandle *inh, guint32 type,
- const char *filename )
+ const char *filename )
{
- enum inh_state state = inh->state;
-
- inotify_debug( "Juding applicability of event %x on %p/%s",
- type, inh, filename );
-
- if( type & IN_SYNTHETIC )
- {
- inotify_debug( " event is synthetic" );
-
- /* Synthetic events should not be delivered except as the first event. */
- if( state != inh_state_initial )
- {
- inotify_debug( " dropping synthetic event on non-initial state" );
- return 0;
- }
-
- /* Synthetic create event... */
- if( type & IN_CREATE )
- {
- inotify_debug( " synthetic create event" );
-
- inh->state = inh_state_created;
-
- /* Only deliver if the user wants to receive synthetic create events. */
- if( inh->flags & IN_FLAG_SYNTH_CREATE )
- {
- inotify_debug( " user wants it -- delivering" );
- return IN_CREATE | (IN_SYNTHETIC & inh->mask);
- }
- else
- {
- inotify_debug( " user doesn't want it -- dropping" );
- return 0;
- }
- }
-
- if( type & IN_DELETE )
- {
- inotify_debug( " synthetic delete event" );
- inh->state = inh_state_deleted;
-
- /* Only deliver if the user wants to receive synthetic delete events. */
- if( inh->flags & IN_FLAG_SYNTH_DELETE )
- {
- inotify_debug( " user wants it -- delivering" );
- return IN_DELETE | (IN_SYNTHETIC & inh->mask);
- }
- else
- {
- inotify_debug( " user doesn't want it -- dropping" );
- return 0;
- }
- }
-
- inotify_warn( "Invalid synthetic event" );
- return 0;
- }
-
- /* Non-synthetic events. */
- type &= inh->mask;
-
- /* Event occured on a file in a directory -- not the object itself. */
- if( filename != NULL )
- {
- if( state != inh_state_created )
- inotify_warn( "Received directory event on non-created inh" );
-
- inotify_debug( " event is on file -- passing through" );
-
- return type;
- }
-
- /* Else, non-synthetic event directly on the watched object. */
- switch( type )
- {
- case IN_CREATE:
- case IN_MOVED_TO:
- inh->state = inh_state_created;
-
- if( state == inh_state_created )
- inotify_warn( "Create on already-existing file" );
-
- inotify_debug( " event is create-type. passing through" );
-
- return type;
-
- case IN_DELETE:
- case IN_DELETE_SELF:
- case IN_MOVED_FROM:
- inh->state = inh_state_deleted;
-
- if( state == inh_state_deleted )
- {
- inotify_debug( " dropping remove event on already-removed file" );
- return 0;
- }
-
- inotify_debug( " event is delete-type. passing through" );
-
- return type;
-
- default:
- /* if( state != inh_state_created ) */
- /* inotify_warn( "Received direct event on non-created inh" ); */
-
- inotify_debug( " event is other type. passing through" );
-
- return type;
- }
+ enum inh_state state = inh->state;
+
+ inotify_debug( "Juding applicability of event %x on %p/%s",
+ type, inh, filename );
+
+ if( type & IN_SYNTHETIC )
+ {
+ inotify_debug( " event is synthetic" );
+
+ /* Synthetic events should not be delivered except as the first event. */
+ if( state != inh_state_initial )
+ {
+ inotify_debug( " dropping synthetic event on non-initial state" );
+ return 0;
+ }
+
+ /* Synthetic create event... */
+ if( type & IN_CREATE )
+ {
+ inotify_debug( " synthetic create event" );
+
+ inh->state = inh_state_created;
+
+ /* Only deliver if the user wants to receive synthetic create events. */
+ if( inh->flags & IN_FLAG_SYNTH_CREATE )
+ {
+ inotify_debug( " user wants it -- delivering" );
+ return IN_CREATE | (IN_SYNTHETIC & inh->mask);
+ }
+ else
+ {
+ inotify_debug( " user doesn't want it -- dropping" );
+ return 0;
+ }
+ }
+
+ if( type & IN_DELETE )
+ {
+ inotify_debug( " synthetic delete event" );
+ inh->state = inh_state_deleted;
+
+ /* Only deliver if the user wants to receive synthetic delete events. */
+ if( inh->flags & IN_FLAG_SYNTH_DELETE )
+ {
+ inotify_debug( " user wants it -- delivering" );
+ return IN_DELETE | (IN_SYNTHETIC & inh->mask);
+ }
+ else
+ {
+ inotify_debug( " user doesn't want it -- dropping" );
+ return 0;
+ }
+ }
+
+ inotify_warn( "Invalid synthetic event" );
+ return 0;
+ }
+
+ /* Non-synthetic events. */
+ type &= inh->mask;
+
+ /* Event occured on a file in a directory -- not the object itself. */
+ if( filename != NULL )
+ {
+ if( state != inh_state_created )
+ inotify_warn( "Received directory event on non-created inh" );
+
+ inotify_debug( " event is on file -- passing through" );
+
+ return type;
+ }
+
+ /* Else, non-synthetic event directly on the watched object. */
+ switch( type )
+ {
+ case IN_CREATE:
+ case IN_MOVED_TO:
+ inh->state = inh_state_created;
+
+ if( state == inh_state_created )
+ inotify_warn( "Create on already-existing file" );
+
+ inotify_debug( " event is create-type. passing through" );
+
+ return type;
+
+ case IN_DELETE:
+ case IN_DELETE_SELF:
+ case IN_MOVED_FROM:
+ inh->state = inh_state_deleted;
+
+ if( state == inh_state_deleted )
+ {
+ inotify_debug( " dropping remove event on already-removed file" );
+ return 0;
+ }
+
+ inotify_debug( " event is delete-type. passing through" );
+
+ return type;
+
+ default:
+ /* if( state != inh_state_created ) */
+ /* inotify_warn( "Received direct event on non-created inh" ); */
+
+ inotify_debug( " event is other type. passing through" );
+
+ return type;
+ }
}
void
inotify_handle_invoke_callback( INotifyHandle *inh, const char *filename,
- guint32 type, guint32 cookie )
+ guint32 type, guint32 cookie )
{
- type = inotify_handle_event_applicable( inh, type, filename );
+ type = inotify_handle_event_applicable( inh, type, filename );
- if( type != 0 && inh->callback )
- inh->callback( inh, inh->filename, filename, type,
- cookie, inh->user_data );
+ if( type != 0 && inh->callback )
+ inh->callback( inh, inh->filename, filename, type,
+ cookie, inh->user_data );
}
diff --git a/src/libinotify/inotify-handle.h b/src/libinotify/inotify-handle.h
index 59de5f4..39e01bd 100644
--- a/src/libinotify/inotify-handle.h
+++ b/src/libinotify/inotify-handle.h
@@ -21,25 +21,25 @@
#ifndef _libinotify_inotify_handle_h_
#define _libinotify_inotify_handle_h_
-#define IN_FLAG_NONE 0x00000000
-#define IN_FLAG_FILE_BASED 0x00000001
-#define IN_FLAG_SYNTH_CREATE 0x00000002
-#define IN_FLAG_SYNTH_DELETE 0x00000004
+#define IN_FLAG_NONE 0x00000000
+#define IN_FLAG_FILE_BASED 0x00000001
+#define IN_FLAG_SYNTH_CREATE 0x00000002
+#define IN_FLAG_SYNTH_DELETE 0x00000004
-#define IN_SYNTHETIC 0x00001000
+#define IN_SYNTHETIC 0x00001000
#include <glib.h>
typedef struct _INotifyHandle INotifyHandle;
typedef void (*INotifyCallback)( INotifyHandle *inh,
- const char *monitor_name,
- const char *filename,
- guint32 event_type,
- guint32 cookie,
- gpointer user_data );
+ const char *monitor_name,
+ const char *filename,
+ guint32 event_type,
+ guint32 cookie,
+ gpointer user_data );
INotifyHandle *inotify_handle_new( const char *filename, guint32 mask,
- unsigned long flags );
+ unsigned long flags );
void inotify_handle_ref( INotifyHandle *inh );
void inotify_handle_unref( INotifyHandle *inh );
gint32 inotify_handle_get_wd( INotifyHandle *inh );
@@ -50,8 +50,8 @@ const char *inotify_handle_get_basename( INotifyHandle *inh );
void inotify_handle_set_parent( INotifyHandle *inh, INotifyHandle *parent );
INotifyHandle *inotify_handle_get_parent( INotifyHandle *inh );
void inotify_handle_set_callback( INotifyHandle *inh, INotifyCallback callback,
- gpointer user_data );
+ gpointer user_data );
void inotify_handle_invoke_callback( INotifyHandle *inh, const char *filename,
- guint32 event_type, guint32 cookie );
+ guint32 event_type, guint32 cookie );
#endif /* _libinotify_inotify_handle_h_ */
diff --git a/src/libinotify/inotify-listhash.c b/src/libinotify/inotify-listhash.c
index 6a6996a..d658098 100644
--- a/src/libinotify/inotify-listhash.c
+++ b/src/libinotify/inotify-listhash.c
@@ -29,105 +29,105 @@ static GHashTable *inotify_wd_table;
GSList *
inotify_listhash_get (gint32 wd)
{
- GSList *list;
+ GSList *list;
- list = g_hash_table_lookup (inotify_wd_table, GINT_TO_POINTER (wd));
+ list = g_hash_table_lookup (inotify_wd_table, GINT_TO_POINTER (wd));
- return list;
+ return list;
}
int
inotify_listhash_remove (INotifyHandle *inh)
{
- GSList *list;
- gint32 wd;
+ GSList *list;
+ gint32 wd;
- wd = inotify_handle_get_wd (inh);
+ wd = inotify_handle_get_wd (inh);
- list = g_hash_table_lookup (inotify_wd_table, GINT_TO_POINTER (wd));
+ list = g_hash_table_lookup (inotify_wd_table, GINT_TO_POINTER (wd));
- if (list == NULL)
- return -1;
+ if (list == NULL)
+ return -1;
- list = g_slist_remove (list, inh);
- inotify_handle_unref (inh);
+ list = g_slist_remove (list, inh);
+ inotify_handle_unref (inh);
- if (list != NULL)
- g_hash_table_replace (inotify_wd_table, GINT_TO_POINTER (wd), list);
- else
- g_hash_table_remove (inotify_wd_table, GINT_TO_POINTER (wd));
+ if (list != NULL)
+ g_hash_table_replace (inotify_wd_table, GINT_TO_POINTER (wd), list);
+ else
+ g_hash_table_remove (inotify_wd_table, GINT_TO_POINTER (wd));
- return g_slist_length (list);
+ return g_slist_length (list);
}
void
inotify_listhash_append (INotifyHandle *inh, gint32 wd)
{
- GSList *list;
+ GSList *list;
- inotify_handle_ref (inh);
- inotify_handle_set_wd (inh, wd);
+ inotify_handle_ref (inh);
+ inotify_handle_set_wd (inh, wd);
- list = g_hash_table_lookup (inotify_wd_table, GINT_TO_POINTER (wd));
- list = g_slist_append (list, inh);
- g_hash_table_replace (inotify_wd_table, GINT_TO_POINTER (wd), list);
+ list = g_hash_table_lookup (inotify_wd_table, GINT_TO_POINTER (wd));
+ list = g_slist_append (list, inh);
+ g_hash_table_replace (inotify_wd_table, GINT_TO_POINTER (wd), list);
}
int
inotify_listhash_ignore (gint32 wd)
{
- GSList *link, *next;
+ GSList *link, *next;
- link = g_hash_table_lookup (inotify_wd_table, GINT_TO_POINTER (wd));
- g_hash_table_remove (inotify_wd_table, GINT_TO_POINTER (wd));
+ link = g_hash_table_lookup (inotify_wd_table, GINT_TO_POINTER (wd));
+ g_hash_table_remove (inotify_wd_table, GINT_TO_POINTER (wd));
- if (link == NULL)
- return -1;
+ if (link == NULL)
+ return -1;
- for (; link; link = next)
- {
- next = link->next;
+ for (; link; link = next)
+ {
+ next = link->next;
- inotify_handle_unref (link->data);
- g_slist_free_1 (link);
- }
+ inotify_handle_unref (link->data);
+ g_slist_free_1 (link);
+ }
- return 0;
+ return 0;
}
int
inotify_listhash_length (gint32 wd)
{
- GSList *list;
+ GSList *list;
- list = g_hash_table_lookup (inotify_wd_table, GINT_TO_POINTER (wd));
+ list = g_hash_table_lookup (inotify_wd_table, GINT_TO_POINTER (wd));
- return g_slist_length (list);
+ return g_slist_length (list);
}
guint32
inotify_listhash_get_mask (gint32 wd)
{
- GSList *list;
- guint32 mask;
+ GSList *list;
+ guint32 mask;
- list = g_hash_table_lookup (inotify_wd_table, GINT_TO_POINTER (wd));
+ list = g_hash_table_lookup (inotify_wd_table, GINT_TO_POINTER (wd));
- for (mask = 0; list; list = list->next)
- mask |= inotify_handle_get_mask (list->data);
+ for (mask = 0; list; list = list->next)
+ mask |= inotify_handle_get_mask (list->data);
- return mask;
+ return mask;
}
void
inotify_listhash_initialise (void)
{
- inotify_wd_table = g_hash_table_new (NULL, NULL);
+ inotify_wd_table = g_hash_table_new (NULL, NULL);
}
void
inotify_listhash_destroy (void)
{
- g_hash_table_destroy (inotify_wd_table);
+ g_hash_table_destroy (inotify_wd_table);
}
diff --git a/src/libinotify/inotify-log.h b/src/libinotify/inotify-log.h
index 7469ed3..e2e8e61 100644
--- a/src/libinotify/inotify-log.h
+++ b/src/libinotify/inotify-log.h
@@ -28,24 +28,24 @@
#ifdef LIBINOTIFY_DEBUG
# define inotify_debug(x, ...) g_log("libinotify", G_LOG_LEVEL_DEBUG, \
- x, ## __VA_ARGS__)
+ x, ## __VA_ARGS__)
#else
# define inotify_debug(x, ...)
#endif
#define inotify_warn(x, ...) g_log("libinotify", G_LOG_LEVEL_WARNING, \
- x, ## __VA_ARGS__)
+ x, ## __VA_ARGS__)
-#define inotify_fatal(x, ...) g_log("libinotify", G_LOG_LEVEL_ERROR, \
- x, ## __VA_ARGS__)
+#define inotify_fatal(x, ...) g_log("libinotify", G_LOG_LEVEL_ERROR, \
+ x, ## __VA_ARGS__)
static inline void
inotify_debug_initialise()
{
#ifdef LIBINOTIFY_DEBUG
- if( getenv( "DEBUG_LIBINOTIFY" ) == NULL )
- g_log_set_handler( "libinotify", G_LOG_LEVEL_DEBUG,
- (GLogFunc) strlen, NULL );
+ if( getenv( "DEBUG_LIBINOTIFY" ) == NULL )
+ g_log_set_handler( "libinotify", G_LOG_LEVEL_DEBUG,
+ (GLogFunc) strlen, NULL );
#endif
}
diff --git a/src/libinotify/inotify-monitor.c b/src/libinotify/inotify-monitor.c
index 542105e..baba687 100644
--- a/src/libinotify/inotify-monitor.c
+++ b/src/libinotify/inotify-monitor.c
@@ -36,364 +36,364 @@ static int inotify_monitor_fd = -1;
static void
process_one_event( struct inotify_event *ine )
{
- const char *filename;
- GSList *list;
+ const char *filename;
+ GSList *list;
- if( ine->len )
- filename = ine->name;
- else
- filename = NULL;
+ if( ine->len )
+ filename = ine->name;
+ else
+ filename = NULL;
- inotify_debug( "Got one event" );
+ inotify_debug( "Got one event" );
- for( list = inotify_listhash_get( ine->wd ); list; list = list->next )
- {
- inotify_debug( " dispatch to %p", list->data );
- inotify_handle_invoke_callback( list->data, filename,
- ine->mask, ine->cookie );
- }
+ for( list = inotify_listhash_get( ine->wd ); list; list = list->next )
+ {
+ inotify_debug( " dispatch to %p", list->data );
+ inotify_handle_invoke_callback( list->data, filename,
+ ine->mask, ine->cookie );
+ }
- if( ine->mask & IN_IGNORED )
- inotify_listhash_ignore( ine->wd );
+ if( ine->mask & IN_IGNORED )
+ inotify_listhash_ignore( ine->wd );
}
static gboolean
inotify_watch_func( GIOChannel *source, GIOCondition condition, gpointer data )
{
- struct inotify_event ine[20];
- int size, namesize;
- int fd;
+ struct inotify_event ine[20];
+ int size, namesize;
+ int fd;
- g_static_rec_mutex_lock( &inotify_monitor_lock );
+ g_static_rec_mutex_lock( &inotify_monitor_lock );
- fd = g_io_channel_unix_get_fd( source );
+ fd = g_io_channel_unix_get_fd( source );
- while( (size = read( fd, ine, sizeof ine )) >= 0 )
- {
- inotify_debug( "Original size %d", size );
- size /= sizeof *ine;
+ while( (size = read( fd, ine, sizeof ine )) >= 0 )
+ {
+ inotify_debug( "Original size %d", size );
+ size /= sizeof *ine;
- inotify_debug( "Got size %d", size );
+ inotify_debug( "Got size %d", size );
- while( size > 0 )
- {
- /* Division, rounding up. */
- namesize = (ine->len + sizeof *ine - 1) / sizeof *ine + 1;
+ while( size > 0 )
+ {
+ /* Division, rounding up. */
+ namesize = (ine->len + sizeof *ine - 1) / sizeof *ine + 1;
- if( namesize > size )
- {
- // XXX might be false if lots of events stack up
- inotify_fatal( "namesize > size!" );
- }
+ if( namesize > size )
+ {
+ // XXX might be false if lots of events stack up
+ inotify_fatal( "namesize > size!" );
+ }
- size -= namesize;
+ size -= namesize;
- /* Add some sort of yield to the main loop. */
- while (g_main_context_pending (NULL)) {
- g_main_context_iteration (NULL, FALSE);
- }
+ /* Add some sort of yield to the main loop. */
+ while (g_main_context_pending (NULL)) {
+ g_main_context_iteration (NULL, FALSE);
+ }
- process_one_event( ine );
- memmove( ine, &ine[namesize], sizeof *ine * size );
- }
- }
+ process_one_event( ine );
+ memmove( ine, &ine[namesize], sizeof *ine * size );
+ }
+ }
- g_static_rec_mutex_unlock( &inotify_monitor_lock );
+ g_static_rec_mutex_unlock( &inotify_monitor_lock );
- return TRUE;
+ return TRUE;
}
static int
inotify_monitor_initialise( void )
{
- GIOChannel *gio;
+ GIOChannel *gio;
- if( inotify_monitor_fd != -1 )
- return 0;
+ if( inotify_monitor_fd != -1 )
+ return 0;
- inotify_monitor_fd = inotify_init();
+ inotify_monitor_fd = inotify_init();
- if( inotify_monitor_fd < 0 )
- return -1;
+ if( inotify_monitor_fd < 0 )
+ return -1;
- inotify_listhash_initialise();
+ inotify_listhash_initialise();
- gio = g_io_channel_unix_new( inotify_monitor_fd );
- g_io_add_watch( gio, G_IO_IN, inotify_watch_func, NULL );
- g_io_channel_set_flags( gio, G_IO_FLAG_NONBLOCK, NULL );
+ gio = g_io_channel_unix_new( inotify_monitor_fd );
+ g_io_add_watch( gio, G_IO_IN, inotify_watch_func, NULL );
+ g_io_channel_set_flags( gio, G_IO_FLAG_NONBLOCK, NULL );
- inotify_debug_initialise();
+ inotify_debug_initialise();
- return 0;
+ return 0;
}
static int
inotify_monitor_add_raw( INotifyHandle *inh )
{
- const char *filename = inotify_handle_get_filename( inh );
- guint32 mask = inotify_handle_get_mask( inh );
+ const char *filename = inotify_handle_get_filename( inh );
+ guint32 mask = inotify_handle_get_mask( inh );
#ifndef IN_MASK_ADD
- guint32 needmask;
- int wd2;
+ guint32 needmask;
+ int wd2;
#endif
- int wd;
+ int wd;
#ifdef IN_MASK_ADD
- wd = inotify_add_watch( inotify_monitor_fd, filename, mask | IN_MASK_ADD );
+ wd = inotify_add_watch( inotify_monitor_fd, filename, mask | IN_MASK_ADD );
#else
- wd = inotify_add_watch( inotify_monitor_fd, filename, mask );
-
- if( wd < 0 )
- return -1;
-
- needmask = mask | inotify_listhash_get_mask( wd );
-
- if( needmask != mask )
- {
- /* This can only happen if we've already been watching the inode and we
- * just requested another watch on it with fewer events. We now have
- * to change the watch mask to restore the events we just blew away.
- */
-
- /* *Very* slight risk of race condition here if 'filename' has
- * disappeared or changed inodes since last inotify_add_watch call.
- */
- wd2 = inotify_add_watch( inotify_monitor_fd, filename, needmask );
-
- /* If this happens, we're in trouble no matter how you look at it since
- * we have no way of giving the proper mask to the inode. Even worse,
- * we might have just screwed up the mask on another inode. Find out.
- */
- if( wd2 != wd )
- inotify_warn( "race condition in inotify_monitor_add! (%d vs %d)",
- wd, wd2 );
-
- if( wd2 < 0 )
- {
- /* File has since disappeared -- nothing we can do! */
- }
- else if( wd2 != wd )
- {
- /* File has changed inode. Even worse! */
-
- if( inotify_listhash_length( wd2 ) == 0 )
- {
- /* We're not supposed to be watching this inode. */
- inotify_rm_watch( inotify_monitor_fd, wd2 );
- }
- else
- {
- /* If we did hit an inode we're already watching then we just
- * modified its mask. Ow. We could go hunting with the list of
- * filenames that we have in the listhash in hopes that one of them
- * still references the inode that we're looking for but this is
- * such a rare case and going hunting is likely to cause further
- * errors anyway...
- */
- }
- }
-
- /* We've either fixed it or can't fix it. Proceed... */
- }
+ wd = inotify_add_watch( inotify_monitor_fd, filename, mask );
+
+ if( wd < 0 )
+ return -1;
+
+ needmask = mask | inotify_listhash_get_mask( wd );
+
+ if( needmask != mask )
+ {
+ /* This can only happen if we've already been watching the inode and we
+ * just requested another watch on it with fewer events. We now have
+ * to change the watch mask to restore the events we just blew away.
+ */
+
+ /* *Very* slight risk of race condition here if 'filename' has
+ * disappeared or changed inodes since last inotify_add_watch call.
+ */
+ wd2 = inotify_add_watch( inotify_monitor_fd, filename, needmask );
+
+ /* If this happens, we're in trouble no matter how you look at it since
+ * we have no way of giving the proper mask to the inode. Even worse,
+ * we might have just screwed up the mask on another inode. Find out.
+ */
+ if( wd2 != wd )
+ inotify_warn( "race condition in inotify_monitor_add! (%d vs %d)",
+ wd, wd2 );
+
+ if( wd2 < 0 )
+ {
+ /* File has since disappeared -- nothing we can do! */
+ }
+ else if( wd2 != wd )
+ {
+ /* File has changed inode. Even worse! */
+
+ if( inotify_listhash_length( wd2 ) == 0 )
+ {
+ /* We're not supposed to be watching this inode. */
+ inotify_rm_watch( inotify_monitor_fd, wd2 );
+ }
+ else
+ {
+ /* If we did hit an inode we're already watching then we just
+ * modified its mask. Ow. We could go hunting with the list of
+ * filenames that we have in the listhash in hopes that one of them
+ * still references the inode that we're looking for but this is
+ * such a rare case and going hunting is likely to cause further
+ * errors anyway...
+ */
+ }
+ }
+
+ /* We've either fixed it or can't fix it. Proceed... */
+ }
#endif
- if( wd < 0 )
- return -1;
+ if( wd < 0 )
+ return -1;
- inotify_listhash_append( inh, wd );
+ inotify_listhash_append( inh, wd );
- return 0;
+ return 0;
}
static void
inotify_monitor_remove_raw( INotifyHandle *inh )
{
- if( inotify_listhash_remove( inh ) == 0 )
- {
- /* No watches left, so cancel the watch with the kernel. This Will
- * generate an IN_IGNORED event which will free the listhash stuff.
- */
- inotify_rm_watch( inotify_monitor_fd, inotify_handle_get_wd( inh ) );
- }
-
- /* We currently have no way of safely reducing the event mask on an
- * inode that we're watching. As such, just leave it alone. This means
- * that we'll receive extra events (which we'll filter out), but at least
- * we won't potentially put ourselves in an inconsistent state.
- */
+ if( inotify_listhash_remove( inh ) == 0 )
+ {
+ /* No watches left, so cancel the watch with the kernel. This Will
+ * generate an IN_IGNORED event which will free the listhash stuff.
+ */
+ inotify_rm_watch( inotify_monitor_fd, inotify_handle_get_wd( inh ) );
+ }
+
+ /* We currently have no way of safely reducing the event mask on an
+ * inode that we're watching. As such, just leave it alone. This means
+ * that we'll receive extra events (which we'll filter out), but at least
+ * we won't potentially put ourselves in an inconsistent state.
+ */
}
static void
inotify_internal_callback( INotifyHandle *inh, const char *monitor_name,
- const char *filename, guint32 event_type,
- guint32 cookie, gpointer user_data )
+ const char *filename, guint32 event_type,
+ guint32 cookie, gpointer user_data )
{
- INotifyHandle *child = user_data;
- int result;
-
- inotify_debug( "Got event for %s:%x while watching for %s on %s",
- filename, event_type, inotify_handle_get_basename( child ),
- monitor_name );
-
- event_type &= ~IN_ISDIR;
-
- if( !filename )
- {
- switch( event_type & ~IN_SYNTHETIC )
- {
- case IN_CREATE:
- case IN_MOVED_TO:
- result = inotify_monitor_add_raw( child );
-
- /* If child exists... */
- if( result == 0 )
- inotify_handle_invoke_callback( child, NULL, event_type, cookie );
-
- break;
-
- case IN_DELETE:
- case IN_DELETE_SELF:
- case IN_MOVE_SELF:
- case IN_MOVED_FROM:
- /* Parent just disappeared. Report that we've also been deleted. */
- inotify_handle_invoke_callback( child, NULL, event_type, cookie );
-
- /* Then unregister our watch with the kernel. */
- inotify_monitor_remove_raw( child );
-
- break;
- default:
- break;
-
- }
-
- return;
- }
-
- if( strcmp( inotify_handle_get_basename( child ), filename ) )
- return;
-
- switch( event_type )
- {
- case IN_CREATE:
- case IN_MOVED_TO:
- result = inotify_monitor_add_raw( child );
-
- inotify_handle_invoke_callback( child, NULL, event_type, cookie );
-
- if( result != 0 )
- inotify_handle_invoke_callback( child, NULL, IN_DELETE, cookie );
-
- break;
-
- case IN_DELETE:
- case IN_MOVED_FROM:
- /* We just disappeared. Report that we've been deleted. We must
- * send the event manually since the remove_raw might cause the
- * event not to be delivered normally.
- */
- inotify_handle_invoke_callback( child, NULL, event_type, cookie );
-
- /* Then unregister our watch with the kernel. */
- inotify_monitor_remove_raw( child );
- break;
- default:
- break;
- }
+ INotifyHandle *child = user_data;
+ int result;
+
+ inotify_debug( "Got event for %s:%x while watching for %s on %s",
+ filename, event_type, inotify_handle_get_basename( child ),
+ monitor_name );
+
+ event_type &= ~IN_ISDIR;
+
+ if( !filename )
+ {
+ switch( event_type & ~IN_SYNTHETIC )
+ {
+ case IN_CREATE:
+ case IN_MOVED_TO:
+ result = inotify_monitor_add_raw( child );
+
+ /* If child exists... */
+ if( result == 0 )
+ inotify_handle_invoke_callback( child, NULL, event_type, cookie );
+
+ break;
+
+ case IN_DELETE:
+ case IN_DELETE_SELF:
+ case IN_MOVE_SELF:
+ case IN_MOVED_FROM:
+ /* Parent just disappeared. Report that we've also been deleted. */
+ inotify_handle_invoke_callback( child, NULL, event_type, cookie );
+
+ /* Then unregister our watch with the kernel. */
+ inotify_monitor_remove_raw( child );
+
+ break;
+ default:
+ break;
+
+ }
+
+ return;
+ }
+
+ if( strcmp( inotify_handle_get_basename( child ), filename ) )
+ return;
+
+ switch( event_type )
+ {
+ case IN_CREATE:
+ case IN_MOVED_TO:
+ result = inotify_monitor_add_raw( child );
+
+ inotify_handle_invoke_callback( child, NULL, event_type, cookie );
+
+ if( result != 0 )
+ inotify_handle_invoke_callback( child, NULL, IN_DELETE, cookie );
+
+ break;
+
+ case IN_DELETE:
+ case IN_MOVED_FROM:
+ /* We just disappeared. Report that we've been deleted. We must
+ * send the event manually since the remove_raw might cause the
+ * event not to be delivered normally.
+ */
+ inotify_handle_invoke_callback( child, NULL, event_type, cookie );
+
+ /* Then unregister our watch with the kernel. */
+ inotify_monitor_remove_raw( child );
+ break;
+ default:
+ break;
+ }
}
INotifyHandle *
inotify_monitor_add( const char *filename, guint32 mask, unsigned long flags,
- INotifyCallback callback, gpointer user_data )
+ INotifyCallback callback, gpointer user_data )
{
- INotifyHandle *pinh, *inh;
- int result;
+ INotifyHandle *pinh, *inh;
+ int result;
- g_static_rec_mutex_lock( &inotify_monitor_lock );
+ g_static_rec_mutex_lock( &inotify_monitor_lock );
- if( inotify_monitor_initialise() )
- return NULL;
+ if( inotify_monitor_initialise() )
+ return NULL;
- inh = inotify_handle_new( filename, mask, flags );
- inotify_handle_set_callback( inh, callback, user_data );
+ inh = inotify_handle_new( filename, mask, flags );
+ inotify_handle_set_callback( inh, callback, user_data );
- if( (flags & IN_FLAG_FILE_BASED) == 0 || !strcmp( filename, "/" ) )
- {
- inotify_debug( "%s is raw", filename );
- result = inotify_monitor_add_raw( inh );
+ if( (flags & IN_FLAG_FILE_BASED) == 0 || !strcmp( filename, "/" ) )
+ {
+ inotify_debug( "%s is raw", filename );
+ result = inotify_monitor_add_raw( inh );
- if( result == 0 )
- inotify_handle_invoke_callback( inh, NULL, IN_CREATE | IN_SYNTHETIC, -1 );
- }
- else
- {
- const char *parent = g_path_get_dirname( filename );
- unsigned long lflags;
- guint32 lmask;
+ if( result == 0 )
+ inotify_handle_invoke_callback( inh, NULL, IN_CREATE | IN_SYNTHETIC, -1 );
+ }
+ else
+ {
+ const char *parent = g_path_get_dirname( filename );
+ unsigned long lflags;
+ guint32 lmask;
- lflags = IN_FLAG_FILE_BASED | IN_FLAG_SYNTH_CREATE;
- lmask = IN_MOVED_FROM | IN_MOVED_TO | IN_CREATE | IN_DELETE |
- IN_DELETE_SELF | IN_MOVE_SELF | IN_SYNTHETIC;
+ lflags = IN_FLAG_FILE_BASED | IN_FLAG_SYNTH_CREATE;
+ lmask = IN_MOVED_FROM | IN_MOVED_TO | IN_CREATE | IN_DELETE |
+ IN_DELETE_SELF | IN_MOVE_SELF | IN_SYNTHETIC;
- inotify_debug( "Adding internal callback %p for %p(%s)",
- inotify_internal_callback, inh, parent );
+ inotify_debug( "Adding internal callback %p for %p(%s)",
+ inotify_internal_callback, inh, parent );
- pinh = inotify_monitor_add( parent, lmask, lflags,
- inotify_internal_callback, inh );
+ pinh = inotify_monitor_add( parent, lmask, lflags,
+ inotify_internal_callback, inh );
- inotify_handle_set_parent( inh, pinh );
+ inotify_handle_set_parent( inh, pinh );
- /* This will be filtered out if it shouldn't be delivered. */
- inotify_handle_invoke_callback( inh, NULL, IN_DELETE | IN_SYNTHETIC, -1 );
+ /* This will be filtered out if it shouldn't be delivered. */
+ inotify_handle_invoke_callback( inh, NULL, IN_DELETE | IN_SYNTHETIC, -1 );
- result = 0;
- }
+ result = 0;
+ }
- if( result )
- {
- inotify_handle_unref( inh );
- inh = NULL;
- }
+ if( result )
+ {
+ inotify_handle_unref( inh );
+ inh = NULL;
+ }
- g_static_rec_mutex_unlock( &inotify_monitor_lock );
+ g_static_rec_mutex_unlock( &inotify_monitor_lock );
- return inh;
+ return inh;
}
void
inotify_monitor_remove( INotifyHandle *inh )
{
- INotifyHandle *parent;
+ INotifyHandle *parent;
- g_static_rec_mutex_lock( &inotify_monitor_lock );
+ g_static_rec_mutex_lock( &inotify_monitor_lock );
- if( inotify_monitor_initialise() )
- goto error;
+ if( inotify_monitor_initialise() )
+ goto error;
- if( inh == NULL )
- goto error;
+ if( inh == NULL )
+ goto error;
- if( (parent = inotify_handle_get_parent( inh )) != NULL )
- inotify_monitor_remove( parent );
+ if( (parent = inotify_handle_get_parent( inh )) != NULL )
+ inotify_monitor_remove( parent );
- inotify_monitor_remove_raw( inh );
+ inotify_monitor_remove_raw( inh );
- inotify_handle_unref( inh );
+ inotify_handle_unref( inh );
-error:
- g_static_rec_mutex_unlock( &inotify_monitor_lock );
+ error:
+ g_static_rec_mutex_unlock( &inotify_monitor_lock );
}
gboolean
inotify_is_available( void )
{
- int result;
+ int result;
- g_static_rec_mutex_lock( &inotify_monitor_lock );
+ g_static_rec_mutex_lock( &inotify_monitor_lock );
- result = inotify_monitor_initialise();
+ result = inotify_monitor_initialise();
- g_static_rec_mutex_unlock( &inotify_monitor_lock );
+ g_static_rec_mutex_unlock( &inotify_monitor_lock );
- return (result == 0);
+ return (result == 0);
}
diff --git a/src/libinotify/inotify-monitor.h b/src/libinotify/inotify-monitor.h
index 4d761d8..19f2e77 100644
--- a/src/libinotify/inotify-monitor.h
+++ b/src/libinotify/inotify-monitor.h
@@ -24,10 +24,10 @@
#include "inotify-handle.h"
INotifyHandle *inotify_monitor_add( const char *filename,
- guint32 mask,
- unsigned long flags,
- INotifyCallback callback,
- gpointer user_data );
+ guint32 mask,
+ unsigned long flags,
+ INotifyCallback callback,
+ gpointer user_data );
void inotify_monitor_remove( INotifyHandle *inh );
gboolean inotify_is_available( void );
diff --git a/src/libstemmer/api.c b/src/libstemmer/api.c
index 678c27a..2a9fb55 100644
--- a/src/libstemmer/api.c
+++ b/src/libstemmer/api.c
@@ -17,66 +17,66 @@
extern struct SN_env * SN_create_env(int S_size, int I_size, int B_size)
{
- struct SN_env * z = (struct SN_env *) calloc(1, sizeof(struct SN_env));
- if (z == NULL) return NULL;
- z->p = create_s();
- if (z->p == NULL) goto error;
- if (S_size)
- {
- int i;
- z->S = (symbol * *) calloc(S_size, sizeof(symbol *));
- if (z->S == NULL) goto error;
+ struct SN_env * z = (struct SN_env *) calloc(1, sizeof(struct SN_env));
+ if (z == NULL) return NULL;
+ z->p = create_s();
+ if (z->p == NULL) goto error;
+ if (S_size)
+ {
+ int i;
+ z->S = (symbol * *) calloc(S_size, sizeof(symbol *));
+ if (z->S == NULL) goto error;
- for (i = 0; i < S_size; i++)
- {
- z->S[i] = create_s();
- if (z->S[i] == NULL) goto error;
- }
- z->S_size = S_size;
- }
+ for (i = 0; i < S_size; i++)
+ {
+ z->S[i] = create_s();
+ if (z->S[i] == NULL) goto error;
+ }
+ z->S_size = S_size;
+ }
- if (I_size)
- {
- z->I = (int *) calloc(I_size, sizeof(int));
- if (z->I == NULL) goto error;
- z->I_size = I_size;
- }
+ if (I_size)
+ {
+ z->I = (int *) calloc(I_size, sizeof(int));
+ if (z->I == NULL) goto error;
+ z->I_size = I_size;
+ }
- if (B_size)
- {
- z->B = (symbol *) calloc(B_size, sizeof(symbol));
- if (z->B == NULL) goto error;
- z->B_size = B_size;
- }
+ if (B_size)
+ {
+ z->B = (symbol *) calloc(B_size, sizeof(symbol));
+ if (z->B == NULL) goto error;
+ z->B_size = B_size;
+ }
- return z;
-error:
- SN_close_env(z);
- return NULL;
+ return z;
+ error:
+ SN_close_env(z);
+ return NULL;
}
extern void SN_close_env(struct SN_env * z)
{
- if (z == NULL) return;
- if (z->S_size)
- {
- int i;
- for (i = 0; i < z->S_size; i++)
- {
- lose_s(z->S[i]);
- }
- free(z->S);
- }
- if (z->I_size) free(z->I);
- if (z->B_size) free(z->B);
- if (z->p) lose_s(z->p);
- free(z);
+ if (z == NULL) return;
+ if (z->S_size)
+ {
+ int i;
+ for (i = 0; i < z->S_size; i++)
+ {
+ lose_s(z->S[i]);
+ }
+ free(z->S);
+ }
+ if (z->I_size) free(z->I);
+ if (z->B_size) free(z->B);
+ if (z->p) lose_s(z->p);
+ free(z);
}
extern int SN_set_current(struct SN_env * z, int size, const symbol * s)
{
- int err = replace_s(z, 0, z->l, size, s, NULL);
- z->c = 0;
- return err;
+ int err = replace_s(z, 0, z->l, size, s, NULL);
+ z->c = 0;
+ return err;
}
diff --git a/src/libstemmer/api.h b/src/libstemmer/api.h
index 9b5e46c..8378f55 100644
--- a/src/libstemmer/api.h
+++ b/src/libstemmer/api.h
@@ -25,12 +25,12 @@ typedef unsigned char symbol;
*/
struct SN_env {
- symbol * p;
- int c; int a; int l; int lb; int bra; int ket;
- int S_size; int I_size; int B_size;
- symbol * * S;
- int * I;
- symbol * B;
+ symbol * p;
+ int c; int a; int l; int lb; int bra; int ket;
+ int S_size; int I_size; int B_size;
+ symbol * * S;
+ int * I;
+ symbol * B;
};
extern struct SN_env * SN_create_env(int S_size, int I_size, int B_size);
diff --git a/src/libstemmer/header.h b/src/libstemmer/header.h
index ad66a31..eb92dd0 100644
--- a/src/libstemmer/header.h
+++ b/src/libstemmer/header.h
@@ -27,10 +27,10 @@
struct among
{ int s_size; /* number of chars in string */
- symbol * s; /* search string */
- int substring_i;/* index to longest matching substring */
- int result; /* result of the lookup */
- int (* function)(struct SN_env *);
+ symbol * s; /* search string */
+ int substring_i;/* index to longest matching substring */
+ int result; /* result of the lookup */
+ int (* function)(struct SN_env *);
};
extern symbol * create_s(void);
diff --git a/src/libstemmer/libstemmer.c b/src/libstemmer/libstemmer.c
index d8b8c8c..18d2307 100644
--- a/src/libstemmer/libstemmer.c
+++ b/src/libstemmer/libstemmer.c
@@ -20,95 +20,95 @@
#include "modules.h"
struct sb_stemmer {
- struct SN_env * (*create)(void);
- void (*close)(struct SN_env *);
- int (*stem)(struct SN_env *);
+ struct SN_env * (*create)(void);
+ void (*close)(struct SN_env *);
+ int (*stem)(struct SN_env *);
- struct SN_env * env;
+ struct SN_env * env;
};
extern const char **
sb_stemmer_list(void)
{
- return algorithm_names;
+ return algorithm_names;
}
static stemmer_encoding sb_getenc(const char * charenc)
{
- struct stemmer_encoding * encoding;
- if (charenc == NULL) return ENC_UTF_8;
- for (encoding = encodings; encoding->name != 0; encoding++) {
- if (strcmp(encoding->name, charenc) == 0) break;
- }
- if (encoding->name == NULL) return ENC_UNKNOWN;
- return encoding->enc;
+ struct stemmer_encoding * encoding;
+ if (charenc == NULL) return ENC_UTF_8;
+ for (encoding = encodings; encoding->name != 0; encoding++) {
+ if (strcmp(encoding->name, charenc) == 0) break;
+ }
+ if (encoding->name == NULL) return ENC_UNKNOWN;
+ return encoding->enc;
}
extern struct sb_stemmer *
sb_stemmer_new(const char * algorithm, const char * charenc)
{
- stemmer_encoding enc;
- struct stemmer_modules * module;
- struct sb_stemmer * stemmer =
- (struct sb_stemmer *) malloc(sizeof(struct sb_stemmer));
- if (stemmer == NULL) return NULL;
- enc = sb_getenc(charenc);
- if (enc == ENC_UNKNOWN)
- {
- free(stemmer);
- return NULL;
- }
-
- for (module = modules; module->name != 0; module++) {
- if (strcmp(module->name, algorithm) == 0 && module->enc == enc) break;
- }
- if (module->name == NULL)
- {
- free(stemmer);
- return NULL;
- }
-
- stemmer->create = module->create;
- stemmer->close = module->close;
- stemmer->stem = module->stem;
-
- stemmer->env = stemmer->create();
- if (stemmer->env == NULL)
- {
- sb_stemmer_delete(stemmer);
- return NULL;
- }
-
- return stemmer;
+ stemmer_encoding enc;
+ struct stemmer_modules * module;
+ struct sb_stemmer * stemmer =
+ (struct sb_stemmer *) malloc(sizeof(struct sb_stemmer));
+ if (stemmer == NULL) return NULL;
+ enc = sb_getenc(charenc);
+ if (enc == ENC_UNKNOWN)
+ {
+ free(stemmer);
+ return NULL;
+ }
+
+ for (module = modules; module->name != 0; module++) {
+ if (strcmp(module->name, algorithm) == 0 && module->enc == enc) break;
+ }
+ if (module->name == NULL)
+ {
+ free(stemmer);
+ return NULL;
+ }
+
+ stemmer->create = module->create;
+ stemmer->close = module->close;
+ stemmer->stem = module->stem;
+
+ stemmer->env = stemmer->create();
+ if (stemmer->env == NULL)
+ {
+ sb_stemmer_delete(stemmer);
+ return NULL;
+ }
+
+ return stemmer;
}
void
sb_stemmer_delete(struct sb_stemmer * stemmer)
{
- if (stemmer == 0) return;
- if (stemmer->close == 0) return;
- stemmer->close(stemmer->env);
- stemmer->close = 0;
- free(stemmer);
+ if (stemmer == 0) return;
+ if (stemmer->close == 0) return;
+ stemmer->close(stemmer->env);
+ stemmer->close = 0;
+ free(stemmer);
}
const sb_symbol *
sb_stemmer_stem(struct sb_stemmer * stemmer, const sb_symbol * word, int size)
{
- int ret;
- if (SN_set_current(stemmer->env, size, (const symbol *)(word)))
- {
- stemmer->env->l = 0;
- return NULL;
- }
- ret = stemmer->stem(stemmer->env);
- if (ret < 0) return NULL;
- stemmer->env->p[stemmer->env->l] = 0;
- return (const sb_symbol *)(stemmer->env->p);
+ int ret;
+ if (SN_set_current(stemmer->env, size, (const symbol *)(word)))
+ {
+ stemmer->env->l = 0;
+ return NULL;
+ }
+ ret = stemmer->stem(stemmer->env);
+ if (ret < 0) return NULL;
+ stemmer->env->p[stemmer->env->l] = 0;
+ return (const sb_symbol *)(stemmer->env->p);
}
int
sb_stemmer_length(struct sb_stemmer * stemmer)
{
- return stemmer->env->l;
+ return stemmer->env->l;
}
diff --git a/src/libstemmer/libstemmer.h b/src/libstemmer/libstemmer.h
index a17779b..dac3518 100644
--- a/src/libstemmer/libstemmer.h
+++ b/src/libstemmer/libstemmer.h
@@ -18,74 +18,74 @@
extern "C" {
#endif
-struct sb_stemmer;
-typedef unsigned char sb_symbol;
+ struct sb_stemmer;
+ typedef unsigned char sb_symbol;
-/* FIXME - should be able to get a version number for each stemming
- * algorithm (which will be incremented each time the output changes). */
+ /* FIXME - should be able to get a version number for each stemming
+ * algorithm (which will be incremented each time the output changes). */
-/** Returns an array of the names of the available stemming algorithms.
- * Note that these are the canonical names - aliases (ie, other names for
- * the same algorithm) will not be included in the list.
- * The list is terminated with a null pointer.
- *
- * The list must not be modified in any way.
- */
-const char ** sb_stemmer_list(void);
+ /** Returns an array of the names of the available stemming algorithms.
+ * Note that these are the canonical names - aliases (ie, other names for
+ * the same algorithm) will not be included in the list.
+ * The list is terminated with a null pointer.
+ *
+ * The list must not be modified in any way.
+ */
+ const char ** sb_stemmer_list(void);
-/** Create a new stemmer object, using the specified algorithm, for the
- * specified character encoding.
- *
- * All algorithms will usually be available in UTF-8, but may also be
- * available in other character encodings.
- *
- * @param algorithm The algorithm name. This is either the english
- * name of the algorithm, or the 2 or 3 letter ISO 639 codes for the
- * language. Note that case is significant in this parameter - the
- * value should be supplied in lower case.
- *
- * @param charenc The character encoding. NULL may be passed as
- * this value, in which case UTF-8 encoding will be assumed. Otherwise,
- * the argument may be one of "UTF_8", "ISO_8859_1" (ie, Latin 1),
- * "CP850" (ie, MS-DOS Latin 1) or "KOI8_R" (Russian). Note that
- * case is significant in this parameter.
- *
- * @return NULL if the specified algorithm is not recognised, or the
- * algorithm is not available for the requested encoding. Otherwise,
- * returns a pointer to a newly created stemmer for the requested algorithm.
- * The returned pointer must be deleted by calling sb_stemmer_delete().
- *
- * @note NULL will also be returned if an out of memory error occurs.
- */
-struct sb_stemmer * sb_stemmer_new(const char * algorithm, const char * charenc);
+ /** Create a new stemmer object, using the specified algorithm, for the
+ * specified character encoding.
+ *
+ * All algorithms will usually be available in UTF-8, but may also be
+ * available in other character encodings.
+ *
+ * @param algorithm The algorithm name. This is either the english
+ * name of the algorithm, or the 2 or 3 letter ISO 639 codes for the
+ * language. Note that case is significant in this parameter - the
+ * value should be supplied in lower case.
+ *
+ * @param charenc The character encoding. NULL may be passed as
+ * this value, in which case UTF-8 encoding will be assumed. Otherwise,
+ * the argument may be one of "UTF_8", "ISO_8859_1" (ie, Latin 1),
+ * "CP850" (ie, MS-DOS Latin 1) or "KOI8_R" (Russian). Note that
+ * case is significant in this parameter.
+ *
+ * @return NULL if the specified algorithm is not recognised, or the
+ * algorithm is not available for the requested encoding. Otherwise,
+ * returns a pointer to a newly created stemmer for the requested algorithm.
+ * The returned pointer must be deleted by calling sb_stemmer_delete().
+ *
+ * @note NULL will also be returned if an out of memory error occurs.
+ */
+ struct sb_stemmer * sb_stemmer_new(const char * algorithm, const char * charenc);
-/** Delete a stemmer object.
- *
- * This frees all resources allocated for the stemmer. After calling
- * this function, the supplied stemmer may no longer be used in any way.
- *
- * It is safe to pass a null pointer to this function - this will have
- * no effect.
- */
-void sb_stemmer_delete(struct sb_stemmer * stemmer);
+ /** Delete a stemmer object.
+ *
+ * This frees all resources allocated for the stemmer. After calling
+ * this function, the supplied stemmer may no longer be used in any way.
+ *
+ * It is safe to pass a null pointer to this function - this will have
+ * no effect.
+ */
+ void sb_stemmer_delete(struct sb_stemmer * stemmer);
-/** Stem a word.
- *
- * The return value is owned by the stemmer - it must not be freed or
- * modified, and it will become invalid when the stemmer is called again,
- * or if the stemmer is freed.
- *
- * The length of the return value can be obtained using sb_stemmer_length().
- *
- * If an out-of-memory error occurs, this will return NULL.
- */
-const sb_symbol * sb_stemmer_stem(struct sb_stemmer * stemmer,
- const sb_symbol * word, int size);
+ /** Stem a word.
+ *
+ * The return value is owned by the stemmer - it must not be freed or
+ * modified, and it will become invalid when the stemmer is called again,
+ * or if the stemmer is freed.
+ *
+ * The length of the return value can be obtained using sb_stemmer_length().
+ *
+ * If an out-of-memory error occurs, this will return NULL.
+ */
+ const sb_symbol * sb_stemmer_stem(struct sb_stemmer * stemmer,
+ const sb_symbol * word, int size);
-/** Get the length of the result of the last stemmed word.
- * This should not be called before sb_stemmer_stem() has been called.
- */
-int sb_stemmer_length(struct sb_stemmer * stemmer);
+ /** Get the length of the result of the last stemmed word.
+ * This should not be called before sb_stemmer_stem() has been called.
+ */
+ int sb_stemmer_length(struct sb_stemmer * stemmer);
#ifdef __cplusplus
}
diff --git a/src/libstemmer/modules.h b/src/libstemmer/modules.h
index dac1aee..98f1813 100644
--- a/src/libstemmer/modules.h
+++ b/src/libstemmer/modules.h
@@ -37,91 +37,91 @@
#include "stem_UTF_8_swedish.h"
typedef enum {
- ENC_UNKNOWN,
- ENC_ISO_8859_1,
- ENC_KOI8_R,
- ENC_UTF_8
+ ENC_UNKNOWN,
+ ENC_ISO_8859_1,
+ ENC_KOI8_R,
+ ENC_UTF_8
} stemmer_encoding;
struct stemmer_encoding {
- const char * name;
- stemmer_encoding enc;
+ const char * name;
+ stemmer_encoding enc;
};
static struct stemmer_encoding encodings[] = {
- {"ISO_8859_1", ENC_ISO_8859_1},
- {"KOI8_R", ENC_KOI8_R},
- {"UTF_8", ENC_UTF_8},
- {0,0}
+ {"ISO_8859_1", ENC_ISO_8859_1},
+ {"KOI8_R", ENC_KOI8_R},
+ {"UTF_8", ENC_UTF_8},
+ {0,0}
};
struct stemmer_modules {
- const char * name;
- stemmer_encoding enc;
- struct SN_env * (*create)(void);
- void (*close)(struct SN_env *);
- int (*stem)(struct SN_env *);
+ const char * name;
+ stemmer_encoding enc;
+ struct SN_env * (*create)(void);
+ void (*close)(struct SN_env *);
+ int (*stem)(struct SN_env *);
};
static struct stemmer_modules modules[] = {
- {"da", ENC_UTF_8, danish_UTF_8_create_env, danish_UTF_8_close_env, danish_UTF_8_stem},
- {"dan", ENC_UTF_8, danish_UTF_8_create_env, danish_UTF_8_close_env, danish_UTF_8_stem},
- {"danish", ENC_UTF_8, danish_UTF_8_create_env, danish_UTF_8_close_env, danish_UTF_8_stem},
- {"de", ENC_UTF_8, german_UTF_8_create_env, german_UTF_8_close_env, german_UTF_8_stem},
- {"deu", ENC_UTF_8, german_UTF_8_create_env, german_UTF_8_close_env, german_UTF_8_stem},
- {"dut", ENC_UTF_8, dutch_UTF_8_create_env, dutch_UTF_8_close_env, dutch_UTF_8_stem},
- {"dutch", ENC_UTF_8, dutch_UTF_8_create_env, dutch_UTF_8_close_env, dutch_UTF_8_stem},
- {"en", ENC_UTF_8, english_UTF_8_create_env, english_UTF_8_close_env, english_UTF_8_stem},
- {"eng", ENC_UTF_8, english_UTF_8_create_env, english_UTF_8_close_env, english_UTF_8_stem},
- {"english", ENC_UTF_8, english_UTF_8_create_env, english_UTF_8_close_env, english_UTF_8_stem},
- {"es", ENC_UTF_8, spanish_UTF_8_create_env, spanish_UTF_8_close_env, spanish_UTF_8_stem},
- {"esl", ENC_UTF_8, spanish_UTF_8_create_env, spanish_UTF_8_close_env, spanish_UTF_8_stem},
- {"fi", ENC_UTF_8, finnish_UTF_8_create_env, finnish_UTF_8_close_env, finnish_UTF_8_stem},
- {"fin", ENC_UTF_8, finnish_UTF_8_create_env, finnish_UTF_8_close_env, finnish_UTF_8_stem},
- {"finnish", ENC_UTF_8, finnish_UTF_8_create_env, finnish_UTF_8_close_env, finnish_UTF_8_stem},
- {"fr", ENC_UTF_8, french_UTF_8_create_env, french_UTF_8_close_env, french_UTF_8_stem},
- {"fra", ENC_UTF_8, french_UTF_8_create_env, french_UTF_8_close_env, french_UTF_8_stem},
- {"fre", ENC_UTF_8, french_UTF_8_create_env, french_UTF_8_close_env, french_UTF_8_stem},
- {"french", ENC_UTF_8, french_UTF_8_create_env, french_UTF_8_close_env, french_UTF_8_stem},
- {"ger", ENC_UTF_8, german_UTF_8_create_env, german_UTF_8_close_env, german_UTF_8_stem},
- {"german", ENC_UTF_8, german_UTF_8_create_env, german_UTF_8_close_env, german_UTF_8_stem},
- {"hu", ENC_UTF_8, hungarian_UTF_8_create_env, hungarian_UTF_8_close_env, hungarian_UTF_8_stem},
- {"hun", ENC_UTF_8, hungarian_UTF_8_create_env, hungarian_UTF_8_close_env, hungarian_UTF_8_stem},
- {"hungarian", ENC_UTF_8, hungarian_UTF_8_create_env, hungarian_UTF_8_close_env, hungarian_UTF_8_stem},
- {"it", ENC_UTF_8, italian_UTF_8_create_env, italian_UTF_8_close_env, italian_UTF_8_stem},
- {"ita", ENC_UTF_8, italian_UTF_8_create_env, italian_UTF_8_close_env, italian_UTF_8_stem},
- {"italian", ENC_UTF_8, italian_UTF_8_create_env, italian_UTF_8_close_env, italian_UTF_8_stem},
- {"nl", ENC_UTF_8, dutch_UTF_8_create_env, dutch_UTF_8_close_env, dutch_UTF_8_stem},
- {"nld", ENC_UTF_8, dutch_UTF_8_create_env, dutch_UTF_8_close_env, dutch_UTF_8_stem},
- {"no", ENC_UTF_8, norwegian_UTF_8_create_env, norwegian_UTF_8_close_env, norwegian_UTF_8_stem},
- {"nor", ENC_UTF_8, norwegian_UTF_8_create_env, norwegian_UTF_8_close_env, norwegian_UTF_8_stem},
- {"norwegian", ENC_UTF_8, norwegian_UTF_8_create_env, norwegian_UTF_8_close_env, norwegian_UTF_8_stem},
- {"por", ENC_UTF_8, portuguese_UTF_8_create_env, portuguese_UTF_8_close_env, portuguese_UTF_8_stem},
- {"porter", ENC_UTF_8, porter_UTF_8_create_env, porter_UTF_8_close_env, porter_UTF_8_stem},
- {"portuguese", ENC_UTF_8, portuguese_UTF_8_create_env, portuguese_UTF_8_close_env, portuguese_UTF_8_stem},
- {"pt", ENC_UTF_8, portuguese_UTF_8_create_env, portuguese_UTF_8_close_env, portuguese_UTF_8_stem},
- {"ru", ENC_UTF_8, russian_UTF_8_create_env, russian_UTF_8_close_env, russian_UTF_8_stem},
- {"rus", ENC_UTF_8, russian_UTF_8_create_env, russian_UTF_8_close_env, russian_UTF_8_stem},
- {"russian", ENC_UTF_8, russian_UTF_8_create_env, russian_UTF_8_close_env, russian_UTF_8_stem},
- {"spa", ENC_UTF_8, spanish_UTF_8_create_env, spanish_UTF_8_close_env, spanish_UTF_8_stem},
- {"spanish", ENC_UTF_8, spanish_UTF_8_create_env, spanish_UTF_8_close_env, spanish_UTF_8_stem},
- {"sv", ENC_UTF_8, swedish_UTF_8_create_env, swedish_UTF_8_close_env, swedish_UTF_8_stem},
- {"swe", ENC_UTF_8, swedish_UTF_8_create_env, swedish_UTF_8_close_env, swedish_UTF_8_stem},
- {"swedish", ENC_UTF_8, swedish_UTF_8_create_env, swedish_UTF_8_close_env, swedish_UTF_8_stem},
- {0,0,0,0,0}
+ {"da", ENC_UTF_8, danish_UTF_8_create_env, danish_UTF_8_close_env, danish_UTF_8_stem},
+ {"dan", ENC_UTF_8, danish_UTF_8_create_env, danish_UTF_8_close_env, danish_UTF_8_stem},
+ {"danish", ENC_UTF_8, danish_UTF_8_create_env, danish_UTF_8_close_env, danish_UTF_8_stem},
+ {"de", ENC_UTF_8, german_UTF_8_create_env, german_UTF_8_close_env, german_UTF_8_stem},
+ {"deu", ENC_UTF_8, german_UTF_8_create_env, german_UTF_8_close_env, german_UTF_8_stem},
+ {"dut", ENC_UTF_8, dutch_UTF_8_create_env, dutch_UTF_8_close_env, dutch_UTF_8_stem},
+ {"dutch", ENC_UTF_8, dutch_UTF_8_create_env, dutch_UTF_8_close_env, dutch_UTF_8_stem},
+ {"en", ENC_UTF_8, english_UTF_8_create_env, english_UTF_8_close_env, english_UTF_8_stem},
+ {"eng", ENC_UTF_8, english_UTF_8_create_env, english_UTF_8_close_env, english_UTF_8_stem},
+ {"english", ENC_UTF_8, english_UTF_8_create_env, english_UTF_8_close_env, english_UTF_8_stem},
+ {"es", ENC_UTF_8, spanish_UTF_8_create_env, spanish_UTF_8_close_env, spanish_UTF_8_stem},
+ {"esl", ENC_UTF_8, spanish_UTF_8_create_env, spanish_UTF_8_close_env, spanish_UTF_8_stem},
+ {"fi", ENC_UTF_8, finnish_UTF_8_create_env, finnish_UTF_8_close_env, finnish_UTF_8_stem},
+ {"fin", ENC_UTF_8, finnish_UTF_8_create_env, finnish_UTF_8_close_env, finnish_UTF_8_stem},
+ {"finnish", ENC_UTF_8, finnish_UTF_8_create_env, finnish_UTF_8_close_env, finnish_UTF_8_stem},
+ {"fr", ENC_UTF_8, french_UTF_8_create_env, french_UTF_8_close_env, french_UTF_8_stem},
+ {"fra", ENC_UTF_8, french_UTF_8_create_env, french_UTF_8_close_env, french_UTF_8_stem},
+ {"fre", ENC_UTF_8, french_UTF_8_create_env, french_UTF_8_close_env, french_UTF_8_stem},
+ {"french", ENC_UTF_8, french_UTF_8_create_env, french_UTF_8_close_env, french_UTF_8_stem},
+ {"ger", ENC_UTF_8, german_UTF_8_create_env, german_UTF_8_close_env, german_UTF_8_stem},
+ {"german", ENC_UTF_8, german_UTF_8_create_env, german_UTF_8_close_env, german_UTF_8_stem},
+ {"hu", ENC_UTF_8, hungarian_UTF_8_create_env, hungarian_UTF_8_close_env, hungarian_UTF_8_stem},
+ {"hun", ENC_UTF_8, hungarian_UTF_8_create_env, hungarian_UTF_8_close_env, hungarian_UTF_8_stem},
+ {"hungarian", ENC_UTF_8, hungarian_UTF_8_create_env, hungarian_UTF_8_close_env, hungarian_UTF_8_stem},
+ {"it", ENC_UTF_8, italian_UTF_8_create_env, italian_UTF_8_close_env, italian_UTF_8_stem},
+ {"ita", ENC_UTF_8, italian_UTF_8_create_env, italian_UTF_8_close_env, italian_UTF_8_stem},
+ {"italian", ENC_UTF_8, italian_UTF_8_create_env, italian_UTF_8_close_env, italian_UTF_8_stem},
+ {"nl", ENC_UTF_8, dutch_UTF_8_create_env, dutch_UTF_8_close_env, dutch_UTF_8_stem},
+ {"nld", ENC_UTF_8, dutch_UTF_8_create_env, dutch_UTF_8_close_env, dutch_UTF_8_stem},
+ {"no", ENC_UTF_8, norwegian_UTF_8_create_env, norwegian_UTF_8_close_env, norwegian_UTF_8_stem},
+ {"nor", ENC_UTF_8, norwegian_UTF_8_create_env, norwegian_UTF_8_close_env, norwegian_UTF_8_stem},
+ {"norwegian", ENC_UTF_8, norwegian_UTF_8_create_env, norwegian_UTF_8_close_env, norwegian_UTF_8_stem},
+ {"por", ENC_UTF_8, portuguese_UTF_8_create_env, portuguese_UTF_8_close_env, portuguese_UTF_8_stem},
+ {"porter", ENC_UTF_8, porter_UTF_8_create_env, porter_UTF_8_close_env, porter_UTF_8_stem},
+ {"portuguese", ENC_UTF_8, portuguese_UTF_8_create_env, portuguese_UTF_8_close_env, portuguese_UTF_8_stem},
+ {"pt", ENC_UTF_8, portuguese_UTF_8_create_env, portuguese_UTF_8_close_env, portuguese_UTF_8_stem},
+ {"ru", ENC_UTF_8, russian_UTF_8_create_env, russian_UTF_8_close_env, russian_UTF_8_stem},
+ {"rus", ENC_UTF_8, russian_UTF_8_create_env, russian_UTF_8_close_env, russian_UTF_8_stem},
+ {"russian", ENC_UTF_8, russian_UTF_8_create_env, russian_UTF_8_close_env, russian_UTF_8_stem},
+ {"spa", ENC_UTF_8, spanish_UTF_8_create_env, spanish_UTF_8_close_env, spanish_UTF_8_stem},
+ {"spanish", ENC_UTF_8, spanish_UTF_8_create_env, spanish_UTF_8_close_env, spanish_UTF_8_stem},
+ {"sv", ENC_UTF_8, swedish_UTF_8_create_env, swedish_UTF_8_close_env, swedish_UTF_8_stem},
+ {"swe", ENC_UTF_8, swedish_UTF_8_create_env, swedish_UTF_8_close_env, swedish_UTF_8_stem},
+ {"swedish", ENC_UTF_8, swedish_UTF_8_create_env, swedish_UTF_8_close_env, swedish_UTF_8_stem},
+ {0,0,0,0,0}
};
static const char * algorithm_names[] = {
- "danish",
- "dutch",
- "english",
- "finnish",
- "french",
- "german",
- "hungarian",
- "italian",
- "norwegian",
- "porter",
- "portuguese",
- "russian",
- "spanish",
- "swedish",
- 0
+ "danish",
+ "dutch",
+ "english",
+ "finnish",
+ "french",
+ "german",
+ "hungarian",
+ "italian",
+ "norwegian",
+ "porter",
+ "portuguese",
+ "russian",
+ "spanish",
+ "swedish",
+ 0
};
diff --git a/src/libstemmer/stem_UTF_8_danish.c b/src/libstemmer/stem_UTF_8_danish.c
index 3819e8e..b3f7bd2 100644
--- a/src/libstemmer/stem_UTF_8_danish.c
+++ b/src/libstemmer/stem_UTF_8_danish.c
@@ -60,40 +60,40 @@ static symbol s_0_30[2] = { 'e', 't' };
static symbol s_0_31[4] = { 'e', 'r', 'e', 't' };
static struct among a_0[32] =
-{
-/* 0 */ { 3, s_0_0, -1, 1, 0},
-/* 1 */ { 5, s_0_1, 0, 1, 0},
-/* 2 */ { 4, s_0_2, -1, 1, 0},
-/* 3 */ { 1, s_0_3, -1, 1, 0},
-/* 4 */ { 5, s_0_4, 3, 1, 0},
-/* 5 */ { 4, s_0_5, 3, 1, 0},
-/* 6 */ { 6, s_0_6, 5, 1, 0},
-/* 7 */ { 3, s_0_7, 3, 1, 0},
-/* 8 */ { 4, s_0_8, 3, 1, 0},
-/* 9 */ { 3, s_0_9, 3, 1, 0},
-/* 10 */ { 2, s_0_10, -1, 1, 0},
-/* 11 */ { 5, s_0_11, 10, 1, 0},
-/* 12 */ { 4, s_0_12, 10, 1, 0},
-/* 13 */ { 2, s_0_13, -1, 1, 0},
-/* 14 */ { 5, s_0_14, 13, 1, 0},
-/* 15 */ { 4, s_0_15, 13, 1, 0},
-/* 16 */ { 1, s_0_16, -1, 2, 0},
-/* 17 */ { 4, s_0_17, 16, 1, 0},
-/* 18 */ { 2, s_0_18, 16, 1, 0},
-/* 19 */ { 5, s_0_19, 18, 1, 0},
-/* 20 */ { 7, s_0_20, 19, 1, 0},
-/* 21 */ { 4, s_0_21, 18, 1, 0},
-/* 22 */ { 5, s_0_22, 18, 1, 0},
-/* 23 */ { 4, s_0_23, 18, 1, 0},
-/* 24 */ { 3, s_0_24, 16, 1, 0},
-/* 25 */ { 6, s_0_25, 24, 1, 0},
-/* 26 */ { 5, s_0_26, 24, 1, 0},
-/* 27 */ { 3, s_0_27, 16, 1, 0},
-/* 28 */ { 3, s_0_28, 16, 1, 0},
-/* 29 */ { 5, s_0_29, 28, 1, 0},
-/* 30 */ { 2, s_0_30, -1, 1, 0},
-/* 31 */ { 4, s_0_31, 30, 1, 0}
-};
+ {
+ /* 0 */ { 3, s_0_0, -1, 1, 0},
+ /* 1 */ { 5, s_0_1, 0, 1, 0},
+ /* 2 */ { 4, s_0_2, -1, 1, 0},
+ /* 3 */ { 1, s_0_3, -1, 1, 0},
+ /* 4 */ { 5, s_0_4, 3, 1, 0},
+ /* 5 */ { 4, s_0_5, 3, 1, 0},
+ /* 6 */ { 6, s_0_6, 5, 1, 0},
+ /* 7 */ { 3, s_0_7, 3, 1, 0},
+ /* 8 */ { 4, s_0_8, 3, 1, 0},
+ /* 9 */ { 3, s_0_9, 3, 1, 0},
+ /* 10 */ { 2, s_0_10, -1, 1, 0},
+ /* 11 */ { 5, s_0_11, 10, 1, 0},
+ /* 12 */ { 4, s_0_12, 10, 1, 0},
+ /* 13 */ { 2, s_0_13, -1, 1, 0},
+ /* 14 */ { 5, s_0_14, 13, 1, 0},
+ /* 15 */ { 4, s_0_15, 13, 1, 0},
+ /* 16 */ { 1, s_0_16, -1, 2, 0},
+ /* 17 */ { 4, s_0_17, 16, 1, 0},
+ /* 18 */ { 2, s_0_18, 16, 1, 0},
+ /* 19 */ { 5, s_0_19, 18, 1, 0},
+ /* 20 */ { 7, s_0_20, 19, 1, 0},
+ /* 21 */ { 4, s_0_21, 18, 1, 0},
+ /* 22 */ { 5, s_0_22, 18, 1, 0},
+ /* 23 */ { 4, s_0_23, 18, 1, 0},
+ /* 24 */ { 3, s_0_24, 16, 1, 0},
+ /* 25 */ { 6, s_0_25, 24, 1, 0},
+ /* 26 */ { 5, s_0_26, 24, 1, 0},
+ /* 27 */ { 3, s_0_27, 16, 1, 0},
+ /* 28 */ { 3, s_0_28, 16, 1, 0},
+ /* 29 */ { 5, s_0_29, 28, 1, 0},
+ /* 30 */ { 2, s_0_30, -1, 1, 0},
+ /* 31 */ { 4, s_0_31, 30, 1, 0}
+ };
static symbol s_1_0[2] = { 'g', 'd' };
static symbol s_1_1[2] = { 'd', 't' };
@@ -101,12 +101,12 @@ static symbol s_1_2[2] = { 'g', 't' };
static symbol s_1_3[2] = { 'k', 't' };
static struct among a_1[4] =
-{
-/* 0 */ { 2, s_1_0, -1, -1, 0},
-/* 1 */ { 2, s_1_1, -1, -1, 0},
-/* 2 */ { 2, s_1_2, -1, -1, 0},
-/* 3 */ { 2, s_1_3, -1, -1, 0}
-};
+ {
+ /* 0 */ { 2, s_1_0, -1, -1, 0},
+ /* 1 */ { 2, s_1_1, -1, -1, 0},
+ /* 2 */ { 2, s_1_2, -1, -1, 0},
+ /* 3 */ { 2, s_1_3, -1, -1, 0}
+ };
static symbol s_2_0[2] = { 'i', 'g' };
static symbol s_2_1[3] = { 'l', 'i', 'g' };
@@ -115,13 +115,13 @@ static symbol s_2_3[3] = { 'e', 'l', 's' };
static symbol s_2_4[5] = { 'l', 0xC3, 0xB8, 's', 't' };
static struct among a_2[5] =
-{
-/* 0 */ { 2, s_2_0, -1, 1, 0},
-/* 1 */ { 3, s_2_1, 0, 1, 0},
-/* 2 */ { 4, s_2_2, 1, 1, 0},
-/* 3 */ { 3, s_2_3, -1, 1, 0},
-/* 4 */ { 5, s_2_4, -1, 2, 0}
-};
+ {
+ /* 0 */ { 2, s_2_0, -1, 1, 0},
+ /* 1 */ { 3, s_2_1, 0, 1, 0},
+ /* 2 */ { 4, s_2_2, 1, 1, 0},
+ /* 3 */ { 3, s_2_3, -1, 1, 0},
+ /* 4 */ { 5, s_2_4, -1, 2, 0}
+ };
static unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 128 };
@@ -132,223 +132,223 @@ static symbol s_1[] = { 'i', 'g' };
static symbol s_2[] = { 'l', 0xC3, 0xB8, 's' };
static int r_mark_regions(struct SN_env * z) {
- z->I[0] = z->l;
- { int c_test = z->c; /* test, line 33 */
- { int c = skip_utf8(z->p, z->c, 0, z->l, + 3);
- if (c < 0) return 0;
- z->c = c; /* hop, line 33 */
+ z->I[0] = z->l;
+ { int c_test = z->c; /* test, line 33 */
+ { int c = skip_utf8(z->p, z->c, 0, z->l, + 3);
+ if (c < 0) return 0;
+ z->c = c; /* hop, line 33 */
+ }
+ z->I[1] = z->c; /* setmark x, line 33 */
+ z->c = c_test;
}
- z->I[1] = z->c; /* setmark x, line 33 */
- z->c = c_test;
- }
- while(1) { /* goto, line 34 */
- int c = z->c;
- if (!(in_grouping_U(z, g_v, 97, 248))) goto lab0;
- z->c = c;
- break;
- lab0:
- z->c = c;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* goto, line 34 */
+ while(1) { /* goto, line 34 */
+ int c = z->c;
+ if (!(in_grouping_U(z, g_v, 97, 248))) goto lab0;
+ z->c = c;
+ break;
+ lab0:
+ z->c = c;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* goto, line 34 */
+ }
}
- }
- while(1) { /* gopast, line 34 */
- if (!(out_grouping_U(z, g_v, 97, 248))) goto lab1;
- break;
- lab1:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 34 */
+ while(1) { /* gopast, line 34 */
+ if (!(out_grouping_U(z, g_v, 97, 248))) goto lab1;
+ break;
+ lab1:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 34 */
+ }
}
- }
- z->I[0] = z->c; /* setmark p1, line 34 */
- /* try, line 35 */
- if (!(z->I[0] < z->I[1])) goto lab2;
- z->I[0] = z->I[1];
-lab2:
- return 1;
+ z->I[0] = z->c; /* setmark p1, line 34 */
+ /* try, line 35 */
+ if (!(z->I[0] < z->I[1])) goto lab2;
+ z->I[0] = z->I[1];
+ lab2:
+ return 1;
}
static int r_main_suffix(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 41 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 41 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 41 */
- among_var = find_among_b(z, a_0, 32); /* substring, line 41 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 41 */
- z->lb = m3;
- }
- switch(among_var) {
+ int among_var;
+ { int m3; /* setlimit, line 41 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 41 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 41 */
+ among_var = find_among_b(z, a_0, 32); /* substring, line 41 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 41 */
+ z->lb = m3;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 48 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_del(z); /* delete, line 48 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- if (!(in_grouping_b_U(z, g_s_ending, 97, 229))) return 0;
- { int ret;
- ret = slice_del(z); /* delete, line 50 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ if (!(in_grouping_b_U(z, g_s_ending, 97, 229))) return 0;
+ { int ret;
+ ret = slice_del(z); /* delete, line 50 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_consonant_pair(struct SN_env * z) {
- { int m_test = z->l - z->c; /* test, line 55 */
- { int m3; /* setlimit, line 56 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 56 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 56 */
- if (!(find_among_b(z, a_1, 4))) { z->lb = m3; return 0; } /* substring, line 56 */
- z->bra = z->c; /* ], line 56 */
- z->lb = m3;
+ { int m_test = z->l - z->c; /* test, line 55 */
+ { int m3; /* setlimit, line 56 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 56 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 56 */
+ if (!(find_among_b(z, a_1, 4))) { z->lb = m3; return 0; } /* substring, line 56 */
+ z->bra = z->c; /* ], line 56 */
+ z->lb = m3;
+ }
+ z->c = z->l - m_test;
}
- z->c = z->l - m_test;
- }
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) return 0;
- z->c = c; /* next, line 62 */
- }
- z->bra = z->c; /* ], line 62 */
- { int ret;
- ret = slice_del(z); /* delete, line 62 */
- if (ret < 0) return ret;
- }
- return 1;
+ { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (c < 0) return 0;
+ z->c = c; /* next, line 62 */
+ }
+ z->bra = z->c; /* ], line 62 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 62 */
+ if (ret < 0) return ret;
+ }
+ return 1;
}
static int r_other_suffix(struct SN_env * z) {
- int among_var;
- { int m = z->l - z->c; (void) m; /* do, line 66 */
- z->ket = z->c; /* [, line 66 */
- if (!(eq_s_b(z, 2, s_0))) goto lab0;
- z->bra = z->c; /* ], line 66 */
- if (!(eq_s_b(z, 2, s_1))) goto lab0;
- { int ret;
- ret = slice_del(z); /* delete, line 66 */
- if (ret < 0) return ret;
+ int among_var;
+ { int m = z->l - z->c; (void) m; /* do, line 66 */
+ z->ket = z->c; /* [, line 66 */
+ if (!(eq_s_b(z, 2, s_0))) goto lab0;
+ z->bra = z->c; /* ], line 66 */
+ if (!(eq_s_b(z, 2, s_1))) goto lab0;
+ { int ret;
+ ret = slice_del(z); /* delete, line 66 */
+ if (ret < 0) return ret;
+ }
+ lab0:
+ z->c = z->l - m;
}
- lab0:
- z->c = z->l - m;
- }
- { int m3; /* setlimit, line 67 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 67 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 67 */
- among_var = find_among_b(z, a_2, 5); /* substring, line 67 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 67 */
- z->lb = m3;
- }
- switch(among_var) {
+ { int m3; /* setlimit, line 67 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 67 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 67 */
+ among_var = find_among_b(z, a_2, 5); /* substring, line 67 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 67 */
+ z->lb = m3;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 70 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* do, line 70 */
- { int ret = r_consonant_pair(z);
- if (ret == 0) goto lab1; /* call consonant_pair, line 70 */
- if (ret < 0) return ret;
+ { int ret;
+ ret = slice_del(z); /* delete, line 70 */
+ if (ret < 0) return ret;
}
- lab1:
- z->c = z->l - m;
- }
- break;
+ { int m = z->l - z->c; (void) m; /* do, line 70 */
+ { int ret = r_consonant_pair(z);
+ if (ret == 0) goto lab1; /* call consonant_pair, line 70 */
+ if (ret < 0) return ret;
+ }
+ lab1:
+ z->c = z->l - m;
+ }
+ break;
case 2:
- { int ret;
- ret = slice_from_s(z, 4, s_2); /* <-, line 72 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_from_s(z, 4, s_2); /* <-, line 72 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_undouble(struct SN_env * z) {
- { int m3; /* setlimit, line 76 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 76 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 76 */
- if (!(out_grouping_b_U(z, g_v, 97, 248))) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 76 */
- z->S[0] = slice_to(z, z->S[0]); /* -> ch, line 76 */
- if (z->S[0] == 0) return -1; /* -> ch, line 76 */
- z->lb = m3;
- }
- if (!(eq_v_b(z, z->S[0]))) return 0; /* name ch, line 77 */
- { int ret;
- ret = slice_del(z); /* delete, line 78 */
- if (ret < 0) return ret;
- }
- return 1;
+ { int m3; /* setlimit, line 76 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 76 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 76 */
+ if (!(out_grouping_b_U(z, g_v, 97, 248))) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 76 */
+ z->S[0] = slice_to(z, z->S[0]); /* -> ch, line 76 */
+ if (z->S[0] == 0) return -1; /* -> ch, line 76 */
+ z->lb = m3;
+ }
+ if (!(eq_v_b(z, z->S[0]))) return 0; /* name ch, line 77 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 78 */
+ if (ret < 0) return ret;
+ }
+ return 1;
}
extern int danish_UTF_8_stem(struct SN_env * z) {
- { int c = z->c; /* do, line 84 */
- { int ret = r_mark_regions(z);
- if (ret == 0) goto lab0; /* call mark_regions, line 84 */
- if (ret < 0) return ret;
+ { int c = z->c; /* do, line 84 */
+ { int ret = r_mark_regions(z);
+ if (ret == 0) goto lab0; /* call mark_regions, line 84 */
+ if (ret < 0) return ret;
+ }
+ lab0:
+ z->c = c;
}
- lab0:
- z->c = c;
- }
- z->lb = z->c; z->c = z->l; /* backwards, line 85 */
+ z->lb = z->c; z->c = z->l; /* backwards, line 85 */
- { int m = z->l - z->c; (void) m; /* do, line 86 */
- { int ret = r_main_suffix(z);
- if (ret == 0) goto lab1; /* call main_suffix, line 86 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 86 */
+ { int ret = r_main_suffix(z);
+ if (ret == 0) goto lab1; /* call main_suffix, line 86 */
+ if (ret < 0) return ret;
+ }
+ lab1:
+ z->c = z->l - m;
}
- lab1:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 87 */
- { int ret = r_consonant_pair(z);
- if (ret == 0) goto lab2; /* call consonant_pair, line 87 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 87 */
+ { int ret = r_consonant_pair(z);
+ if (ret == 0) goto lab2; /* call consonant_pair, line 87 */
+ if (ret < 0) return ret;
+ }
+ lab2:
+ z->c = z->l - m;
}
- lab2:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 88 */
- { int ret = r_other_suffix(z);
- if (ret == 0) goto lab3; /* call other_suffix, line 88 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 88 */
+ { int ret = r_other_suffix(z);
+ if (ret == 0) goto lab3; /* call other_suffix, line 88 */
+ if (ret < 0) return ret;
+ }
+ lab3:
+ z->c = z->l - m;
}
- lab3:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 89 */
- { int ret = r_undouble(z);
- if (ret == 0) goto lab4; /* call undouble, line 89 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 89 */
+ { int ret = r_undouble(z);
+ if (ret == 0) goto lab4; /* call undouble, line 89 */
+ if (ret < 0) return ret;
+ }
+ lab4:
+ z->c = z->l - m;
}
- lab4:
- z->c = z->l - m;
- }
- z->c = z->lb;
- return 1;
+ z->c = z->lb;
+ return 1;
}
extern struct SN_env * danish_UTF_8_create_env(void) { return SN_create_env(1, 2, 0); }
diff --git a/src/libstemmer/stem_UTF_8_danish.h b/src/libstemmer/stem_UTF_8_danish.h
index 170085d..7bf91b6 100644
--- a/src/libstemmer/stem_UTF_8_danish.h
+++ b/src/libstemmer/stem_UTF_8_danish.h
@@ -18,10 +18,10 @@
extern "C" {
#endif
-extern struct SN_env * danish_UTF_8_create_env(void);
-extern void danish_UTF_8_close_env(struct SN_env * z);
+ extern struct SN_env * danish_UTF_8_create_env(void);
+ extern void danish_UTF_8_close_env(struct SN_env * z);
-extern int danish_UTF_8_stem(struct SN_env * z);
+ extern int danish_UTF_8_stem(struct SN_env * z);
#ifdef __cplusplus
}
diff --git a/src/libstemmer/stem_UTF_8_dutch.c b/src/libstemmer/stem_UTF_8_dutch.c
index 886b0c7..ea26a2d 100644
--- a/src/libstemmer/stem_UTF_8_dutch.c
+++ b/src/libstemmer/stem_UTF_8_dutch.c
@@ -42,40 +42,40 @@ static symbol s_0_9[2] = { 0xC3, 0xBA };
static symbol s_0_10[2] = { 0xC3, 0xBC };
static struct among a_0[11] =
-{
-/* 0 */ { 0, 0, -1, 6, 0},
-/* 1 */ { 2, s_0_1, 0, 1, 0},
-/* 2 */ { 2, s_0_2, 0, 1, 0},
-/* 3 */ { 2, s_0_3, 0, 2, 0},
-/* 4 */ { 2, s_0_4, 0, 2, 0},
-/* 5 */ { 2, s_0_5, 0, 3, 0},
-/* 6 */ { 2, s_0_6, 0, 3, 0},
-/* 7 */ { 2, s_0_7, 0, 4, 0},
-/* 8 */ { 2, s_0_8, 0, 4, 0},
-/* 9 */ { 2, s_0_9, 0, 5, 0},
-/* 10 */ { 2, s_0_10, 0, 5, 0}
-};
+ {
+ /* 0 */ { 0, 0, -1, 6, 0},
+ /* 1 */ { 2, s_0_1, 0, 1, 0},
+ /* 2 */ { 2, s_0_2, 0, 1, 0},
+ /* 3 */ { 2, s_0_3, 0, 2, 0},
+ /* 4 */ { 2, s_0_4, 0, 2, 0},
+ /* 5 */ { 2, s_0_5, 0, 3, 0},
+ /* 6 */ { 2, s_0_6, 0, 3, 0},
+ /* 7 */ { 2, s_0_7, 0, 4, 0},
+ /* 8 */ { 2, s_0_8, 0, 4, 0},
+ /* 9 */ { 2, s_0_9, 0, 5, 0},
+ /* 10 */ { 2, s_0_10, 0, 5, 0}
+ };
static symbol s_1_1[1] = { 'I' };
static symbol s_1_2[1] = { 'Y' };
static struct among a_1[3] =
-{
-/* 0 */ { 0, 0, -1, 3, 0},
-/* 1 */ { 1, s_1_1, 0, 2, 0},
-/* 2 */ { 1, s_1_2, 0, 1, 0}
-};
+ {
+ /* 0 */ { 0, 0, -1, 3, 0},
+ /* 1 */ { 1, s_1_1, 0, 2, 0},
+ /* 2 */ { 1, s_1_2, 0, 1, 0}
+ };
static symbol s_2_0[2] = { 'd', 'd' };
static symbol s_2_1[2] = { 'k', 'k' };
static symbol s_2_2[2] = { 't', 't' };
static struct among a_2[3] =
-{
-/* 0 */ { 2, s_2_0, -1, -1, 0},
-/* 1 */ { 2, s_2_1, -1, -1, 0},
-/* 2 */ { 2, s_2_2, -1, -1, 0}
-};
+ {
+ /* 0 */ { 2, s_2_0, -1, -1, 0},
+ /* 1 */ { 2, s_2_1, -1, -1, 0},
+ /* 2 */ { 2, s_2_2, -1, -1, 0}
+ };
static symbol s_3_0[3] = { 'e', 'n', 'e' };
static symbol s_3_1[2] = { 's', 'e' };
@@ -84,13 +84,13 @@ static symbol s_3_3[5] = { 'h', 'e', 'd', 'e', 'n' };
static symbol s_3_4[1] = { 's' };
static struct among a_3[5] =
-{
-/* 0 */ { 3, s_3_0, -1, 2, 0},
-/* 1 */ { 2, s_3_1, -1, 3, 0},
-/* 2 */ { 2, s_3_2, -1, 2, 0},
-/* 3 */ { 5, s_3_3, 2, 1, 0},
-/* 4 */ { 1, s_3_4, -1, 3, 0}
-};
+ {
+ /* 0 */ { 3, s_3_0, -1, 2, 0},
+ /* 1 */ { 2, s_3_1, -1, 3, 0},
+ /* 2 */ { 2, s_3_2, -1, 2, 0},
+ /* 3 */ { 5, s_3_3, 2, 1, 0},
+ /* 4 */ { 1, s_3_4, -1, 3, 0}
+ };
static symbol s_4_0[3] = { 'e', 'n', 'd' };
static symbol s_4_1[2] = { 'i', 'g' };
@@ -100,14 +100,14 @@ static symbol s_4_4[4] = { 'b', 'a', 'a', 'r' };
static symbol s_4_5[3] = { 'b', 'a', 'r' };
static struct among a_4[6] =
-{
-/* 0 */ { 3, s_4_0, -1, 1, 0},
-/* 1 */ { 2, s_4_1, -1, 2, 0},
-/* 2 */ { 3, s_4_2, -1, 1, 0},
-/* 3 */ { 4, s_4_3, -1, 3, 0},
-/* 4 */ { 4, s_4_4, -1, 4, 0},
-/* 5 */ { 3, s_4_5, -1, 5, 0}
-};
+ {
+ /* 0 */ { 3, s_4_0, -1, 1, 0},
+ /* 1 */ { 2, s_4_1, -1, 2, 0},
+ /* 2 */ { 3, s_4_2, -1, 1, 0},
+ /* 3 */ { 4, s_4_3, -1, 3, 0},
+ /* 4 */ { 4, s_4_4, -1, 4, 0},
+ /* 5 */ { 3, s_4_5, -1, 5, 0}
+ };
static symbol s_5_0[2] = { 'a', 'a' };
static symbol s_5_1[2] = { 'e', 'e' };
@@ -115,12 +115,12 @@ static symbol s_5_2[2] = { 'o', 'o' };
static symbol s_5_3[2] = { 'u', 'u' };
static struct among a_5[4] =
-{
-/* 0 */ { 2, s_5_0, -1, -1, 0},
-/* 1 */ { 2, s_5_1, -1, -1, 0},
-/* 2 */ { 2, s_5_2, -1, -1, 0},
-/* 3 */ { 2, s_5_3, -1, -1, 0}
-};
+ {
+ /* 0 */ { 2, s_5_0, -1, -1, 0},
+ /* 1 */ { 2, s_5_1, -1, -1, 0},
+ /* 2 */ { 2, s_5_2, -1, -1, 0},
+ /* 3 */ { 2, s_5_3, -1, -1, 0}
+ };
static unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 };
@@ -152,512 +152,512 @@ static symbol s_20[] = { 'e' };
static symbol s_21[] = { 'e' };
static int r_prelude(struct SN_env * z) {
- int among_var;
- { int c_test = z->c; /* test, line 42 */
- while(1) { /* repeat, line 42 */
- int c = z->c;
- z->bra = z->c; /* [, line 43 */
- among_var = find_among(z, a_0, 11); /* substring, line 43 */
- if (!(among_var)) goto lab0;
- z->ket = z->c; /* ], line 43 */
- switch(among_var) {
- case 0: goto lab0;
- case 1:
- { int ret;
- ret = slice_from_s(z, 1, s_0); /* <-, line 45 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int ret;
- ret = slice_from_s(z, 1, s_1); /* <-, line 47 */
- if (ret < 0) return ret;
- }
- break;
- case 3:
- { int ret;
- ret = slice_from_s(z, 1, s_2); /* <-, line 49 */
- if (ret < 0) return ret;
- }
- break;
- case 4:
- { int ret;
- ret = slice_from_s(z, 1, s_3); /* <-, line 51 */
- if (ret < 0) return ret;
- }
- break;
- case 5:
- { int ret;
- ret = slice_from_s(z, 1, s_4); /* <-, line 53 */
- if (ret < 0) return ret;
- }
- break;
- case 6:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* next, line 54 */
- }
- break;
- }
- continue;
- lab0:
- z->c = c;
- break;
- }
- z->c = c_test;
- }
- { int c = z->c; /* try, line 57 */
- z->bra = z->c; /* [, line 57 */
- if (!(eq_s(z, 1, s_5))) { z->c = c; goto lab1; }
- z->ket = z->c; /* ], line 57 */
- { int ret;
- ret = slice_from_s(z, 1, s_6); /* <-, line 57 */
- if (ret < 0) return ret;
+ int among_var;
+ { int c_test = z->c; /* test, line 42 */
+ while(1) { /* repeat, line 42 */
+ int c = z->c;
+ z->bra = z->c; /* [, line 43 */
+ among_var = find_among(z, a_0, 11); /* substring, line 43 */
+ if (!(among_var)) goto lab0;
+ z->ket = z->c; /* ], line 43 */
+ switch(among_var) {
+ case 0: goto lab0;
+ case 1:
+ { int ret;
+ ret = slice_from_s(z, 1, s_0); /* <-, line 45 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ { int ret;
+ ret = slice_from_s(z, 1, s_1); /* <-, line 47 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 3:
+ { int ret;
+ ret = slice_from_s(z, 1, s_2); /* <-, line 49 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 4:
+ { int ret;
+ ret = slice_from_s(z, 1, s_3); /* <-, line 51 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 5:
+ { int ret;
+ ret = slice_from_s(z, 1, s_4); /* <-, line 53 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 6:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* next, line 54 */
+ }
+ break;
+ }
+ continue;
+ lab0:
+ z->c = c;
+ break;
+ }
+ z->c = c_test;
}
- lab1:
- ;
- }
- while(1) { /* repeat, line 58 */
- int c = z->c;
- while(1) { /* goto, line 58 */
- int c = z->c;
- if (!(in_grouping_U(z, g_v, 97, 232))) goto lab3;
- z->bra = z->c; /* [, line 59 */
- { int c = z->c; /* or, line 59 */
- if (!(eq_s(z, 1, s_7))) goto lab5;
- z->ket = z->c; /* ], line 59 */
- if (!(in_grouping_U(z, g_v, 97, 232))) goto lab5;
+ { int c = z->c; /* try, line 57 */
+ z->bra = z->c; /* [, line 57 */
+ if (!(eq_s(z, 1, s_5))) { z->c = c; goto lab1; }
+ z->ket = z->c; /* ], line 57 */
{ int ret;
- ret = slice_from_s(z, 1, s_8); /* <-, line 59 */
- if (ret < 0) return ret;
+ ret = slice_from_s(z, 1, s_6); /* <-, line 57 */
+ if (ret < 0) return ret;
}
- goto lab4;
- lab5:
- z->c = c;
- if (!(eq_s(z, 1, s_9))) goto lab3;
- z->ket = z->c; /* ], line 60 */
- { int ret;
- ret = slice_from_s(z, 1, s_10); /* <-, line 60 */
- if (ret < 0) return ret;
+ lab1:
+ ;
+ }
+ while(1) { /* repeat, line 58 */
+ int c = z->c;
+ while(1) { /* goto, line 58 */
+ int c = z->c;
+ if (!(in_grouping_U(z, g_v, 97, 232))) goto lab3;
+ z->bra = z->c; /* [, line 59 */
+ { int c = z->c; /* or, line 59 */
+ if (!(eq_s(z, 1, s_7))) goto lab5;
+ z->ket = z->c; /* ], line 59 */
+ if (!(in_grouping_U(z, g_v, 97, 232))) goto lab5;
+ { int ret;
+ ret = slice_from_s(z, 1, s_8); /* <-, line 59 */
+ if (ret < 0) return ret;
+ }
+ goto lab4;
+ lab5:
+ z->c = c;
+ if (!(eq_s(z, 1, s_9))) goto lab3;
+ z->ket = z->c; /* ], line 60 */
+ { int ret;
+ ret = slice_from_s(z, 1, s_10); /* <-, line 60 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab4:
+ z->c = c;
+ break;
+ lab3:
+ z->c = c;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab2;
+ z->c = c; /* goto, line 58 */
+ }
}
- }
- lab4:
- z->c = c;
- break;
- lab3:
- z->c = c;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab2;
- z->c = c; /* goto, line 58 */
- }
+ continue;
+ lab2:
+ z->c = c;
+ break;
}
- continue;
- lab2:
- z->c = c;
- break;
- }
- return 1;
+ return 1;
}
static int r_mark_regions(struct SN_env * z) {
- z->I[0] = z->l;
- z->I[1] = z->l;
- while(1) { /* gopast, line 69 */
- if (!(in_grouping_U(z, g_v, 97, 232))) goto lab0;
- break;
- lab0:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 69 */
+ z->I[0] = z->l;
+ z->I[1] = z->l;
+ while(1) { /* gopast, line 69 */
+ if (!(in_grouping_U(z, g_v, 97, 232))) goto lab0;
+ break;
+ lab0:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 69 */
+ }
}
- }
- while(1) { /* gopast, line 69 */
- if (!(out_grouping_U(z, g_v, 97, 232))) goto lab1;
- break;
- lab1:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 69 */
+ while(1) { /* gopast, line 69 */
+ if (!(out_grouping_U(z, g_v, 97, 232))) goto lab1;
+ break;
+ lab1:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 69 */
+ }
}
- }
- z->I[0] = z->c; /* setmark p1, line 69 */
- /* try, line 70 */
- if (!(z->I[0] < 3)) goto lab2;
- z->I[0] = 3;
-lab2:
- while(1) { /* gopast, line 71 */
- if (!(in_grouping_U(z, g_v, 97, 232))) goto lab3;
- break;
- lab3:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 71 */
+ z->I[0] = z->c; /* setmark p1, line 69 */
+ /* try, line 70 */
+ if (!(z->I[0] < 3)) goto lab2;
+ z->I[0] = 3;
+ lab2:
+ while(1) { /* gopast, line 71 */
+ if (!(in_grouping_U(z, g_v, 97, 232))) goto lab3;
+ break;
+ lab3:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 71 */
+ }
}
- }
- while(1) { /* gopast, line 71 */
- if (!(out_grouping_U(z, g_v, 97, 232))) goto lab4;
- break;
- lab4:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 71 */
+ while(1) { /* gopast, line 71 */
+ if (!(out_grouping_U(z, g_v, 97, 232))) goto lab4;
+ break;
+ lab4:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 71 */
+ }
}
- }
- z->I[1] = z->c; /* setmark p2, line 71 */
- return 1;
+ z->I[1] = z->c; /* setmark p2, line 71 */
+ return 1;
}
static int r_postlude(struct SN_env * z) {
- int among_var;
- while(1) { /* repeat, line 75 */
- int c = z->c;
- z->bra = z->c; /* [, line 77 */
- among_var = find_among(z, a_1, 3); /* substring, line 77 */
- if (!(among_var)) goto lab0;
- z->ket = z->c; /* ], line 77 */
- switch(among_var) {
- case 0: goto lab0;
- case 1:
- { int ret;
- ret = slice_from_s(z, 1, s_11); /* <-, line 78 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int ret;
- ret = slice_from_s(z, 1, s_12); /* <-, line 79 */
- if (ret < 0) return ret;
- }
- break;
- case 3:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* next, line 80 */
+ int among_var;
+ while(1) { /* repeat, line 75 */
+ int c = z->c;
+ z->bra = z->c; /* [, line 77 */
+ among_var = find_among(z, a_1, 3); /* substring, line 77 */
+ if (!(among_var)) goto lab0;
+ z->ket = z->c; /* ], line 77 */
+ switch(among_var) {
+ case 0: goto lab0;
+ case 1:
+ { int ret;
+ ret = slice_from_s(z, 1, s_11); /* <-, line 78 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ { int ret;
+ ret = slice_from_s(z, 1, s_12); /* <-, line 79 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 3:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* next, line 80 */
+ }
+ break;
}
+ continue;
+ lab0:
+ z->c = c;
break;
}
- continue;
- lab0:
- z->c = c;
- break;
- }
- return 1;
+ return 1;
}
static int r_R1(struct SN_env * z) {
- if (!(z->I[0] <= z->c)) return 0;
- return 1;
+ if (!(z->I[0] <= z->c)) return 0;
+ return 1;
}
static int r_R2(struct SN_env * z) {
- if (!(z->I[1] <= z->c)) return 0;
- return 1;
+ if (!(z->I[1] <= z->c)) return 0;
+ return 1;
}
static int r_undouble(struct SN_env * z) {
- { int m_test = z->l - z->c; /* test, line 91 */
- if (!(find_among_b(z, a_2, 3))) return 0; /* among, line 91 */
- z->c = z->l - m_test;
- }
- z->ket = z->c; /* [, line 91 */
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) return 0;
- z->c = c; /* next, line 91 */
- }
- z->bra = z->c; /* ], line 91 */
- { int ret;
- ret = slice_del(z); /* delete, line 91 */
- if (ret < 0) return ret;
- }
- return 1;
+ { int m_test = z->l - z->c; /* test, line 91 */
+ if (!(find_among_b(z, a_2, 3))) return 0; /* among, line 91 */
+ z->c = z->l - m_test;
+ }
+ z->ket = z->c; /* [, line 91 */
+ { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (c < 0) return 0;
+ z->c = c; /* next, line 91 */
+ }
+ z->bra = z->c; /* ], line 91 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 91 */
+ if (ret < 0) return ret;
+ }
+ return 1;
}
static int r_e_ending(struct SN_env * z) {
- z->B[0] = 0; /* unset e_found, line 95 */
- z->ket = z->c; /* [, line 96 */
- if (!(eq_s_b(z, 1, s_13))) return 0;
- z->bra = z->c; /* ], line 96 */
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 96 */
- if (ret < 0) return ret;
- }
- { int m_test = z->l - z->c; /* test, line 96 */
- if (!(out_grouping_b_U(z, g_v, 97, 232))) return 0;
- z->c = z->l - m_test;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 96 */
- if (ret < 0) return ret;
- }
- z->B[0] = 1; /* set e_found, line 97 */
- { int ret = r_undouble(z);
- if (ret == 0) return 0; /* call undouble, line 98 */
- if (ret < 0) return ret;
- }
- return 1;
+ z->B[0] = 0; /* unset e_found, line 95 */
+ z->ket = z->c; /* [, line 96 */
+ if (!(eq_s_b(z, 1, s_13))) return 0;
+ z->bra = z->c; /* ], line 96 */
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 96 */
+ if (ret < 0) return ret;
+ }
+ { int m_test = z->l - z->c; /* test, line 96 */
+ if (!(out_grouping_b_U(z, g_v, 97, 232))) return 0;
+ z->c = z->l - m_test;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 96 */
+ if (ret < 0) return ret;
+ }
+ z->B[0] = 1; /* set e_found, line 97 */
+ { int ret = r_undouble(z);
+ if (ret == 0) return 0; /* call undouble, line 98 */
+ if (ret < 0) return ret;
+ }
+ return 1;
}
static int r_en_ending(struct SN_env * z) {
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 102 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* and, line 102 */
- if (!(out_grouping_b_U(z, g_v, 97, 232))) return 0;
- z->c = z->l - m;
- { int m = z->l - z->c; (void) m; /* not, line 102 */
- if (!(eq_s_b(z, 3, s_14))) goto lab0;
- return 0;
- lab0:
- z->c = z->l - m;
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 102 */
+ if (ret < 0) return ret;
}
- }
- { int ret;
- ret = slice_del(z); /* delete, line 102 */
- if (ret < 0) return ret;
- }
- { int ret = r_undouble(z);
- if (ret == 0) return 0; /* call undouble, line 103 */
- if (ret < 0) return ret;
- }
- return 1;
-}
-
-static int r_standard_suffix(struct SN_env * z) {
- int among_var;
- { int m = z->l - z->c; (void) m; /* do, line 107 */
- z->ket = z->c; /* [, line 108 */
- among_var = find_among_b(z, a_3, 5); /* substring, line 108 */
- if (!(among_var)) goto lab0;
- z->bra = z->c; /* ], line 108 */
- switch(among_var) {
- case 0: goto lab0;
- case 1:
- { int ret = r_R1(z);
- if (ret == 0) goto lab0; /* call R1, line 110 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 4, s_15); /* <-, line 110 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int ret = r_en_ending(z);
- if (ret == 0) goto lab0; /* call en_ending, line 113 */
- if (ret < 0) return ret;
- }
- break;
- case 3:
- { int ret = r_R1(z);
- if (ret == 0) goto lab0; /* call R1, line 116 */
- if (ret < 0) return ret;
- }
- if (!(out_grouping_b_U(z, g_v_j, 97, 232))) goto lab0;
- { int ret;
- ret = slice_del(z); /* delete, line 116 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* and, line 102 */
+ if (!(out_grouping_b_U(z, g_v, 97, 232))) return 0;
+ z->c = z->l - m;
+ { int m = z->l - z->c; (void) m; /* not, line 102 */
+ if (!(eq_s_b(z, 3, s_14))) goto lab0;
+ return 0;
+ lab0:
+ z->c = z->l - m;
}
- break;
- }
- lab0:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 120 */
- { int ret = r_e_ending(z);
- if (ret == 0) goto lab1; /* call e_ending, line 120 */
- if (ret < 0) return ret;
- }
- lab1:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 122 */
- z->ket = z->c; /* [, line 122 */
- if (!(eq_s_b(z, 4, s_16))) goto lab2;
- z->bra = z->c; /* ], line 122 */
- { int ret = r_R2(z);
- if (ret == 0) goto lab2; /* call R2, line 122 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* not, line 122 */
- if (!(eq_s_b(z, 1, s_17))) goto lab3;
- goto lab2;
- lab3:
- z->c = z->l - m;
}
{ int ret;
- ret = slice_del(z); /* delete, line 122 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 102 */
+ if (ret < 0) return ret;
}
- z->ket = z->c; /* [, line 123 */
- if (!(eq_s_b(z, 2, s_18))) goto lab2;
- z->bra = z->c; /* ], line 123 */
- { int ret = r_en_ending(z);
- if (ret == 0) goto lab2; /* call en_ending, line 123 */
- if (ret < 0) return ret;
+ { int ret = r_undouble(z);
+ if (ret == 0) return 0; /* call undouble, line 103 */
+ if (ret < 0) return ret;
}
- lab2:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 126 */
- z->ket = z->c; /* [, line 127 */
- among_var = find_among_b(z, a_4, 6); /* substring, line 127 */
- if (!(among_var)) goto lab4;
- z->bra = z->c; /* ], line 127 */
- switch(among_var) {
- case 0: goto lab4;
- case 1:
- { int ret = r_R2(z);
- if (ret == 0) goto lab4; /* call R2, line 129 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 129 */
- if (ret < 0) return ret;
+ return 1;
+}
+
+static int r_standard_suffix(struct SN_env * z) {
+ int among_var;
+ { int m = z->l - z->c; (void) m; /* do, line 107 */
+ z->ket = z->c; /* [, line 108 */
+ among_var = find_among_b(z, a_3, 5); /* substring, line 108 */
+ if (!(among_var)) goto lab0;
+ z->bra = z->c; /* ], line 108 */
+ switch(among_var) {
+ case 0: goto lab0;
+ case 1:
+ { int ret = r_R1(z);
+ if (ret == 0) goto lab0; /* call R1, line 110 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 4, s_15); /* <-, line 110 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ { int ret = r_en_ending(z);
+ if (ret == 0) goto lab0; /* call en_ending, line 113 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 3:
+ { int ret = r_R1(z);
+ if (ret == 0) goto lab0; /* call R1, line 116 */
+ if (ret < 0) return ret;
+ }
+ if (!(out_grouping_b_U(z, g_v_j, 97, 232))) goto lab0;
+ { int ret;
+ ret = slice_del(z); /* delete, line 116 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- { int m = z->l - z->c; (void) m; /* or, line 130 */
- z->ket = z->c; /* [, line 130 */
- if (!(eq_s_b(z, 2, s_19))) goto lab6;
- z->bra = z->c; /* ], line 130 */
- { int ret = r_R2(z);
- if (ret == 0) goto lab6; /* call R2, line 130 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* not, line 130 */
- if (!(eq_s_b(z, 1, s_20))) goto lab7;
- goto lab6;
- lab7:
- z->c = z->l - m;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 130 */
- if (ret < 0) return ret;
- }
- goto lab5;
- lab6:
- z->c = z->l - m;
- { int ret = r_undouble(z);
- if (ret == 0) goto lab4; /* call undouble, line 130 */
+ lab0:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 120 */
+ { int ret = r_e_ending(z);
+ if (ret == 0) goto lab1; /* call e_ending, line 120 */
if (ret < 0) return ret;
- }
}
- lab5:
- break;
- case 2:
+ lab1:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 122 */
+ z->ket = z->c; /* [, line 122 */
+ if (!(eq_s_b(z, 4, s_16))) goto lab2;
+ z->bra = z->c; /* ], line 122 */
{ int ret = r_R2(z);
- if (ret == 0) goto lab4; /* call R2, line 133 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* not, line 133 */
- if (!(eq_s_b(z, 1, s_21))) goto lab8;
- goto lab4;
- lab8:
- z->c = z->l - m;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 133 */
- if (ret < 0) return ret;
+ if (ret == 0) goto lab2; /* call R2, line 122 */
+ if (ret < 0) return ret;
}
- break;
- case 3:
- { int ret = r_R2(z);
- if (ret == 0) goto lab4; /* call R2, line 136 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* not, line 122 */
+ if (!(eq_s_b(z, 1, s_17))) goto lab3;
+ goto lab2;
+ lab3:
+ z->c = z->l - m;
}
{ int ret;
- ret = slice_del(z); /* delete, line 136 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 122 */
+ if (ret < 0) return ret;
}
- { int ret = r_e_ending(z);
- if (ret == 0) goto lab4; /* call e_ending, line 136 */
- if (ret < 0) return ret;
+ z->ket = z->c; /* [, line 123 */
+ if (!(eq_s_b(z, 2, s_18))) goto lab2;
+ z->bra = z->c; /* ], line 123 */
+ { int ret = r_en_ending(z);
+ if (ret == 0) goto lab2; /* call en_ending, line 123 */
+ if (ret < 0) return ret;
}
- break;
- case 4:
- { int ret = r_R2(z);
- if (ret == 0) goto lab4; /* call R2, line 139 */
- if (ret < 0) return ret;
+ lab2:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 126 */
+ z->ket = z->c; /* [, line 127 */
+ among_var = find_among_b(z, a_4, 6); /* substring, line 127 */
+ if (!(among_var)) goto lab4;
+ z->bra = z->c; /* ], line 127 */
+ switch(among_var) {
+ case 0: goto lab4;
+ case 1:
+ { int ret = r_R2(z);
+ if (ret == 0) goto lab4; /* call R2, line 129 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 129 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* or, line 130 */
+ z->ket = z->c; /* [, line 130 */
+ if (!(eq_s_b(z, 2, s_19))) goto lab6;
+ z->bra = z->c; /* ], line 130 */
+ { int ret = r_R2(z);
+ if (ret == 0) goto lab6; /* call R2, line 130 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* not, line 130 */
+ if (!(eq_s_b(z, 1, s_20))) goto lab7;
+ goto lab6;
+ lab7:
+ z->c = z->l - m;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 130 */
+ if (ret < 0) return ret;
+ }
+ goto lab5;
+ lab6:
+ z->c = z->l - m;
+ { int ret = r_undouble(z);
+ if (ret == 0) goto lab4; /* call undouble, line 130 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab5:
+ break;
+ case 2:
+ { int ret = r_R2(z);
+ if (ret == 0) goto lab4; /* call R2, line 133 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* not, line 133 */
+ if (!(eq_s_b(z, 1, s_21))) goto lab8;
+ goto lab4;
+ lab8:
+ z->c = z->l - m;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 133 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 3:
+ { int ret = r_R2(z);
+ if (ret == 0) goto lab4; /* call R2, line 136 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 136 */
+ if (ret < 0) return ret;
+ }
+ { int ret = r_e_ending(z);
+ if (ret == 0) goto lab4; /* call e_ending, line 136 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 4:
+ { int ret = r_R2(z);
+ if (ret == 0) goto lab4; /* call R2, line 139 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 139 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 5:
+ { int ret = r_R2(z);
+ if (ret == 0) goto lab4; /* call R2, line 142 */
+ if (ret < 0) return ret;
+ }
+ if (!(z->B[0])) goto lab4; /* Boolean test e_found, line 142 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 142 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- { int ret;
- ret = slice_del(z); /* delete, line 139 */
- if (ret < 0) return ret;
+ lab4:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 146 */
+ if (!(out_grouping_b_U(z, g_v_I, 73, 232))) goto lab9;
+ { int m_test = z->l - z->c; /* test, line 148 */
+ if (!(find_among_b(z, a_5, 4))) goto lab9; /* among, line 149 */
+ if (!(out_grouping_b_U(z, g_v, 97, 232))) goto lab9;
+ z->c = z->l - m_test;
}
- break;
- case 5:
- { int ret = r_R2(z);
- if (ret == 0) goto lab4; /* call R2, line 142 */
- if (ret < 0) return ret;
+ z->ket = z->c; /* [, line 152 */
+ { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (c < 0) goto lab9;
+ z->c = c; /* next, line 152 */
}
- if (!(z->B[0])) goto lab4; /* Boolean test e_found, line 142 */
+ z->bra = z->c; /* ], line 152 */
{ int ret;
- ret = slice_del(z); /* delete, line 142 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 152 */
+ if (ret < 0) return ret;
}
- break;
+ lab9:
+ z->c = z->l - m;
}
- lab4:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 146 */
- if (!(out_grouping_b_U(z, g_v_I, 73, 232))) goto lab9;
- { int m_test = z->l - z->c; /* test, line 148 */
- if (!(find_among_b(z, a_5, 4))) goto lab9; /* among, line 149 */
- if (!(out_grouping_b_U(z, g_v, 97, 232))) goto lab9;
- z->c = z->l - m_test;
- }
- z->ket = z->c; /* [, line 152 */
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) goto lab9;
- z->c = c; /* next, line 152 */
- }
- z->bra = z->c; /* ], line 152 */
- { int ret;
- ret = slice_del(z); /* delete, line 152 */
- if (ret < 0) return ret;
- }
- lab9:
- z->c = z->l - m;
- }
- return 1;
+ return 1;
}
extern int dutch_UTF_8_stem(struct SN_env * z) {
- { int c = z->c; /* do, line 159 */
- { int ret = r_prelude(z);
- if (ret == 0) goto lab0; /* call prelude, line 159 */
- if (ret < 0) return ret;
+ { int c = z->c; /* do, line 159 */
+ { int ret = r_prelude(z);
+ if (ret == 0) goto lab0; /* call prelude, line 159 */
+ if (ret < 0) return ret;
+ }
+ lab0:
+ z->c = c;
}
- lab0:
- z->c = c;
- }
- { int c = z->c; /* do, line 160 */
- { int ret = r_mark_regions(z);
- if (ret == 0) goto lab1; /* call mark_regions, line 160 */
- if (ret < 0) return ret;
+ { int c = z->c; /* do, line 160 */
+ { int ret = r_mark_regions(z);
+ if (ret == 0) goto lab1; /* call mark_regions, line 160 */
+ if (ret < 0) return ret;
+ }
+ lab1:
+ z->c = c;
}
- lab1:
- z->c = c;
- }
- z->lb = z->c; z->c = z->l; /* backwards, line 161 */
-
- { int m = z->l - z->c; (void) m; /* do, line 162 */
- { int ret = r_standard_suffix(z);
- if (ret == 0) goto lab2; /* call standard_suffix, line 162 */
- if (ret < 0) return ret;
+ z->lb = z->c; z->c = z->l; /* backwards, line 161 */
+
+ { int m = z->l - z->c; (void) m; /* do, line 162 */
+ { int ret = r_standard_suffix(z);
+ if (ret == 0) goto lab2; /* call standard_suffix, line 162 */
+ if (ret < 0) return ret;
+ }
+ lab2:
+ z->c = z->l - m;
}
- lab2:
- z->c = z->l - m;
- }
- z->c = z->lb;
- { int c = z->c; /* do, line 163 */
- { int ret = r_postlude(z);
- if (ret == 0) goto lab3; /* call postlude, line 163 */
- if (ret < 0) return ret;
+ z->c = z->lb;
+ { int c = z->c; /* do, line 163 */
+ { int ret = r_postlude(z);
+ if (ret == 0) goto lab3; /* call postlude, line 163 */
+ if (ret < 0) return ret;
+ }
+ lab3:
+ z->c = c;
}
- lab3:
- z->c = c;
- }
- return 1;
+ return 1;
}
extern struct SN_env * dutch_UTF_8_create_env(void) { return SN_create_env(0, 2, 1); }
diff --git a/src/libstemmer/stem_UTF_8_dutch.h b/src/libstemmer/stem_UTF_8_dutch.h
index f3de2bb..01fc00f 100644
--- a/src/libstemmer/stem_UTF_8_dutch.h
+++ b/src/libstemmer/stem_UTF_8_dutch.h
@@ -18,10 +18,10 @@
extern "C" {
#endif
-extern struct SN_env * dutch_UTF_8_create_env(void);
-extern void dutch_UTF_8_close_env(struct SN_env * z);
+ extern struct SN_env * dutch_UTF_8_create_env(void);
+ extern void dutch_UTF_8_close_env(struct SN_env * z);
-extern int dutch_UTF_8_stem(struct SN_env * z);
+ extern int dutch_UTF_8_stem(struct SN_env * z);
#ifdef __cplusplus
}
diff --git a/src/libstemmer/stem_UTF_8_english.c b/src/libstemmer/stem_UTF_8_english.c
index 16ecd19..0141354 100644
--- a/src/libstemmer/stem_UTF_8_english.c
+++ b/src/libstemmer/stem_UTF_8_english.c
@@ -40,21 +40,21 @@ static symbol s_0_0[6] = { 'c', 'o', 'm', 'm', 'u', 'n' };
static symbol s_0_1[5] = { 'g', 'e', 'n', 'e', 'r' };
static struct among a_0[2] =
-{
-/* 0 */ { 6, s_0_0, -1, -1, 0},
-/* 1 */ { 5, s_0_1, -1, -1, 0}
-};
+ {
+ /* 0 */ { 6, s_0_0, -1, -1, 0},
+ /* 1 */ { 5, s_0_1, -1, -1, 0}
+ };
static symbol s_1_0[1] = { '\'' };
static symbol s_1_1[3] = { '\'', 's', '\'' };
static symbol s_1_2[2] = { '\'', 's' };
static struct among a_1[3] =
-{
-/* 0 */ { 1, s_1_0, -1, 1, 0},
-/* 1 */ { 3, s_1_1, 0, 1, 0},
-/* 2 */ { 2, s_1_2, -1, 1, 0}
-};
+ {
+ /* 0 */ { 1, s_1_0, -1, 1, 0},
+ /* 1 */ { 3, s_1_1, 0, 1, 0},
+ /* 2 */ { 2, s_1_2, -1, 1, 0}
+ };
static symbol s_2_0[3] = { 'i', 'e', 'd' };
static symbol s_2_1[1] = { 's' };
@@ -64,14 +64,14 @@ static symbol s_2_4[2] = { 's', 's' };
static symbol s_2_5[2] = { 'u', 's' };
static struct among a_2[6] =
-{
-/* 0 */ { 3, s_2_0, -1, 2, 0},
-/* 1 */ { 1, s_2_1, -1, 3, 0},
-/* 2 */ { 3, s_2_2, 1, 2, 0},
-/* 3 */ { 4, s_2_3, 1, 1, 0},
-/* 4 */ { 2, s_2_4, 1, -1, 0},
-/* 5 */ { 2, s_2_5, 1, -1, 0}
-};
+ {
+ /* 0 */ { 3, s_2_0, -1, 2, 0},
+ /* 1 */ { 1, s_2_1, -1, 3, 0},
+ /* 2 */ { 3, s_2_2, 1, 2, 0},
+ /* 3 */ { 4, s_2_3, 1, 1, 0},
+ /* 4 */ { 2, s_2_4, 1, -1, 0},
+ /* 5 */ { 2, s_2_5, 1, -1, 0}
+ };
static symbol s_3_1[2] = { 'b', 'b' };
static symbol s_3_2[2] = { 'd', 'd' };
@@ -87,21 +87,21 @@ static symbol s_3_11[2] = { 't', 't' };
static symbol s_3_12[2] = { 'i', 'z' };
static struct among a_3[13] =
-{
-/* 0 */ { 0, 0, -1, 3, 0},
-/* 1 */ { 2, s_3_1, 0, 2, 0},
-/* 2 */ { 2, s_3_2, 0, 2, 0},
-/* 3 */ { 2, s_3_3, 0, 2, 0},
-/* 4 */ { 2, s_3_4, 0, 2, 0},
-/* 5 */ { 2, s_3_5, 0, 1, 0},
-/* 6 */ { 2, s_3_6, 0, 2, 0},
-/* 7 */ { 2, s_3_7, 0, 2, 0},
-/* 8 */ { 2, s_3_8, 0, 2, 0},
-/* 9 */ { 2, s_3_9, 0, 2, 0},
-/* 10 */ { 2, s_3_10, 0, 1, 0},
-/* 11 */ { 2, s_3_11, 0, 2, 0},
-/* 12 */ { 2, s_3_12, 0, 1, 0}
-};
+ {
+ /* 0 */ { 0, 0, -1, 3, 0},
+ /* 1 */ { 2, s_3_1, 0, 2, 0},
+ /* 2 */ { 2, s_3_2, 0, 2, 0},
+ /* 3 */ { 2, s_3_3, 0, 2, 0},
+ /* 4 */ { 2, s_3_4, 0, 2, 0},
+ /* 5 */ { 2, s_3_5, 0, 1, 0},
+ /* 6 */ { 2, s_3_6, 0, 2, 0},
+ /* 7 */ { 2, s_3_7, 0, 2, 0},
+ /* 8 */ { 2, s_3_8, 0, 2, 0},
+ /* 9 */ { 2, s_3_9, 0, 2, 0},
+ /* 10 */ { 2, s_3_10, 0, 1, 0},
+ /* 11 */ { 2, s_3_11, 0, 2, 0},
+ /* 12 */ { 2, s_3_12, 0, 1, 0}
+ };
static symbol s_4_0[2] = { 'e', 'd' };
static symbol s_4_1[3] = { 'e', 'e', 'd' };
@@ -111,14 +111,14 @@ static symbol s_4_4[5] = { 'e', 'e', 'd', 'l', 'y' };
static symbol s_4_5[5] = { 'i', 'n', 'g', 'l', 'y' };
static struct among a_4[6] =
-{
-/* 0 */ { 2, s_4_0, -1, 2, 0},
-/* 1 */ { 3, s_4_1, 0, 1, 0},
-/* 2 */ { 3, s_4_2, -1, 2, 0},
-/* 3 */ { 4, s_4_3, -1, 2, 0},
-/* 4 */ { 5, s_4_4, 3, 1, 0},
-/* 5 */ { 5, s_4_5, -1, 2, 0}
-};
+ {
+ /* 0 */ { 2, s_4_0, -1, 2, 0},
+ /* 1 */ { 3, s_4_1, 0, 1, 0},
+ /* 2 */ { 3, s_4_2, -1, 2, 0},
+ /* 3 */ { 4, s_4_3, -1, 2, 0},
+ /* 4 */ { 5, s_4_4, 3, 1, 0},
+ /* 5 */ { 5, s_4_5, -1, 2, 0}
+ };
static symbol s_5_0[4] = { 'a', 'n', 'c', 'i' };
static symbol s_5_1[4] = { 'e', 'n', 'c', 'i' };
@@ -146,32 +146,32 @@ static symbol s_5_22[7] = { 'f', 'u', 'l', 'n', 'e', 's', 's' };
static symbol s_5_23[7] = { 'o', 'u', 's', 'n', 'e', 's', 's' };
static struct among a_5[24] =
-{
-/* 0 */ { 4, s_5_0, -1, 3, 0},
-/* 1 */ { 4, s_5_1, -1, 2, 0},
-/* 2 */ { 3, s_5_2, -1, 13, 0},
-/* 3 */ { 2, s_5_3, -1, 16, 0},
-/* 4 */ { 3, s_5_4, 3, 12, 0},
-/* 5 */ { 4, s_5_5, 4, 4, 0},
-/* 6 */ { 4, s_5_6, 3, 8, 0},
-/* 7 */ { 5, s_5_7, 3, 14, 0},
-/* 8 */ { 6, s_5_8, 3, 15, 0},
-/* 9 */ { 5, s_5_9, 3, 10, 0},
-/* 10 */ { 5, s_5_10, 3, 5, 0},
-/* 11 */ { 5, s_5_11, -1, 8, 0},
-/* 12 */ { 6, s_5_12, -1, 12, 0},
-/* 13 */ { 5, s_5_13, -1, 11, 0},
-/* 14 */ { 6, s_5_14, -1, 1, 0},
-/* 15 */ { 7, s_5_15, 14, 7, 0},
-/* 16 */ { 5, s_5_16, -1, 8, 0},
-/* 17 */ { 5, s_5_17, -1, 7, 0},
-/* 18 */ { 7, s_5_18, 17, 6, 0},
-/* 19 */ { 4, s_5_19, -1, 6, 0},
-/* 20 */ { 4, s_5_20, -1, 7, 0},
-/* 21 */ { 7, s_5_21, -1, 11, 0},
-/* 22 */ { 7, s_5_22, -1, 9, 0},
-/* 23 */ { 7, s_5_23, -1, 10, 0}
-};
+ {
+ /* 0 */ { 4, s_5_0, -1, 3, 0},
+ /* 1 */ { 4, s_5_1, -1, 2, 0},
+ /* 2 */ { 3, s_5_2, -1, 13, 0},
+ /* 3 */ { 2, s_5_3, -1, 16, 0},
+ /* 4 */ { 3, s_5_4, 3, 12, 0},
+ /* 5 */ { 4, s_5_5, 4, 4, 0},
+ /* 6 */ { 4, s_5_6, 3, 8, 0},
+ /* 7 */ { 5, s_5_7, 3, 14, 0},
+ /* 8 */ { 6, s_5_8, 3, 15, 0},
+ /* 9 */ { 5, s_5_9, 3, 10, 0},
+ /* 10 */ { 5, s_5_10, 3, 5, 0},
+ /* 11 */ { 5, s_5_11, -1, 8, 0},
+ /* 12 */ { 6, s_5_12, -1, 12, 0},
+ /* 13 */ { 5, s_5_13, -1, 11, 0},
+ /* 14 */ { 6, s_5_14, -1, 1, 0},
+ /* 15 */ { 7, s_5_15, 14, 7, 0},
+ /* 16 */ { 5, s_5_16, -1, 8, 0},
+ /* 17 */ { 5, s_5_17, -1, 7, 0},
+ /* 18 */ { 7, s_5_18, 17, 6, 0},
+ /* 19 */ { 4, s_5_19, -1, 6, 0},
+ /* 20 */ { 4, s_5_20, -1, 7, 0},
+ /* 21 */ { 7, s_5_21, -1, 11, 0},
+ /* 22 */ { 7, s_5_22, -1, 9, 0},
+ /* 23 */ { 7, s_5_23, -1, 10, 0}
+ };
static symbol s_6_0[5] = { 'i', 'c', 'a', 't', 'e' };
static symbol s_6_1[5] = { 'a', 't', 'i', 'v', 'e' };
@@ -184,17 +184,17 @@ static symbol s_6_7[3] = { 'f', 'u', 'l' };
static symbol s_6_8[4] = { 'n', 'e', 's', 's' };
static struct among a_6[9] =
-{
-/* 0 */ { 5, s_6_0, -1, 4, 0},
-/* 1 */ { 5, s_6_1, -1, 6, 0},
-/* 2 */ { 5, s_6_2, -1, 3, 0},
-/* 3 */ { 5, s_6_3, -1, 4, 0},
-/* 4 */ { 4, s_6_4, -1, 4, 0},
-/* 5 */ { 6, s_6_5, -1, 1, 0},
-/* 6 */ { 7, s_6_6, 5, 2, 0},
-/* 7 */ { 3, s_6_7, -1, 5, 0},
-/* 8 */ { 4, s_6_8, -1, 5, 0}
-};
+ {
+ /* 0 */ { 5, s_6_0, -1, 4, 0},
+ /* 1 */ { 5, s_6_1, -1, 6, 0},
+ /* 2 */ { 5, s_6_2, -1, 3, 0},
+ /* 3 */ { 5, s_6_3, -1, 4, 0},
+ /* 4 */ { 4, s_6_4, -1, 4, 0},
+ /* 5 */ { 6, s_6_5, -1, 1, 0},
+ /* 6 */ { 7, s_6_6, 5, 2, 0},
+ /* 7 */ { 3, s_6_7, -1, 5, 0},
+ /* 8 */ { 4, s_6_8, -1, 5, 0}
+ };
static symbol s_7_0[2] = { 'i', 'c' };
static symbol s_7_1[4] = { 'a', 'n', 'c', 'e' };
@@ -216,35 +216,35 @@ static symbol s_7_16[4] = { 'm', 'e', 'n', 't' };
static symbol s_7_17[5] = { 'e', 'm', 'e', 'n', 't' };
static struct among a_7[18] =
-{
-/* 0 */ { 2, s_7_0, -1, 1, 0},
-/* 1 */ { 4, s_7_1, -1, 1, 0},
-/* 2 */ { 4, s_7_2, -1, 1, 0},
-/* 3 */ { 4, s_7_3, -1, 1, 0},
-/* 4 */ { 4, s_7_4, -1, 1, 0},
-/* 5 */ { 3, s_7_5, -1, 1, 0},
-/* 6 */ { 3, s_7_6, -1, 1, 0},
-/* 7 */ { 3, s_7_7, -1, 1, 0},
-/* 8 */ { 3, s_7_8, -1, 1, 0},
-/* 9 */ { 2, s_7_9, -1, 1, 0},
-/* 10 */ { 3, s_7_10, -1, 1, 0},
-/* 11 */ { 3, s_7_11, -1, 2, 0},
-/* 12 */ { 2, s_7_12, -1, 1, 0},
-/* 13 */ { 3, s_7_13, -1, 1, 0},
-/* 14 */ { 3, s_7_14, -1, 1, 0},
-/* 15 */ { 3, s_7_15, -1, 1, 0},
-/* 16 */ { 4, s_7_16, 15, 1, 0},
-/* 17 */ { 5, s_7_17, 16, 1, 0}
-};
+ {
+ /* 0 */ { 2, s_7_0, -1, 1, 0},
+ /* 1 */ { 4, s_7_1, -1, 1, 0},
+ /* 2 */ { 4, s_7_2, -1, 1, 0},
+ /* 3 */ { 4, s_7_3, -1, 1, 0},
+ /* 4 */ { 4, s_7_4, -1, 1, 0},
+ /* 5 */ { 3, s_7_5, -1, 1, 0},
+ /* 6 */ { 3, s_7_6, -1, 1, 0},
+ /* 7 */ { 3, s_7_7, -1, 1, 0},
+ /* 8 */ { 3, s_7_8, -1, 1, 0},
+ /* 9 */ { 2, s_7_9, -1, 1, 0},
+ /* 10 */ { 3, s_7_10, -1, 1, 0},
+ /* 11 */ { 3, s_7_11, -1, 2, 0},
+ /* 12 */ { 2, s_7_12, -1, 1, 0},
+ /* 13 */ { 3, s_7_13, -1, 1, 0},
+ /* 14 */ { 3, s_7_14, -1, 1, 0},
+ /* 15 */ { 3, s_7_15, -1, 1, 0},
+ /* 16 */ { 4, s_7_16, 15, 1, 0},
+ /* 17 */ { 5, s_7_17, 16, 1, 0}
+ };
static symbol s_8_0[1] = { 'e' };
static symbol s_8_1[1] = { 'l' };
static struct among a_8[2] =
-{
-/* 0 */ { 1, s_8_0, -1, 1, 0},
-/* 1 */ { 1, s_8_1, -1, 2, 0}
-};
+ {
+ /* 0 */ { 1, s_8_0, -1, 1, 0},
+ /* 1 */ { 1, s_8_1, -1, 2, 0}
+ };
static symbol s_9_0[7] = { 's', 'u', 'c', 'c', 'e', 'e', 'd' };
static symbol s_9_1[7] = { 'p', 'r', 'o', 'c', 'e', 'e', 'd' };
@@ -256,16 +256,16 @@ static symbol s_9_6[7] = { 'h', 'e', 'r', 'r', 'i', 'n', 'g' };
static symbol s_9_7[6] = { 'o', 'u', 't', 'i', 'n', 'g' };
static struct among a_9[8] =
-{
-/* 0 */ { 7, s_9_0, -1, -1, 0},
-/* 1 */ { 7, s_9_1, -1, -1, 0},
-/* 2 */ { 6, s_9_2, -1, -1, 0},
-/* 3 */ { 7, s_9_3, -1, -1, 0},
-/* 4 */ { 6, s_9_4, -1, -1, 0},
-/* 5 */ { 7, s_9_5, -1, -1, 0},
-/* 6 */ { 7, s_9_6, -1, -1, 0},
-/* 7 */ { 6, s_9_7, -1, -1, 0}
-};
+ {
+ /* 0 */ { 7, s_9_0, -1, -1, 0},
+ /* 1 */ { 7, s_9_1, -1, -1, 0},
+ /* 2 */ { 6, s_9_2, -1, -1, 0},
+ /* 3 */ { 7, s_9_3, -1, -1, 0},
+ /* 4 */ { 6, s_9_4, -1, -1, 0},
+ /* 5 */ { 7, s_9_5, -1, -1, 0},
+ /* 6 */ { 7, s_9_6, -1, -1, 0},
+ /* 7 */ { 6, s_9_7, -1, -1, 0}
+ };
static symbol s_10_0[5] = { 'a', 'n', 'd', 'e', 's' };
static symbol s_10_1[5] = { 'a', 't', 'l', 'a', 's' };
@@ -287,26 +287,26 @@ static symbol s_10_16[5] = { 't', 'y', 'i', 'n', 'g' };
static symbol s_10_17[4] = { 'u', 'g', 'l', 'y' };
static struct among a_10[18] =
-{
-/* 0 */ { 5, s_10_0, -1, -1, 0},
-/* 1 */ { 5, s_10_1, -1, -1, 0},
-/* 2 */ { 4, s_10_2, -1, -1, 0},
-/* 3 */ { 6, s_10_3, -1, -1, 0},
-/* 4 */ { 5, s_10_4, -1, 3, 0},
-/* 5 */ { 5, s_10_5, -1, 9, 0},
-/* 6 */ { 6, s_10_6, -1, 7, 0},
-/* 7 */ { 4, s_10_7, -1, -1, 0},
-/* 8 */ { 4, s_10_8, -1, 6, 0},
-/* 9 */ { 5, s_10_9, -1, 4, 0},
-/* 10 */ { 4, s_10_10, -1, -1, 0},
-/* 11 */ { 4, s_10_11, -1, 10, 0},
-/* 12 */ { 6, s_10_12, -1, 11, 0},
-/* 13 */ { 5, s_10_13, -1, 2, 0},
-/* 14 */ { 4, s_10_14, -1, 1, 0},
-/* 15 */ { 3, s_10_15, -1, -1, 0},
-/* 16 */ { 5, s_10_16, -1, 5, 0},
-/* 17 */ { 4, s_10_17, -1, 8, 0}
-};
+ {
+ /* 0 */ { 5, s_10_0, -1, -1, 0},
+ /* 1 */ { 5, s_10_1, -1, -1, 0},
+ /* 2 */ { 4, s_10_2, -1, -1, 0},
+ /* 3 */ { 6, s_10_3, -1, -1, 0},
+ /* 4 */ { 5, s_10_4, -1, 3, 0},
+ /* 5 */ { 5, s_10_5, -1, 9, 0},
+ /* 6 */ { 6, s_10_6, -1, 7, 0},
+ /* 7 */ { 4, s_10_7, -1, -1, 0},
+ /* 8 */ { 4, s_10_8, -1, 6, 0},
+ /* 9 */ { 5, s_10_9, -1, 4, 0},
+ /* 10 */ { 4, s_10_10, -1, -1, 0},
+ /* 11 */ { 4, s_10_11, -1, 10, 0},
+ /* 12 */ { 6, s_10_12, -1, 11, 0},
+ /* 13 */ { 5, s_10_13, -1, 2, 0},
+ /* 14 */ { 4, s_10_14, -1, 1, 0},
+ /* 15 */ { 3, s_10_15, -1, -1, 0},
+ /* 16 */ { 5, s_10_16, -1, 5, 0},
+ /* 17 */ { 4, s_10_17, -1, 8, 0}
+ };
static unsigned char g_v[] = { 17, 65, 16, 1 };
@@ -366,821 +366,821 @@ static symbol s_48[] = { 'Y' };
static symbol s_49[] = { 'y' };
static int r_prelude(struct SN_env * z) {
- z->B[0] = 0; /* unset Y_found, line 26 */
- { int c = z->c; /* do, line 27 */
- z->bra = z->c; /* [, line 27 */
- if (!(eq_s(z, 1, s_0))) goto lab0;
- z->ket = z->c; /* ], line 27 */
- { int ret;
- ret = slice_del(z); /* delete, line 27 */
- if (ret < 0) return ret;
- }
- lab0:
- z->c = c;
- }
- { int c = z->c; /* do, line 28 */
- z->bra = z->c; /* [, line 28 */
- if (!(eq_s(z, 1, s_1))) goto lab1;
- z->ket = z->c; /* ], line 28 */
- { int ret;
- ret = slice_from_s(z, 1, s_2); /* <-, line 28 */
- if (ret < 0) return ret;
- }
- z->B[0] = 1; /* set Y_found, line 28 */
- lab1:
- z->c = c;
- }
- { int c = z->c; /* do, line 29 */
- while(1) { /* repeat, line 29 */
- int c = z->c;
- while(1) { /* goto, line 29 */
- int c = z->c;
- if (!(in_grouping_U(z, g_v, 97, 121))) goto lab4;
- z->bra = z->c; /* [, line 29 */
- if (!(eq_s(z, 1, s_3))) goto lab4;
- z->ket = z->c; /* ], line 29 */
+ z->B[0] = 0; /* unset Y_found, line 26 */
+ { int c = z->c; /* do, line 27 */
+ z->bra = z->c; /* [, line 27 */
+ if (!(eq_s(z, 1, s_0))) goto lab0;
+ z->ket = z->c; /* ], line 27 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 27 */
+ if (ret < 0) return ret;
+ }
+ lab0:
z->c = c;
- break;
- lab4:
+ }
+ { int c = z->c; /* do, line 28 */
+ z->bra = z->c; /* [, line 28 */
+ if (!(eq_s(z, 1, s_1))) goto lab1;
+ z->ket = z->c; /* ], line 28 */
+ { int ret;
+ ret = slice_from_s(z, 1, s_2); /* <-, line 28 */
+ if (ret < 0) return ret;
+ }
+ z->B[0] = 1; /* set Y_found, line 28 */
+ lab1:
z->c = c;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab3;
- z->c = c; /* goto, line 29 */
+ }
+ { int c = z->c; /* do, line 29 */
+ while(1) { /* repeat, line 29 */
+ int c = z->c;
+ while(1) { /* goto, line 29 */
+ int c = z->c;
+ if (!(in_grouping_U(z, g_v, 97, 121))) goto lab4;
+ z->bra = z->c; /* [, line 29 */
+ if (!(eq_s(z, 1, s_3))) goto lab4;
+ z->ket = z->c; /* ], line 29 */
+ z->c = c;
+ break;
+ lab4:
+ z->c = c;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab3;
+ z->c = c; /* goto, line 29 */
+ }
+ }
+ { int ret;
+ ret = slice_from_s(z, 1, s_4); /* <-, line 29 */
+ if (ret < 0) return ret;
+ }
+ z->B[0] = 1; /* set Y_found, line 29 */
+ continue;
+ lab3:
+ z->c = c;
+ break;
}
- }
- { int ret;
- ret = slice_from_s(z, 1, s_4); /* <-, line 29 */
- if (ret < 0) return ret;
- }
- z->B[0] = 1; /* set Y_found, line 29 */
- continue;
- lab3:
- z->c = c;
- break;
+ z->c = c;
}
- z->c = c;
- }
- return 1;
+ return 1;
}
static int r_mark_regions(struct SN_env * z) {
- z->I[0] = z->l;
- z->I[1] = z->l;
- { int c = z->c; /* do, line 35 */
- { int c = z->c; /* or, line 40 */
- if (!(find_among(z, a_0, 2))) goto lab2; /* among, line 36 */
- goto lab1;
- lab2:
- z->c = c;
- while(1) { /* gopast, line 40 */
- if (!(in_grouping_U(z, g_v, 97, 121))) goto lab3;
- break;
- lab3:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* gopast, line 40 */
- }
- }
- while(1) { /* gopast, line 40 */
- if (!(out_grouping_U(z, g_v, 97, 121))) goto lab4;
- break;
- lab4:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* gopast, line 40 */
+ z->I[0] = z->l;
+ z->I[1] = z->l;
+ { int c = z->c; /* do, line 35 */
+ { int c = z->c; /* or, line 40 */
+ if (!(find_among(z, a_0, 2))) goto lab2; /* among, line 36 */
+ goto lab1;
+ lab2:
+ z->c = c;
+ while(1) { /* gopast, line 40 */
+ if (!(in_grouping_U(z, g_v, 97, 121))) goto lab3;
+ break;
+ lab3:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* gopast, line 40 */
+ }
+ }
+ while(1) { /* gopast, line 40 */
+ if (!(out_grouping_U(z, g_v, 97, 121))) goto lab4;
+ break;
+ lab4:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* gopast, line 40 */
+ }
+ }
}
- }
- }
- lab1:
- z->I[0] = z->c; /* setmark p1, line 41 */
- while(1) { /* gopast, line 42 */
- if (!(in_grouping_U(z, g_v, 97, 121))) goto lab5;
- break;
- lab5:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* gopast, line 42 */
- }
- }
- while(1) { /* gopast, line 42 */
- if (!(out_grouping_U(z, g_v, 97, 121))) goto lab6;
- break;
- lab6:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* gopast, line 42 */
- }
+ lab1:
+ z->I[0] = z->c; /* setmark p1, line 41 */
+ while(1) { /* gopast, line 42 */
+ if (!(in_grouping_U(z, g_v, 97, 121))) goto lab5;
+ break;
+ lab5:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* gopast, line 42 */
+ }
+ }
+ while(1) { /* gopast, line 42 */
+ if (!(out_grouping_U(z, g_v, 97, 121))) goto lab6;
+ break;
+ lab6:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* gopast, line 42 */
+ }
+ }
+ z->I[1] = z->c; /* setmark p2, line 42 */
+ lab0:
+ z->c = c;
}
- z->I[1] = z->c; /* setmark p2, line 42 */
- lab0:
- z->c = c;
- }
- return 1;
+ return 1;
}
static int r_shortv(struct SN_env * z) {
- { int m = z->l - z->c; (void) m; /* or, line 50 */
- if (!(out_grouping_b_U(z, g_v_WXY, 89, 121))) goto lab1;
- if (!(in_grouping_b_U(z, g_v, 97, 121))) goto lab1;
- if (!(out_grouping_b_U(z, g_v, 97, 121))) goto lab1;
- goto lab0;
- lab1:
- z->c = z->l - m;
- if (!(out_grouping_b_U(z, g_v, 97, 121))) return 0;
- if (!(in_grouping_b_U(z, g_v, 97, 121))) return 0;
- if (z->c > z->lb) return 0; /* atlimit, line 51 */
- }
-lab0:
- return 1;
+ { int m = z->l - z->c; (void) m; /* or, line 50 */
+ if (!(out_grouping_b_U(z, g_v_WXY, 89, 121))) goto lab1;
+ if (!(in_grouping_b_U(z, g_v, 97, 121))) goto lab1;
+ if (!(out_grouping_b_U(z, g_v, 97, 121))) goto lab1;
+ goto lab0;
+ lab1:
+ z->c = z->l - m;
+ if (!(out_grouping_b_U(z, g_v, 97, 121))) return 0;
+ if (!(in_grouping_b_U(z, g_v, 97, 121))) return 0;
+ if (z->c > z->lb) return 0; /* atlimit, line 51 */
+ }
+ lab0:
+ return 1;
}
static int r_R1(struct SN_env * z) {
- if (!(z->I[0] <= z->c)) return 0;
- return 1;
+ if (!(z->I[0] <= z->c)) return 0;
+ return 1;
}
static int r_R2(struct SN_env * z) {
- if (!(z->I[1] <= z->c)) return 0;
- return 1;
+ if (!(z->I[1] <= z->c)) return 0;
+ return 1;
}
static int r_Step_1a(struct SN_env * z) {
- int among_var;
- { int m = z->l - z->c; (void) m; /* try, line 58 */
- z->ket = z->c; /* [, line 59 */
- among_var = find_among_b(z, a_1, 3); /* substring, line 59 */
- if (!(among_var)) { z->c = z->l - m; goto lab0; }
- z->bra = z->c; /* ], line 59 */
- switch(among_var) {
- case 0: { z->c = z->l - m; goto lab0; }
- case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 61 */
- if (ret < 0) return ret;
+ int among_var;
+ { int m = z->l - z->c; (void) m; /* try, line 58 */
+ z->ket = z->c; /* [, line 59 */
+ among_var = find_among_b(z, a_1, 3); /* substring, line 59 */
+ if (!(among_var)) { z->c = z->l - m; goto lab0; }
+ z->bra = z->c; /* ], line 59 */
+ switch(among_var) {
+ case 0: { z->c = z->l - m; goto lab0; }
+ case 1:
+ { int ret;
+ ret = slice_del(z); /* delete, line 61 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- break;
+ lab0:
+ ;
}
- lab0:
- ;
- }
- z->ket = z->c; /* [, line 64 */
- among_var = find_among_b(z, a_2, 6); /* substring, line 64 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 64 */
- switch(among_var) {
+ z->ket = z->c; /* [, line 64 */
+ among_var = find_among_b(z, a_2, 6); /* substring, line 64 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 64 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_from_s(z, 2, s_5); /* <-, line 65 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int m = z->l - z->c; (void) m; /* or, line 67 */
- { int c = skip_utf8(z->p, z->c, z->lb, z->l, - 2);
- if (c < 0) goto lab2;
- z->c = c; /* hop, line 67 */
- }
{ int ret;
- ret = slice_from_s(z, 1, s_6); /* <-, line 67 */
- if (ret < 0) return ret;
+ ret = slice_from_s(z, 2, s_5); /* <-, line 65 */
+ if (ret < 0) return ret;
}
- goto lab1;
- lab2:
- z->c = z->l - m;
- { int ret;
- ret = slice_from_s(z, 2, s_7); /* <-, line 67 */
- if (ret < 0) return ret;
+ break;
+ case 2:
+ { int m = z->l - z->c; (void) m; /* or, line 67 */
+ { int c = skip_utf8(z->p, z->c, z->lb, z->l, - 2);
+ if (c < 0) goto lab2;
+ z->c = c; /* hop, line 67 */
+ }
+ { int ret;
+ ret = slice_from_s(z, 1, s_6); /* <-, line 67 */
+ if (ret < 0) return ret;
+ }
+ goto lab1;
+ lab2:
+ z->c = z->l - m;
+ { int ret;
+ ret = slice_from_s(z, 2, s_7); /* <-, line 67 */
+ if (ret < 0) return ret;
+ }
}
- }
lab1:
- break;
- case 3:
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) return 0;
- z->c = c; /* next, line 68 */
- }
- while(1) { /* gopast, line 68 */
- if (!(in_grouping_b_U(z, g_v, 97, 121))) goto lab3;
break;
- lab3:
+ case 3:
{ int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 68 */
+ if (c < 0) return 0;
+ z->c = c; /* next, line 68 */
}
- }
- { int ret;
- ret = slice_del(z); /* delete, line 68 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ while(1) { /* gopast, line 68 */
+ if (!(in_grouping_b_U(z, g_v, 97, 121))) goto lab3;
+ break;
+ lab3:
+ { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 68 */
+ }
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 68 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_Step_1b(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 74 */
- among_var = find_among_b(z, a_4, 6); /* substring, line 74 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 74 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 74 */
+ among_var = find_among_b(z, a_4, 6); /* substring, line 74 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 74 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 76 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 2, s_8); /* <-, line 76 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 76 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 2, s_8); /* <-, line 76 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int m_test = z->l - z->c; /* test, line 79 */
- while(1) { /* gopast, line 79 */
- if (!(in_grouping_b_U(z, g_v, 97, 121))) goto lab0;
- break;
- lab0:
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 79 */
- }
+ { int m_test = z->l - z->c; /* test, line 79 */
+ while(1) { /* gopast, line 79 */
+ if (!(in_grouping_b_U(z, g_v, 97, 121))) goto lab0;
+ break;
+ lab0:
+ { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 79 */
+ }
+ }
+ z->c = z->l - m_test;
}
- z->c = z->l - m_test;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 79 */
- if (ret < 0) return ret;
- }
- { int m_test = z->l - z->c; /* test, line 80 */
- among_var = find_among_b(z, a_3, 13); /* substring, line 80 */
- if (!(among_var)) return 0;
- z->c = z->l - m_test;
- }
- switch(among_var) {
+ { int ret;
+ ret = slice_del(z); /* delete, line 79 */
+ if (ret < 0) return ret;
+ }
+ { int m_test = z->l - z->c; /* test, line 80 */
+ among_var = find_among_b(z, a_3, 13); /* substring, line 80 */
+ if (!(among_var)) return 0;
+ z->c = z->l - m_test;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- { int c = z->c;
- ret = insert_s(z, z->c, z->c, 1, s_9); /* <+, line 82 */
- z->c = c;
+ { int ret;
+ { int c = z->c;
+ ret = insert_s(z, z->c, z->c, 1, s_9); /* <+, line 82 */
+ z->c = c;
+ }
+ if (ret < 0) return ret;
}
- if (ret < 0) return ret;
- }
- break;
+ break;
case 2:
- z->ket = z->c; /* [, line 85 */
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) return 0;
- z->c = c; /* next, line 85 */
- }
- z->bra = z->c; /* ], line 85 */
- { int ret;
- ret = slice_del(z); /* delete, line 85 */
- if (ret < 0) return ret;
- }
- break;
+ z->ket = z->c; /* [, line 85 */
+ { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (c < 0) return 0;
+ z->c = c; /* next, line 85 */
+ }
+ z->bra = z->c; /* ], line 85 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 85 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- if (z->c != z->I[0]) return 0; /* atmark, line 86 */
- { int m_test = z->l - z->c; /* test, line 86 */
- { int ret = r_shortv(z);
- if (ret == 0) return 0; /* call shortv, line 86 */
- if (ret < 0) return ret;
+ if (z->c != z->I[0]) return 0; /* atmark, line 86 */
+ { int m_test = z->l - z->c; /* test, line 86 */
+ { int ret = r_shortv(z);
+ if (ret == 0) return 0; /* call shortv, line 86 */
+ if (ret < 0) return ret;
+ }
+ z->c = z->l - m_test;
}
- z->c = z->l - m_test;
- }
- { int ret;
- { int c = z->c;
- ret = insert_s(z, z->c, z->c, 1, s_10); /* <+, line 86 */
- z->c = c;
+ { int ret;
+ { int c = z->c;
+ ret = insert_s(z, z->c, z->c, 1, s_10); /* <+, line 86 */
+ z->c = c;
+ }
+ if (ret < 0) return ret;
}
- if (ret < 0) return ret;
- }
- break;
- }
- break;
- }
- return 1;
+ break;
+ }
+ break;
+ }
+ return 1;
}
static int r_Step_1c(struct SN_env * z) {
- z->ket = z->c; /* [, line 93 */
- { int m = z->l - z->c; (void) m; /* or, line 93 */
- if (!(eq_s_b(z, 1, s_11))) goto lab1;
- goto lab0;
- lab1:
- z->c = z->l - m;
- if (!(eq_s_b(z, 1, s_12))) return 0;
- }
-lab0:
- z->bra = z->c; /* ], line 93 */
- if (!(out_grouping_b_U(z, g_v, 97, 121))) return 0;
- { int m = z->l - z->c; (void) m; /* not, line 94 */
- if (z->c > z->lb) goto lab2; /* atlimit, line 94 */
- return 0;
- lab2:
- z->c = z->l - m;
- }
- { int ret;
- ret = slice_from_s(z, 1, s_13); /* <-, line 95 */
- if (ret < 0) return ret;
- }
- return 1;
+ z->ket = z->c; /* [, line 93 */
+ { int m = z->l - z->c; (void) m; /* or, line 93 */
+ if (!(eq_s_b(z, 1, s_11))) goto lab1;
+ goto lab0;
+ lab1:
+ z->c = z->l - m;
+ if (!(eq_s_b(z, 1, s_12))) return 0;
+ }
+ lab0:
+ z->bra = z->c; /* ], line 93 */
+ if (!(out_grouping_b_U(z, g_v, 97, 121))) return 0;
+ { int m = z->l - z->c; (void) m; /* not, line 94 */
+ if (z->c > z->lb) goto lab2; /* atlimit, line 94 */
+ return 0;
+ lab2:
+ z->c = z->l - m;
+ }
+ { int ret;
+ ret = slice_from_s(z, 1, s_13); /* <-, line 95 */
+ if (ret < 0) return ret;
+ }
+ return 1;
}
static int r_Step_2(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 99 */
- among_var = find_among_b(z, a_5, 24); /* substring, line 99 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 99 */
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 99 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 99 */
+ among_var = find_among_b(z, a_5, 24); /* substring, line 99 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 99 */
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 99 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_from_s(z, 4, s_14); /* <-, line 100 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 4, s_14); /* <-, line 100 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret;
- ret = slice_from_s(z, 4, s_15); /* <-, line 101 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 4, s_15); /* <-, line 101 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret;
- ret = slice_from_s(z, 4, s_16); /* <-, line 102 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 4, s_16); /* <-, line 102 */
+ if (ret < 0) return ret;
+ }
+ break;
case 4:
- { int ret;
- ret = slice_from_s(z, 4, s_17); /* <-, line 103 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 4, s_17); /* <-, line 103 */
+ if (ret < 0) return ret;
+ }
+ break;
case 5:
- { int ret;
- ret = slice_from_s(z, 3, s_18); /* <-, line 104 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_18); /* <-, line 104 */
+ if (ret < 0) return ret;
+ }
+ break;
case 6:
- { int ret;
- ret = slice_from_s(z, 3, s_19); /* <-, line 106 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_19); /* <-, line 106 */
+ if (ret < 0) return ret;
+ }
+ break;
case 7:
- { int ret;
- ret = slice_from_s(z, 3, s_20); /* <-, line 108 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_20); /* <-, line 108 */
+ if (ret < 0) return ret;
+ }
+ break;
case 8:
- { int ret;
- ret = slice_from_s(z, 2, s_21); /* <-, line 110 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 2, s_21); /* <-, line 110 */
+ if (ret < 0) return ret;
+ }
+ break;
case 9:
- { int ret;
- ret = slice_from_s(z, 3, s_22); /* <-, line 111 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_22); /* <-, line 111 */
+ if (ret < 0) return ret;
+ }
+ break;
case 10:
- { int ret;
- ret = slice_from_s(z, 3, s_23); /* <-, line 113 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_23); /* <-, line 113 */
+ if (ret < 0) return ret;
+ }
+ break;
case 11:
- { int ret;
- ret = slice_from_s(z, 3, s_24); /* <-, line 115 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_24); /* <-, line 115 */
+ if (ret < 0) return ret;
+ }
+ break;
case 12:
- { int ret;
- ret = slice_from_s(z, 3, s_25); /* <-, line 117 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_25); /* <-, line 117 */
+ if (ret < 0) return ret;
+ }
+ break;
case 13:
- if (!(eq_s_b(z, 1, s_26))) return 0;
- { int ret;
- ret = slice_from_s(z, 2, s_27); /* <-, line 118 */
- if (ret < 0) return ret;
- }
- break;
+ if (!(eq_s_b(z, 1, s_26))) return 0;
+ { int ret;
+ ret = slice_from_s(z, 2, s_27); /* <-, line 118 */
+ if (ret < 0) return ret;
+ }
+ break;
case 14:
- { int ret;
- ret = slice_from_s(z, 3, s_28); /* <-, line 119 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_28); /* <-, line 119 */
+ if (ret < 0) return ret;
+ }
+ break;
case 15:
- { int ret;
- ret = slice_from_s(z, 4, s_29); /* <-, line 120 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 4, s_29); /* <-, line 120 */
+ if (ret < 0) return ret;
+ }
+ break;
case 16:
- if (!(in_grouping_b_U(z, g_valid_LI, 99, 116))) return 0;
- { int ret;
- ret = slice_del(z); /* delete, line 121 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ if (!(in_grouping_b_U(z, g_valid_LI, 99, 116))) return 0;
+ { int ret;
+ ret = slice_del(z); /* delete, line 121 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_Step_3(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 126 */
- among_var = find_among_b(z, a_6, 9); /* substring, line 126 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 126 */
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 126 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 126 */
+ among_var = find_among_b(z, a_6, 9); /* substring, line 126 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 126 */
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 126 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_from_s(z, 4, s_30); /* <-, line 127 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 4, s_30); /* <-, line 127 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret;
- ret = slice_from_s(z, 3, s_31); /* <-, line 128 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_31); /* <-, line 128 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret;
- ret = slice_from_s(z, 2, s_32); /* <-, line 129 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 2, s_32); /* <-, line 129 */
+ if (ret < 0) return ret;
+ }
+ break;
case 4:
- { int ret;
- ret = slice_from_s(z, 2, s_33); /* <-, line 131 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 2, s_33); /* <-, line 131 */
+ if (ret < 0) return ret;
+ }
+ break;
case 5:
- { int ret;
- ret = slice_del(z); /* delete, line 133 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_del(z); /* delete, line 133 */
+ if (ret < 0) return ret;
+ }
+ break;
case 6:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 135 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 135 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 135 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 135 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_Step_4(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 140 */
- among_var = find_among_b(z, a_7, 18); /* substring, line 140 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 140 */
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 140 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 140 */
+ among_var = find_among_b(z, a_7, 18); /* substring, line 140 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 140 */
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 140 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 143 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_del(z); /* delete, line 143 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int m = z->l - z->c; (void) m; /* or, line 144 */
- if (!(eq_s_b(z, 1, s_34))) goto lab1;
- goto lab0;
- lab1:
- z->c = z->l - m;
- if (!(eq_s_b(z, 1, s_35))) return 0;
- }
+ { int m = z->l - z->c; (void) m; /* or, line 144 */
+ if (!(eq_s_b(z, 1, s_34))) goto lab1;
+ goto lab0;
+ lab1:
+ z->c = z->l - m;
+ if (!(eq_s_b(z, 1, s_35))) return 0;
+ }
lab0:
- { int ret;
- ret = slice_del(z); /* delete, line 144 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_del(z); /* delete, line 144 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_Step_5(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 149 */
- among_var = find_among_b(z, a_8, 2); /* substring, line 149 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 149 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 149 */
+ among_var = find_among_b(z, a_8, 2); /* substring, line 149 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 149 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int m = z->l - z->c; (void) m; /* or, line 150 */
- { int ret = r_R2(z);
- if (ret == 0) goto lab1; /* call R2, line 150 */
- if (ret < 0) return ret;
- }
- goto lab0;
- lab1:
- z->c = z->l - m;
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 150 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* or, line 150 */
+ { int ret = r_R2(z);
+ if (ret == 0) goto lab1; /* call R2, line 150 */
+ if (ret < 0) return ret;
+ }
+ goto lab0;
+ lab1:
+ z->c = z->l - m;
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 150 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* not, line 150 */
+ { int ret = r_shortv(z);
+ if (ret == 0) goto lab2; /* call shortv, line 150 */
+ if (ret < 0) return ret;
+ }
+ return 0;
+ lab2:
+ z->c = z->l - m;
+ }
}
- { int m = z->l - z->c; (void) m; /* not, line 150 */
- { int ret = r_shortv(z);
- if (ret == 0) goto lab2; /* call shortv, line 150 */
+ lab0:
+ { int ret;
+ ret = slice_del(z); /* delete, line 150 */
if (ret < 0) return ret;
- }
- return 0;
- lab2:
- z->c = z->l - m;
}
- }
- lab0:
- { int ret;
- ret = slice_del(z); /* delete, line 150 */
- if (ret < 0) return ret;
- }
- break;
+ break;
case 2:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 151 */
- if (ret < 0) return ret;
- }
- if (!(eq_s_b(z, 1, s_36))) return 0;
- { int ret;
- ret = slice_del(z); /* delete, line 151 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 151 */
+ if (ret < 0) return ret;
+ }
+ if (!(eq_s_b(z, 1, s_36))) return 0;
+ { int ret;
+ ret = slice_del(z); /* delete, line 151 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_exception2(struct SN_env * z) {
- z->ket = z->c; /* [, line 157 */
- if (!(find_among_b(z, a_9, 8))) return 0; /* substring, line 157 */
- z->bra = z->c; /* ], line 157 */
- if (z->c > z->lb) return 0; /* atlimit, line 157 */
- return 1;
+ z->ket = z->c; /* [, line 157 */
+ if (!(find_among_b(z, a_9, 8))) return 0; /* substring, line 157 */
+ z->bra = z->c; /* ], line 157 */
+ if (z->c > z->lb) return 0; /* atlimit, line 157 */
+ return 1;
}
static int r_exception1(struct SN_env * z) {
- int among_var;
- z->bra = z->c; /* [, line 169 */
- among_var = find_among(z, a_10, 18); /* substring, line 169 */
- if (!(among_var)) return 0;
- z->ket = z->c; /* ], line 169 */
- if (z->c < z->l) return 0; /* atlimit, line 169 */
- switch(among_var) {
+ int among_var;
+ z->bra = z->c; /* [, line 169 */
+ among_var = find_among(z, a_10, 18); /* substring, line 169 */
+ if (!(among_var)) return 0;
+ z->ket = z->c; /* ], line 169 */
+ if (z->c < z->l) return 0; /* atlimit, line 169 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_from_s(z, 3, s_37); /* <-, line 173 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_37); /* <-, line 173 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret;
- ret = slice_from_s(z, 3, s_38); /* <-, line 174 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_38); /* <-, line 174 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret;
- ret = slice_from_s(z, 3, s_39); /* <-, line 175 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_39); /* <-, line 175 */
+ if (ret < 0) return ret;
+ }
+ break;
case 4:
- { int ret;
- ret = slice_from_s(z, 3, s_40); /* <-, line 176 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_40); /* <-, line 176 */
+ if (ret < 0) return ret;
+ }
+ break;
case 5:
- { int ret;
- ret = slice_from_s(z, 3, s_41); /* <-, line 177 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_41); /* <-, line 177 */
+ if (ret < 0) return ret;
+ }
+ break;
case 6:
- { int ret;
- ret = slice_from_s(z, 3, s_42); /* <-, line 181 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_42); /* <-, line 181 */
+ if (ret < 0) return ret;
+ }
+ break;
case 7:
- { int ret;
- ret = slice_from_s(z, 5, s_43); /* <-, line 182 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 5, s_43); /* <-, line 182 */
+ if (ret < 0) return ret;
+ }
+ break;
case 8:
- { int ret;
- ret = slice_from_s(z, 4, s_44); /* <-, line 183 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 4, s_44); /* <-, line 183 */
+ if (ret < 0) return ret;
+ }
+ break;
case 9:
- { int ret;
- ret = slice_from_s(z, 5, s_45); /* <-, line 184 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 5, s_45); /* <-, line 184 */
+ if (ret < 0) return ret;
+ }
+ break;
case 10:
- { int ret;
- ret = slice_from_s(z, 4, s_46); /* <-, line 185 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 4, s_46); /* <-, line 185 */
+ if (ret < 0) return ret;
+ }
+ break;
case 11:
- { int ret;
- ret = slice_from_s(z, 5, s_47); /* <-, line 186 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_from_s(z, 5, s_47); /* <-, line 186 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_postlude(struct SN_env * z) {
- if (!(z->B[0])) return 0; /* Boolean test Y_found, line 202 */
- while(1) { /* repeat, line 202 */
- int c = z->c;
- while(1) { /* goto, line 202 */
- int c = z->c;
- z->bra = z->c; /* [, line 202 */
- if (!(eq_s(z, 1, s_48))) goto lab1;
- z->ket = z->c; /* ], line 202 */
- z->c = c;
- break;
- lab1:
- z->c = c;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* goto, line 202 */
- }
- }
- { int ret;
- ret = slice_from_s(z, 1, s_49); /* <-, line 202 */
- if (ret < 0) return ret;
+ if (!(z->B[0])) return 0; /* Boolean test Y_found, line 202 */
+ while(1) { /* repeat, line 202 */
+ int c = z->c;
+ while(1) { /* goto, line 202 */
+ int c = z->c;
+ z->bra = z->c; /* [, line 202 */
+ if (!(eq_s(z, 1, s_48))) goto lab1;
+ z->ket = z->c; /* ], line 202 */
+ z->c = c;
+ break;
+ lab1:
+ z->c = c;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* goto, line 202 */
+ }
+ }
+ { int ret;
+ ret = slice_from_s(z, 1, s_49); /* <-, line 202 */
+ if (ret < 0) return ret;
+ }
+ continue;
+ lab0:
+ z->c = c;
+ break;
}
- continue;
- lab0:
- z->c = c;
- break;
- }
- return 1;
+ return 1;
}
extern int english_UTF_8_stem(struct SN_env * z) {
- { int c = z->c; /* or, line 206 */
- { int ret = r_exception1(z);
- if (ret == 0) goto lab1; /* call exception1, line 206 */
- if (ret < 0) return ret;
- }
- goto lab0;
- lab1:
- z->c = c;
- { int c = z->c; /* not, line 207 */
- { int c = skip_utf8(z->p, z->c, 0, z->l, + 3);
- if (c < 0) goto lab3;
- z->c = c; /* hop, line 207 */
- }
- goto lab2;
- lab3:
- z->c = c;
- }
- goto lab0;
- lab2:
- z->c = c;
- { int c = z->c; /* do, line 208 */
- { int ret = r_prelude(z);
- if (ret == 0) goto lab4; /* call prelude, line 208 */
- if (ret < 0) return ret;
- }
- lab4:
- z->c = c;
- }
- { int c = z->c; /* do, line 209 */
- { int ret = r_mark_regions(z);
- if (ret == 0) goto lab5; /* call mark_regions, line 209 */
- if (ret < 0) return ret;
- }
- lab5:
- z->c = c;
- }
- z->lb = z->c; z->c = z->l; /* backwards, line 210 */
-
- { int m = z->l - z->c; (void) m; /* do, line 212 */
- { int ret = r_Step_1a(z);
- if (ret == 0) goto lab6; /* call Step_1a, line 212 */
- if (ret < 0) return ret;
- }
- lab6:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* or, line 214 */
- { int ret = r_exception2(z);
- if (ret == 0) goto lab8; /* call exception2, line 214 */
- if (ret < 0) return ret;
- }
- goto lab7;
- lab8:
- z->c = z->l - m;
- { int m = z->l - z->c; (void) m; /* do, line 216 */
- { int ret = r_Step_1b(z);
- if (ret == 0) goto lab9; /* call Step_1b, line 216 */
- if (ret < 0) return ret;
- }
- lab9:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 217 */
- { int ret = r_Step_1c(z);
- if (ret == 0) goto lab10; /* call Step_1c, line 217 */
- if (ret < 0) return ret;
+ { int c = z->c; /* or, line 206 */
+ { int ret = r_exception1(z);
+ if (ret == 0) goto lab1; /* call exception1, line 206 */
+ if (ret < 0) return ret;
}
- lab10:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 219 */
- { int ret = r_Step_2(z);
- if (ret == 0) goto lab11; /* call Step_2, line 219 */
- if (ret < 0) return ret;
+ goto lab0;
+ lab1:
+ z->c = c;
+ { int c = z->c; /* not, line 207 */
+ { int c = skip_utf8(z->p, z->c, 0, z->l, + 3);
+ if (c < 0) goto lab3;
+ z->c = c; /* hop, line 207 */
+ }
+ goto lab2;
+ lab3:
+ z->c = c;
}
- lab11:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 220 */
- { int ret = r_Step_3(z);
- if (ret == 0) goto lab12; /* call Step_3, line 220 */
- if (ret < 0) return ret;
+ goto lab0;
+ lab2:
+ z->c = c;
+ { int c = z->c; /* do, line 208 */
+ { int ret = r_prelude(z);
+ if (ret == 0) goto lab4; /* call prelude, line 208 */
+ if (ret < 0) return ret;
+ }
+ lab4:
+ z->c = c;
}
- lab12:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 221 */
- { int ret = r_Step_4(z);
- if (ret == 0) goto lab13; /* call Step_4, line 221 */
- if (ret < 0) return ret;
+ { int c = z->c; /* do, line 209 */
+ { int ret = r_mark_regions(z);
+ if (ret == 0) goto lab5; /* call mark_regions, line 209 */
+ if (ret < 0) return ret;
+ }
+ lab5:
+ z->c = c;
}
- lab13:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 223 */
- { int ret = r_Step_5(z);
- if (ret == 0) goto lab14; /* call Step_5, line 223 */
- if (ret < 0) return ret;
+ z->lb = z->c; z->c = z->l; /* backwards, line 210 */
+
+ { int m = z->l - z->c; (void) m; /* do, line 212 */
+ { int ret = r_Step_1a(z);
+ if (ret == 0) goto lab6; /* call Step_1a, line 212 */
+ if (ret < 0) return ret;
+ }
+ lab6:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* or, line 214 */
+ { int ret = r_exception2(z);
+ if (ret == 0) goto lab8; /* call exception2, line 214 */
+ if (ret < 0) return ret;
+ }
+ goto lab7;
+ lab8:
+ z->c = z->l - m;
+ { int m = z->l - z->c; (void) m; /* do, line 216 */
+ { int ret = r_Step_1b(z);
+ if (ret == 0) goto lab9; /* call Step_1b, line 216 */
+ if (ret < 0) return ret;
+ }
+ lab9:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 217 */
+ { int ret = r_Step_1c(z);
+ if (ret == 0) goto lab10; /* call Step_1c, line 217 */
+ if (ret < 0) return ret;
+ }
+ lab10:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 219 */
+ { int ret = r_Step_2(z);
+ if (ret == 0) goto lab11; /* call Step_2, line 219 */
+ if (ret < 0) return ret;
+ }
+ lab11:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 220 */
+ { int ret = r_Step_3(z);
+ if (ret == 0) goto lab12; /* call Step_3, line 220 */
+ if (ret < 0) return ret;
+ }
+ lab12:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 221 */
+ { int ret = r_Step_4(z);
+ if (ret == 0) goto lab13; /* call Step_4, line 221 */
+ if (ret < 0) return ret;
+ }
+ lab13:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 223 */
+ { int ret = r_Step_5(z);
+ if (ret == 0) goto lab14; /* call Step_5, line 223 */
+ if (ret < 0) return ret;
+ }
+ lab14:
+ z->c = z->l - m;
+ }
+ }
+ lab7:
+ z->c = z->lb;
+ { int c = z->c; /* do, line 226 */
+ { int ret = r_postlude(z);
+ if (ret == 0) goto lab15; /* call postlude, line 226 */
+ if (ret < 0) return ret;
+ }
+ lab15:
+ z->c = c;
}
- lab14:
- z->c = z->l - m;
- }
- }
- lab7:
- z->c = z->lb;
- { int c = z->c; /* do, line 226 */
- { int ret = r_postlude(z);
- if (ret == 0) goto lab15; /* call postlude, line 226 */
- if (ret < 0) return ret;
- }
- lab15:
- z->c = c;
}
- }
-lab0:
- return 1;
+ lab0:
+ return 1;
}
extern struct SN_env * english_UTF_8_create_env(void) { return SN_create_env(0, 2, 1); }
diff --git a/src/libstemmer/stem_UTF_8_english.h b/src/libstemmer/stem_UTF_8_english.h
index cc81f4b..2cdf131 100644
--- a/src/libstemmer/stem_UTF_8_english.h
+++ b/src/libstemmer/stem_UTF_8_english.h
@@ -18,10 +18,10 @@
extern "C" {
#endif
-extern struct SN_env * english_UTF_8_create_env(void);
-extern void english_UTF_8_close_env(struct SN_env * z);
+ extern struct SN_env * english_UTF_8_create_env(void);
+ extern void english_UTF_8_close_env(struct SN_env * z);
-extern int english_UTF_8_stem(struct SN_env * z);
+ extern int english_UTF_8_stem(struct SN_env * z);
#ifdef __cplusplus
}
diff --git a/src/libstemmer/stem_UTF_8_finnish.c b/src/libstemmer/stem_UTF_8_finnish.c
index 7473ea3..b0da20d 100644
--- a/src/libstemmer/stem_UTF_8_finnish.c
+++ b/src/libstemmer/stem_UTF_8_finnish.c
@@ -44,18 +44,18 @@ static symbol s_0_8[3] = { 'p', 0xC3, 0xA4 };
static symbol s_0_9[3] = { 'k', 0xC3, 0xB6 };
static struct among a_0[10] =
-{
-/* 0 */ { 2, s_0_0, -1, 1, 0},
-/* 1 */ { 3, s_0_1, -1, 2, 0},
-/* 2 */ { 4, s_0_2, -1, 1, 0},
-/* 3 */ { 3, s_0_3, -1, 1, 0},
-/* 4 */ { 3, s_0_4, -1, 1, 0},
-/* 5 */ { 4, s_0_5, -1, 1, 0},
-/* 6 */ { 6, s_0_6, -1, 1, 0},
-/* 7 */ { 2, s_0_7, -1, 1, 0},
-/* 8 */ { 3, s_0_8, -1, 1, 0},
-/* 9 */ { 3, s_0_9, -1, 1, 0}
-};
+ {
+ /* 0 */ { 2, s_0_0, -1, 1, 0},
+ /* 1 */ { 3, s_0_1, -1, 2, 0},
+ /* 2 */ { 4, s_0_2, -1, 1, 0},
+ /* 3 */ { 3, s_0_3, -1, 1, 0},
+ /* 4 */ { 3, s_0_4, -1, 1, 0},
+ /* 5 */ { 4, s_0_5, -1, 1, 0},
+ /* 6 */ { 6, s_0_6, -1, 1, 0},
+ /* 7 */ { 2, s_0_7, -1, 1, 0},
+ /* 8 */ { 3, s_0_8, -1, 1, 0},
+ /* 9 */ { 3, s_0_9, -1, 1, 0}
+ };
static symbol s_1_0[3] = { 'l', 'l', 'a' };
static symbol s_1_1[2] = { 'n', 'a' };
@@ -65,14 +65,14 @@ static symbol s_1_4[3] = { 'l', 't', 'a' };
static symbol s_1_5[3] = { 's', 't', 'a' };
static struct among a_1[6] =
-{
-/* 0 */ { 3, s_1_0, -1, -1, 0},
-/* 1 */ { 2, s_1_1, -1, -1, 0},
-/* 2 */ { 3, s_1_2, -1, -1, 0},
-/* 3 */ { 2, s_1_3, -1, -1, 0},
-/* 4 */ { 3, s_1_4, 3, -1, 0},
-/* 5 */ { 3, s_1_5, 3, -1, 0}
-};
+ {
+ /* 0 */ { 3, s_1_0, -1, -1, 0},
+ /* 1 */ { 2, s_1_1, -1, -1, 0},
+ /* 2 */ { 3, s_1_2, -1, -1, 0},
+ /* 3 */ { 2, s_1_3, -1, -1, 0},
+ /* 4 */ { 3, s_1_4, 3, -1, 0},
+ /* 5 */ { 3, s_1_5, 3, -1, 0}
+ };
static symbol s_2_0[4] = { 'l', 'l', 0xC3, 0xA4 };
static symbol s_2_1[3] = { 'n', 0xC3, 0xA4 };
@@ -82,23 +82,23 @@ static symbol s_2_4[4] = { 'l', 't', 0xC3, 0xA4 };
static symbol s_2_5[4] = { 's', 't', 0xC3, 0xA4 };
static struct among a_2[6] =
-{
-/* 0 */ { 4, s_2_0, -1, -1, 0},
-/* 1 */ { 3, s_2_1, -1, -1, 0},
-/* 2 */ { 4, s_2_2, -1, -1, 0},
-/* 3 */ { 3, s_2_3, -1, -1, 0},
-/* 4 */ { 4, s_2_4, 3, -1, 0},
-/* 5 */ { 4, s_2_5, 3, -1, 0}
-};
+ {
+ /* 0 */ { 4, s_2_0, -1, -1, 0},
+ /* 1 */ { 3, s_2_1, -1, -1, 0},
+ /* 2 */ { 4, s_2_2, -1, -1, 0},
+ /* 3 */ { 3, s_2_3, -1, -1, 0},
+ /* 4 */ { 4, s_2_4, 3, -1, 0},
+ /* 5 */ { 4, s_2_5, 3, -1, 0}
+ };
static symbol s_3_0[3] = { 'l', 'l', 'e' };
static symbol s_3_1[3] = { 'i', 'n', 'e' };
static struct among a_3[2] =
-{
-/* 0 */ { 3, s_3_0, -1, -1, 0},
-/* 1 */ { 3, s_3_1, -1, -1, 0}
-};
+ {
+ /* 0 */ { 3, s_3_0, -1, -1, 0},
+ /* 1 */ { 3, s_3_1, -1, -1, 0}
+ };
static symbol s_4_0[3] = { 'n', 's', 'a' };
static symbol s_4_1[3] = { 'm', 'm', 'e' };
@@ -111,17 +111,17 @@ static symbol s_4_7[3] = { 0xC3, 0xA4, 'n' };
static symbol s_4_8[4] = { 'n', 's', 0xC3, 0xA4 };
static struct among a_4[9] =
-{
-/* 0 */ { 3, s_4_0, -1, 3, 0},
-/* 1 */ { 3, s_4_1, -1, 3, 0},
-/* 2 */ { 3, s_4_2, -1, 3, 0},
-/* 3 */ { 2, s_4_3, -1, 2, 0},
-/* 4 */ { 2, s_4_4, -1, 1, 0},
-/* 5 */ { 2, s_4_5, -1, 4, 0},
-/* 6 */ { 2, s_4_6, -1, 6, 0},
-/* 7 */ { 3, s_4_7, -1, 5, 0},
-/* 8 */ { 4, s_4_8, -1, 3, 0}
-};
+ {
+ /* 0 */ { 3, s_4_0, -1, 3, 0},
+ /* 1 */ { 3, s_4_1, -1, 3, 0},
+ /* 2 */ { 3, s_4_2, -1, 3, 0},
+ /* 3 */ { 2, s_4_3, -1, 2, 0},
+ /* 4 */ { 2, s_4_4, -1, 1, 0},
+ /* 5 */ { 2, s_4_5, -1, 4, 0},
+ /* 6 */ { 2, s_4_6, -1, 6, 0},
+ /* 7 */ { 3, s_4_7, -1, 5, 0},
+ /* 8 */ { 4, s_4_8, -1, 3, 0}
+ };
static symbol s_5_0[2] = { 'a', 'a' };
static symbol s_5_1[2] = { 'e', 'e' };
@@ -132,15 +132,15 @@ static symbol s_5_5[4] = { 0xC3, 0xA4, 0xC3, 0xA4 };
static symbol s_5_6[4] = { 0xC3, 0xB6, 0xC3, 0xB6 };
static struct among a_5[7] =
-{
-/* 0 */ { 2, s_5_0, -1, -1, 0},
-/* 1 */ { 2, s_5_1, -1, -1, 0},
-/* 2 */ { 2, s_5_2, -1, -1, 0},
-/* 3 */ { 2, s_5_3, -1, -1, 0},
-/* 4 */ { 2, s_5_4, -1, -1, 0},
-/* 5 */ { 4, s_5_5, -1, -1, 0},
-/* 6 */ { 4, s_5_6, -1, -1, 0}
-};
+ {
+ /* 0 */ { 2, s_5_0, -1, -1, 0},
+ /* 1 */ { 2, s_5_1, -1, -1, 0},
+ /* 2 */ { 2, s_5_2, -1, -1, 0},
+ /* 3 */ { 2, s_5_3, -1, -1, 0},
+ /* 4 */ { 2, s_5_4, -1, -1, 0},
+ /* 5 */ { 4, s_5_5, -1, -1, 0},
+ /* 6 */ { 4, s_5_6, -1, -1, 0}
+ };
static symbol s_6_0[1] = { 'a' };
static symbol s_6_1[3] = { 'l', 'l', 'a' };
@@ -174,38 +174,38 @@ static symbol s_6_28[4] = { 's', 't', 0xC3, 0xA4 };
static symbol s_6_29[4] = { 't', 't', 0xC3, 0xA4 };
static struct among a_6[30] =
-{
-/* 0 */ { 1, s_6_0, -1, 8, 0},
-/* 1 */ { 3, s_6_1, 0, -1, 0},
-/* 2 */ { 2, s_6_2, 0, -1, 0},
-/* 3 */ { 3, s_6_3, 0, -1, 0},
-/* 4 */ { 2, s_6_4, 0, -1, 0},
-/* 5 */ { 3, s_6_5, 4, -1, 0},
-/* 6 */ { 3, s_6_6, 4, -1, 0},
-/* 7 */ { 3, s_6_7, 4, 9, 0},
-/* 8 */ { 3, s_6_8, -1, -1, 0},
-/* 9 */ { 3, s_6_9, -1, -1, 0},
-/* 10 */ { 3, s_6_10, -1, -1, 0},
-/* 11 */ { 1, s_6_11, -1, 7, 0},
-/* 12 */ { 3, s_6_12, 11, 1, 0},
-/* 13 */ { 3, s_6_13, 11, -1, r_VI},
-/* 14 */ { 4, s_6_14, 11, -1, r_LONG},
-/* 15 */ { 3, s_6_15, 11, 2, 0},
-/* 16 */ { 4, s_6_16, 11, -1, r_VI},
-/* 17 */ { 3, s_6_17, 11, 3, 0},
-/* 18 */ { 4, s_6_18, 11, -1, r_VI},
-/* 19 */ { 3, s_6_19, 11, 4, 0},
-/* 20 */ { 4, s_6_20, 11, 5, 0},
-/* 21 */ { 4, s_6_21, 11, 6, 0},
-/* 22 */ { 2, s_6_22, -1, 8, 0},
-/* 23 */ { 4, s_6_23, 22, -1, 0},
-/* 24 */ { 3, s_6_24, 22, -1, 0},
-/* 25 */ { 4, s_6_25, 22, -1, 0},
-/* 26 */ { 3, s_6_26, 22, -1, 0},
-/* 27 */ { 4, s_6_27, 26, -1, 0},
-/* 28 */ { 4, s_6_28, 26, -1, 0},
-/* 29 */ { 4, s_6_29, 26, 9, 0}
-};
+ {
+ /* 0 */ { 1, s_6_0, -1, 8, 0},
+ /* 1 */ { 3, s_6_1, 0, -1, 0},
+ /* 2 */ { 2, s_6_2, 0, -1, 0},
+ /* 3 */ { 3, s_6_3, 0, -1, 0},
+ /* 4 */ { 2, s_6_4, 0, -1, 0},
+ /* 5 */ { 3, s_6_5, 4, -1, 0},
+ /* 6 */ { 3, s_6_6, 4, -1, 0},
+ /* 7 */ { 3, s_6_7, 4, 9, 0},
+ /* 8 */ { 3, s_6_8, -1, -1, 0},
+ /* 9 */ { 3, s_6_9, -1, -1, 0},
+ /* 10 */ { 3, s_6_10, -1, -1, 0},
+ /* 11 */ { 1, s_6_11, -1, 7, 0},
+ /* 12 */ { 3, s_6_12, 11, 1, 0},
+ /* 13 */ { 3, s_6_13, 11, -1, r_VI},
+ /* 14 */ { 4, s_6_14, 11, -1, r_LONG},
+ /* 15 */ { 3, s_6_15, 11, 2, 0},
+ /* 16 */ { 4, s_6_16, 11, -1, r_VI},
+ /* 17 */ { 3, s_6_17, 11, 3, 0},
+ /* 18 */ { 4, s_6_18, 11, -1, r_VI},
+ /* 19 */ { 3, s_6_19, 11, 4, 0},
+ /* 20 */ { 4, s_6_20, 11, 5, 0},
+ /* 21 */ { 4, s_6_21, 11, 6, 0},
+ /* 22 */ { 2, s_6_22, -1, 8, 0},
+ /* 23 */ { 4, s_6_23, 22, -1, 0},
+ /* 24 */ { 3, s_6_24, 22, -1, 0},
+ /* 25 */ { 4, s_6_25, 22, -1, 0},
+ /* 26 */ { 3, s_6_26, 22, -1, 0},
+ /* 27 */ { 4, s_6_27, 26, -1, 0},
+ /* 28 */ { 4, s_6_28, 26, -1, 0},
+ /* 29 */ { 4, s_6_29, 26, 9, 0}
+ };
static symbol s_7_0[3] = { 'e', 'j', 'a' };
static symbol s_7_1[3] = { 'm', 'm', 'a' };
@@ -223,40 +223,40 @@ static symbol s_7_12[4] = { 'm', 'p', 0xC3, 0xA4 };
static symbol s_7_13[5] = { 'i', 'm', 'p', 0xC3, 0xA4 };
static struct among a_7[14] =
-{
-/* 0 */ { 3, s_7_0, -1, -1, 0},
-/* 1 */ { 3, s_7_1, -1, 1, 0},
-/* 2 */ { 4, s_7_2, 1, -1, 0},
-/* 3 */ { 3, s_7_3, -1, 1, 0},
-/* 4 */ { 4, s_7_4, 3, -1, 0},
-/* 5 */ { 3, s_7_5, -1, 1, 0},
-/* 6 */ { 4, s_7_6, 5, -1, 0},
-/* 7 */ { 3, s_7_7, -1, 1, 0},
-/* 8 */ { 4, s_7_8, 7, -1, 0},
-/* 9 */ { 4, s_7_9, -1, -1, 0},
-/* 10 */ { 4, s_7_10, -1, 1, 0},
-/* 11 */ { 5, s_7_11, 10, -1, 0},
-/* 12 */ { 4, s_7_12, -1, 1, 0},
-/* 13 */ { 5, s_7_13, 12, -1, 0}
-};
+ {
+ /* 0 */ { 3, s_7_0, -1, -1, 0},
+ /* 1 */ { 3, s_7_1, -1, 1, 0},
+ /* 2 */ { 4, s_7_2, 1, -1, 0},
+ /* 3 */ { 3, s_7_3, -1, 1, 0},
+ /* 4 */ { 4, s_7_4, 3, -1, 0},
+ /* 5 */ { 3, s_7_5, -1, 1, 0},
+ /* 6 */ { 4, s_7_6, 5, -1, 0},
+ /* 7 */ { 3, s_7_7, -1, 1, 0},
+ /* 8 */ { 4, s_7_8, 7, -1, 0},
+ /* 9 */ { 4, s_7_9, -1, -1, 0},
+ /* 10 */ { 4, s_7_10, -1, 1, 0},
+ /* 11 */ { 5, s_7_11, 10, -1, 0},
+ /* 12 */ { 4, s_7_12, -1, 1, 0},
+ /* 13 */ { 5, s_7_13, 12, -1, 0}
+ };
static symbol s_8_0[1] = { 'i' };
static symbol s_8_1[1] = { 'j' };
static struct among a_8[2] =
-{
-/* 0 */ { 1, s_8_0, -1, -1, 0},
-/* 1 */ { 1, s_8_1, -1, -1, 0}
-};
+ {
+ /* 0 */ { 1, s_8_0, -1, -1, 0},
+ /* 1 */ { 1, s_8_1, -1, -1, 0}
+ };
static symbol s_9_0[3] = { 'm', 'm', 'a' };
static symbol s_9_1[4] = { 'i', 'm', 'm', 'a' };
static struct among a_9[2] =
-{
-/* 0 */ { 3, s_9_0, -1, 1, 0},
-/* 1 */ { 4, s_9_1, 0, -1, 0}
-};
+ {
+ /* 0 */ { 3, s_9_0, -1, 1, 0},
+ /* 1 */ { 4, s_9_1, 0, -1, 0}
+ };
static unsigned char g_AEI[] = { 17, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8 };
@@ -288,531 +288,531 @@ static symbol s_18[] = { 'o' };
static symbol s_19[] = { 'j' };
static int r_mark_regions(struct SN_env * z) {
- z->I[0] = z->l;
- z->I[1] = z->l;
- while(1) { /* goto, line 46 */
- int c = z->c;
- if (!(in_grouping_U(z, g_V1, 97, 246))) goto lab0;
- z->c = c;
- break;
- lab0:
- z->c = c;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* goto, line 46 */
- }
- }
- while(1) { /* gopast, line 46 */
- if (!(out_grouping_U(z, g_V1, 97, 246))) goto lab1;
- break;
- lab1:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 46 */
- }
- }
- z->I[0] = z->c; /* setmark p1, line 46 */
- while(1) { /* goto, line 47 */
- int c = z->c;
- if (!(in_grouping_U(z, g_V1, 97, 246))) goto lab2;
- z->c = c;
- break;
- lab2:
- z->c = c;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* goto, line 47 */
- }
- }
- while(1) { /* gopast, line 47 */
- if (!(out_grouping_U(z, g_V1, 97, 246))) goto lab3;
- break;
- lab3:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 47 */
- }
- }
- z->I[1] = z->c; /* setmark p2, line 47 */
- return 1;
+ z->I[0] = z->l;
+ z->I[1] = z->l;
+ while(1) { /* goto, line 46 */
+ int c = z->c;
+ if (!(in_grouping_U(z, g_V1, 97, 246))) goto lab0;
+ z->c = c;
+ break;
+ lab0:
+ z->c = c;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* goto, line 46 */
+ }
+ }
+ while(1) { /* gopast, line 46 */
+ if (!(out_grouping_U(z, g_V1, 97, 246))) goto lab1;
+ break;
+ lab1:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 46 */
+ }
+ }
+ z->I[0] = z->c; /* setmark p1, line 46 */
+ while(1) { /* goto, line 47 */
+ int c = z->c;
+ if (!(in_grouping_U(z, g_V1, 97, 246))) goto lab2;
+ z->c = c;
+ break;
+ lab2:
+ z->c = c;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* goto, line 47 */
+ }
+ }
+ while(1) { /* gopast, line 47 */
+ if (!(out_grouping_U(z, g_V1, 97, 246))) goto lab3;
+ break;
+ lab3:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 47 */
+ }
+ }
+ z->I[1] = z->c; /* setmark p2, line 47 */
+ return 1;
}
static int r_R2(struct SN_env * z) {
- if (!(z->I[1] <= z->c)) return 0;
- return 1;
+ if (!(z->I[1] <= z->c)) return 0;
+ return 1;
}
static int r_particle_etc(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 55 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 55 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 55 */
- among_var = find_among_b(z, a_0, 10); /* substring, line 55 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 55 */
- z->lb = m3;
- }
- switch(among_var) {
+ int among_var;
+ { int m3; /* setlimit, line 55 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 55 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 55 */
+ among_var = find_among_b(z, a_0, 10); /* substring, line 55 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 55 */
+ z->lb = m3;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- if (!(in_grouping_b_U(z, g_particle_end, 97, 246))) return 0;
- break;
+ if (!(in_grouping_b_U(z, g_particle_end, 97, 246))) return 0;
+ break;
case 2:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 64 */
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 64 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 66 */
if (ret < 0) return ret;
- }
- break;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 66 */
- if (ret < 0) return ret;
- }
- return 1;
+ }
+ return 1;
}
static int r_possessive(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 69 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 69 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 69 */
- among_var = find_among_b(z, a_4, 9); /* substring, line 69 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 69 */
- z->lb = m3;
- }
- switch(among_var) {
+ int among_var;
+ { int m3; /* setlimit, line 69 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 69 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 69 */
+ among_var = find_among_b(z, a_4, 9); /* substring, line 69 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 69 */
+ z->lb = m3;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int m = z->l - z->c; (void) m; /* not, line 72 */
- if (!(eq_s_b(z, 1, s_0))) goto lab0;
- return 0;
- lab0:
- z->c = z->l - m;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 72 */
- if (ret < 0) return ret;
- }
- break;
+ { int m = z->l - z->c; (void) m; /* not, line 72 */
+ if (!(eq_s_b(z, 1, s_0))) goto lab0;
+ return 0;
+ lab0:
+ z->c = z->l - m;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 72 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret;
- ret = slice_del(z); /* delete, line 74 */
- if (ret < 0) return ret;
- }
- z->ket = z->c; /* [, line 74 */
- if (!(eq_s_b(z, 3, s_1))) return 0;
- z->bra = z->c; /* ], line 74 */
- { int ret;
- ret = slice_from_s(z, 3, s_2); /* <-, line 74 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_del(z); /* delete, line 74 */
+ if (ret < 0) return ret;
+ }
+ z->ket = z->c; /* [, line 74 */
+ if (!(eq_s_b(z, 3, s_1))) return 0;
+ z->bra = z->c; /* ], line 74 */
+ { int ret;
+ ret = slice_from_s(z, 3, s_2); /* <-, line 74 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret;
- ret = slice_del(z); /* delete, line 78 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_del(z); /* delete, line 78 */
+ if (ret < 0) return ret;
+ }
+ break;
case 4:
- if (!(find_among_b(z, a_1, 6))) return 0; /* among, line 81 */
- { int ret;
- ret = slice_del(z); /* delete, line 81 */
- if (ret < 0) return ret;
- }
- break;
+ if (!(find_among_b(z, a_1, 6))) return 0; /* among, line 81 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 81 */
+ if (ret < 0) return ret;
+ }
+ break;
case 5:
- if (!(find_among_b(z, a_2, 6))) return 0; /* among, line 83 */
- { int ret;
- ret = slice_del(z); /* delete, line 84 */
- if (ret < 0) return ret;
- }
- break;
+ if (!(find_among_b(z, a_2, 6))) return 0; /* among, line 83 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 84 */
+ if (ret < 0) return ret;
+ }
+ break;
case 6:
- if (!(find_among_b(z, a_3, 2))) return 0; /* among, line 86 */
- { int ret;
- ret = slice_del(z); /* delete, line 86 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ if (!(find_among_b(z, a_3, 2))) return 0; /* among, line 86 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 86 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_LONG(struct SN_env * z) {
- if (!(find_among_b(z, a_5, 7))) return 0; /* among, line 91 */
- return 1;
+ if (!(find_among_b(z, a_5, 7))) return 0; /* among, line 91 */
+ return 1;
}
static int r_VI(struct SN_env * z) {
- if (!(eq_s_b(z, 1, s_3))) return 0;
- if (!(in_grouping_b_U(z, g_V2, 97, 246))) return 0;
- return 1;
+ if (!(eq_s_b(z, 1, s_3))) return 0;
+ if (!(in_grouping_b_U(z, g_V2, 97, 246))) return 0;
+ return 1;
}
static int r_case_ending(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 96 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 96 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 96 */
- among_var = find_among_b(z, a_6, 30); /* substring, line 96 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 96 */
- z->lb = m3;
- }
- switch(among_var) {
+ int among_var;
+ { int m3; /* setlimit, line 96 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 96 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 96 */
+ among_var = find_among_b(z, a_6, 30); /* substring, line 96 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 96 */
+ z->lb = m3;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- if (!(eq_s_b(z, 1, s_4))) return 0;
- break;
+ if (!(eq_s_b(z, 1, s_4))) return 0;
+ break;
case 2:
- if (!(eq_s_b(z, 1, s_5))) return 0;
- break;
+ if (!(eq_s_b(z, 1, s_5))) return 0;
+ break;
case 3:
- if (!(eq_s_b(z, 1, s_6))) return 0;
- break;
+ if (!(eq_s_b(z, 1, s_6))) return 0;
+ break;
case 4:
- if (!(eq_s_b(z, 1, s_7))) return 0;
- break;
+ if (!(eq_s_b(z, 1, s_7))) return 0;
+ break;
case 5:
- if (!(eq_s_b(z, 2, s_8))) return 0;
- break;
+ if (!(eq_s_b(z, 2, s_8))) return 0;
+ break;
case 6:
- if (!(eq_s_b(z, 2, s_9))) return 0;
- break;
+ if (!(eq_s_b(z, 2, s_9))) return 0;
+ break;
case 7:
- { int m = z->l - z->c; (void) m; /* try, line 111 */
- { int m = z->l - z->c; (void) m; /* and, line 113 */
- { int m = z->l - z->c; (void) m; /* or, line 112 */
- { int ret = r_LONG(z);
- if (ret == 0) goto lab2; /* call LONG, line 111 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* try, line 111 */
+ { int m = z->l - z->c; (void) m; /* and, line 113 */
+ { int m = z->l - z->c; (void) m; /* or, line 112 */
+ { int ret = r_LONG(z);
+ if (ret == 0) goto lab2; /* call LONG, line 111 */
+ if (ret < 0) return ret;
+ }
+ goto lab1;
+ lab2:
+ z->c = z->l - m;
+ if (!(eq_s_b(z, 2, s_10))) { z->c = z->l - m; goto lab0; }
+ }
+ lab1:
+ z->c = z->l - m;
+ { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (c < 0) { z->c = z->l - m; goto lab0; }
+ z->c = c; /* next, line 113 */
+ }
}
- goto lab1;
- lab2:
- z->c = z->l - m;
- if (!(eq_s_b(z, 2, s_10))) { z->c = z->l - m; goto lab0; }
- }
- lab1:
- z->c = z->l - m;
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) { z->c = z->l - m; goto lab0; }
- z->c = c; /* next, line 113 */
- }
+ z->bra = z->c; /* ], line 113 */
+ lab0:
+ ;
}
- z->bra = z->c; /* ], line 113 */
- lab0:
- ;
- }
- break;
+ break;
case 8:
- if (!(in_grouping_b_U(z, g_V1, 97, 246))) return 0;
- if (!(out_grouping_b_U(z, g_V1, 97, 246))) return 0;
- break;
+ if (!(in_grouping_b_U(z, g_V1, 97, 246))) return 0;
+ if (!(out_grouping_b_U(z, g_V1, 97, 246))) return 0;
+ break;
case 9:
- if (!(eq_s_b(z, 1, s_11))) return 0;
- break;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 138 */
- if (ret < 0) return ret;
- }
- z->B[0] = 1; /* set ending_removed, line 139 */
- return 1;
+ if (!(eq_s_b(z, 1, s_11))) return 0;
+ break;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 138 */
+ if (ret < 0) return ret;
+ }
+ z->B[0] = 1; /* set ending_removed, line 139 */
+ return 1;
}
static int r_other_endings(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 142 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[1]) return 0;
- z->c = z->I[1]; /* tomark, line 142 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 142 */
- among_var = find_among_b(z, a_7, 14); /* substring, line 142 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 142 */
- z->lb = m3;
- }
- switch(among_var) {
+ int among_var;
+ { int m3; /* setlimit, line 142 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[1]) return 0;
+ z->c = z->I[1]; /* tomark, line 142 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 142 */
+ among_var = find_among_b(z, a_7, 14); /* substring, line 142 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 142 */
+ z->lb = m3;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int m = z->l - z->c; (void) m; /* not, line 146 */
- if (!(eq_s_b(z, 2, s_12))) goto lab0;
- return 0;
- lab0:
- z->c = z->l - m;
- }
- break;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 151 */
- if (ret < 0) return ret;
- }
- return 1;
+ { int m = z->l - z->c; (void) m; /* not, line 146 */
+ if (!(eq_s_b(z, 2, s_12))) goto lab0;
+ return 0;
+ lab0:
+ z->c = z->l - m;
+ }
+ break;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 151 */
+ if (ret < 0) return ret;
+ }
+ return 1;
}
static int r_i_plural(struct SN_env * z) {
- { int m3; /* setlimit, line 154 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 154 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 154 */
- if (!(find_among_b(z, a_8, 2))) { z->lb = m3; return 0; } /* substring, line 154 */
- z->bra = z->c; /* ], line 154 */
- z->lb = m3;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 158 */
- if (ret < 0) return ret;
- }
- return 1;
+ { int m3; /* setlimit, line 154 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 154 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 154 */
+ if (!(find_among_b(z, a_8, 2))) { z->lb = m3; return 0; } /* substring, line 154 */
+ z->bra = z->c; /* ], line 154 */
+ z->lb = m3;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 158 */
+ if (ret < 0) return ret;
+ }
+ return 1;
}
static int r_t_plural(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 161 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 161 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 162 */
- if (!(eq_s_b(z, 1, s_13))) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 162 */
- { int m_test = z->l - z->c; /* test, line 162 */
- if (!(in_grouping_b_U(z, g_V1, 97, 246))) { z->lb = m3; return 0; }
- z->c = z->l - m_test;
+ int among_var;
+ { int m3; /* setlimit, line 161 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 161 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 162 */
+ if (!(eq_s_b(z, 1, s_13))) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 162 */
+ { int m_test = z->l - z->c; /* test, line 162 */
+ if (!(in_grouping_b_U(z, g_V1, 97, 246))) { z->lb = m3; return 0; }
+ z->c = z->l - m_test;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 163 */
+ if (ret < 0) return ret;
+ }
+ z->lb = m3;
}
- { int ret;
- ret = slice_del(z); /* delete, line 163 */
- if (ret < 0) return ret;
- }
- z->lb = m3;
- }
- { int m3; /* setlimit, line 165 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[1]) return 0;
- z->c = z->I[1]; /* tomark, line 165 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 165 */
- among_var = find_among_b(z, a_9, 2); /* substring, line 165 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 165 */
- z->lb = m3;
- }
- switch(among_var) {
+ { int m3; /* setlimit, line 165 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[1]) return 0;
+ z->c = z->I[1]; /* tomark, line 165 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 165 */
+ among_var = find_among_b(z, a_9, 2); /* substring, line 165 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 165 */
+ z->lb = m3;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int m = z->l - z->c; (void) m; /* not, line 167 */
- if (!(eq_s_b(z, 2, s_14))) goto lab0;
- return 0;
- lab0:
- z->c = z->l - m;
- }
- break;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 170 */
- if (ret < 0) return ret;
- }
- return 1;
+ { int m = z->l - z->c; (void) m; /* not, line 167 */
+ if (!(eq_s_b(z, 2, s_14))) goto lab0;
+ return 0;
+ lab0:
+ z->c = z->l - m;
+ }
+ break;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 170 */
+ if (ret < 0) return ret;
+ }
+ return 1;
}
static int r_tidy(struct SN_env * z) {
- { int m3; /* setlimit, line 173 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 173 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- { int m = z->l - z->c; (void) m; /* do, line 174 */
- { int m = z->l - z->c; (void) m; /* and, line 174 */
- { int ret = r_LONG(z);
- if (ret == 0) goto lab0; /* call LONG, line 174 */
- if (ret < 0) return ret;
+ { int m3; /* setlimit, line 173 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 173 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ { int m = z->l - z->c; (void) m; /* do, line 174 */
+ { int m = z->l - z->c; (void) m; /* and, line 174 */
+ { int ret = r_LONG(z);
+ if (ret == 0) goto lab0; /* call LONG, line 174 */
+ if (ret < 0) return ret;
+ }
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 174 */
+ { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (c < 0) goto lab0;
+ z->c = c; /* next, line 174 */
+ }
+ z->bra = z->c; /* ], line 174 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 174 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab0:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 175 */
+ z->ket = z->c; /* [, line 175 */
+ if (!(in_grouping_b_U(z, g_AEI, 97, 228))) goto lab1;
+ z->bra = z->c; /* ], line 175 */
+ if (!(out_grouping_b_U(z, g_V1, 97, 246))) goto lab1;
+ { int ret;
+ ret = slice_del(z); /* delete, line 175 */
+ if (ret < 0) return ret;
+ }
+ lab1:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 176 */
+ z->ket = z->c; /* [, line 176 */
+ if (!(eq_s_b(z, 1, s_15))) goto lab2;
+ z->bra = z->c; /* ], line 176 */
+ { int m = z->l - z->c; (void) m; /* or, line 176 */
+ if (!(eq_s_b(z, 1, s_16))) goto lab4;
+ goto lab3;
+ lab4:
+ z->c = z->l - m;
+ if (!(eq_s_b(z, 1, s_17))) goto lab2;
+ }
+ lab3:
+ { int ret;
+ ret = slice_del(z); /* delete, line 176 */
+ if (ret < 0) return ret;
+ }
+ lab2:
+ z->c = z->l - m;
}
+ { int m = z->l - z->c; (void) m; /* do, line 177 */
+ z->ket = z->c; /* [, line 177 */
+ if (!(eq_s_b(z, 1, s_18))) goto lab5;
+ z->bra = z->c; /* ], line 177 */
+ if (!(eq_s_b(z, 1, s_19))) goto lab5;
+ { int ret;
+ ret = slice_del(z); /* delete, line 177 */
+ if (ret < 0) return ret;
+ }
+ lab5:
+ z->c = z->l - m;
+ }
+ z->lb = m3;
+ }
+ while(1) { /* goto, line 179 */
+ int m = z->l - z->c; (void) m;
+ if (!(out_grouping_b_U(z, g_V1, 97, 246))) goto lab6;
+ z->c = z->l - m;
+ break;
+ lab6:
z->c = z->l - m;
- z->ket = z->c; /* [, line 174 */
{ int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) goto lab0;
- z->c = c; /* next, line 174 */
+ if (c < 0) return 0;
+ z->c = c; /* goto, line 179 */
}
- z->bra = z->c; /* ], line 174 */
- { int ret;
- ret = slice_del(z); /* delete, line 174 */
- if (ret < 0) return ret;
+ }
+ z->ket = z->c; /* [, line 179 */
+ { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (c < 0) return 0;
+ z->c = c; /* next, line 179 */
+ }
+ z->bra = z->c; /* ], line 179 */
+ z->S[0] = slice_to(z, z->S[0]); /* -> x, line 179 */
+ if (z->S[0] == 0) return -1; /* -> x, line 179 */
+ if (!(eq_v_b(z, z->S[0]))) return 0; /* name x, line 179 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 179 */
+ if (ret < 0) return ret;
+ }
+ return 1;
+}
+
+extern int finnish_UTF_8_stem(struct SN_env * z) {
+ { int c = z->c; /* do, line 185 */
+ { int ret = r_mark_regions(z);
+ if (ret == 0) goto lab0; /* call mark_regions, line 185 */
+ if (ret < 0) return ret;
}
- }
lab0:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 175 */
- z->ket = z->c; /* [, line 175 */
- if (!(in_grouping_b_U(z, g_AEI, 97, 228))) goto lab1;
- z->bra = z->c; /* ], line 175 */
- if (!(out_grouping_b_U(z, g_V1, 97, 246))) goto lab1;
- { int ret;
- ret = slice_del(z); /* delete, line 175 */
- if (ret < 0) return ret;
- }
+ z->c = c;
+ }
+ z->B[0] = 0; /* unset ending_removed, line 186 */
+ z->lb = z->c; z->c = z->l; /* backwards, line 187 */
+
+ { int m = z->l - z->c; (void) m; /* do, line 188 */
+ { int ret = r_particle_etc(z);
+ if (ret == 0) goto lab1; /* call particle_etc, line 188 */
+ if (ret < 0) return ret;
+ }
lab1:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 176 */
- z->ket = z->c; /* [, line 176 */
- if (!(eq_s_b(z, 1, s_15))) goto lab2;
- z->bra = z->c; /* ], line 176 */
- { int m = z->l - z->c; (void) m; /* or, line 176 */
- if (!(eq_s_b(z, 1, s_16))) goto lab4;
- goto lab3;
- lab4:
z->c = z->l - m;
- if (!(eq_s_b(z, 1, s_17))) goto lab2;
- }
- lab3:
- { int ret;
- ret = slice_del(z); /* delete, line 176 */
- if (ret < 0) return ret;
- }
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 189 */
+ { int ret = r_possessive(z);
+ if (ret == 0) goto lab2; /* call possessive, line 189 */
+ if (ret < 0) return ret;
+ }
lab2:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 177 */
- z->ket = z->c; /* [, line 177 */
- if (!(eq_s_b(z, 1, s_18))) goto lab5;
- z->bra = z->c; /* ], line 177 */
- if (!(eq_s_b(z, 1, s_19))) goto lab5;
- { int ret;
- ret = slice_del(z); /* delete, line 177 */
- if (ret < 0) return ret;
- }
- lab5:
- z->c = z->l - m;
- }
- z->lb = m3;
- }
- while(1) { /* goto, line 179 */
- int m = z->l - z->c; (void) m;
- if (!(out_grouping_b_U(z, g_V1, 97, 246))) goto lab6;
- z->c = z->l - m;
- break;
- lab6:
- z->c = z->l - m;
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) return 0;
- z->c = c; /* goto, line 179 */
- }
- }
- z->ket = z->c; /* [, line 179 */
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) return 0;
- z->c = c; /* next, line 179 */
- }
- z->bra = z->c; /* ], line 179 */
- z->S[0] = slice_to(z, z->S[0]); /* -> x, line 179 */
- if (z->S[0] == 0) return -1; /* -> x, line 179 */
- if (!(eq_v_b(z, z->S[0]))) return 0; /* name x, line 179 */
- { int ret;
- ret = slice_del(z); /* delete, line 179 */
- if (ret < 0) return ret;
- }
- return 1;
-}
-
-extern int finnish_UTF_8_stem(struct SN_env * z) {
- { int c = z->c; /* do, line 185 */
- { int ret = r_mark_regions(z);
- if (ret == 0) goto lab0; /* call mark_regions, line 185 */
- if (ret < 0) return ret;
- }
- lab0:
- z->c = c;
- }
- z->B[0] = 0; /* unset ending_removed, line 186 */
- z->lb = z->c; z->c = z->l; /* backwards, line 187 */
-
- { int m = z->l - z->c; (void) m; /* do, line 188 */
- { int ret = r_particle_etc(z);
- if (ret == 0) goto lab1; /* call particle_etc, line 188 */
- if (ret < 0) return ret;
- }
- lab1:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 189 */
- { int ret = r_possessive(z);
- if (ret == 0) goto lab2; /* call possessive, line 189 */
- if (ret < 0) return ret;
- }
- lab2:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 190 */
- { int ret = r_case_ending(z);
- if (ret == 0) goto lab3; /* call case_ending, line 190 */
- if (ret < 0) return ret;
- }
- lab3:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 191 */
- { int ret = r_other_endings(z);
- if (ret == 0) goto lab4; /* call other_endings, line 191 */
- if (ret < 0) return ret;
- }
- lab4:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* or, line 192 */
- if (!(z->B[0])) goto lab6; /* Boolean test ending_removed, line 192 */
- { int m = z->l - z->c; (void) m; /* do, line 192 */
- { int ret = r_i_plural(z);
- if (ret == 0) goto lab7; /* call i_plural, line 192 */
- if (ret < 0) return ret;
- }
- lab7:
- z->c = z->l - m;
- }
- goto lab5;
- lab6:
- z->c = z->l - m;
- { int m = z->l - z->c; (void) m; /* do, line 192 */
- { int ret = r_t_plural(z);
- if (ret == 0) goto lab8; /* call t_plural, line 192 */
- if (ret < 0) return ret;
- }
- lab8:
- z->c = z->l - m;
- }
- }
-lab5:
- { int m = z->l - z->c; (void) m; /* do, line 193 */
- { int ret = r_tidy(z);
- if (ret == 0) goto lab9; /* call tidy, line 193 */
- if (ret < 0) return ret;
- }
- lab9:
- z->c = z->l - m;
- }
- z->c = z->lb;
- return 1;
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 190 */
+ { int ret = r_case_ending(z);
+ if (ret == 0) goto lab3; /* call case_ending, line 190 */
+ if (ret < 0) return ret;
+ }
+ lab3:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 191 */
+ { int ret = r_other_endings(z);
+ if (ret == 0) goto lab4; /* call other_endings, line 191 */
+ if (ret < 0) return ret;
+ }
+ lab4:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* or, line 192 */
+ if (!(z->B[0])) goto lab6; /* Boolean test ending_removed, line 192 */
+ { int m = z->l - z->c; (void) m; /* do, line 192 */
+ { int ret = r_i_plural(z);
+ if (ret == 0) goto lab7; /* call i_plural, line 192 */
+ if (ret < 0) return ret;
+ }
+ lab7:
+ z->c = z->l - m;
+ }
+ goto lab5;
+ lab6:
+ z->c = z->l - m;
+ { int m = z->l - z->c; (void) m; /* do, line 192 */
+ { int ret = r_t_plural(z);
+ if (ret == 0) goto lab8; /* call t_plural, line 192 */
+ if (ret < 0) return ret;
+ }
+ lab8:
+ z->c = z->l - m;
+ }
+ }
+ lab5:
+ { int m = z->l - z->c; (void) m; /* do, line 193 */
+ { int ret = r_tidy(z);
+ if (ret == 0) goto lab9; /* call tidy, line 193 */
+ if (ret < 0) return ret;
+ }
+ lab9:
+ z->c = z->l - m;
+ }
+ z->c = z->lb;
+ return 1;
}
extern struct SN_env * finnish_UTF_8_create_env(void) { return SN_create_env(1, 2, 1); }
diff --git a/src/libstemmer/stem_UTF_8_finnish.h b/src/libstemmer/stem_UTF_8_finnish.h
index 9b924eb..31ce655 100644
--- a/src/libstemmer/stem_UTF_8_finnish.h
+++ b/src/libstemmer/stem_UTF_8_finnish.h
@@ -18,10 +18,10 @@
extern "C" {
#endif
-extern struct SN_env * finnish_UTF_8_create_env(void);
-extern void finnish_UTF_8_close_env(struct SN_env * z);
+ extern struct SN_env * finnish_UTF_8_create_env(void);
+ extern void finnish_UTF_8_close_env(struct SN_env * z);
-extern int finnish_UTF_8_stem(struct SN_env * z);
+ extern int finnish_UTF_8_stem(struct SN_env * z);
#ifdef __cplusplus
}
diff --git a/src/libstemmer/stem_UTF_8_french.c b/src/libstemmer/stem_UTF_8_french.c
index 88b7455..d5284e6 100644
--- a/src/libstemmer/stem_UTF_8_french.c
+++ b/src/libstemmer/stem_UTF_8_french.c
@@ -38,12 +38,12 @@ static symbol s_0_2[1] = { 'U' };
static symbol s_0_3[1] = { 'Y' };
static struct among a_0[4] =
-{
-/* 0 */ { 0, 0, -1, 4, 0},
-/* 1 */ { 1, s_0_1, 0, 1, 0},
-/* 2 */ { 1, s_0_2, 0, 2, 0},
-/* 3 */ { 1, s_0_3, 0, 3, 0}
-};
+ {
+ /* 0 */ { 0, 0, -1, 4, 0},
+ /* 1 */ { 1, s_0_1, 0, 1, 0},
+ /* 2 */ { 1, s_0_2, 0, 2, 0},
+ /* 3 */ { 1, s_0_3, 0, 3, 0}
+ };
static symbol s_1_0[3] = { 'i', 'q', 'U' };
static symbol s_1_1[3] = { 'a', 'b', 'l' };
@@ -53,25 +53,25 @@ static symbol s_1_4[3] = { 'e', 'u', 's' };
static symbol s_1_5[2] = { 'i', 'v' };
static struct among a_1[6] =
-{
-/* 0 */ { 3, s_1_0, -1, 3, 0},
-/* 1 */ { 3, s_1_1, -1, 3, 0},
-/* 2 */ { 4, s_1_2, -1, 4, 0},
-/* 3 */ { 4, s_1_3, -1, 4, 0},
-/* 4 */ { 3, s_1_4, -1, 2, 0},
-/* 5 */ { 2, s_1_5, -1, 1, 0}
-};
+ {
+ /* 0 */ { 3, s_1_0, -1, 3, 0},
+ /* 1 */ { 3, s_1_1, -1, 3, 0},
+ /* 2 */ { 4, s_1_2, -1, 4, 0},
+ /* 3 */ { 4, s_1_3, -1, 4, 0},
+ /* 4 */ { 3, s_1_4, -1, 2, 0},
+ /* 5 */ { 2, s_1_5, -1, 1, 0}
+ };
static symbol s_2_0[2] = { 'i', 'c' };
static symbol s_2_1[4] = { 'a', 'b', 'i', 'l' };
static symbol s_2_2[2] = { 'i', 'v' };
static struct among a_2[3] =
-{
-/* 0 */ { 2, s_2_0, -1, 2, 0},
-/* 1 */ { 4, s_2_1, -1, 1, 0},
-/* 2 */ { 2, s_2_2, -1, 3, 0}
-};
+ {
+ /* 0 */ { 2, s_2_0, -1, 2, 0},
+ /* 1 */ { 4, s_2_1, -1, 1, 0},
+ /* 2 */ { 2, s_2_2, -1, 3, 0}
+ };
static symbol s_3_0[4] = { 'i', 'q', 'U', 'e' };
static symbol s_3_1[6] = { 'a', 't', 'r', 'i', 'c', 'e' };
@@ -118,51 +118,51 @@ static symbol s_3_41[3] = { 'e', 'u', 'x' };
static symbol s_3_42[4] = { 'i', 't', 0xC3, 0xA9 };
static struct among a_3[43] =
-{
-/* 0 */ { 4, s_3_0, -1, 1, 0},
-/* 1 */ { 6, s_3_1, -1, 2, 0},
-/* 2 */ { 4, s_3_2, -1, 1, 0},
-/* 3 */ { 4, s_3_3, -1, 5, 0},
-/* 4 */ { 5, s_3_4, -1, 3, 0},
-/* 5 */ { 4, s_3_5, -1, 1, 0},
-/* 6 */ { 4, s_3_6, -1, 1, 0},
-/* 7 */ { 4, s_3_7, -1, 11, 0},
-/* 8 */ { 4, s_3_8, -1, 1, 0},
-/* 9 */ { 3, s_3_9, -1, 8, 0},
-/* 10 */ { 2, s_3_10, -1, 8, 0},
-/* 11 */ { 5, s_3_11, -1, 4, 0},
-/* 12 */ { 5, s_3_12, -1, 2, 0},
-/* 13 */ { 5, s_3_13, -1, 4, 0},
-/* 14 */ { 5, s_3_14, -1, 2, 0},
-/* 15 */ { 5, s_3_15, -1, 1, 0},
-/* 16 */ { 7, s_3_16, -1, 2, 0},
-/* 17 */ { 5, s_3_17, -1, 1, 0},
-/* 18 */ { 5, s_3_18, -1, 5, 0},
-/* 19 */ { 6, s_3_19, -1, 3, 0},
-/* 20 */ { 5, s_3_20, -1, 1, 0},
-/* 21 */ { 5, s_3_21, -1, 1, 0},
-/* 22 */ { 5, s_3_22, -1, 11, 0},
-/* 23 */ { 5, s_3_23, -1, 1, 0},
-/* 24 */ { 4, s_3_24, -1, 8, 0},
-/* 25 */ { 3, s_3_25, -1, 8, 0},
-/* 26 */ { 6, s_3_26, -1, 4, 0},
-/* 27 */ { 6, s_3_27, -1, 2, 0},
-/* 28 */ { 6, s_3_28, -1, 4, 0},
-/* 29 */ { 6, s_3_29, -1, 2, 0},
-/* 30 */ { 5, s_3_30, -1, 15, 0},
-/* 31 */ { 6, s_3_31, 30, 6, 0},
-/* 32 */ { 9, s_3_32, 31, 12, 0},
-/* 33 */ { 5, s_3_33, -1, 7, 0},
-/* 34 */ { 4, s_3_34, -1, 15, 0},
-/* 35 */ { 5, s_3_35, 34, 6, 0},
-/* 36 */ { 8, s_3_36, 35, 12, 0},
-/* 37 */ { 6, s_3_37, 34, 13, 0},
-/* 38 */ { 6, s_3_38, 34, 14, 0},
-/* 39 */ { 3, s_3_39, -1, 10, 0},
-/* 40 */ { 4, s_3_40, 39, 9, 0},
-/* 41 */ { 3, s_3_41, -1, 1, 0},
-/* 42 */ { 4, s_3_42, -1, 7, 0}
-};
+ {
+ /* 0 */ { 4, s_3_0, -1, 1, 0},
+ /* 1 */ { 6, s_3_1, -1, 2, 0},
+ /* 2 */ { 4, s_3_2, -1, 1, 0},
+ /* 3 */ { 4, s_3_3, -1, 5, 0},
+ /* 4 */ { 5, s_3_4, -1, 3, 0},
+ /* 5 */ { 4, s_3_5, -1, 1, 0},
+ /* 6 */ { 4, s_3_6, -1, 1, 0},
+ /* 7 */ { 4, s_3_7, -1, 11, 0},
+ /* 8 */ { 4, s_3_8, -1, 1, 0},
+ /* 9 */ { 3, s_3_9, -1, 8, 0},
+ /* 10 */ { 2, s_3_10, -1, 8, 0},
+ /* 11 */ { 5, s_3_11, -1, 4, 0},
+ /* 12 */ { 5, s_3_12, -1, 2, 0},
+ /* 13 */ { 5, s_3_13, -1, 4, 0},
+ /* 14 */ { 5, s_3_14, -1, 2, 0},
+ /* 15 */ { 5, s_3_15, -1, 1, 0},
+ /* 16 */ { 7, s_3_16, -1, 2, 0},
+ /* 17 */ { 5, s_3_17, -1, 1, 0},
+ /* 18 */ { 5, s_3_18, -1, 5, 0},
+ /* 19 */ { 6, s_3_19, -1, 3, 0},
+ /* 20 */ { 5, s_3_20, -1, 1, 0},
+ /* 21 */ { 5, s_3_21, -1, 1, 0},
+ /* 22 */ { 5, s_3_22, -1, 11, 0},
+ /* 23 */ { 5, s_3_23, -1, 1, 0},
+ /* 24 */ { 4, s_3_24, -1, 8, 0},
+ /* 25 */ { 3, s_3_25, -1, 8, 0},
+ /* 26 */ { 6, s_3_26, -1, 4, 0},
+ /* 27 */ { 6, s_3_27, -1, 2, 0},
+ /* 28 */ { 6, s_3_28, -1, 4, 0},
+ /* 29 */ { 6, s_3_29, -1, 2, 0},
+ /* 30 */ { 5, s_3_30, -1, 15, 0},
+ /* 31 */ { 6, s_3_31, 30, 6, 0},
+ /* 32 */ { 9, s_3_32, 31, 12, 0},
+ /* 33 */ { 5, s_3_33, -1, 7, 0},
+ /* 34 */ { 4, s_3_34, -1, 15, 0},
+ /* 35 */ { 5, s_3_35, 34, 6, 0},
+ /* 36 */ { 8, s_3_36, 35, 12, 0},
+ /* 37 */ { 6, s_3_37, 34, 13, 0},
+ /* 38 */ { 6, s_3_38, 34, 14, 0},
+ /* 39 */ { 3, s_3_39, -1, 10, 0},
+ /* 40 */ { 4, s_3_40, 39, 9, 0},
+ /* 41 */ { 3, s_3_41, -1, 1, 0},
+ /* 42 */ { 4, s_3_42, -1, 7, 0}
+ };
static symbol s_4_0[3] = { 'i', 'r', 'a' };
static symbol s_4_1[2] = { 'i', 'e' };
@@ -201,43 +201,43 @@ static symbol s_4_33[4] = { 'i', 'r', 'e', 'z' };
static symbol s_4_34[5] = { 'i', 's', 's', 'e', 'z' };
static struct among a_4[35] =
-{
-/* 0 */ { 3, s_4_0, -1, 1, 0},
-/* 1 */ { 2, s_4_1, -1, 1, 0},
-/* 2 */ { 4, s_4_2, -1, 1, 0},
-/* 3 */ { 7, s_4_3, -1, 1, 0},
-/* 4 */ { 1, s_4_4, -1, 1, 0},
-/* 5 */ { 4, s_4_5, 4, 1, 0},
-/* 6 */ { 2, s_4_6, -1, 1, 0},
-/* 7 */ { 4, s_4_7, -1, 1, 0},
-/* 8 */ { 3, s_4_8, -1, 1, 0},
-/* 9 */ { 5, s_4_9, -1, 1, 0},
-/* 10 */ { 5, s_4_10, -1, 1, 0},
-/* 11 */ { 8, s_4_11, -1, 1, 0},
-/* 12 */ { 5, s_4_12, -1, 1, 0},
-/* 13 */ { 2, s_4_13, -1, 1, 0},
-/* 14 */ { 5, s_4_14, 13, 1, 0},
-/* 15 */ { 6, s_4_15, 13, 1, 0},
-/* 16 */ { 6, s_4_16, -1, 1, 0},
-/* 17 */ { 7, s_4_17, -1, 1, 0},
-/* 18 */ { 5, s_4_18, -1, 1, 0},
-/* 19 */ { 6, s_4_19, -1, 1, 0},
-/* 20 */ { 7, s_4_20, -1, 1, 0},
-/* 21 */ { 2, s_4_21, -1, 1, 0},
-/* 22 */ { 5, s_4_22, 21, 1, 0},
-/* 23 */ { 6, s_4_23, 21, 1, 0},
-/* 24 */ { 6, s_4_24, -1, 1, 0},
-/* 25 */ { 7, s_4_25, -1, 1, 0},
-/* 26 */ { 8, s_4_26, -1, 1, 0},
-/* 27 */ { 5, s_4_27, -1, 1, 0},
-/* 28 */ { 6, s_4_28, -1, 1, 0},
-/* 29 */ { 5, s_4_29, -1, 1, 0},
-/* 30 */ { 3, s_4_30, -1, 1, 0},
-/* 31 */ { 5, s_4_31, -1, 1, 0},
-/* 32 */ { 6, s_4_32, -1, 1, 0},
-/* 33 */ { 4, s_4_33, -1, 1, 0},
-/* 34 */ { 5, s_4_34, -1, 1, 0}
-};
+ {
+ /* 0 */ { 3, s_4_0, -1, 1, 0},
+ /* 1 */ { 2, s_4_1, -1, 1, 0},
+ /* 2 */ { 4, s_4_2, -1, 1, 0},
+ /* 3 */ { 7, s_4_3, -1, 1, 0},
+ /* 4 */ { 1, s_4_4, -1, 1, 0},
+ /* 5 */ { 4, s_4_5, 4, 1, 0},
+ /* 6 */ { 2, s_4_6, -1, 1, 0},
+ /* 7 */ { 4, s_4_7, -1, 1, 0},
+ /* 8 */ { 3, s_4_8, -1, 1, 0},
+ /* 9 */ { 5, s_4_9, -1, 1, 0},
+ /* 10 */ { 5, s_4_10, -1, 1, 0},
+ /* 11 */ { 8, s_4_11, -1, 1, 0},
+ /* 12 */ { 5, s_4_12, -1, 1, 0},
+ /* 13 */ { 2, s_4_13, -1, 1, 0},
+ /* 14 */ { 5, s_4_14, 13, 1, 0},
+ /* 15 */ { 6, s_4_15, 13, 1, 0},
+ /* 16 */ { 6, s_4_16, -1, 1, 0},
+ /* 17 */ { 7, s_4_17, -1, 1, 0},
+ /* 18 */ { 5, s_4_18, -1, 1, 0},
+ /* 19 */ { 6, s_4_19, -1, 1, 0},
+ /* 20 */ { 7, s_4_20, -1, 1, 0},
+ /* 21 */ { 2, s_4_21, -1, 1, 0},
+ /* 22 */ { 5, s_4_22, 21, 1, 0},
+ /* 23 */ { 6, s_4_23, 21, 1, 0},
+ /* 24 */ { 6, s_4_24, -1, 1, 0},
+ /* 25 */ { 7, s_4_25, -1, 1, 0},
+ /* 26 */ { 8, s_4_26, -1, 1, 0},
+ /* 27 */ { 5, s_4_27, -1, 1, 0},
+ /* 28 */ { 6, s_4_28, -1, 1, 0},
+ /* 29 */ { 5, s_4_29, -1, 1, 0},
+ /* 30 */ { 3, s_4_30, -1, 1, 0},
+ /* 31 */ { 5, s_4_31, -1, 1, 0},
+ /* 32 */ { 6, s_4_32, -1, 1, 0},
+ /* 33 */ { 4, s_4_33, -1, 1, 0},
+ /* 34 */ { 5, s_4_34, -1, 1, 0}
+ };
static symbol s_5_0[1] = { 'a' };
static symbol s_5_1[3] = { 'e', 'r', 'a' };
@@ -279,46 +279,46 @@ static symbol s_5_36[4] = { 'e', 'r', 'e', 'z' };
static symbol s_5_37[2] = { 0xC3, 0xA9 };
static struct among a_5[38] =
-{
-/* 0 */ { 1, s_5_0, -1, 3, 0},
-/* 1 */ { 3, s_5_1, 0, 2, 0},
-/* 2 */ { 4, s_5_2, -1, 3, 0},
-/* 3 */ { 4, s_5_3, -1, 3, 0},
-/* 4 */ { 3, s_5_4, -1, 2, 0},
-/* 5 */ { 2, s_5_5, -1, 3, 0},
-/* 6 */ { 4, s_5_6, 5, 2, 0},
-/* 7 */ { 2, s_5_7, -1, 2, 0},
-/* 8 */ { 2, s_5_8, -1, 3, 0},
-/* 9 */ { 4, s_5_9, 8, 2, 0},
-/* 10 */ { 5, s_5_10, -1, 3, 0},
-/* 11 */ { 5, s_5_11, -1, 3, 0},
-/* 12 */ { 5, s_5_12, -1, 3, 0},
-/* 13 */ { 5, s_5_13, -1, 3, 0},
-/* 14 */ { 4, s_5_14, -1, 2, 0},
-/* 15 */ { 3, s_5_15, -1, 3, 0},
-/* 16 */ { 5, s_5_16, 15, 2, 0},
-/* 17 */ { 4, s_5_17, -1, 1, 0},
-/* 18 */ { 6, s_5_18, 17, 2, 0},
-/* 19 */ { 7, s_5_19, 17, 3, 0},
-/* 20 */ { 5, s_5_20, -1, 2, 0},
-/* 21 */ { 4, s_5_21, -1, 3, 0},
-/* 22 */ { 3, s_5_22, -1, 2, 0},
-/* 23 */ { 3, s_5_23, -1, 3, 0},
-/* 24 */ { 5, s_5_24, 23, 2, 0},
-/* 25 */ { 3, s_5_25, -1, 3, 0},
-/* 26 */ { 5, s_5_26, -1, 3, 0},
-/* 27 */ { 7, s_5_27, 26, 2, 0},
-/* 28 */ { 6, s_5_28, -1, 2, 0},
-/* 29 */ { 6, s_5_29, -1, 3, 0},
-/* 30 */ { 5, s_5_30, -1, 2, 0},
-/* 31 */ { 3, s_5_31, -1, 3, 0},
-/* 32 */ { 2, s_5_32, -1, 2, 0},
-/* 33 */ { 3, s_5_33, 32, 2, 0},
-/* 34 */ { 5, s_5_34, 33, 2, 0},
-/* 35 */ { 6, s_5_35, 33, 3, 0},
-/* 36 */ { 4, s_5_36, 32, 2, 0},
-/* 37 */ { 2, s_5_37, -1, 2, 0}
-};
+ {
+ /* 0 */ { 1, s_5_0, -1, 3, 0},
+ /* 1 */ { 3, s_5_1, 0, 2, 0},
+ /* 2 */ { 4, s_5_2, -1, 3, 0},
+ /* 3 */ { 4, s_5_3, -1, 3, 0},
+ /* 4 */ { 3, s_5_4, -1, 2, 0},
+ /* 5 */ { 2, s_5_5, -1, 3, 0},
+ /* 6 */ { 4, s_5_6, 5, 2, 0},
+ /* 7 */ { 2, s_5_7, -1, 2, 0},
+ /* 8 */ { 2, s_5_8, -1, 3, 0},
+ /* 9 */ { 4, s_5_9, 8, 2, 0},
+ /* 10 */ { 5, s_5_10, -1, 3, 0},
+ /* 11 */ { 5, s_5_11, -1, 3, 0},
+ /* 12 */ { 5, s_5_12, -1, 3, 0},
+ /* 13 */ { 5, s_5_13, -1, 3, 0},
+ /* 14 */ { 4, s_5_14, -1, 2, 0},
+ /* 15 */ { 3, s_5_15, -1, 3, 0},
+ /* 16 */ { 5, s_5_16, 15, 2, 0},
+ /* 17 */ { 4, s_5_17, -1, 1, 0},
+ /* 18 */ { 6, s_5_18, 17, 2, 0},
+ /* 19 */ { 7, s_5_19, 17, 3, 0},
+ /* 20 */ { 5, s_5_20, -1, 2, 0},
+ /* 21 */ { 4, s_5_21, -1, 3, 0},
+ /* 22 */ { 3, s_5_22, -1, 2, 0},
+ /* 23 */ { 3, s_5_23, -1, 3, 0},
+ /* 24 */ { 5, s_5_24, 23, 2, 0},
+ /* 25 */ { 3, s_5_25, -1, 3, 0},
+ /* 26 */ { 5, s_5_26, -1, 3, 0},
+ /* 27 */ { 7, s_5_27, 26, 2, 0},
+ /* 28 */ { 6, s_5_28, -1, 2, 0},
+ /* 29 */ { 6, s_5_29, -1, 3, 0},
+ /* 30 */ { 5, s_5_30, -1, 2, 0},
+ /* 31 */ { 3, s_5_31, -1, 3, 0},
+ /* 32 */ { 2, s_5_32, -1, 2, 0},
+ /* 33 */ { 3, s_5_33, 32, 2, 0},
+ /* 34 */ { 5, s_5_34, 33, 2, 0},
+ /* 35 */ { 6, s_5_35, 33, 3, 0},
+ /* 36 */ { 4, s_5_36, 32, 2, 0},
+ /* 37 */ { 2, s_5_37, -1, 2, 0}
+ };
static symbol s_6_0[1] = { 'e' };
static symbol s_6_1[5] = { 'I', 0xC3, 0xA8, 'r', 'e' };
@@ -329,15 +329,15 @@ static symbol s_6_5[3] = { 'i', 'e', 'r' };
static symbol s_6_6[2] = { 0xC3, 0xAB };
static struct among a_6[7] =
-{
-/* 0 */ { 1, s_6_0, -1, 3, 0},
-/* 1 */ { 5, s_6_1, 0, 2, 0},
-/* 2 */ { 5, s_6_2, 0, 2, 0},
-/* 3 */ { 3, s_6_3, -1, 1, 0},
-/* 4 */ { 3, s_6_4, -1, 2, 0},
-/* 5 */ { 3, s_6_5, -1, 2, 0},
-/* 6 */ { 2, s_6_6, -1, 4, 0}
-};
+ {
+ /* 0 */ { 1, s_6_0, -1, 3, 0},
+ /* 1 */ { 5, s_6_1, 0, 2, 0},
+ /* 2 */ { 5, s_6_2, 0, 2, 0},
+ /* 3 */ { 3, s_6_3, -1, 1, 0},
+ /* 4 */ { 3, s_6_4, -1, 2, 0},
+ /* 5 */ { 3, s_6_5, -1, 2, 0},
+ /* 6 */ { 2, s_6_6, -1, 4, 0}
+ };
static symbol s_7_0[3] = { 'e', 'l', 'l' };
static symbol s_7_1[4] = { 'e', 'i', 'l', 'l' };
@@ -346,13 +346,13 @@ static symbol s_7_3[3] = { 'o', 'n', 'n' };
static symbol s_7_4[3] = { 'e', 't', 't' };
static struct among a_7[5] =
-{
-/* 0 */ { 3, s_7_0, -1, -1, 0},
-/* 1 */ { 4, s_7_1, -1, -1, 0},
-/* 2 */ { 3, s_7_2, -1, -1, 0},
-/* 3 */ { 3, s_7_3, -1, -1, 0},
-/* 4 */ { 3, s_7_4, -1, -1, 0}
-};
+ {
+ /* 0 */ { 3, s_7_0, -1, -1, 0},
+ /* 1 */ { 4, s_7_1, -1, -1, 0},
+ /* 2 */ { 3, s_7_2, -1, -1, 0},
+ /* 3 */ { 3, s_7_3, -1, -1, 0},
+ /* 4 */ { 3, s_7_4, -1, -1, 0}
+ };
static unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 130, 103, 8, 5 };
@@ -405,902 +405,902 @@ static symbol s_43[] = { 0xC3, 0xA7 };
static symbol s_44[] = { 'c' };
static int r_prelude(struct SN_env * z) {
- while(1) { /* repeat, line 38 */
- int c = z->c;
- while(1) { /* goto, line 38 */
- int c = z->c;
- { int c = z->c; /* or, line 44 */
- if (!(in_grouping_U(z, g_v, 97, 251))) goto lab3;
- z->bra = z->c; /* [, line 40 */
- { int c = z->c; /* or, line 40 */
- if (!(eq_s(z, 1, s_0))) goto lab5;
- z->ket = z->c; /* ], line 40 */
- if (!(in_grouping_U(z, g_v, 97, 251))) goto lab5;
- { int ret;
- ret = slice_from_s(z, 1, s_1); /* <-, line 40 */
- if (ret < 0) return ret;
- }
- goto lab4;
- lab5:
- z->c = c;
- if (!(eq_s(z, 1, s_2))) goto lab6;
- z->ket = z->c; /* ], line 41 */
- if (!(in_grouping_U(z, g_v, 97, 251))) goto lab6;
- { int ret;
- ret = slice_from_s(z, 1, s_3); /* <-, line 41 */
- if (ret < 0) return ret;
- }
- goto lab4;
- lab6:
- z->c = c;
- if (!(eq_s(z, 1, s_4))) goto lab3;
- z->ket = z->c; /* ], line 42 */
- { int ret;
- ret = slice_from_s(z, 1, s_5); /* <-, line 42 */
- if (ret < 0) return ret;
- }
- }
- lab4:
- goto lab2;
- lab3:
- z->c = c;
- z->bra = z->c; /* [, line 45 */
- if (!(eq_s(z, 1, s_6))) goto lab7;
- z->ket = z->c; /* ], line 45 */
- if (!(in_grouping_U(z, g_v, 97, 251))) goto lab7;
- { int ret;
- ret = slice_from_s(z, 1, s_7); /* <-, line 45 */
- if (ret < 0) return ret;
+ while(1) { /* repeat, line 38 */
+ int c = z->c;
+ while(1) { /* goto, line 38 */
+ int c = z->c;
+ { int c = z->c; /* or, line 44 */
+ if (!(in_grouping_U(z, g_v, 97, 251))) goto lab3;
+ z->bra = z->c; /* [, line 40 */
+ { int c = z->c; /* or, line 40 */
+ if (!(eq_s(z, 1, s_0))) goto lab5;
+ z->ket = z->c; /* ], line 40 */
+ if (!(in_grouping_U(z, g_v, 97, 251))) goto lab5;
+ { int ret;
+ ret = slice_from_s(z, 1, s_1); /* <-, line 40 */
+ if (ret < 0) return ret;
+ }
+ goto lab4;
+ lab5:
+ z->c = c;
+ if (!(eq_s(z, 1, s_2))) goto lab6;
+ z->ket = z->c; /* ], line 41 */
+ if (!(in_grouping_U(z, g_v, 97, 251))) goto lab6;
+ { int ret;
+ ret = slice_from_s(z, 1, s_3); /* <-, line 41 */
+ if (ret < 0) return ret;
+ }
+ goto lab4;
+ lab6:
+ z->c = c;
+ if (!(eq_s(z, 1, s_4))) goto lab3;
+ z->ket = z->c; /* ], line 42 */
+ { int ret;
+ ret = slice_from_s(z, 1, s_5); /* <-, line 42 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab4:
+ goto lab2;
+ lab3:
+ z->c = c;
+ z->bra = z->c; /* [, line 45 */
+ if (!(eq_s(z, 1, s_6))) goto lab7;
+ z->ket = z->c; /* ], line 45 */
+ if (!(in_grouping_U(z, g_v, 97, 251))) goto lab7;
+ { int ret;
+ ret = slice_from_s(z, 1, s_7); /* <-, line 45 */
+ if (ret < 0) return ret;
+ }
+ goto lab2;
+ lab7:
+ z->c = c;
+ if (!(eq_s(z, 1, s_8))) goto lab1;
+ z->bra = z->c; /* [, line 47 */
+ if (!(eq_s(z, 1, s_9))) goto lab1;
+ z->ket = z->c; /* ], line 47 */
+ { int ret;
+ ret = slice_from_s(z, 1, s_10); /* <-, line 47 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab2:
+ z->c = c;
+ break;
+ lab1:
+ z->c = c;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* goto, line 38 */
+ }
}
- goto lab2;
- lab7:
+ continue;
+ lab0:
z->c = c;
- if (!(eq_s(z, 1, s_8))) goto lab1;
- z->bra = z->c; /* [, line 47 */
- if (!(eq_s(z, 1, s_9))) goto lab1;
- z->ket = z->c; /* ], line 47 */
- { int ret;
- ret = slice_from_s(z, 1, s_10); /* <-, line 47 */
- if (ret < 0) return ret;
- }
- }
- lab2:
- z->c = c;
- break;
- lab1:
- z->c = c;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* goto, line 38 */
- }
+ break;
}
- continue;
- lab0:
- z->c = c;
- break;
- }
- return 1;
+ return 1;
}
static int r_mark_regions(struct SN_env * z) {
- z->I[0] = z->l;
- z->I[1] = z->l;
- z->I[2] = z->l;
- { int c = z->c; /* do, line 56 */
- { int c = z->c; /* or, line 57 */
- if (!(in_grouping_U(z, g_v, 97, 251))) goto lab2;
- if (!(in_grouping_U(z, g_v, 97, 251))) goto lab2;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab2;
- z->c = c; /* next, line 57 */
- }
- goto lab1;
- lab2:
- z->c = c;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* next, line 57 */
- }
- while(1) { /* gopast, line 57 */
- if (!(in_grouping_U(z, g_v, 97, 251))) goto lab3;
- break;
- lab3:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* gopast, line 57 */
+ z->I[0] = z->l;
+ z->I[1] = z->l;
+ z->I[2] = z->l;
+ { int c = z->c; /* do, line 56 */
+ { int c = z->c; /* or, line 57 */
+ if (!(in_grouping_U(z, g_v, 97, 251))) goto lab2;
+ if (!(in_grouping_U(z, g_v, 97, 251))) goto lab2;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab2;
+ z->c = c; /* next, line 57 */
+ }
+ goto lab1;
+ lab2:
+ z->c = c;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* next, line 57 */
+ }
+ while(1) { /* gopast, line 57 */
+ if (!(in_grouping_U(z, g_v, 97, 251))) goto lab3;
+ break;
+ lab3:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* gopast, line 57 */
+ }
+ }
}
- }
- }
- lab1:
- z->I[0] = z->c; /* setmark pV, line 58 */
- lab0:
- z->c = c;
- }
- { int c = z->c; /* do, line 60 */
- while(1) { /* gopast, line 61 */
- if (!(in_grouping_U(z, g_v, 97, 251))) goto lab5;
- break;
- lab5:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab4;
- z->c = c; /* gopast, line 61 */
- }
- }
- while(1) { /* gopast, line 61 */
- if (!(out_grouping_U(z, g_v, 97, 251))) goto lab6;
- break;
- lab6:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab4;
- z->c = c; /* gopast, line 61 */
- }
- }
- z->I[1] = z->c; /* setmark p1, line 61 */
- while(1) { /* gopast, line 62 */
- if (!(in_grouping_U(z, g_v, 97, 251))) goto lab7;
- break;
- lab7:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab4;
- z->c = c; /* gopast, line 62 */
- }
+ lab1:
+ z->I[0] = z->c; /* setmark pV, line 58 */
+ lab0:
+ z->c = c;
}
- while(1) { /* gopast, line 62 */
- if (!(out_grouping_U(z, g_v, 97, 251))) goto lab8;
- break;
- lab8:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab4;
- z->c = c; /* gopast, line 62 */
- }
+ { int c = z->c; /* do, line 60 */
+ while(1) { /* gopast, line 61 */
+ if (!(in_grouping_U(z, g_v, 97, 251))) goto lab5;
+ break;
+ lab5:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab4;
+ z->c = c; /* gopast, line 61 */
+ }
+ }
+ while(1) { /* gopast, line 61 */
+ if (!(out_grouping_U(z, g_v, 97, 251))) goto lab6;
+ break;
+ lab6:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab4;
+ z->c = c; /* gopast, line 61 */
+ }
+ }
+ z->I[1] = z->c; /* setmark p1, line 61 */
+ while(1) { /* gopast, line 62 */
+ if (!(in_grouping_U(z, g_v, 97, 251))) goto lab7;
+ break;
+ lab7:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab4;
+ z->c = c; /* gopast, line 62 */
+ }
+ }
+ while(1) { /* gopast, line 62 */
+ if (!(out_grouping_U(z, g_v, 97, 251))) goto lab8;
+ break;
+ lab8:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab4;
+ z->c = c; /* gopast, line 62 */
+ }
+ }
+ z->I[2] = z->c; /* setmark p2, line 62 */
+ lab4:
+ z->c = c;
}
- z->I[2] = z->c; /* setmark p2, line 62 */
- lab4:
- z->c = c;
- }
- return 1;
+ return 1;
}
static int r_postlude(struct SN_env * z) {
- int among_var;
- while(1) { /* repeat, line 66 */
- int c = z->c;
- z->bra = z->c; /* [, line 68 */
- among_var = find_among(z, a_0, 4); /* substring, line 68 */
- if (!(among_var)) goto lab0;
- z->ket = z->c; /* ], line 68 */
- switch(among_var) {
- case 0: goto lab0;
- case 1:
- { int ret;
- ret = slice_from_s(z, 1, s_11); /* <-, line 69 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int ret;
- ret = slice_from_s(z, 1, s_12); /* <-, line 70 */
- if (ret < 0) return ret;
- }
- break;
- case 3:
- { int ret;
- ret = slice_from_s(z, 1, s_13); /* <-, line 71 */
- if (ret < 0) return ret;
- }
- break;
- case 4:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* next, line 72 */
+ int among_var;
+ while(1) { /* repeat, line 66 */
+ int c = z->c;
+ z->bra = z->c; /* [, line 68 */
+ among_var = find_among(z, a_0, 4); /* substring, line 68 */
+ if (!(among_var)) goto lab0;
+ z->ket = z->c; /* ], line 68 */
+ switch(among_var) {
+ case 0: goto lab0;
+ case 1:
+ { int ret;
+ ret = slice_from_s(z, 1, s_11); /* <-, line 69 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ { int ret;
+ ret = slice_from_s(z, 1, s_12); /* <-, line 70 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 3:
+ { int ret;
+ ret = slice_from_s(z, 1, s_13); /* <-, line 71 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 4:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* next, line 72 */
+ }
+ break;
}
+ continue;
+ lab0:
+ z->c = c;
break;
}
- continue;
- lab0:
- z->c = c;
- break;
- }
- return 1;
+ return 1;
}
static int r_RV(struct SN_env * z) {
- if (!(z->I[0] <= z->c)) return 0;
- return 1;
+ if (!(z->I[0] <= z->c)) return 0;
+ return 1;
}
static int r_R1(struct SN_env * z) {
- if (!(z->I[1] <= z->c)) return 0;
- return 1;
+ if (!(z->I[1] <= z->c)) return 0;
+ return 1;
}
static int r_R2(struct SN_env * z) {
- if (!(z->I[2] <= z->c)) return 0;
- return 1;
+ if (!(z->I[2] <= z->c)) return 0;
+ return 1;
}
static int r_standard_suffix(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 83 */
- among_var = find_among_b(z, a_3, 43); /* substring, line 83 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 83 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 83 */
+ among_var = find_among_b(z, a_3, 43); /* substring, line 83 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 83 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 87 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 87 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 90 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 90 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 91 */
- z->ket = z->c; /* [, line 91 */
- if (!(eq_s_b(z, 2, s_14))) { z->c = z->l - m; goto lab0; }
- z->bra = z->c; /* ], line 91 */
- { int m = z->l - z->c; (void) m; /* or, line 91 */
- { int ret = r_R2(z);
- if (ret == 0) goto lab2; /* call R2, line 91 */
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 87 */
if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 91 */
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 87 */
if (ret < 0) return ret;
- }
- goto lab1;
- lab2:
- z->c = z->l - m;
- { int ret;
- ret = slice_from_s(z, 3, s_15); /* <-, line 91 */
+ }
+ break;
+ case 2:
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 90 */
if (ret < 0) return ret;
- }
}
- lab1:
- lab0:
- ;
- }
- break;
+ { int ret;
+ ret = slice_del(z); /* delete, line 90 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 91 */
+ z->ket = z->c; /* [, line 91 */
+ if (!(eq_s_b(z, 2, s_14))) { z->c = z->l - m; goto lab0; }
+ z->bra = z->c; /* ], line 91 */
+ { int m = z->l - z->c; (void) m; /* or, line 91 */
+ { int ret = r_R2(z);
+ if (ret == 0) goto lab2; /* call R2, line 91 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 91 */
+ if (ret < 0) return ret;
+ }
+ goto lab1;
+ lab2:
+ z->c = z->l - m;
+ { int ret;
+ ret = slice_from_s(z, 3, s_15); /* <-, line 91 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab1:
+ lab0:
+ ;
+ }
+ break;
case 3:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 95 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 3, s_16); /* <-, line 95 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 95 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 3, s_16); /* <-, line 95 */
+ if (ret < 0) return ret;
+ }
+ break;
case 4:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 98 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 1, s_17); /* <-, line 98 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 98 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 1, s_17); /* <-, line 98 */
+ if (ret < 0) return ret;
+ }
+ break;
case 5:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 101 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 3, s_18); /* <-, line 101 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 101 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 3, s_18); /* <-, line 101 */
+ if (ret < 0) return ret;
+ }
+ break;
case 6:
- { int ret = r_RV(z);
- if (ret == 0) return 0; /* call RV, line 105 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 105 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 106 */
- z->ket = z->c; /* [, line 107 */
- among_var = find_among_b(z, a_1, 6); /* substring, line 107 */
- if (!(among_var)) { z->c = z->l - m; goto lab3; }
- z->bra = z->c; /* ], line 107 */
- switch(among_var) {
- case 0: { z->c = z->l - m; goto lab3; }
- case 1:
- { int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 108 */
- if (ret < 0) return ret;
+ { int ret = r_RV(z);
+ if (ret == 0) return 0; /* call RV, line 105 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 105 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 106 */
+ z->ket = z->c; /* [, line 107 */
+ among_var = find_among_b(z, a_1, 6); /* substring, line 107 */
+ if (!(among_var)) { z->c = z->l - m; goto lab3; }
+ z->bra = z->c; /* ], line 107 */
+ switch(among_var) {
+ case 0: { z->c = z->l - m; goto lab3; }
+ case 1:
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 108 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 108 */
+ if (ret < 0) return ret;
+ }
+ z->ket = z->c; /* [, line 108 */
+ if (!(eq_s_b(z, 2, s_19))) { z->c = z->l - m; goto lab3; }
+ z->bra = z->c; /* ], line 108 */
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 108 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 108 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ { int m = z->l - z->c; (void) m; /* or, line 109 */
+ { int ret = r_R2(z);
+ if (ret == 0) goto lab5; /* call R2, line 109 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 109 */
+ if (ret < 0) return ret;
+ }
+ goto lab4;
+ lab5:
+ z->c = z->l - m;
+ { int ret = r_R1(z);
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R1, line 109 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 3, s_20); /* <-, line 109 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab4:
+ break;
+ case 3:
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 111 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 111 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 4:
+ { int ret = r_RV(z);
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call RV, line 113 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 1, s_21); /* <-, line 113 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- { int ret;
- ret = slice_del(z); /* delete, line 108 */
- if (ret < 0) return ret;
+ lab3:
+ ;
+ }
+ break;
+ case 7:
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 120 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 120 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 121 */
+ z->ket = z->c; /* [, line 122 */
+ among_var = find_among_b(z, a_2, 3); /* substring, line 122 */
+ if (!(among_var)) { z->c = z->l - m; goto lab6; }
+ z->bra = z->c; /* ], line 122 */
+ switch(among_var) {
+ case 0: { z->c = z->l - m; goto lab6; }
+ case 1:
+ { int m = z->l - z->c; (void) m; /* or, line 123 */
+ { int ret = r_R2(z);
+ if (ret == 0) goto lab8; /* call R2, line 123 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 123 */
+ if (ret < 0) return ret;
+ }
+ goto lab7;
+ lab8:
+ z->c = z->l - m;
+ { int ret;
+ ret = slice_from_s(z, 3, s_22); /* <-, line 123 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab7:
+ break;
+ case 2:
+ { int m = z->l - z->c; (void) m; /* or, line 124 */
+ { int ret = r_R2(z);
+ if (ret == 0) goto lab10; /* call R2, line 124 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 124 */
+ if (ret < 0) return ret;
+ }
+ goto lab9;
+ lab10:
+ z->c = z->l - m;
+ { int ret;
+ ret = slice_from_s(z, 3, s_23); /* <-, line 124 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab9:
+ break;
+ case 3:
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab6; } /* call R2, line 125 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 125 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- z->ket = z->c; /* [, line 108 */
- if (!(eq_s_b(z, 2, s_19))) { z->c = z->l - m; goto lab3; }
- z->bra = z->c; /* ], line 108 */
+ lab6:
+ ;
+ }
+ break;
+ case 8:
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 132 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 132 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 133 */
+ z->ket = z->c; /* [, line 133 */
+ if (!(eq_s_b(z, 2, s_24))) { z->c = z->l - m; goto lab11; }
+ z->bra = z->c; /* ], line 133 */
{ int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 108 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 108 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int m = z->l - z->c; (void) m; /* or, line 109 */
- { int ret = r_R2(z);
- if (ret == 0) goto lab5; /* call R2, line 109 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 109 */
+ if (ret == 0) { z->c = z->l - m; goto lab11; } /* call R2, line 133 */
if (ret < 0) return ret;
- }
- goto lab4;
- lab5:
- z->c = z->l - m;
- { int ret = r_R1(z);
- if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R1, line 109 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 3, s_20); /* <-, line 109 */
- if (ret < 0) return ret;
- }
- }
- lab4:
- break;
- case 3:
- { int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 111 */
- if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 111 */
- if (ret < 0) return ret;
- }
- break;
- case 4:
- { int ret = r_RV(z);
- if (ret == 0) { z->c = z->l - m; goto lab3; } /* call RV, line 113 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 133 */
+ if (ret < 0) return ret;
}
- { int ret;
- ret = slice_from_s(z, 1, s_21); /* <-, line 113 */
- if (ret < 0) return ret;
+ z->ket = z->c; /* [, line 133 */
+ if (!(eq_s_b(z, 2, s_25))) { z->c = z->l - m; goto lab11; }
+ z->bra = z->c; /* ], line 133 */
+ { int m = z->l - z->c; (void) m; /* or, line 133 */
+ { int ret = r_R2(z);
+ if (ret == 0) goto lab13; /* call R2, line 133 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 133 */
+ if (ret < 0) return ret;
+ }
+ goto lab12;
+ lab13:
+ z->c = z->l - m;
+ { int ret;
+ ret = slice_from_s(z, 3, s_26); /* <-, line 133 */
+ if (ret < 0) return ret;
+ }
}
- break;
+ lab12:
+ lab11:
+ ;
}
- lab3:
- ;
- }
- break;
- case 7:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 120 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 120 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 121 */
- z->ket = z->c; /* [, line 122 */
- among_var = find_among_b(z, a_2, 3); /* substring, line 122 */
- if (!(among_var)) { z->c = z->l - m; goto lab6; }
- z->bra = z->c; /* ], line 122 */
- switch(among_var) {
- case 0: { z->c = z->l - m; goto lab6; }
- case 1:
- { int m = z->l - z->c; (void) m; /* or, line 123 */
- { int ret = r_R2(z);
- if (ret == 0) goto lab8; /* call R2, line 123 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 123 */
- if (ret < 0) return ret;
- }
- goto lab7;
- lab8:
- z->c = z->l - m;
- { int ret;
- ret = slice_from_s(z, 3, s_22); /* <-, line 123 */
+ break;
+ case 9:
+ { int ret;
+ ret = slice_from_s(z, 3, s_27); /* <-, line 135 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 10:
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 136 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 2, s_28); /* <-, line 136 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 11:
+ { int m = z->l - z->c; (void) m; /* or, line 138 */
+ { int ret = r_R2(z);
+ if (ret == 0) goto lab15; /* call R2, line 138 */
if (ret < 0) return ret;
- }
}
- lab7:
- break;
- case 2:
- { int m = z->l - z->c; (void) m; /* or, line 124 */
- { int ret = r_R2(z);
- if (ret == 0) goto lab10; /* call R2, line 124 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 124 */
- if (ret < 0) return ret;
- }
- goto lab9;
- lab10:
- z->c = z->l - m;
- { int ret;
- ret = slice_from_s(z, 3, s_23); /* <-, line 124 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 138 */
if (ret < 0) return ret;
- }
}
- lab9:
- break;
- case 3:
- { int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab6; } /* call R2, line 125 */
- if (ret < 0) return ret;
+ goto lab14;
+ lab15:
+ z->c = z->l - m;
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 138 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 125 */
- if (ret < 0) return ret;
+ ret = slice_from_s(z, 3, s_29); /* <-, line 138 */
+ if (ret < 0) return ret;
}
- break;
}
- lab6:
- ;
- }
- break;
- case 8:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 132 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 132 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 133 */
- z->ket = z->c; /* [, line 133 */
- if (!(eq_s_b(z, 2, s_24))) { z->c = z->l - m; goto lab11; }
- z->bra = z->c; /* ], line 133 */
- { int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab11; } /* call R2, line 133 */
- if (ret < 0) return ret;
+ lab14:
+ break;
+ case 12:
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 141 */
+ if (ret < 0) return ret;
}
+ if (!(out_grouping_b_U(z, g_v, 97, 251))) return 0;
{ int ret;
- ret = slice_del(z); /* delete, line 133 */
- if (ret < 0) return ret;
- }
- z->ket = z->c; /* [, line 133 */
- if (!(eq_s_b(z, 2, s_25))) { z->c = z->l - m; goto lab11; }
- z->bra = z->c; /* ], line 133 */
- { int m = z->l - z->c; (void) m; /* or, line 133 */
- { int ret = r_R2(z);
- if (ret == 0) goto lab13; /* call R2, line 133 */
+ ret = slice_del(z); /* delete, line 141 */
if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 133 */
- if (ret < 0) return ret;
- }
- goto lab12;
- lab13:
- z->c = z->l - m;
- { int ret;
- ret = slice_from_s(z, 3, s_26); /* <-, line 133 */
- if (ret < 0) return ret;
- }
}
- lab12:
- lab11:
- ;
- }
- break;
- case 9:
- { int ret;
- ret = slice_from_s(z, 3, s_27); /* <-, line 135 */
- if (ret < 0) return ret;
- }
- break;
- case 10:
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 136 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 2, s_28); /* <-, line 136 */
- if (ret < 0) return ret;
- }
- break;
- case 11:
- { int m = z->l - z->c; (void) m; /* or, line 138 */
- { int ret = r_R2(z);
- if (ret == 0) goto lab15; /* call R2, line 138 */
- if (ret < 0) return ret;
+ break;
+ case 13:
+ { int ret = r_RV(z);
+ if (ret == 0) return 0; /* call RV, line 146 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 138 */
- if (ret < 0) return ret;
+ ret = slice_from_s(z, 3, s_30); /* <-, line 146 */
+ if (ret < 0) return ret;
}
- goto lab14;
- lab15:
- z->c = z->l - m;
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 138 */
- if (ret < 0) return ret;
+ return 0; /* fail, line 146 */
+ break;
+ case 14:
+ { int ret = r_RV(z);
+ if (ret == 0) return 0; /* call RV, line 147 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_from_s(z, 3, s_29); /* <-, line 138 */
- if (ret < 0) return ret;
+ ret = slice_from_s(z, 3, s_31); /* <-, line 147 */
+ if (ret < 0) return ret;
}
- }
- lab14:
- break;
- case 12:
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 141 */
- if (ret < 0) return ret;
- }
- if (!(out_grouping_b_U(z, g_v, 97, 251))) return 0;
- { int ret;
- ret = slice_del(z); /* delete, line 141 */
- if (ret < 0) return ret;
- }
- break;
- case 13:
- { int ret = r_RV(z);
- if (ret == 0) return 0; /* call RV, line 146 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 3, s_30); /* <-, line 146 */
- if (ret < 0) return ret;
- }
- return 0; /* fail, line 146 */
- break;
- case 14:
- { int ret = r_RV(z);
- if (ret == 0) return 0; /* call RV, line 147 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 3, s_31); /* <-, line 147 */
- if (ret < 0) return ret;
- }
- return 0; /* fail, line 147 */
- break;
+ return 0; /* fail, line 147 */
+ break;
case 15:
- { int m_test = z->l - z->c; /* test, line 149 */
- if (!(in_grouping_b_U(z, g_v, 97, 251))) return 0;
- { int ret = r_RV(z);
- if (ret == 0) return 0; /* call RV, line 149 */
- if (ret < 0) return ret;
+ { int m_test = z->l - z->c; /* test, line 149 */
+ if (!(in_grouping_b_U(z, g_v, 97, 251))) return 0;
+ { int ret = r_RV(z);
+ if (ret == 0) return 0; /* call RV, line 149 */
+ if (ret < 0) return ret;
+ }
+ z->c = z->l - m_test;
}
- z->c = z->l - m_test;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 149 */
- if (ret < 0) return ret;
- }
- return 0; /* fail, line 149 */
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_del(z); /* delete, line 149 */
+ if (ret < 0) return ret;
+ }
+ return 0; /* fail, line 149 */
+ break;
+ }
+ return 1;
}
static int r_i_verb_suffix(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 154 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 154 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 155 */
- among_var = find_among_b(z, a_4, 35); /* substring, line 155 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 155 */
- switch(among_var) {
- case 0: { z->lb = m3; return 0; }
- case 1:
- if (!(out_grouping_b_U(z, g_v, 97, 251))) { z->lb = m3; return 0; }
- { int ret;
- ret = slice_del(z); /* delete, line 161 */
- if (ret < 0) return ret;
+ int among_var;
+ { int m3; /* setlimit, line 154 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 154 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 155 */
+ among_var = find_among_b(z, a_4, 35); /* substring, line 155 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 155 */
+ switch(among_var) {
+ case 0: { z->lb = m3; return 0; }
+ case 1:
+ if (!(out_grouping_b_U(z, g_v, 97, 251))) { z->lb = m3; return 0; }
+ { int ret;
+ ret = slice_del(z); /* delete, line 161 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- break;
+ z->lb = m3;
}
- z->lb = m3;
- }
- return 1;
+ return 1;
}
static int r_verb_suffix(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 165 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 165 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 166 */
- among_var = find_among_b(z, a_5, 38); /* substring, line 166 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 166 */
- switch(among_var) {
- case 0: { z->lb = m3; return 0; }
- case 1:
- { int ret = r_R2(z);
- if (ret == 0) { z->lb = m3; return 0; } /* call R2, line 168 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 168 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int ret;
- ret = slice_del(z); /* delete, line 176 */
- if (ret < 0) return ret;
- }
- break;
- case 3:
- { int ret;
- ret = slice_del(z); /* delete, line 181 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 182 */
- z->ket = z->c; /* [, line 182 */
- if (!(eq_s_b(z, 1, s_32))) { z->c = z->l - m; goto lab0; }
- z->bra = z->c; /* ], line 182 */
- { int ret;
- ret = slice_del(z); /* delete, line 182 */
- if (ret < 0) return ret;
- }
- lab0:
- ;
+ int among_var;
+ { int m3; /* setlimit, line 165 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 165 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 166 */
+ among_var = find_among_b(z, a_5, 38); /* substring, line 166 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 166 */
+ switch(among_var) {
+ case 0: { z->lb = m3; return 0; }
+ case 1:
+ { int ret = r_R2(z);
+ if (ret == 0) { z->lb = m3; return 0; } /* call R2, line 168 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 168 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ { int ret;
+ ret = slice_del(z); /* delete, line 176 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 3:
+ { int ret;
+ ret = slice_del(z); /* delete, line 181 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 182 */
+ z->ket = z->c; /* [, line 182 */
+ if (!(eq_s_b(z, 1, s_32))) { z->c = z->l - m; goto lab0; }
+ z->bra = z->c; /* ], line 182 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 182 */
+ if (ret < 0) return ret;
+ }
+ lab0:
+ ;
+ }
+ break;
}
- break;
+ z->lb = m3;
}
- z->lb = m3;
- }
- return 1;
+ return 1;
}
static int r_residual_suffix(struct SN_env * z) {
- int among_var;
- { int m = z->l - z->c; (void) m; /* try, line 190 */
- z->ket = z->c; /* [, line 190 */
- if (!(eq_s_b(z, 1, s_33))) { z->c = z->l - m; goto lab0; }
- z->bra = z->c; /* ], line 190 */
- { int m_test = z->l - z->c; /* test, line 190 */
- if (!(out_grouping_b_U(z, g_keep_with_s, 97, 232))) { z->c = z->l - m; goto lab0; }
- z->c = z->l - m_test;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 190 */
- if (ret < 0) return ret;
- }
- lab0:
- ;
- }
- { int m3; /* setlimit, line 191 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 191 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 192 */
- among_var = find_among_b(z, a_6, 7); /* substring, line 192 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 192 */
- switch(among_var) {
- case 0: { z->lb = m3; return 0; }
- case 1:
- { int ret = r_R2(z);
- if (ret == 0) { z->lb = m3; return 0; } /* call R2, line 193 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* or, line 193 */
- if (!(eq_s_b(z, 1, s_34))) goto lab2;
- goto lab1;
- lab2:
- z->c = z->l - m;
- if (!(eq_s_b(z, 1, s_35))) { z->lb = m3; return 0; }
+ int among_var;
+ { int m = z->l - z->c; (void) m; /* try, line 190 */
+ z->ket = z->c; /* [, line 190 */
+ if (!(eq_s_b(z, 1, s_33))) { z->c = z->l - m; goto lab0; }
+ z->bra = z->c; /* ], line 190 */
+ { int m_test = z->l - z->c; /* test, line 190 */
+ if (!(out_grouping_b_U(z, g_keep_with_s, 97, 232))) { z->c = z->l - m; goto lab0; }
+ z->c = z->l - m_test;
}
- lab1:
{ int ret;
- ret = slice_del(z); /* delete, line 193 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int ret;
- ret = slice_from_s(z, 1, s_36); /* <-, line 195 */
- if (ret < 0) return ret;
- }
- break;
- case 3:
- { int ret;
- ret = slice_del(z); /* delete, line 196 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 190 */
+ if (ret < 0) return ret;
}
- break;
- case 4:
- if (!(eq_s_b(z, 2, s_37))) { z->lb = m3; return 0; }
- { int ret;
- ret = slice_del(z); /* delete, line 197 */
- if (ret < 0) return ret;
+ lab0:
+ ;
+ }
+ { int m3; /* setlimit, line 191 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 191 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 192 */
+ among_var = find_among_b(z, a_6, 7); /* substring, line 192 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 192 */
+ switch(among_var) {
+ case 0: { z->lb = m3; return 0; }
+ case 1:
+ { int ret = r_R2(z);
+ if (ret == 0) { z->lb = m3; return 0; } /* call R2, line 193 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* or, line 193 */
+ if (!(eq_s_b(z, 1, s_34))) goto lab2;
+ goto lab1;
+ lab2:
+ z->c = z->l - m;
+ if (!(eq_s_b(z, 1, s_35))) { z->lb = m3; return 0; }
+ }
+ lab1:
+ { int ret;
+ ret = slice_del(z); /* delete, line 193 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ { int ret;
+ ret = slice_from_s(z, 1, s_36); /* <-, line 195 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 3:
+ { int ret;
+ ret = slice_del(z); /* delete, line 196 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 4:
+ if (!(eq_s_b(z, 2, s_37))) { z->lb = m3; return 0; }
+ { int ret;
+ ret = slice_del(z); /* delete, line 197 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- break;
+ z->lb = m3;
}
- z->lb = m3;
- }
- return 1;
+ return 1;
}
static int r_un_double(struct SN_env * z) {
- { int m_test = z->l - z->c; /* test, line 203 */
- if (!(find_among_b(z, a_7, 5))) return 0; /* among, line 203 */
- z->c = z->l - m_test;
- }
- z->ket = z->c; /* [, line 203 */
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) return 0;
- z->c = c; /* next, line 203 */
- }
- z->bra = z->c; /* ], line 203 */
- { int ret;
- ret = slice_del(z); /* delete, line 203 */
- if (ret < 0) return ret;
- }
- return 1;
+ { int m_test = z->l - z->c; /* test, line 203 */
+ if (!(find_among_b(z, a_7, 5))) return 0; /* among, line 203 */
+ z->c = z->l - m_test;
+ }
+ z->ket = z->c; /* [, line 203 */
+ { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (c < 0) return 0;
+ z->c = c; /* next, line 203 */
+ }
+ z->bra = z->c; /* ], line 203 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 203 */
+ if (ret < 0) return ret;
+ }
+ return 1;
}
static int r_un_accent(struct SN_env * z) {
- { int i = 1;
- while(1) { /* atleast, line 207 */
- if (!(out_grouping_b_U(z, g_v, 97, 251))) goto lab0;
- i--;
- continue;
- lab0:
- break;
+ { int i = 1;
+ while(1) { /* atleast, line 207 */
+ if (!(out_grouping_b_U(z, g_v, 97, 251))) goto lab0;
+ i--;
+ continue;
+ lab0:
+ break;
+ }
+ if (i > 0) return 0;
}
- if (i > 0) return 0;
- }
- z->ket = z->c; /* [, line 208 */
- { int m = z->l - z->c; (void) m; /* or, line 208 */
- if (!(eq_s_b(z, 2, s_38))) goto lab2;
- goto lab1;
- lab2:
- z->c = z->l - m;
- if (!(eq_s_b(z, 2, s_39))) return 0;
- }
-lab1:
- z->bra = z->c; /* ], line 208 */
- { int ret;
- ret = slice_from_s(z, 1, s_40); /* <-, line 208 */
- if (ret < 0) return ret;
- }
- return 1;
-}
-
-extern int french_UTF_8_stem(struct SN_env * z) {
- { int c = z->c; /* do, line 214 */
- { int ret = r_prelude(z);
- if (ret == 0) goto lab0; /* call prelude, line 214 */
- if (ret < 0) return ret;
+ z->ket = z->c; /* [, line 208 */
+ { int m = z->l - z->c; (void) m; /* or, line 208 */
+ if (!(eq_s_b(z, 2, s_38))) goto lab2;
+ goto lab1;
+ lab2:
+ z->c = z->l - m;
+ if (!(eq_s_b(z, 2, s_39))) return 0;
}
- lab0:
- z->c = c;
- }
- { int c = z->c; /* do, line 215 */
- { int ret = r_mark_regions(z);
- if (ret == 0) goto lab1; /* call mark_regions, line 215 */
- if (ret < 0) return ret;
+ lab1:
+ z->bra = z->c; /* ], line 208 */
+ { int ret;
+ ret = slice_from_s(z, 1, s_40); /* <-, line 208 */
+ if (ret < 0) return ret;
}
- lab1:
- z->c = c;
- }
- z->lb = z->c; z->c = z->l; /* backwards, line 216 */
+ return 1;
+}
- { int m = z->l - z->c; (void) m; /* do, line 218 */
- { int m = z->l - z->c; (void) m; /* or, line 228 */
- { int m = z->l - z->c; (void) m; /* and, line 224 */
- { int m = z->l - z->c; (void) m; /* or, line 220 */
- { int ret = r_standard_suffix(z);
- if (ret == 0) goto lab6; /* call standard_suffix, line 220 */
- if (ret < 0) return ret;
- }
- goto lab5;
- lab6:
- z->c = z->l - m;
- { int ret = r_i_verb_suffix(z);
- if (ret == 0) goto lab7; /* call i_verb_suffix, line 221 */
+extern int french_UTF_8_stem(struct SN_env * z) {
+ { int c = z->c; /* do, line 214 */
+ { int ret = r_prelude(z);
+ if (ret == 0) goto lab0; /* call prelude, line 214 */
if (ret < 0) return ret;
- }
- goto lab5;
- lab7:
- z->c = z->l - m;
- { int ret = r_verb_suffix(z);
- if (ret == 0) goto lab4; /* call verb_suffix, line 222 */
+ }
+ lab0:
+ z->c = c;
+ }
+ { int c = z->c; /* do, line 215 */
+ { int ret = r_mark_regions(z);
+ if (ret == 0) goto lab1; /* call mark_regions, line 215 */
if (ret < 0) return ret;
- }
}
- lab5:
- z->c = z->l - m;
- { int m = z->l - z->c; (void) m; /* try, line 225 */
- z->ket = z->c; /* [, line 225 */
- { int m = z->l - z->c; (void) m; /* or, line 225 */
- if (!(eq_s_b(z, 1, s_41))) goto lab10;
- z->bra = z->c; /* ], line 225 */
- { int ret;
- ret = slice_from_s(z, 1, s_42); /* <-, line 225 */
- if (ret < 0) return ret;
+ lab1:
+ z->c = c;
+ }
+ z->lb = z->c; z->c = z->l; /* backwards, line 216 */
+
+ { int m = z->l - z->c; (void) m; /* do, line 218 */
+ { int m = z->l - z->c; (void) m; /* or, line 228 */
+ { int m = z->l - z->c; (void) m; /* and, line 224 */
+ { int m = z->l - z->c; (void) m; /* or, line 220 */
+ { int ret = r_standard_suffix(z);
+ if (ret == 0) goto lab6; /* call standard_suffix, line 220 */
+ if (ret < 0) return ret;
+ }
+ goto lab5;
+ lab6:
+ z->c = z->l - m;
+ { int ret = r_i_verb_suffix(z);
+ if (ret == 0) goto lab7; /* call i_verb_suffix, line 221 */
+ if (ret < 0) return ret;
+ }
+ goto lab5;
+ lab7:
+ z->c = z->l - m;
+ { int ret = r_verb_suffix(z);
+ if (ret == 0) goto lab4; /* call verb_suffix, line 222 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab5:
+ z->c = z->l - m;
+ { int m = z->l - z->c; (void) m; /* try, line 225 */
+ z->ket = z->c; /* [, line 225 */
+ { int m = z->l - z->c; (void) m; /* or, line 225 */
+ if (!(eq_s_b(z, 1, s_41))) goto lab10;
+ z->bra = z->c; /* ], line 225 */
+ { int ret;
+ ret = slice_from_s(z, 1, s_42); /* <-, line 225 */
+ if (ret < 0) return ret;
+ }
+ goto lab9;
+ lab10:
+ z->c = z->l - m;
+ if (!(eq_s_b(z, 2, s_43))) { z->c = z->l - m; goto lab8; }
+ z->bra = z->c; /* ], line 226 */
+ { int ret;
+ ret = slice_from_s(z, 1, s_44); /* <-, line 226 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab9:
+ lab8:
+ ;
+ }
}
- goto lab9;
- lab10:
+ goto lab3;
+ lab4:
z->c = z->l - m;
- if (!(eq_s_b(z, 2, s_43))) { z->c = z->l - m; goto lab8; }
- z->bra = z->c; /* ], line 226 */
- { int ret;
- ret = slice_from_s(z, 1, s_44); /* <-, line 226 */
- if (ret < 0) return ret;
+ { int ret = r_residual_suffix(z);
+ if (ret == 0) goto lab2; /* call residual_suffix, line 229 */
+ if (ret < 0) return ret;
}
- }
- lab9:
- lab8:
- ;
}
- }
- goto lab3;
- lab4:
- z->c = z->l - m;
- { int ret = r_residual_suffix(z);
- if (ret == 0) goto lab2; /* call residual_suffix, line 229 */
- if (ret < 0) return ret;
- }
+ lab3:
+ lab2:
+ z->c = z->l - m;
}
- lab3:
- lab2:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 234 */
- { int ret = r_un_double(z);
- if (ret == 0) goto lab11; /* call un_double, line 234 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 234 */
+ { int ret = r_un_double(z);
+ if (ret == 0) goto lab11; /* call un_double, line 234 */
+ if (ret < 0) return ret;
+ }
+ lab11:
+ z->c = z->l - m;
}
- lab11:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 235 */
- { int ret = r_un_accent(z);
- if (ret == 0) goto lab12; /* call un_accent, line 235 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 235 */
+ { int ret = r_un_accent(z);
+ if (ret == 0) goto lab12; /* call un_accent, line 235 */
+ if (ret < 0) return ret;
+ }
+ lab12:
+ z->c = z->l - m;
}
- lab12:
- z->c = z->l - m;
- }
- z->c = z->lb;
- { int c = z->c; /* do, line 237 */
- { int ret = r_postlude(z);
- if (ret == 0) goto lab13; /* call postlude, line 237 */
- if (ret < 0) return ret;
+ z->c = z->lb;
+ { int c = z->c; /* do, line 237 */
+ { int ret = r_postlude(z);
+ if (ret == 0) goto lab13; /* call postlude, line 237 */
+ if (ret < 0) return ret;
+ }
+ lab13:
+ z->c = c;
}
- lab13:
- z->c = c;
- }
- return 1;
+ return 1;
}
extern struct SN_env * french_UTF_8_create_env(void) { return SN_create_env(0, 3, 0); }
diff --git a/src/libstemmer/stem_UTF_8_french.h b/src/libstemmer/stem_UTF_8_french.h
index e566526..1894902 100644
--- a/src/libstemmer/stem_UTF_8_french.h
+++ b/src/libstemmer/stem_UTF_8_french.h
@@ -18,10 +18,10 @@
extern "C" {
#endif
-extern struct SN_env * french_UTF_8_create_env(void);
-extern void french_UTF_8_close_env(struct SN_env * z);
+ extern struct SN_env * french_UTF_8_create_env(void);
+ extern void french_UTF_8_close_env(struct SN_env * z);
-extern int french_UTF_8_stem(struct SN_env * z);
+ extern int french_UTF_8_stem(struct SN_env * z);
#ifdef __cplusplus
}
diff --git a/src/libstemmer/stem_UTF_8_german.c b/src/libstemmer/stem_UTF_8_german.c
index df4ff90..b4943e5 100644
--- a/src/libstemmer/stem_UTF_8_german.c
+++ b/src/libstemmer/stem_UTF_8_german.c
@@ -34,14 +34,14 @@ static symbol s_0_4[2] = { 0xC3, 0xB6 };
static symbol s_0_5[2] = { 0xC3, 0xBC };
static struct among a_0[6] =
-{
-/* 0 */ { 0, 0, -1, 6, 0},
-/* 1 */ { 1, s_0_1, 0, 2, 0},
-/* 2 */ { 1, s_0_2, 0, 1, 0},
-/* 3 */ { 2, s_0_3, 0, 3, 0},
-/* 4 */ { 2, s_0_4, 0, 4, 0},
-/* 5 */ { 2, s_0_5, 0, 5, 0}
-};
+ {
+ /* 0 */ { 0, 0, -1, 6, 0},
+ /* 1 */ { 1, s_0_1, 0, 2, 0},
+ /* 2 */ { 1, s_0_2, 0, 1, 0},
+ /* 3 */ { 2, s_0_3, 0, 3, 0},
+ /* 4 */ { 2, s_0_4, 0, 4, 0},
+ /* 5 */ { 2, s_0_5, 0, 5, 0}
+ };
static symbol s_1_0[1] = { 'e' };
static symbol s_1_1[2] = { 'e', 'm' };
@@ -52,15 +52,15 @@ static symbol s_1_5[1] = { 's' };
static symbol s_1_6[2] = { 'e', 's' };
static struct among a_1[7] =
-{
-/* 0 */ { 1, s_1_0, -1, 1, 0},
-/* 1 */ { 2, s_1_1, -1, 1, 0},
-/* 2 */ { 2, s_1_2, -1, 1, 0},
-/* 3 */ { 3, s_1_3, -1, 1, 0},
-/* 4 */ { 2, s_1_4, -1, 1, 0},
-/* 5 */ { 1, s_1_5, -1, 2, 0},
-/* 6 */ { 2, s_1_6, 5, 1, 0}
-};
+ {
+ /* 0 */ { 1, s_1_0, -1, 1, 0},
+ /* 1 */ { 2, s_1_1, -1, 1, 0},
+ /* 2 */ { 2, s_1_2, -1, 1, 0},
+ /* 3 */ { 3, s_1_3, -1, 1, 0},
+ /* 4 */ { 2, s_1_4, -1, 1, 0},
+ /* 5 */ { 1, s_1_5, -1, 2, 0},
+ /* 6 */ { 2, s_1_6, 5, 1, 0}
+ };
static symbol s_2_0[2] = { 'e', 'n' };
static symbol s_2_1[2] = { 'e', 'r' };
@@ -68,21 +68,21 @@ static symbol s_2_2[2] = { 's', 't' };
static symbol s_2_3[3] = { 'e', 's', 't' };
static struct among a_2[4] =
-{
-/* 0 */ { 2, s_2_0, -1, 1, 0},
-/* 1 */ { 2, s_2_1, -1, 1, 0},
-/* 2 */ { 2, s_2_2, -1, 2, 0},
-/* 3 */ { 3, s_2_3, 2, 1, 0}
-};
+ {
+ /* 0 */ { 2, s_2_0, -1, 1, 0},
+ /* 1 */ { 2, s_2_1, -1, 1, 0},
+ /* 2 */ { 2, s_2_2, -1, 2, 0},
+ /* 3 */ { 3, s_2_3, 2, 1, 0}
+ };
static symbol s_3_0[2] = { 'i', 'g' };
static symbol s_3_1[4] = { 'l', 'i', 'c', 'h' };
static struct among a_3[2] =
-{
-/* 0 */ { 2, s_3_0, -1, 1, 0},
-/* 1 */ { 4, s_3_1, -1, 1, 0}
-};
+ {
+ /* 0 */ { 2, s_3_0, -1, 1, 0},
+ /* 1 */ { 4, s_3_1, -1, 1, 0}
+ };
static symbol s_4_0[3] = { 'e', 'n', 'd' };
static symbol s_4_1[2] = { 'i', 'g' };
@@ -94,16 +94,16 @@ static symbol s_4_6[4] = { 'h', 'e', 'i', 't' };
static symbol s_4_7[4] = { 'k', 'e', 'i', 't' };
static struct among a_4[8] =
-{
-/* 0 */ { 3, s_4_0, -1, 1, 0},
-/* 1 */ { 2, s_4_1, -1, 2, 0},
-/* 2 */ { 3, s_4_2, -1, 1, 0},
-/* 3 */ { 4, s_4_3, -1, 3, 0},
-/* 4 */ { 4, s_4_4, -1, 2, 0},
-/* 5 */ { 2, s_4_5, -1, 2, 0},
-/* 6 */ { 4, s_4_6, -1, 3, 0},
-/* 7 */ { 4, s_4_7, -1, 4, 0}
-};
+ {
+ /* 0 */ { 3, s_4_0, -1, 1, 0},
+ /* 1 */ { 2, s_4_1, -1, 2, 0},
+ /* 2 */ { 3, s_4_2, -1, 1, 0},
+ /* 3 */ { 4, s_4_3, -1, 3, 0},
+ /* 4 */ { 4, s_4_4, -1, 2, 0},
+ /* 5 */ { 2, s_4_5, -1, 2, 0},
+ /* 6 */ { 4, s_4_6, -1, 3, 0},
+ /* 7 */ { 4, s_4_7, -1, 4, 0}
+ };
static unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 32, 8 };
@@ -129,408 +129,408 @@ static symbol s_14[] = { 'e', 'r' };
static symbol s_15[] = { 'e', 'n' };
static int r_prelude(struct SN_env * z) {
- { int c_test = z->c; /* test, line 30 */
- while(1) { /* repeat, line 30 */
- int c = z->c;
- { int c = z->c; /* or, line 33 */
- z->bra = z->c; /* [, line 32 */
- if (!(eq_s(z, 2, s_0))) goto lab2;
- z->ket = z->c; /* ], line 32 */
- { int ret;
- ret = slice_from_s(z, 2, s_1); /* <-, line 32 */
- if (ret < 0) return ret;
+ { int c_test = z->c; /* test, line 30 */
+ while(1) { /* repeat, line 30 */
+ int c = z->c;
+ { int c = z->c; /* or, line 33 */
+ z->bra = z->c; /* [, line 32 */
+ if (!(eq_s(z, 2, s_0))) goto lab2;
+ z->ket = z->c; /* ], line 32 */
+ { int ret;
+ ret = slice_from_s(z, 2, s_1); /* <-, line 32 */
+ if (ret < 0) return ret;
+ }
+ goto lab1;
+ lab2:
+ z->c = c;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* next, line 33 */
+ }
+ }
+ lab1:
+ continue;
+ lab0:
+ z->c = c;
+ break;
}
- goto lab1;
- lab2:
- z->c = c;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* next, line 33 */
- }
- }
- lab1:
- continue;
- lab0:
- z->c = c;
- break;
+ z->c = c_test;
}
- z->c = c_test;
- }
- while(1) { /* repeat, line 36 */
- int c = z->c;
- while(1) { /* goto, line 36 */
- int c = z->c;
- if (!(in_grouping_U(z, g_v, 97, 252))) goto lab4;
- z->bra = z->c; /* [, line 37 */
- { int c = z->c; /* or, line 37 */
- if (!(eq_s(z, 1, s_2))) goto lab6;
- z->ket = z->c; /* ], line 37 */
- if (!(in_grouping_U(z, g_v, 97, 252))) goto lab6;
- { int ret;
- ret = slice_from_s(z, 1, s_3); /* <-, line 37 */
- if (ret < 0) return ret;
+ while(1) { /* repeat, line 36 */
+ int c = z->c;
+ while(1) { /* goto, line 36 */
+ int c = z->c;
+ if (!(in_grouping_U(z, g_v, 97, 252))) goto lab4;
+ z->bra = z->c; /* [, line 37 */
+ { int c = z->c; /* or, line 37 */
+ if (!(eq_s(z, 1, s_2))) goto lab6;
+ z->ket = z->c; /* ], line 37 */
+ if (!(in_grouping_U(z, g_v, 97, 252))) goto lab6;
+ { int ret;
+ ret = slice_from_s(z, 1, s_3); /* <-, line 37 */
+ if (ret < 0) return ret;
+ }
+ goto lab5;
+ lab6:
+ z->c = c;
+ if (!(eq_s(z, 1, s_4))) goto lab4;
+ z->ket = z->c; /* ], line 38 */
+ if (!(in_grouping_U(z, g_v, 97, 252))) goto lab4;
+ { int ret;
+ ret = slice_from_s(z, 1, s_5); /* <-, line 38 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab5:
+ z->c = c;
+ break;
+ lab4:
+ z->c = c;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab3;
+ z->c = c; /* goto, line 36 */
+ }
}
- goto lab5;
- lab6:
+ continue;
+ lab3:
z->c = c;
- if (!(eq_s(z, 1, s_4))) goto lab4;
- z->ket = z->c; /* ], line 38 */
- if (!(in_grouping_U(z, g_v, 97, 252))) goto lab4;
- { int ret;
- ret = slice_from_s(z, 1, s_5); /* <-, line 38 */
- if (ret < 0) return ret;
- }
- }
- lab5:
- z->c = c;
- break;
- lab4:
- z->c = c;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab3;
- z->c = c; /* goto, line 36 */
- }
+ break;
}
- continue;
- lab3:
- z->c = c;
- break;
- }
- return 1;
+ return 1;
}
static int r_mark_regions(struct SN_env * z) {
- z->I[0] = z->l;
- z->I[1] = z->l;
- { int c_test = z->c; /* test, line 47 */
- { int c = skip_utf8(z->p, z->c, 0, z->l, + 3);
- if (c < 0) return 0;
- z->c = c; /* hop, line 47 */
- }
- z->I[2] = z->c; /* setmark x, line 47 */
- z->c = c_test;
- }
- while(1) { /* gopast, line 49 */
- if (!(in_grouping_U(z, g_v, 97, 252))) goto lab0;
- break;
- lab0:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 49 */
- }
- }
- while(1) { /* gopast, line 49 */
- if (!(out_grouping_U(z, g_v, 97, 252))) goto lab1;
- break;
- lab1:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 49 */
- }
- }
- z->I[0] = z->c; /* setmark p1, line 49 */
- /* try, line 50 */
- if (!(z->I[0] < z->I[2])) goto lab2;
- z->I[0] = z->I[2];
-lab2:
- while(1) { /* gopast, line 51 */
- if (!(in_grouping_U(z, g_v, 97, 252))) goto lab3;
- break;
- lab3:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 51 */
- }
- }
- while(1) { /* gopast, line 51 */
- if (!(out_grouping_U(z, g_v, 97, 252))) goto lab4;
- break;
- lab4:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 51 */
- }
- }
- z->I[1] = z->c; /* setmark p2, line 51 */
- return 1;
-}
-
-static int r_postlude(struct SN_env * z) {
- int among_var;
- while(1) { /* repeat, line 55 */
- int c = z->c;
- z->bra = z->c; /* [, line 57 */
- among_var = find_among(z, a_0, 6); /* substring, line 57 */
- if (!(among_var)) goto lab0;
- z->ket = z->c; /* ], line 57 */
- switch(among_var) {
- case 0: goto lab0;
- case 1:
- { int ret;
- ret = slice_from_s(z, 1, s_6); /* <-, line 58 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int ret;
- ret = slice_from_s(z, 1, s_7); /* <-, line 59 */
- if (ret < 0) return ret;
+ z->I[0] = z->l;
+ z->I[1] = z->l;
+ { int c_test = z->c; /* test, line 47 */
+ { int c = skip_utf8(z->p, z->c, 0, z->l, + 3);
+ if (c < 0) return 0;
+ z->c = c; /* hop, line 47 */
}
+ z->I[2] = z->c; /* setmark x, line 47 */
+ z->c = c_test;
+ }
+ while(1) { /* gopast, line 49 */
+ if (!(in_grouping_U(z, g_v, 97, 252))) goto lab0;
break;
- case 3:
- { int ret;
- ret = slice_from_s(z, 1, s_8); /* <-, line 60 */
- if (ret < 0) return ret;
+ lab0:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 49 */
}
+ }
+ while(1) { /* gopast, line 49 */
+ if (!(out_grouping_U(z, g_v, 97, 252))) goto lab1;
break;
- case 4:
- { int ret;
- ret = slice_from_s(z, 1, s_9); /* <-, line 61 */
- if (ret < 0) return ret;
+ lab1:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 49 */
}
+ }
+ z->I[0] = z->c; /* setmark p1, line 49 */
+ /* try, line 50 */
+ if (!(z->I[0] < z->I[2])) goto lab2;
+ z->I[0] = z->I[2];
+ lab2:
+ while(1) { /* gopast, line 51 */
+ if (!(in_grouping_U(z, g_v, 97, 252))) goto lab3;
break;
- case 5:
- { int ret;
- ret = slice_from_s(z, 1, s_10); /* <-, line 62 */
- if (ret < 0) return ret;
+ lab3:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 51 */
}
+ }
+ while(1) { /* gopast, line 51 */
+ if (!(out_grouping_U(z, g_v, 97, 252))) goto lab4;
break;
- case 6:
+ lab4:
{ int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* next, line 63 */
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 51 */
+ }
+ }
+ z->I[1] = z->c; /* setmark p2, line 51 */
+ return 1;
+}
+
+static int r_postlude(struct SN_env * z) {
+ int among_var;
+ while(1) { /* repeat, line 55 */
+ int c = z->c;
+ z->bra = z->c; /* [, line 57 */
+ among_var = find_among(z, a_0, 6); /* substring, line 57 */
+ if (!(among_var)) goto lab0;
+ z->ket = z->c; /* ], line 57 */
+ switch(among_var) {
+ case 0: goto lab0;
+ case 1:
+ { int ret;
+ ret = slice_from_s(z, 1, s_6); /* <-, line 58 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ { int ret;
+ ret = slice_from_s(z, 1, s_7); /* <-, line 59 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 3:
+ { int ret;
+ ret = slice_from_s(z, 1, s_8); /* <-, line 60 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 4:
+ { int ret;
+ ret = slice_from_s(z, 1, s_9); /* <-, line 61 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 5:
+ { int ret;
+ ret = slice_from_s(z, 1, s_10); /* <-, line 62 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 6:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* next, line 63 */
+ }
+ break;
}
+ continue;
+ lab0:
+ z->c = c;
break;
}
- continue;
- lab0:
- z->c = c;
- break;
- }
- return 1;
+ return 1;
}
static int r_R1(struct SN_env * z) {
- if (!(z->I[0] <= z->c)) return 0;
- return 1;
+ if (!(z->I[0] <= z->c)) return 0;
+ return 1;
}
static int r_R2(struct SN_env * z) {
- if (!(z->I[1] <= z->c)) return 0;
- return 1;
+ if (!(z->I[1] <= z->c)) return 0;
+ return 1;
}
static int r_standard_suffix(struct SN_env * z) {
- int among_var;
- { int m = z->l - z->c; (void) m; /* do, line 74 */
- z->ket = z->c; /* [, line 75 */
- among_var = find_among_b(z, a_1, 7); /* substring, line 75 */
- if (!(among_var)) goto lab0;
- z->bra = z->c; /* ], line 75 */
- { int ret = r_R1(z);
- if (ret == 0) goto lab0; /* call R1, line 75 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
- case 0: goto lab0;
- case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 77 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- if (!(in_grouping_b_U(z, g_s_ending, 98, 116))) goto lab0;
- { int ret;
- ret = slice_del(z); /* delete, line 80 */
- if (ret < 0) return ret;
- }
- break;
- }
- lab0:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 84 */
- z->ket = z->c; /* [, line 85 */
- among_var = find_among_b(z, a_2, 4); /* substring, line 85 */
- if (!(among_var)) goto lab1;
- z->bra = z->c; /* ], line 85 */
- { int ret = r_R1(z);
- if (ret == 0) goto lab1; /* call R1, line 85 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
- case 0: goto lab1;
- case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 87 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- if (!(in_grouping_b_U(z, g_st_ending, 98, 116))) goto lab1;
- { int c = skip_utf8(z->p, z->c, z->lb, z->l, - 3);
- if (c < 0) goto lab1;
- z->c = c; /* hop, line 90 */
+ int among_var;
+ { int m = z->l - z->c; (void) m; /* do, line 74 */
+ z->ket = z->c; /* [, line 75 */
+ among_var = find_among_b(z, a_1, 7); /* substring, line 75 */
+ if (!(among_var)) goto lab0;
+ z->bra = z->c; /* ], line 75 */
+ { int ret = r_R1(z);
+ if (ret == 0) goto lab0; /* call R1, line 75 */
+ if (ret < 0) return ret;
}
- { int ret;
- ret = slice_del(z); /* delete, line 90 */
- if (ret < 0) return ret;
+ switch(among_var) {
+ case 0: goto lab0;
+ case 1:
+ { int ret;
+ ret = slice_del(z); /* delete, line 77 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ if (!(in_grouping_b_U(z, g_s_ending, 98, 116))) goto lab0;
+ { int ret;
+ ret = slice_del(z); /* delete, line 80 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- break;
- }
- lab1:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 94 */
- z->ket = z->c; /* [, line 95 */
- among_var = find_among_b(z, a_4, 8); /* substring, line 95 */
- if (!(among_var)) goto lab2;
- z->bra = z->c; /* ], line 95 */
- { int ret = r_R2(z);
- if (ret == 0) goto lab2; /* call R2, line 95 */
- if (ret < 0) return ret;
+ lab0:
+ z->c = z->l - m;
}
- switch(among_var) {
- case 0: goto lab2;
- case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 97 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 98 */
- z->ket = z->c; /* [, line 98 */
- if (!(eq_s_b(z, 2, s_11))) { z->c = z->l - m; goto lab3; }
- z->bra = z->c; /* ], line 98 */
- { int m = z->l - z->c; (void) m; /* not, line 98 */
- if (!(eq_s_b(z, 1, s_12))) goto lab4;
- { z->c = z->l - m; goto lab3; }
- lab4:
- z->c = z->l - m;
- }
- { int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 98 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 98 */
+ { int m = z->l - z->c; (void) m; /* do, line 84 */
+ z->ket = z->c; /* [, line 85 */
+ among_var = find_among_b(z, a_2, 4); /* substring, line 85 */
+ if (!(among_var)) goto lab1;
+ z->bra = z->c; /* ], line 85 */
+ { int ret = r_R1(z);
+ if (ret == 0) goto lab1; /* call R1, line 85 */
if (ret < 0) return ret;
- }
- lab3:
- ;
- }
- break;
- case 2:
- { int m = z->l - z->c; (void) m; /* not, line 101 */
- if (!(eq_s_b(z, 1, s_13))) goto lab5;
- goto lab2;
- lab5:
- z->c = z->l - m;
}
- { int ret;
- ret = slice_del(z); /* delete, line 101 */
- if (ret < 0) return ret;
- }
- break;
- case 3:
- { int ret;
- ret = slice_del(z); /* delete, line 104 */
- if (ret < 0) return ret;
+ switch(among_var) {
+ case 0: goto lab1;
+ case 1:
+ { int ret;
+ ret = slice_del(z); /* delete, line 87 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ if (!(in_grouping_b_U(z, g_st_ending, 98, 116))) goto lab1;
+ { int c = skip_utf8(z->p, z->c, z->lb, z->l, - 3);
+ if (c < 0) goto lab1;
+ z->c = c; /* hop, line 90 */
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 90 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- { int m = z->l - z->c; (void) m; /* try, line 105 */
- z->ket = z->c; /* [, line 106 */
- { int m = z->l - z->c; (void) m; /* or, line 106 */
- if (!(eq_s_b(z, 2, s_14))) goto lab8;
- goto lab7;
- lab8:
- z->c = z->l - m;
- if (!(eq_s_b(z, 2, s_15))) { z->c = z->l - m; goto lab6; }
- }
- lab7:
- z->bra = z->c; /* ], line 106 */
- { int ret = r_R1(z);
- if (ret == 0) { z->c = z->l - m; goto lab6; } /* call R1, line 106 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 106 */
+ lab1:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 94 */
+ z->ket = z->c; /* [, line 95 */
+ among_var = find_among_b(z, a_4, 8); /* substring, line 95 */
+ if (!(among_var)) goto lab2;
+ z->bra = z->c; /* ], line 95 */
+ { int ret = r_R2(z);
+ if (ret == 0) goto lab2; /* call R2, line 95 */
if (ret < 0) return ret;
- }
- lab6:
- ;
- }
- break;
- case 4:
- { int ret;
- ret = slice_del(z); /* delete, line 110 */
- if (ret < 0) return ret;
}
- { int m = z->l - z->c; (void) m; /* try, line 111 */
- z->ket = z->c; /* [, line 112 */
- among_var = find_among_b(z, a_3, 2); /* substring, line 112 */
- if (!(among_var)) { z->c = z->l - m; goto lab9; }
- z->bra = z->c; /* ], line 112 */
- { int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab9; } /* call R2, line 112 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
- case 0: { z->c = z->l - m; goto lab9; }
- case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 114 */
+ switch(among_var) {
+ case 0: goto lab2;
+ case 1:
+ { int ret;
+ ret = slice_del(z); /* delete, line 97 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 98 */
+ z->ket = z->c; /* [, line 98 */
+ if (!(eq_s_b(z, 2, s_11))) { z->c = z->l - m; goto lab3; }
+ z->bra = z->c; /* ], line 98 */
+ { int m = z->l - z->c; (void) m; /* not, line 98 */
+ if (!(eq_s_b(z, 1, s_12))) goto lab4;
+ { z->c = z->l - m; goto lab3; }
+ lab4:
+ z->c = z->l - m;
+ }
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 98 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 98 */
+ if (ret < 0) return ret;
+ }
+ lab3:
+ ;
+ }
+ break;
+ case 2:
+ { int m = z->l - z->c; (void) m; /* not, line 101 */
+ if (!(eq_s_b(z, 1, s_13))) goto lab5;
+ goto lab2;
+ lab5:
+ z->c = z->l - m;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 101 */
if (ret < 0) return ret;
- }
- break;
- }
- lab9:
- ;
+ }
+ break;
+ case 3:
+ { int ret;
+ ret = slice_del(z); /* delete, line 104 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 105 */
+ z->ket = z->c; /* [, line 106 */
+ { int m = z->l - z->c; (void) m; /* or, line 106 */
+ if (!(eq_s_b(z, 2, s_14))) goto lab8;
+ goto lab7;
+ lab8:
+ z->c = z->l - m;
+ if (!(eq_s_b(z, 2, s_15))) { z->c = z->l - m; goto lab6; }
+ }
+ lab7:
+ z->bra = z->c; /* ], line 106 */
+ { int ret = r_R1(z);
+ if (ret == 0) { z->c = z->l - m; goto lab6; } /* call R1, line 106 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 106 */
+ if (ret < 0) return ret;
+ }
+ lab6:
+ ;
+ }
+ break;
+ case 4:
+ { int ret;
+ ret = slice_del(z); /* delete, line 110 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 111 */
+ z->ket = z->c; /* [, line 112 */
+ among_var = find_among_b(z, a_3, 2); /* substring, line 112 */
+ if (!(among_var)) { z->c = z->l - m; goto lab9; }
+ z->bra = z->c; /* ], line 112 */
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab9; } /* call R2, line 112 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
+ case 0: { z->c = z->l - m; goto lab9; }
+ case 1:
+ { int ret;
+ ret = slice_del(z); /* delete, line 114 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ lab9:
+ ;
+ }
+ break;
}
- break;
+ lab2:
+ z->c = z->l - m;
}
- lab2:
- z->c = z->l - m;
- }
- return 1;
+ return 1;
}
extern int german_UTF_8_stem(struct SN_env * z) {
- { int c = z->c; /* do, line 125 */
- { int ret = r_prelude(z);
- if (ret == 0) goto lab0; /* call prelude, line 125 */
- if (ret < 0) return ret;
+ { int c = z->c; /* do, line 125 */
+ { int ret = r_prelude(z);
+ if (ret == 0) goto lab0; /* call prelude, line 125 */
+ if (ret < 0) return ret;
+ }
+ lab0:
+ z->c = c;
}
- lab0:
- z->c = c;
- }
- { int c = z->c; /* do, line 126 */
- { int ret = r_mark_regions(z);
- if (ret == 0) goto lab1; /* call mark_regions, line 126 */
- if (ret < 0) return ret;
+ { int c = z->c; /* do, line 126 */
+ { int ret = r_mark_regions(z);
+ if (ret == 0) goto lab1; /* call mark_regions, line 126 */
+ if (ret < 0) return ret;
+ }
+ lab1:
+ z->c = c;
}
- lab1:
- z->c = c;
- }
- z->lb = z->c; z->c = z->l; /* backwards, line 127 */
+ z->lb = z->c; z->c = z->l; /* backwards, line 127 */
- { int m = z->l - z->c; (void) m; /* do, line 128 */
- { int ret = r_standard_suffix(z);
- if (ret == 0) goto lab2; /* call standard_suffix, line 128 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 128 */
+ { int ret = r_standard_suffix(z);
+ if (ret == 0) goto lab2; /* call standard_suffix, line 128 */
+ if (ret < 0) return ret;
+ }
+ lab2:
+ z->c = z->l - m;
}
- lab2:
- z->c = z->l - m;
- }
- z->c = z->lb;
- { int c = z->c; /* do, line 129 */
- { int ret = r_postlude(z);
- if (ret == 0) goto lab3; /* call postlude, line 129 */
- if (ret < 0) return ret;
+ z->c = z->lb;
+ { int c = z->c; /* do, line 129 */
+ { int ret = r_postlude(z);
+ if (ret == 0) goto lab3; /* call postlude, line 129 */
+ if (ret < 0) return ret;
+ }
+ lab3:
+ z->c = c;
}
- lab3:
- z->c = c;
- }
- return 1;
+ return 1;
}
extern struct SN_env * german_UTF_8_create_env(void) { return SN_create_env(0, 3, 0); }
diff --git a/src/libstemmer/stem_UTF_8_german.h b/src/libstemmer/stem_UTF_8_german.h
index ed99869..ad000e8 100644
--- a/src/libstemmer/stem_UTF_8_german.h
+++ b/src/libstemmer/stem_UTF_8_german.h
@@ -18,10 +18,10 @@
extern "C" {
#endif
-extern struct SN_env * german_UTF_8_create_env(void);
-extern void german_UTF_8_close_env(struct SN_env * z);
+ extern struct SN_env * german_UTF_8_create_env(void);
+ extern void german_UTF_8_close_env(struct SN_env * z);
-extern int german_UTF_8_stem(struct SN_env * z);
+ extern int german_UTF_8_stem(struct SN_env * z);
#ifdef __cplusplus
}
diff --git a/src/libstemmer/stem_UTF_8_hungarian.c b/src/libstemmer/stem_UTF_8_hungarian.c
index b7677fc..182c7bf 100644
--- a/src/libstemmer/stem_UTF_8_hungarian.c
+++ b/src/libstemmer/stem_UTF_8_hungarian.c
@@ -46,25 +46,25 @@ static symbol s_0_6[2] = { 't', 'y' };
static symbol s_0_7[2] = { 'z', 's' };
static struct among a_0[8] =
-{
-/* 0 */ { 2, s_0_0, -1, -1, 0},
-/* 1 */ { 3, s_0_1, -1, -1, 0},
-/* 2 */ { 2, s_0_2, -1, -1, 0},
-/* 3 */ { 2, s_0_3, -1, -1, 0},
-/* 4 */ { 2, s_0_4, -1, -1, 0},
-/* 5 */ { 2, s_0_5, -1, -1, 0},
-/* 6 */ { 2, s_0_6, -1, -1, 0},
-/* 7 */ { 2, s_0_7, -1, -1, 0}
-};
+ {
+ /* 0 */ { 2, s_0_0, -1, -1, 0},
+ /* 1 */ { 3, s_0_1, -1, -1, 0},
+ /* 2 */ { 2, s_0_2, -1, -1, 0},
+ /* 3 */ { 2, s_0_3, -1, -1, 0},
+ /* 4 */ { 2, s_0_4, -1, -1, 0},
+ /* 5 */ { 2, s_0_5, -1, -1, 0},
+ /* 6 */ { 2, s_0_6, -1, -1, 0},
+ /* 7 */ { 2, s_0_7, -1, -1, 0}
+ };
static symbol s_1_0[2] = { 0xC3, 0xA1 };
static symbol s_1_1[2] = { 0xC3, 0xA9 };
static struct among a_1[2] =
-{
-/* 0 */ { 2, s_1_0, -1, 1, 0},
-/* 1 */ { 2, s_1_1, -1, 2, 0}
-};
+ {
+ /* 0 */ { 2, s_1_0, -1, 1, 0},
+ /* 1 */ { 2, s_1_1, -1, 2, 0}
+ };
static symbol s_2_0[2] = { 'b', 'b' };
static symbol s_2_1[2] = { 'c', 'c' };
@@ -91,40 +91,40 @@ static symbol s_2_21[3] = { 's', 's', 'z' };
static symbol s_2_22[2] = { 'z', 'z' };
static struct among a_2[23] =
-{
-/* 0 */ { 2, s_2_0, -1, -1, 0},
-/* 1 */ { 2, s_2_1, -1, -1, 0},
-/* 2 */ { 2, s_2_2, -1, -1, 0},
-/* 3 */ { 2, s_2_3, -1, -1, 0},
-/* 4 */ { 2, s_2_4, -1, -1, 0},
-/* 5 */ { 2, s_2_5, -1, -1, 0},
-/* 6 */ { 2, s_2_6, -1, -1, 0},
-/* 7 */ { 2, s_2_7, -1, -1, 0},
-/* 8 */ { 2, s_2_8, -1, -1, 0},
-/* 9 */ { 2, s_2_9, -1, -1, 0},
-/* 10 */ { 2, s_2_10, -1, -1, 0},
-/* 11 */ { 2, s_2_11, -1, -1, 0},
-/* 12 */ { 3, s_2_12, -1, -1, 0},
-/* 13 */ { 2, s_2_13, -1, -1, 0},
-/* 14 */ { 3, s_2_14, -1, -1, 0},
-/* 15 */ { 2, s_2_15, -1, -1, 0},
-/* 16 */ { 2, s_2_16, -1, -1, 0},
-/* 17 */ { 3, s_2_17, -1, -1, 0},
-/* 18 */ { 3, s_2_18, -1, -1, 0},
-/* 19 */ { 3, s_2_19, -1, -1, 0},
-/* 20 */ { 3, s_2_20, -1, -1, 0},
-/* 21 */ { 3, s_2_21, -1, -1, 0},
-/* 22 */ { 2, s_2_22, -1, -1, 0}
-};
+ {
+ /* 0 */ { 2, s_2_0, -1, -1, 0},
+ /* 1 */ { 2, s_2_1, -1, -1, 0},
+ /* 2 */ { 2, s_2_2, -1, -1, 0},
+ /* 3 */ { 2, s_2_3, -1, -1, 0},
+ /* 4 */ { 2, s_2_4, -1, -1, 0},
+ /* 5 */ { 2, s_2_5, -1, -1, 0},
+ /* 6 */ { 2, s_2_6, -1, -1, 0},
+ /* 7 */ { 2, s_2_7, -1, -1, 0},
+ /* 8 */ { 2, s_2_8, -1, -1, 0},
+ /* 9 */ { 2, s_2_9, -1, -1, 0},
+ /* 10 */ { 2, s_2_10, -1, -1, 0},
+ /* 11 */ { 2, s_2_11, -1, -1, 0},
+ /* 12 */ { 3, s_2_12, -1, -1, 0},
+ /* 13 */ { 2, s_2_13, -1, -1, 0},
+ /* 14 */ { 3, s_2_14, -1, -1, 0},
+ /* 15 */ { 2, s_2_15, -1, -1, 0},
+ /* 16 */ { 2, s_2_16, -1, -1, 0},
+ /* 17 */ { 3, s_2_17, -1, -1, 0},
+ /* 18 */ { 3, s_2_18, -1, -1, 0},
+ /* 19 */ { 3, s_2_19, -1, -1, 0},
+ /* 20 */ { 3, s_2_20, -1, -1, 0},
+ /* 21 */ { 3, s_2_21, -1, -1, 0},
+ /* 22 */ { 2, s_2_22, -1, -1, 0}
+ };
static symbol s_3_0[2] = { 'a', 'l' };
static symbol s_3_1[2] = { 'e', 'l' };
static struct among a_3[2] =
-{
-/* 0 */ { 2, s_3_0, -1, 1, 0},
-/* 1 */ { 2, s_3_1, -1, 2, 0}
-};
+ {
+ /* 0 */ { 2, s_3_0, -1, 1, 0},
+ /* 1 */ { 2, s_3_1, -1, 2, 0}
+ };
static symbol s_4_0[2] = { 'b', 'a' };
static symbol s_4_1[2] = { 'r', 'a' };
@@ -172,63 +172,63 @@ static symbol s_4_42[3] = { 'v', 0xC3, 0xA1 };
static symbol s_4_43[3] = { 'v', 0xC3, 0xA9 };
static struct among a_4[44] =
-{
-/* 0 */ { 2, s_4_0, -1, -1, 0},
-/* 1 */ { 2, s_4_1, -1, -1, 0},
-/* 2 */ { 2, s_4_2, -1, -1, 0},
-/* 3 */ { 2, s_4_3, -1, -1, 0},
-/* 4 */ { 2, s_4_4, -1, -1, 0},
-/* 5 */ { 3, s_4_5, -1, -1, 0},
-/* 6 */ { 3, s_4_6, -1, -1, 0},
-/* 7 */ { 3, s_4_7, -1, -1, 0},
-/* 8 */ { 3, s_4_8, -1, -1, 0},
-/* 9 */ { 2, s_4_9, -1, -1, 0},
-/* 10 */ { 4, s_4_10, -1, -1, 0},
-/* 11 */ { 4, s_4_11, -1, -1, 0},
-/* 12 */ { 4, s_4_12, -1, -1, 0},
-/* 13 */ { 4, s_4_13, -1, -1, 0},
-/* 14 */ { 4, s_4_14, -1, -1, 0},
-/* 15 */ { 4, s_4_15, -1, -1, 0},
-/* 16 */ { 4, s_4_16, -1, -1, 0},
-/* 17 */ { 4, s_4_17, -1, -1, 0},
-/* 18 */ { 3, s_4_18, -1, -1, 0},
-/* 19 */ { 1, s_4_19, -1, -1, 0},
-/* 20 */ { 2, s_4_20, 19, -1, 0},
-/* 21 */ { 3, s_4_21, 20, -1, 0},
-/* 22 */ { 2, s_4_22, 19, -1, 0},
-/* 23 */ { 3, s_4_23, 22, -1, 0},
-/* 24 */ { 7, s_4_24, 22, -1, 0},
-/* 25 */ { 2, s_4_25, 19, -1, 0},
-/* 26 */ { 3, s_4_26, 19, -1, 0},
-/* 27 */ { 5, s_4_27, -1, -1, 0},
-/* 28 */ { 3, s_4_28, -1, -1, 0},
-/* 29 */ { 1, s_4_29, -1, -1, 0},
-/* 30 */ { 2, s_4_30, 29, -1, 0},
-/* 31 */ { 2, s_4_31, 29, -1, 0},
-/* 32 */ { 5, s_4_32, 29, -1, 0},
-/* 33 */ { 7, s_4_33, 32, -1, 0},
-/* 34 */ { 7, s_4_34, 32, -1, 0},
-/* 35 */ { 7, s_4_35, 32, -1, 0},
-/* 36 */ { 2, s_4_36, 29, -1, 0},
-/* 37 */ { 4, s_4_37, 29, -1, 0},
-/* 38 */ { 3, s_4_38, 29, -1, 0},
-/* 39 */ { 3, s_4_39, -1, -1, 0},
-/* 40 */ { 3, s_4_40, -1, -1, 0},
-/* 41 */ { 4, s_4_41, -1, -1, 0},
-/* 42 */ { 3, s_4_42, -1, -1, 0},
-/* 43 */ { 3, s_4_43, -1, -1, 0}
-};
+ {
+ /* 0 */ { 2, s_4_0, -1, -1, 0},
+ /* 1 */ { 2, s_4_1, -1, -1, 0},
+ /* 2 */ { 2, s_4_2, -1, -1, 0},
+ /* 3 */ { 2, s_4_3, -1, -1, 0},
+ /* 4 */ { 2, s_4_4, -1, -1, 0},
+ /* 5 */ { 3, s_4_5, -1, -1, 0},
+ /* 6 */ { 3, s_4_6, -1, -1, 0},
+ /* 7 */ { 3, s_4_7, -1, -1, 0},
+ /* 8 */ { 3, s_4_8, -1, -1, 0},
+ /* 9 */ { 2, s_4_9, -1, -1, 0},
+ /* 10 */ { 4, s_4_10, -1, -1, 0},
+ /* 11 */ { 4, s_4_11, -1, -1, 0},
+ /* 12 */ { 4, s_4_12, -1, -1, 0},
+ /* 13 */ { 4, s_4_13, -1, -1, 0},
+ /* 14 */ { 4, s_4_14, -1, -1, 0},
+ /* 15 */ { 4, s_4_15, -1, -1, 0},
+ /* 16 */ { 4, s_4_16, -1, -1, 0},
+ /* 17 */ { 4, s_4_17, -1, -1, 0},
+ /* 18 */ { 3, s_4_18, -1, -1, 0},
+ /* 19 */ { 1, s_4_19, -1, -1, 0},
+ /* 20 */ { 2, s_4_20, 19, -1, 0},
+ /* 21 */ { 3, s_4_21, 20, -1, 0},
+ /* 22 */ { 2, s_4_22, 19, -1, 0},
+ /* 23 */ { 3, s_4_23, 22, -1, 0},
+ /* 24 */ { 7, s_4_24, 22, -1, 0},
+ /* 25 */ { 2, s_4_25, 19, -1, 0},
+ /* 26 */ { 3, s_4_26, 19, -1, 0},
+ /* 27 */ { 5, s_4_27, -1, -1, 0},
+ /* 28 */ { 3, s_4_28, -1, -1, 0},
+ /* 29 */ { 1, s_4_29, -1, -1, 0},
+ /* 30 */ { 2, s_4_30, 29, -1, 0},
+ /* 31 */ { 2, s_4_31, 29, -1, 0},
+ /* 32 */ { 5, s_4_32, 29, -1, 0},
+ /* 33 */ { 7, s_4_33, 32, -1, 0},
+ /* 34 */ { 7, s_4_34, 32, -1, 0},
+ /* 35 */ { 7, s_4_35, 32, -1, 0},
+ /* 36 */ { 2, s_4_36, 29, -1, 0},
+ /* 37 */ { 4, s_4_37, 29, -1, 0},
+ /* 38 */ { 3, s_4_38, 29, -1, 0},
+ /* 39 */ { 3, s_4_39, -1, -1, 0},
+ /* 40 */ { 3, s_4_40, -1, -1, 0},
+ /* 41 */ { 4, s_4_41, -1, -1, 0},
+ /* 42 */ { 3, s_4_42, -1, -1, 0},
+ /* 43 */ { 3, s_4_43, -1, -1, 0}
+ };
static symbol s_5_0[3] = { 0xC3, 0xA1, 'n' };
static symbol s_5_1[3] = { 0xC3, 0xA9, 'n' };
static symbol s_5_2[8] = { 0xC3, 0xA1, 'n', 'k', 0xC3, 0xA9, 'n', 't' };
static struct among a_5[3] =
-{
-/* 0 */ { 3, s_5_0, -1, 2, 0},
-/* 1 */ { 3, s_5_1, -1, 1, 0},
-/* 2 */ { 8, s_5_2, -1, 3, 0}
-};
+ {
+ /* 0 */ { 3, s_5_0, -1, 2, 0},
+ /* 1 */ { 3, s_5_1, -1, 1, 0},
+ /* 2 */ { 8, s_5_2, -1, 3, 0}
+ };
static symbol s_6_0[4] = { 's', 't', 'u', 'l' };
static symbol s_6_1[5] = { 'a', 's', 't', 'u', 'l' };
@@ -238,23 +238,23 @@ static symbol s_6_4[6] = { 'e', 's', 't', 0xC3, 0xBC, 'l' };
static symbol s_6_5[7] = { 0xC3, 0xA9, 's', 't', 0xC3, 0xBC, 'l' };
static struct among a_6[6] =
-{
-/* 0 */ { 4, s_6_0, -1, 2, 0},
-/* 1 */ { 5, s_6_1, 0, 1, 0},
-/* 2 */ { 6, s_6_2, 0, 3, 0},
-/* 3 */ { 5, s_6_3, -1, 2, 0},
-/* 4 */ { 6, s_6_4, 3, 1, 0},
-/* 5 */ { 7, s_6_5, 3, 4, 0}
-};
+ {
+ /* 0 */ { 4, s_6_0, -1, 2, 0},
+ /* 1 */ { 5, s_6_1, 0, 1, 0},
+ /* 2 */ { 6, s_6_2, 0, 3, 0},
+ /* 3 */ { 5, s_6_3, -1, 2, 0},
+ /* 4 */ { 6, s_6_4, 3, 1, 0},
+ /* 5 */ { 7, s_6_5, 3, 4, 0}
+ };
static symbol s_7_0[2] = { 0xC3, 0xA1 };
static symbol s_7_1[2] = { 0xC3, 0xA9 };
static struct among a_7[2] =
-{
-/* 0 */ { 2, s_7_0, -1, 1, 0},
-/* 1 */ { 2, s_7_1, -1, 2, 0}
-};
+ {
+ /* 0 */ { 2, s_7_0, -1, 1, 0},
+ /* 1 */ { 2, s_7_1, -1, 2, 0}
+ };
static symbol s_8_0[1] = { 'k' };
static symbol s_8_1[2] = { 'a', 'k' };
@@ -265,15 +265,15 @@ static symbol s_8_5[3] = { 0xC3, 0xA9, 'k' };
static symbol s_8_6[3] = { 0xC3, 0xB6, 'k' };
static struct among a_8[7] =
-{
-/* 0 */ { 1, s_8_0, -1, 7, 0},
-/* 1 */ { 2, s_8_1, 0, 4, 0},
-/* 2 */ { 2, s_8_2, 0, 6, 0},
-/* 3 */ { 2, s_8_3, 0, 5, 0},
-/* 4 */ { 3, s_8_4, 0, 1, 0},
-/* 5 */ { 3, s_8_5, 0, 2, 0},
-/* 6 */ { 3, s_8_6, 0, 3, 0}
-};
+ {
+ /* 0 */ { 1, s_8_0, -1, 7, 0},
+ /* 1 */ { 2, s_8_1, 0, 4, 0},
+ /* 2 */ { 2, s_8_2, 0, 6, 0},
+ /* 3 */ { 2, s_8_3, 0, 5, 0},
+ /* 4 */ { 3, s_8_4, 0, 1, 0},
+ /* 5 */ { 3, s_8_5, 0, 2, 0},
+ /* 6 */ { 3, s_8_6, 0, 3, 0}
+ };
static symbol s_9_0[3] = { 0xC3, 0xA9, 'i' };
static symbol s_9_1[5] = { 0xC3, 0xA1, 0xC3, 0xA9, 'i' };
@@ -289,20 +289,20 @@ static symbol s_9_10[5] = { 0xC3, 0xB6, 'k', 0xC3, 0xA9 };
static symbol s_9_11[4] = { 0xC3, 0xA9, 0xC3, 0xA9 };
static struct among a_9[12] =
-{
-/* 0 */ { 3, s_9_0, -1, 7, 0},
-/* 1 */ { 5, s_9_1, 0, 6, 0},
-/* 2 */ { 5, s_9_2, 0, 5, 0},
-/* 3 */ { 2, s_9_3, -1, 9, 0},
-/* 4 */ { 3, s_9_4, 3, 4, 0},
-/* 5 */ { 4, s_9_5, 4, 1, 0},
-/* 6 */ { 4, s_9_6, 4, 1, 0},
-/* 7 */ { 4, s_9_7, 4, 1, 0},
-/* 8 */ { 5, s_9_8, 4, 3, 0},
-/* 9 */ { 5, s_9_9, 4, 2, 0},
-/* 10 */ { 5, s_9_10, 4, 1, 0},
-/* 11 */ { 4, s_9_11, 3, 8, 0}
-};
+ {
+ /* 0 */ { 3, s_9_0, -1, 7, 0},
+ /* 1 */ { 5, s_9_1, 0, 6, 0},
+ /* 2 */ { 5, s_9_2, 0, 5, 0},
+ /* 3 */ { 2, s_9_3, -1, 9, 0},
+ /* 4 */ { 3, s_9_4, 3, 4, 0},
+ /* 5 */ { 4, s_9_5, 4, 1, 0},
+ /* 6 */ { 4, s_9_6, 4, 1, 0},
+ /* 7 */ { 4, s_9_7, 4, 1, 0},
+ /* 8 */ { 5, s_9_8, 4, 3, 0},
+ /* 9 */ { 5, s_9_9, 4, 2, 0},
+ /* 10 */ { 5, s_9_10, 4, 1, 0},
+ /* 11 */ { 4, s_9_11, 3, 8, 0}
+ };
static symbol s_10_0[1] = { 'a' };
static symbol s_10_1[2] = { 'j', 'a' };
@@ -337,39 +337,39 @@ static symbol s_10_29[2] = { 0xC3, 0xA1 };
static symbol s_10_30[2] = { 0xC3, 0xA9 };
static struct among a_10[31] =
-{
-/* 0 */ { 1, s_10_0, -1, 18, 0},
-/* 1 */ { 2, s_10_1, 0, 17, 0},
-/* 2 */ { 1, s_10_2, -1, 16, 0},
-/* 3 */ { 2, s_10_3, 2, 13, 0},
-/* 4 */ { 2, s_10_4, 2, 13, 0},
-/* 5 */ { 2, s_10_5, 2, 13, 0},
-/* 6 */ { 3, s_10_6, 2, 14, 0},
-/* 7 */ { 3, s_10_7, 2, 15, 0},
-/* 8 */ { 3, s_10_8, 2, 13, 0},
-/* 9 */ { 1, s_10_9, -1, 18, 0},
-/* 10 */ { 2, s_10_10, 9, 17, 0},
-/* 11 */ { 2, s_10_11, -1, 4, 0},
-/* 12 */ { 3, s_10_12, 11, 1, 0},
-/* 13 */ { 4, s_10_13, 11, 2, 0},
-/* 14 */ { 4, s_10_14, 11, 3, 0},
-/* 15 */ { 4, s_10_15, 11, 1, 0},
-/* 16 */ { 2, s_10_16, -1, 8, 0},
-/* 17 */ { 3, s_10_17, 16, 7, 0},
-/* 18 */ { 5, s_10_18, 17, 5, 0},
-/* 19 */ { 3, s_10_19, -1, 8, 0},
-/* 20 */ { 4, s_10_20, 19, 7, 0},
-/* 21 */ { 6, s_10_21, 20, 6, 0},
-/* 22 */ { 1, s_10_22, -1, 12, 0},
-/* 23 */ { 2, s_10_23, 22, 9, 0},
-/* 24 */ { 2, s_10_24, 22, 9, 0},
-/* 25 */ { 2, s_10_25, 22, 9, 0},
-/* 26 */ { 3, s_10_26, 22, 10, 0},
-/* 27 */ { 3, s_10_27, 22, 11, 0},
-/* 28 */ { 1, s_10_28, -1, 18, 0},
-/* 29 */ { 2, s_10_29, -1, 19, 0},
-/* 30 */ { 2, s_10_30, -1, 20, 0}
-};
+ {
+ /* 0 */ { 1, s_10_0, -1, 18, 0},
+ /* 1 */ { 2, s_10_1, 0, 17, 0},
+ /* 2 */ { 1, s_10_2, -1, 16, 0},
+ /* 3 */ { 2, s_10_3, 2, 13, 0},
+ /* 4 */ { 2, s_10_4, 2, 13, 0},
+ /* 5 */ { 2, s_10_5, 2, 13, 0},
+ /* 6 */ { 3, s_10_6, 2, 14, 0},
+ /* 7 */ { 3, s_10_7, 2, 15, 0},
+ /* 8 */ { 3, s_10_8, 2, 13, 0},
+ /* 9 */ { 1, s_10_9, -1, 18, 0},
+ /* 10 */ { 2, s_10_10, 9, 17, 0},
+ /* 11 */ { 2, s_10_11, -1, 4, 0},
+ /* 12 */ { 3, s_10_12, 11, 1, 0},
+ /* 13 */ { 4, s_10_13, 11, 2, 0},
+ /* 14 */ { 4, s_10_14, 11, 3, 0},
+ /* 15 */ { 4, s_10_15, 11, 1, 0},
+ /* 16 */ { 2, s_10_16, -1, 8, 0},
+ /* 17 */ { 3, s_10_17, 16, 7, 0},
+ /* 18 */ { 5, s_10_18, 17, 5, 0},
+ /* 19 */ { 3, s_10_19, -1, 8, 0},
+ /* 20 */ { 4, s_10_20, 19, 7, 0},
+ /* 21 */ { 6, s_10_21, 20, 6, 0},
+ /* 22 */ { 1, s_10_22, -1, 12, 0},
+ /* 23 */ { 2, s_10_23, 22, 9, 0},
+ /* 24 */ { 2, s_10_24, 22, 9, 0},
+ /* 25 */ { 2, s_10_25, 22, 9, 0},
+ /* 26 */ { 3, s_10_26, 22, 10, 0},
+ /* 27 */ { 3, s_10_27, 22, 11, 0},
+ /* 28 */ { 1, s_10_28, -1, 18, 0},
+ /* 29 */ { 2, s_10_29, -1, 19, 0},
+ /* 30 */ { 2, s_10_30, -1, 20, 0}
+ };
static symbol s_11_0[2] = { 'i', 'd' };
static symbol s_11_1[3] = { 'a', 'i', 'd' };
@@ -415,50 +415,50 @@ static symbol s_11_40[4] = { 0xC3, 0xA1, 'i', 'm' };
static symbol s_11_41[4] = { 0xC3, 0xA9, 'i', 'm' };
static struct among a_11[42] =
-{
-/* 0 */ { 2, s_11_0, -1, 10, 0},
-/* 1 */ { 3, s_11_1, 0, 9, 0},
-/* 2 */ { 4, s_11_2, 1, 6, 0},
-/* 3 */ { 3, s_11_3, 0, 9, 0},
-/* 4 */ { 4, s_11_4, 3, 6, 0},
-/* 5 */ { 4, s_11_5, 0, 7, 0},
-/* 6 */ { 4, s_11_6, 0, 8, 0},
-/* 7 */ { 1, s_11_7, -1, 15, 0},
-/* 8 */ { 2, s_11_8, 7, 14, 0},
-/* 9 */ { 3, s_11_9, 8, 11, 0},
-/* 10 */ { 2, s_11_10, 7, 14, 0},
-/* 11 */ { 3, s_11_11, 10, 11, 0},
-/* 12 */ { 3, s_11_12, 7, 12, 0},
-/* 13 */ { 3, s_11_13, 7, 13, 0},
-/* 14 */ { 4, s_11_14, -1, 24, 0},
-/* 15 */ { 5, s_11_15, 14, 21, 0},
-/* 16 */ { 6, s_11_16, 15, 20, 0},
-/* 17 */ { 6, s_11_17, 14, 23, 0},
-/* 18 */ { 2, s_11_18, -1, 29, 0},
-/* 19 */ { 3, s_11_19, 18, 26, 0},
-/* 20 */ { 4, s_11_20, 19, 25, 0},
-/* 21 */ { 3, s_11_21, 18, 26, 0},
-/* 22 */ { 4, s_11_22, 21, 25, 0},
-/* 23 */ { 4, s_11_23, 18, 27, 0},
-/* 24 */ { 4, s_11_24, 18, 28, 0},
-/* 25 */ { 3, s_11_25, -1, 20, 0},
-/* 26 */ { 4, s_11_26, 25, 17, 0},
-/* 27 */ { 5, s_11_27, 26, 16, 0},
-/* 28 */ { 4, s_11_28, 25, 17, 0},
-/* 29 */ { 5, s_11_29, 28, 16, 0},
-/* 30 */ { 5, s_11_30, 25, 18, 0},
-/* 31 */ { 5, s_11_31, 25, 19, 0},
-/* 32 */ { 5, s_11_32, -1, 21, 0},
-/* 33 */ { 6, s_11_33, 32, 20, 0},
-/* 34 */ { 6, s_11_34, -1, 22, 0},
-/* 35 */ { 2, s_11_35, -1, 5, 0},
-/* 36 */ { 3, s_11_36, 35, 4, 0},
-/* 37 */ { 4, s_11_37, 36, 1, 0},
-/* 38 */ { 3, s_11_38, 35, 4, 0},
-/* 39 */ { 4, s_11_39, 38, 1, 0},
-/* 40 */ { 4, s_11_40, 35, 2, 0},
-/* 41 */ { 4, s_11_41, 35, 3, 0}
-};
+ {
+ /* 0 */ { 2, s_11_0, -1, 10, 0},
+ /* 1 */ { 3, s_11_1, 0, 9, 0},
+ /* 2 */ { 4, s_11_2, 1, 6, 0},
+ /* 3 */ { 3, s_11_3, 0, 9, 0},
+ /* 4 */ { 4, s_11_4, 3, 6, 0},
+ /* 5 */ { 4, s_11_5, 0, 7, 0},
+ /* 6 */ { 4, s_11_6, 0, 8, 0},
+ /* 7 */ { 1, s_11_7, -1, 15, 0},
+ /* 8 */ { 2, s_11_8, 7, 14, 0},
+ /* 9 */ { 3, s_11_9, 8, 11, 0},
+ /* 10 */ { 2, s_11_10, 7, 14, 0},
+ /* 11 */ { 3, s_11_11, 10, 11, 0},
+ /* 12 */ { 3, s_11_12, 7, 12, 0},
+ /* 13 */ { 3, s_11_13, 7, 13, 0},
+ /* 14 */ { 4, s_11_14, -1, 24, 0},
+ /* 15 */ { 5, s_11_15, 14, 21, 0},
+ /* 16 */ { 6, s_11_16, 15, 20, 0},
+ /* 17 */ { 6, s_11_17, 14, 23, 0},
+ /* 18 */ { 2, s_11_18, -1, 29, 0},
+ /* 19 */ { 3, s_11_19, 18, 26, 0},
+ /* 20 */ { 4, s_11_20, 19, 25, 0},
+ /* 21 */ { 3, s_11_21, 18, 26, 0},
+ /* 22 */ { 4, s_11_22, 21, 25, 0},
+ /* 23 */ { 4, s_11_23, 18, 27, 0},
+ /* 24 */ { 4, s_11_24, 18, 28, 0},
+ /* 25 */ { 3, s_11_25, -1, 20, 0},
+ /* 26 */ { 4, s_11_26, 25, 17, 0},
+ /* 27 */ { 5, s_11_27, 26, 16, 0},
+ /* 28 */ { 4, s_11_28, 25, 17, 0},
+ /* 29 */ { 5, s_11_29, 28, 16, 0},
+ /* 30 */ { 5, s_11_30, 25, 18, 0},
+ /* 31 */ { 5, s_11_31, 25, 19, 0},
+ /* 32 */ { 5, s_11_32, -1, 21, 0},
+ /* 33 */ { 6, s_11_33, 32, 20, 0},
+ /* 34 */ { 6, s_11_34, -1, 22, 0},
+ /* 35 */ { 2, s_11_35, -1, 5, 0},
+ /* 36 */ { 3, s_11_36, 35, 4, 0},
+ /* 37 */ { 4, s_11_37, 36, 1, 0},
+ /* 38 */ { 3, s_11_38, 35, 4, 0},
+ /* 39 */ { 4, s_11_39, 38, 1, 0},
+ /* 40 */ { 4, s_11_40, 35, 2, 0},
+ /* 41 */ { 4, s_11_41, 35, 3, 0}
+ };
static unsigned char g_v[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 17, 36, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1 };
@@ -500,736 +500,736 @@ static symbol s_34[] = { 'a' };
static symbol s_35[] = { 'e' };
static int r_mark_regions(struct SN_env * z) {
- z->I[0] = z->l;
- { int c1 = z->c; /* or, line 51 */
- //if (in_grouping_U(z, g_v, 97, 369, 0)) goto lab1;
- if (in_grouping_U(z, g_v, 97, 369)) goto lab1;
- //if (in_grouping_U(z, g_v, 97, 369, 1) < 0) goto lab1; /* goto */ /* non v, line 48 */
- if (in_grouping_U(z, g_v, 97, 369) < 0) goto lab1; /* goto */ /* non v, line 48 */
- { int c2 = z->c; /* or, line 49 */
- if (z->c + 1 >= z->l || z->p[z->c + 1] >> 5 != 3 || !((101187584 >> (z->p[z->c + 1] & 0x1f)) & 1)) goto lab3;
- if (!(find_among(z, a_0, 8))) goto lab3; /* among, line 49 */
- goto lab2;
- lab3:
- z->c = c2;
- { int ret = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (ret < 0) goto lab1;
- z->c = ret; /* next, line 49 */
- }
- }
- lab2:
- z->I[0] = z->c; /* setmark p1, line 50 */
- goto lab0;
- lab1:
- z->c = c1;
- //if (out_grouping_U(z, g_v, 97, 369, 0)) return 0;
- if (out_grouping_U(z, g_v, 97, 369)) return 0;
- { /* gopast */ /* grouping v, line 53 */
- //int ret = out_grouping_U(z, g_v, 97, 369, 1);
- int ret = out_grouping_U(z, g_v, 97, 369);
- if (ret < 0) return 0;
- z->c += ret;
+ z->I[0] = z->l;
+ { int c1 = z->c; /* or, line 51 */
+ //if (in_grouping_U(z, g_v, 97, 369, 0)) goto lab1;
+ if (in_grouping_U(z, g_v, 97, 369)) goto lab1;
+ //if (in_grouping_U(z, g_v, 97, 369, 1) < 0) goto lab1; /* goto */ /* non v, line 48 */
+ if (in_grouping_U(z, g_v, 97, 369) < 0) goto lab1; /* goto */ /* non v, line 48 */
+ { int c2 = z->c; /* or, line 49 */
+ if (z->c + 1 >= z->l || z->p[z->c + 1] >> 5 != 3 || !((101187584 >> (z->p[z->c + 1] & 0x1f)) & 1)) goto lab3;
+ if (!(find_among(z, a_0, 8))) goto lab3; /* among, line 49 */
+ goto lab2;
+ lab3:
+ z->c = c2;
+ { int ret = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (ret < 0) goto lab1;
+ z->c = ret; /* next, line 49 */
+ }
+ }
+ lab2:
+ z->I[0] = z->c; /* setmark p1, line 50 */
+ goto lab0;
+ lab1:
+ z->c = c1;
+ //if (out_grouping_U(z, g_v, 97, 369, 0)) return 0;
+ if (out_grouping_U(z, g_v, 97, 369)) return 0;
+ { /* gopast */ /* grouping v, line 53 */
+ //int ret = out_grouping_U(z, g_v, 97, 369, 1);
+ int ret = out_grouping_U(z, g_v, 97, 369);
+ if (ret < 0) return 0;
+ z->c += ret;
+ }
+ z->I[0] = z->c; /* setmark p1, line 53 */
}
- z->I[0] = z->c; /* setmark p1, line 53 */
- }
-lab0:
- return 1;
+ lab0:
+ return 1;
}
static int r_R1(struct SN_env * z) {
- if (!(z->I[0] <= z->c)) return 0;
- return 1;
+ if (!(z->I[0] <= z->c)) return 0;
+ return 1;
}
static int r_v_ending(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 61 */
- if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 161 && z->p[z->c - 1] != 169)) return 0;
- among_var = find_among_b(z, a_1, 2); /* substring, line 61 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 61 */
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 61 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 61 */
+ if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 161 && z->p[z->c - 1] != 169)) return 0;
+ among_var = find_among_b(z, a_1, 2); /* substring, line 61 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 61 */
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 61 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = slice_from_s(z, 1, s_0); /* <-, line 62 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_0); /* <-, line 62 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret = slice_from_s(z, 1, s_1); /* <-, line 63 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret = slice_from_s(z, 1, s_1); /* <-, line 63 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_double(struct SN_env * z) {
- { int m_test = z->l - z->c; /* test, line 68 */
- if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((106790108 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
- if (!(find_among_b(z, a_2, 23))) return 0; /* among, line 68 */
- z->c = z->l - m_test;
- }
- return 1;
+ { int m_test = z->l - z->c; /* test, line 68 */
+ if (z->c - 1 <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((106790108 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
+ if (!(find_among_b(z, a_2, 23))) return 0; /* among, line 68 */
+ z->c = z->l - m_test;
+ }
+ return 1;
}
static int r_undouble(struct SN_env * z) {
- { int ret = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (ret < 0) return 0;
- z->c = ret; /* next, line 73 */
- }
- z->ket = z->c; /* [, line 73 */
- { int ret = skip_utf8(z->p, z->c, z->lb, z->l, - 1);
- if (ret < 0) return 0;
- z->c = ret; /* hop, line 73 */
- }
- z->bra = z->c; /* ], line 73 */
- { int ret = slice_del(z); /* delete, line 73 */
- if (ret < 0) return ret;
- }
- return 1;
+ { int ret = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (ret < 0) return 0;
+ z->c = ret; /* next, line 73 */
+ }
+ z->ket = z->c; /* [, line 73 */
+ { int ret = skip_utf8(z->p, z->c, z->lb, z->l, - 1);
+ if (ret < 0) return 0;
+ z->c = ret; /* hop, line 73 */
+ }
+ z->bra = z->c; /* ], line 73 */
+ { int ret = slice_del(z); /* delete, line 73 */
+ if (ret < 0) return ret;
+ }
+ return 1;
}
static int r_instrum(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 77 */
- if (z->c - 1 <= z->lb || z->p[z->c - 1] != 108) return 0;
- among_var = find_among_b(z, a_3, 2); /* substring, line 77 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 77 */
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 77 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 77 */
+ if (z->c - 1 <= z->lb || z->p[z->c - 1] != 108) return 0;
+ among_var = find_among_b(z, a_3, 2); /* substring, line 77 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 77 */
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 77 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = r_double(z);
- if (ret == 0) return 0; /* call double, line 78 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_double(z);
+ if (ret == 0) return 0; /* call double, line 78 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret = r_double(z);
- if (ret == 0) return 0; /* call double, line 79 */
+ { int ret = r_double(z);
+ if (ret == 0) return 0; /* call double, line 79 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ { int ret = slice_del(z); /* delete, line 81 */
if (ret < 0) return ret;
- }
- break;
- }
- { int ret = slice_del(z); /* delete, line 81 */
- if (ret < 0) return ret;
- }
- { int ret = r_undouble(z);
- if (ret == 0) return 0; /* call undouble, line 82 */
- if (ret < 0) return ret;
- }
- return 1;
+ }
+ { int ret = r_undouble(z);
+ if (ret == 0) return 0; /* call undouble, line 82 */
+ if (ret < 0) return ret;
+ }
+ return 1;
}
static int r_case(struct SN_env * z) {
- z->ket = z->c; /* [, line 87 */
- if (!(find_among_b(z, a_4, 44))) return 0; /* substring, line 87 */
- z->bra = z->c; /* ], line 87 */
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 87 */
- if (ret < 0) return ret;
- }
- { int ret = slice_del(z); /* delete, line 111 */
- if (ret < 0) return ret;
- }
- { int ret = r_v_ending(z);
- if (ret == 0) return 0; /* call v_ending, line 112 */
- if (ret < 0) return ret;
- }
- return 1;
+ z->ket = z->c; /* [, line 87 */
+ if (!(find_among_b(z, a_4, 44))) return 0; /* substring, line 87 */
+ z->bra = z->c; /* ], line 87 */
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 87 */
+ if (ret < 0) return ret;
+ }
+ { int ret = slice_del(z); /* delete, line 111 */
+ if (ret < 0) return ret;
+ }
+ { int ret = r_v_ending(z);
+ if (ret == 0) return 0; /* call v_ending, line 112 */
+ if (ret < 0) return ret;
+ }
+ return 1;
}
static int r_case_special(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 116 */
- if (z->c - 2 <= z->lb || (z->p[z->c - 1] != 110 && z->p[z->c - 1] != 116)) return 0;
- among_var = find_among_b(z, a_5, 3); /* substring, line 116 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 116 */
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 116 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 116 */
+ if (z->c - 2 <= z->lb || (z->p[z->c - 1] != 110 && z->p[z->c - 1] != 116)) return 0;
+ among_var = find_among_b(z, a_5, 3); /* substring, line 116 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 116 */
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 116 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = slice_from_s(z, 1, s_2); /* <-, line 117 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_2); /* <-, line 117 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret = slice_from_s(z, 1, s_3); /* <-, line 118 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_3); /* <-, line 118 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret = slice_from_s(z, 1, s_4); /* <-, line 119 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret = slice_from_s(z, 1, s_4); /* <-, line 119 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_case_other(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 124 */
- if (z->c - 3 <= z->lb || z->p[z->c - 1] != 108) return 0;
- among_var = find_among_b(z, a_6, 6); /* substring, line 124 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 124 */
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 124 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 124 */
+ if (z->c - 3 <= z->lb || z->p[z->c - 1] != 108) return 0;
+ among_var = find_among_b(z, a_6, 6); /* substring, line 124 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 124 */
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 124 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = slice_del(z); /* delete, line 125 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 125 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret = slice_del(z); /* delete, line 126 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 126 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret = slice_from_s(z, 1, s_5); /* <-, line 127 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_5); /* <-, line 127 */
+ if (ret < 0) return ret;
+ }
+ break;
case 4:
- { int ret = slice_from_s(z, 1, s_6); /* <-, line 128 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret = slice_from_s(z, 1, s_6); /* <-, line 128 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_factive(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 133 */
- if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 161 && z->p[z->c - 1] != 169)) return 0;
- among_var = find_among_b(z, a_7, 2); /* substring, line 133 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 133 */
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 133 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 133 */
+ if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 161 && z->p[z->c - 1] != 169)) return 0;
+ among_var = find_among_b(z, a_7, 2); /* substring, line 133 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 133 */
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 133 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = r_double(z);
- if (ret == 0) return 0; /* call double, line 134 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_double(z);
+ if (ret == 0) return 0; /* call double, line 134 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret = r_double(z);
- if (ret == 0) return 0; /* call double, line 135 */
+ { int ret = r_double(z);
+ if (ret == 0) return 0; /* call double, line 135 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ { int ret = slice_del(z); /* delete, line 137 */
+ if (ret < 0) return ret;
+ }
+ { int ret = r_undouble(z);
+ if (ret == 0) return 0; /* call undouble, line 138 */
if (ret < 0) return ret;
- }
- break;
- }
- { int ret = slice_del(z); /* delete, line 137 */
- if (ret < 0) return ret;
- }
- { int ret = r_undouble(z);
- if (ret == 0) return 0; /* call undouble, line 138 */
- if (ret < 0) return ret;
- }
- return 1;
+ }
+ return 1;
}
static int r_plural(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 142 */
- if (z->c <= z->lb || z->p[z->c - 1] != 107) return 0;
- among_var = find_among_b(z, a_8, 7); /* substring, line 142 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 142 */
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 142 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 142 */
+ if (z->c <= z->lb || z->p[z->c - 1] != 107) return 0;
+ among_var = find_among_b(z, a_8, 7); /* substring, line 142 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 142 */
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 142 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = slice_from_s(z, 1, s_7); /* <-, line 143 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_7); /* <-, line 143 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret = slice_from_s(z, 1, s_8); /* <-, line 144 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_8); /* <-, line 144 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret = slice_del(z); /* delete, line 145 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 145 */
+ if (ret < 0) return ret;
+ }
+ break;
case 4:
- { int ret = slice_del(z); /* delete, line 146 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 146 */
+ if (ret < 0) return ret;
+ }
+ break;
case 5:
- { int ret = slice_del(z); /* delete, line 147 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 147 */
+ if (ret < 0) return ret;
+ }
+ break;
case 6:
- { int ret = slice_del(z); /* delete, line 148 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 148 */
+ if (ret < 0) return ret;
+ }
+ break;
case 7:
- { int ret = slice_del(z); /* delete, line 149 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret = slice_del(z); /* delete, line 149 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_owned(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 154 */
- if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 105 && z->p[z->c - 1] != 169)) return 0;
- among_var = find_among_b(z, a_9, 12); /* substring, line 154 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 154 */
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 154 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 154 */
+ if (z->c - 1 <= z->lb || (z->p[z->c - 1] != 105 && z->p[z->c - 1] != 169)) return 0;
+ among_var = find_among_b(z, a_9, 12); /* substring, line 154 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 154 */
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 154 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = slice_del(z); /* delete, line 155 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 155 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret = slice_from_s(z, 1, s_9); /* <-, line 156 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_9); /* <-, line 156 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret = slice_from_s(z, 1, s_10); /* <-, line 157 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_10); /* <-, line 157 */
+ if (ret < 0) return ret;
+ }
+ break;
case 4:
- { int ret = slice_del(z); /* delete, line 158 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 158 */
+ if (ret < 0) return ret;
+ }
+ break;
case 5:
- { int ret = slice_from_s(z, 1, s_11); /* <-, line 159 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_11); /* <-, line 159 */
+ if (ret < 0) return ret;
+ }
+ break;
case 6:
- { int ret = slice_from_s(z, 1, s_12); /* <-, line 160 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_12); /* <-, line 160 */
+ if (ret < 0) return ret;
+ }
+ break;
case 7:
- { int ret = slice_del(z); /* delete, line 161 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 161 */
+ if (ret < 0) return ret;
+ }
+ break;
case 8:
- { int ret = slice_from_s(z, 1, s_13); /* <-, line 162 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_13); /* <-, line 162 */
+ if (ret < 0) return ret;
+ }
+ break;
case 9:
- { int ret = slice_del(z); /* delete, line 163 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret = slice_del(z); /* delete, line 163 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_sing_owner(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 168 */
- among_var = find_among_b(z, a_10, 31); /* substring, line 168 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 168 */
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 168 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 168 */
+ among_var = find_among_b(z, a_10, 31); /* substring, line 168 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 168 */
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 168 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = slice_del(z); /* delete, line 169 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 169 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret = slice_from_s(z, 1, s_14); /* <-, line 170 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_14); /* <-, line 170 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret = slice_from_s(z, 1, s_15); /* <-, line 171 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_15); /* <-, line 171 */
+ if (ret < 0) return ret;
+ }
+ break;
case 4:
- { int ret = slice_del(z); /* delete, line 172 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 172 */
+ if (ret < 0) return ret;
+ }
+ break;
case 5:
- { int ret = slice_from_s(z, 1, s_16); /* <-, line 173 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_16); /* <-, line 173 */
+ if (ret < 0) return ret;
+ }
+ break;
case 6:
- { int ret = slice_from_s(z, 1, s_17); /* <-, line 174 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_17); /* <-, line 174 */
+ if (ret < 0) return ret;
+ }
+ break;
case 7:
- { int ret = slice_del(z); /* delete, line 175 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 175 */
+ if (ret < 0) return ret;
+ }
+ break;
case 8:
- { int ret = slice_del(z); /* delete, line 176 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 176 */
+ if (ret < 0) return ret;
+ }
+ break;
case 9:
- { int ret = slice_del(z); /* delete, line 177 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 177 */
+ if (ret < 0) return ret;
+ }
+ break;
case 10:
- { int ret = slice_from_s(z, 1, s_18); /* <-, line 178 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_18); /* <-, line 178 */
+ if (ret < 0) return ret;
+ }
+ break;
case 11:
- { int ret = slice_from_s(z, 1, s_19); /* <-, line 179 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_19); /* <-, line 179 */
+ if (ret < 0) return ret;
+ }
+ break;
case 12:
- { int ret = slice_del(z); /* delete, line 180 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 180 */
+ if (ret < 0) return ret;
+ }
+ break;
case 13:
- { int ret = slice_del(z); /* delete, line 181 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 181 */
+ if (ret < 0) return ret;
+ }
+ break;
case 14:
- { int ret = slice_from_s(z, 1, s_20); /* <-, line 182 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_20); /* <-, line 182 */
+ if (ret < 0) return ret;
+ }
+ break;
case 15:
- { int ret = slice_from_s(z, 1, s_21); /* <-, line 183 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_21); /* <-, line 183 */
+ if (ret < 0) return ret;
+ }
+ break;
case 16:
- { int ret = slice_del(z); /* delete, line 184 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 184 */
+ if (ret < 0) return ret;
+ }
+ break;
case 17:
- { int ret = slice_del(z); /* delete, line 185 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 185 */
+ if (ret < 0) return ret;
+ }
+ break;
case 18:
- { int ret = slice_del(z); /* delete, line 186 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 186 */
+ if (ret < 0) return ret;
+ }
+ break;
case 19:
- { int ret = slice_from_s(z, 1, s_22); /* <-, line 187 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_22); /* <-, line 187 */
+ if (ret < 0) return ret;
+ }
+ break;
case 20:
- { int ret = slice_from_s(z, 1, s_23); /* <-, line 188 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret = slice_from_s(z, 1, s_23); /* <-, line 188 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_plur_owner(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 193 */
- if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((10768 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
- among_var = find_among_b(z, a_11, 42); /* substring, line 193 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 193 */
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 193 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 193 */
+ if (z->c <= z->lb || z->p[z->c - 1] >> 5 != 3 || !((10768 >> (z->p[z->c - 1] & 0x1f)) & 1)) return 0;
+ among_var = find_among_b(z, a_11, 42); /* substring, line 193 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 193 */
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 193 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = slice_del(z); /* delete, line 194 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 194 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret = slice_from_s(z, 1, s_24); /* <-, line 195 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_24); /* <-, line 195 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret = slice_from_s(z, 1, s_25); /* <-, line 196 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_25); /* <-, line 196 */
+ if (ret < 0) return ret;
+ }
+ break;
case 4:
- { int ret = slice_del(z); /* delete, line 197 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 197 */
+ if (ret < 0) return ret;
+ }
+ break;
case 5:
- { int ret = slice_del(z); /* delete, line 198 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 198 */
+ if (ret < 0) return ret;
+ }
+ break;
case 6:
- { int ret = slice_del(z); /* delete, line 199 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 199 */
+ if (ret < 0) return ret;
+ }
+ break;
case 7:
- { int ret = slice_from_s(z, 1, s_26); /* <-, line 200 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_26); /* <-, line 200 */
+ if (ret < 0) return ret;
+ }
+ break;
case 8:
- { int ret = slice_from_s(z, 1, s_27); /* <-, line 201 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_27); /* <-, line 201 */
+ if (ret < 0) return ret;
+ }
+ break;
case 9:
- { int ret = slice_del(z); /* delete, line 202 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 202 */
+ if (ret < 0) return ret;
+ }
+ break;
case 10:
- { int ret = slice_del(z); /* delete, line 203 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 203 */
+ if (ret < 0) return ret;
+ }
+ break;
case 11:
- { int ret = slice_del(z); /* delete, line 204 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 204 */
+ if (ret < 0) return ret;
+ }
+ break;
case 12:
- { int ret = slice_from_s(z, 1, s_28); /* <-, line 205 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_28); /* <-, line 205 */
+ if (ret < 0) return ret;
+ }
+ break;
case 13:
- { int ret = slice_from_s(z, 1, s_29); /* <-, line 206 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_29); /* <-, line 206 */
+ if (ret < 0) return ret;
+ }
+ break;
case 14:
- { int ret = slice_del(z); /* delete, line 207 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 207 */
+ if (ret < 0) return ret;
+ }
+ break;
case 15:
- { int ret = slice_del(z); /* delete, line 208 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 208 */
+ if (ret < 0) return ret;
+ }
+ break;
case 16:
- { int ret = slice_del(z); /* delete, line 209 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 209 */
+ if (ret < 0) return ret;
+ }
+ break;
case 17:
- { int ret = slice_del(z); /* delete, line 210 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 210 */
+ if (ret < 0) return ret;
+ }
+ break;
case 18:
- { int ret = slice_from_s(z, 1, s_30); /* <-, line 211 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_30); /* <-, line 211 */
+ if (ret < 0) return ret;
+ }
+ break;
case 19:
- { int ret = slice_from_s(z, 1, s_31); /* <-, line 212 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_31); /* <-, line 212 */
+ if (ret < 0) return ret;
+ }
+ break;
case 20:
- { int ret = slice_del(z); /* delete, line 214 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 214 */
+ if (ret < 0) return ret;
+ }
+ break;
case 21:
- { int ret = slice_del(z); /* delete, line 215 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 215 */
+ if (ret < 0) return ret;
+ }
+ break;
case 22:
- { int ret = slice_from_s(z, 1, s_32); /* <-, line 216 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_32); /* <-, line 216 */
+ if (ret < 0) return ret;
+ }
+ break;
case 23:
- { int ret = slice_from_s(z, 1, s_33); /* <-, line 217 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_33); /* <-, line 217 */
+ if (ret < 0) return ret;
+ }
+ break;
case 24:
- { int ret = slice_del(z); /* delete, line 218 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 218 */
+ if (ret < 0) return ret;
+ }
+ break;
case 25:
- { int ret = slice_del(z); /* delete, line 219 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 219 */
+ if (ret < 0) return ret;
+ }
+ break;
case 26:
- { int ret = slice_del(z); /* delete, line 220 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_del(z); /* delete, line 220 */
+ if (ret < 0) return ret;
+ }
+ break;
case 27:
- { int ret = slice_from_s(z, 1, s_34); /* <-, line 221 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_34); /* <-, line 221 */
+ if (ret < 0) return ret;
+ }
+ break;
case 28:
- { int ret = slice_from_s(z, 1, s_35); /* <-, line 222 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = slice_from_s(z, 1, s_35); /* <-, line 222 */
+ if (ret < 0) return ret;
+ }
+ break;
case 29:
- { int ret = slice_del(z); /* delete, line 223 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret = slice_del(z); /* delete, line 223 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
extern int hungarian_UTF_8_stem(struct SN_env * z) {
- { int c1 = z->c; /* do, line 229 */
- { int ret = r_mark_regions(z);
- if (ret == 0) goto lab0; /* call mark_regions, line 229 */
- if (ret < 0) return ret;
+ { int c1 = z->c; /* do, line 229 */
+ { int ret = r_mark_regions(z);
+ if (ret == 0) goto lab0; /* call mark_regions, line 229 */
+ if (ret < 0) return ret;
+ }
+ lab0:
+ z->c = c1;
}
- lab0:
- z->c = c1;
- }
- z->lb = z->c; z->c = z->l; /* backwards, line 230 */
+ z->lb = z->c; z->c = z->l; /* backwards, line 230 */
- { int m2 = z->l - z->c; (void)m2; /* do, line 231 */
- { int ret = r_instrum(z);
- if (ret == 0) goto lab1; /* call instrum, line 231 */
- if (ret < 0) return ret;
+ { int m2 = z->l - z->c; (void)m2; /* do, line 231 */
+ { int ret = r_instrum(z);
+ if (ret == 0) goto lab1; /* call instrum, line 231 */
+ if (ret < 0) return ret;
+ }
+ lab1:
+ z->c = z->l - m2;
}
- lab1:
- z->c = z->l - m2;
- }
- { int m3 = z->l - z->c; (void)m3; /* do, line 232 */
- { int ret = r_case(z);
- if (ret == 0) goto lab2; /* call case, line 232 */
- if (ret < 0) return ret;
+ { int m3 = z->l - z->c; (void)m3; /* do, line 232 */
+ { int ret = r_case(z);
+ if (ret == 0) goto lab2; /* call case, line 232 */
+ if (ret < 0) return ret;
+ }
+ lab2:
+ z->c = z->l - m3;
}
- lab2:
- z->c = z->l - m3;
- }
- { int m4 = z->l - z->c; (void)m4; /* do, line 233 */
- { int ret = r_case_special(z);
- if (ret == 0) goto lab3; /* call case_special, line 233 */
- if (ret < 0) return ret;
+ { int m4 = z->l - z->c; (void)m4; /* do, line 233 */
+ { int ret = r_case_special(z);
+ if (ret == 0) goto lab3; /* call case_special, line 233 */
+ if (ret < 0) return ret;
+ }
+ lab3:
+ z->c = z->l - m4;
}
- lab3:
- z->c = z->l - m4;
- }
- { int m5 = z->l - z->c; (void)m5; /* do, line 234 */
- { int ret = r_case_other(z);
- if (ret == 0) goto lab4; /* call case_other, line 234 */
- if (ret < 0) return ret;
+ { int m5 = z->l - z->c; (void)m5; /* do, line 234 */
+ { int ret = r_case_other(z);
+ if (ret == 0) goto lab4; /* call case_other, line 234 */
+ if (ret < 0) return ret;
+ }
+ lab4:
+ z->c = z->l - m5;
}
- lab4:
- z->c = z->l - m5;
- }
- { int m6 = z->l - z->c; (void)m6; /* do, line 235 */
- { int ret = r_factive(z);
- if (ret == 0) goto lab5; /* call factive, line 235 */
- if (ret < 0) return ret;
+ { int m6 = z->l - z->c; (void)m6; /* do, line 235 */
+ { int ret = r_factive(z);
+ if (ret == 0) goto lab5; /* call factive, line 235 */
+ if (ret < 0) return ret;
+ }
+ lab5:
+ z->c = z->l - m6;
}
- lab5:
- z->c = z->l - m6;
- }
- { int m7 = z->l - z->c; (void)m7; /* do, line 236 */
- { int ret = r_owned(z);
- if (ret == 0) goto lab6; /* call owned, line 236 */
- if (ret < 0) return ret;
+ { int m7 = z->l - z->c; (void)m7; /* do, line 236 */
+ { int ret = r_owned(z);
+ if (ret == 0) goto lab6; /* call owned, line 236 */
+ if (ret < 0) return ret;
+ }
+ lab6:
+ z->c = z->l - m7;
}
- lab6:
- z->c = z->l - m7;
- }
- { int m8 = z->l - z->c; (void)m8; /* do, line 237 */
- { int ret = r_sing_owner(z);
- if (ret == 0) goto lab7; /* call sing_owner, line 237 */
- if (ret < 0) return ret;
+ { int m8 = z->l - z->c; (void)m8; /* do, line 237 */
+ { int ret = r_sing_owner(z);
+ if (ret == 0) goto lab7; /* call sing_owner, line 237 */
+ if (ret < 0) return ret;
+ }
+ lab7:
+ z->c = z->l - m8;
}
- lab7:
- z->c = z->l - m8;
- }
- { int m9 = z->l - z->c; (void)m9; /* do, line 238 */
- { int ret = r_plur_owner(z);
- if (ret == 0) goto lab8; /* call plur_owner, line 238 */
- if (ret < 0) return ret;
+ { int m9 = z->l - z->c; (void)m9; /* do, line 238 */
+ { int ret = r_plur_owner(z);
+ if (ret == 0) goto lab8; /* call plur_owner, line 238 */
+ if (ret < 0) return ret;
+ }
+ lab8:
+ z->c = z->l - m9;
}
- lab8:
- z->c = z->l - m9;
- }
- { int m10 = z->l - z->c; (void)m10; /* do, line 239 */
- { int ret = r_plural(z);
- if (ret == 0) goto lab9; /* call plural, line 239 */
- if (ret < 0) return ret;
+ { int m10 = z->l - z->c; (void)m10; /* do, line 239 */
+ { int ret = r_plural(z);
+ if (ret == 0) goto lab9; /* call plural, line 239 */
+ if (ret < 0) return ret;
+ }
+ lab9:
+ z->c = z->l - m10;
}
- lab9:
- z->c = z->l - m10;
- }
- z->c = z->lb;
- return 1;
+ z->c = z->lb;
+ return 1;
}
extern struct SN_env * hungarian_UTF_8_create_env(void) { return SN_create_env(0, 1, 0); }
diff --git a/src/libstemmer/stem_UTF_8_hungarian.h b/src/libstemmer/stem_UTF_8_hungarian.h
index d81bd23..f3e681a 100644
--- a/src/libstemmer/stem_UTF_8_hungarian.h
+++ b/src/libstemmer/stem_UTF_8_hungarian.h
@@ -5,10 +5,10 @@
extern "C" {
#endif
-extern struct SN_env * hungarian_UTF_8_create_env(void);
-extern void hungarian_UTF_8_close_env(struct SN_env * z);
+ extern struct SN_env * hungarian_UTF_8_create_env(void);
+ extern void hungarian_UTF_8_close_env(struct SN_env * z);
-extern int hungarian_UTF_8_stem(struct SN_env * z);
+ extern int hungarian_UTF_8_stem(struct SN_env * z);
#ifdef __cplusplus
}
diff --git a/src/libstemmer/stem_UTF_8_italian.c b/src/libstemmer/stem_UTF_8_italian.c
index 8d99552..2af69af 100644
--- a/src/libstemmer/stem_UTF_8_italian.c
+++ b/src/libstemmer/stem_UTF_8_italian.c
@@ -39,25 +39,25 @@ static symbol s_0_5[2] = { 0xC3, 0xB3 };
static symbol s_0_6[2] = { 0xC3, 0xBA };
static struct among a_0[7] =
-{
-/* 0 */ { 0, 0, -1, 7, 0},
-/* 1 */ { 2, s_0_1, 0, 6, 0},
-/* 2 */ { 2, s_0_2, 0, 1, 0},
-/* 3 */ { 2, s_0_3, 0, 2, 0},
-/* 4 */ { 2, s_0_4, 0, 3, 0},
-/* 5 */ { 2, s_0_5, 0, 4, 0},
-/* 6 */ { 2, s_0_6, 0, 5, 0}
-};
+ {
+ /* 0 */ { 0, 0, -1, 7, 0},
+ /* 1 */ { 2, s_0_1, 0, 6, 0},
+ /* 2 */ { 2, s_0_2, 0, 1, 0},
+ /* 3 */ { 2, s_0_3, 0, 2, 0},
+ /* 4 */ { 2, s_0_4, 0, 3, 0},
+ /* 5 */ { 2, s_0_5, 0, 4, 0},
+ /* 6 */ { 2, s_0_6, 0, 5, 0}
+ };
static symbol s_1_1[1] = { 'I' };
static symbol s_1_2[1] = { 'U' };
static struct among a_1[3] =
-{
-/* 0 */ { 0, 0, -1, 3, 0},
-/* 1 */ { 1, s_1_1, 0, 1, 0},
-/* 2 */ { 1, s_1_2, 0, 2, 0}
-};
+ {
+ /* 0 */ { 0, 0, -1, 3, 0},
+ /* 1 */ { 1, s_1_1, 0, 1, 0},
+ /* 2 */ { 1, s_1_2, 0, 2, 0}
+ };
static symbol s_2_0[2] = { 'l', 'a' };
static symbol s_2_1[4] = { 'c', 'e', 'l', 'a' };
@@ -98,45 +98,45 @@ static symbol s_2_35[4] = { 't', 'e', 'l', 'o' };
static symbol s_2_36[4] = { 'v', 'e', 'l', 'o' };
static struct among a_2[37] =
-{
-/* 0 */ { 2, s_2_0, -1, -1, 0},
-/* 1 */ { 4, s_2_1, 0, -1, 0},
-/* 2 */ { 6, s_2_2, 0, -1, 0},
-/* 3 */ { 4, s_2_3, 0, -1, 0},
-/* 4 */ { 4, s_2_4, 0, -1, 0},
-/* 5 */ { 4, s_2_5, 0, -1, 0},
-/* 6 */ { 2, s_2_6, -1, -1, 0},
-/* 7 */ { 4, s_2_7, 6, -1, 0},
-/* 8 */ { 6, s_2_8, 6, -1, 0},
-/* 9 */ { 4, s_2_9, 6, -1, 0},
-/* 10 */ { 4, s_2_10, 6, -1, 0},
-/* 11 */ { 4, s_2_11, 6, -1, 0},
-/* 12 */ { 2, s_2_12, -1, -1, 0},
-/* 13 */ { 4, s_2_13, 12, -1, 0},
-/* 14 */ { 6, s_2_14, 12, -1, 0},
-/* 15 */ { 4, s_2_15, 12, -1, 0},
-/* 16 */ { 4, s_2_16, 12, -1, 0},
-/* 17 */ { 4, s_2_17, 12, -1, 0},
-/* 18 */ { 4, s_2_18, 12, -1, 0},
-/* 19 */ { 2, s_2_19, -1, -1, 0},
-/* 20 */ { 2, s_2_20, -1, -1, 0},
-/* 21 */ { 4, s_2_21, 20, -1, 0},
-/* 22 */ { 6, s_2_22, 20, -1, 0},
-/* 23 */ { 4, s_2_23, 20, -1, 0},
-/* 24 */ { 4, s_2_24, 20, -1, 0},
-/* 25 */ { 4, s_2_25, 20, -1, 0},
-/* 26 */ { 3, s_2_26, 20, -1, 0},
-/* 27 */ { 2, s_2_27, -1, -1, 0},
-/* 28 */ { 2, s_2_28, -1, -1, 0},
-/* 29 */ { 2, s_2_29, -1, -1, 0},
-/* 30 */ { 2, s_2_30, -1, -1, 0},
-/* 31 */ { 2, s_2_31, -1, -1, 0},
-/* 32 */ { 4, s_2_32, 31, -1, 0},
-/* 33 */ { 6, s_2_33, 31, -1, 0},
-/* 34 */ { 4, s_2_34, 31, -1, 0},
-/* 35 */ { 4, s_2_35, 31, -1, 0},
-/* 36 */ { 4, s_2_36, 31, -1, 0}
-};
+ {
+ /* 0 */ { 2, s_2_0, -1, -1, 0},
+ /* 1 */ { 4, s_2_1, 0, -1, 0},
+ /* 2 */ { 6, s_2_2, 0, -1, 0},
+ /* 3 */ { 4, s_2_3, 0, -1, 0},
+ /* 4 */ { 4, s_2_4, 0, -1, 0},
+ /* 5 */ { 4, s_2_5, 0, -1, 0},
+ /* 6 */ { 2, s_2_6, -1, -1, 0},
+ /* 7 */ { 4, s_2_7, 6, -1, 0},
+ /* 8 */ { 6, s_2_8, 6, -1, 0},
+ /* 9 */ { 4, s_2_9, 6, -1, 0},
+ /* 10 */ { 4, s_2_10, 6, -1, 0},
+ /* 11 */ { 4, s_2_11, 6, -1, 0},
+ /* 12 */ { 2, s_2_12, -1, -1, 0},
+ /* 13 */ { 4, s_2_13, 12, -1, 0},
+ /* 14 */ { 6, s_2_14, 12, -1, 0},
+ /* 15 */ { 4, s_2_15, 12, -1, 0},
+ /* 16 */ { 4, s_2_16, 12, -1, 0},
+ /* 17 */ { 4, s_2_17, 12, -1, 0},
+ /* 18 */ { 4, s_2_18, 12, -1, 0},
+ /* 19 */ { 2, s_2_19, -1, -1, 0},
+ /* 20 */ { 2, s_2_20, -1, -1, 0},
+ /* 21 */ { 4, s_2_21, 20, -1, 0},
+ /* 22 */ { 6, s_2_22, 20, -1, 0},
+ /* 23 */ { 4, s_2_23, 20, -1, 0},
+ /* 24 */ { 4, s_2_24, 20, -1, 0},
+ /* 25 */ { 4, s_2_25, 20, -1, 0},
+ /* 26 */ { 3, s_2_26, 20, -1, 0},
+ /* 27 */ { 2, s_2_27, -1, -1, 0},
+ /* 28 */ { 2, s_2_28, -1, -1, 0},
+ /* 29 */ { 2, s_2_29, -1, -1, 0},
+ /* 30 */ { 2, s_2_30, -1, -1, 0},
+ /* 31 */ { 2, s_2_31, -1, -1, 0},
+ /* 32 */ { 4, s_2_32, 31, -1, 0},
+ /* 33 */ { 6, s_2_33, 31, -1, 0},
+ /* 34 */ { 4, s_2_34, 31, -1, 0},
+ /* 35 */ { 4, s_2_35, 31, -1, 0},
+ /* 36 */ { 4, s_2_36, 31, -1, 0}
+ };
static symbol s_3_0[4] = { 'a', 'n', 'd', 'o' };
static symbol s_3_1[4] = { 'e', 'n', 'd', 'o' };
@@ -145,13 +145,13 @@ static symbol s_3_3[2] = { 'e', 'r' };
static symbol s_3_4[2] = { 'i', 'r' };
static struct among a_3[5] =
-{
-/* 0 */ { 4, s_3_0, -1, 1, 0},
-/* 1 */ { 4, s_3_1, -1, 1, 0},
-/* 2 */ { 2, s_3_2, -1, 2, 0},
-/* 3 */ { 2, s_3_3, -1, 2, 0},
-/* 4 */ { 2, s_3_4, -1, 2, 0}
-};
+ {
+ /* 0 */ { 4, s_3_0, -1, 1, 0},
+ /* 1 */ { 4, s_3_1, -1, 1, 0},
+ /* 2 */ { 2, s_3_2, -1, 2, 0},
+ /* 3 */ { 2, s_3_3, -1, 2, 0},
+ /* 4 */ { 2, s_3_4, -1, 2, 0}
+ };
static symbol s_4_0[2] = { 'i', 'c' };
static symbol s_4_1[4] = { 'a', 'b', 'i', 'l' };
@@ -159,23 +159,23 @@ static symbol s_4_2[2] = { 'o', 's' };
static symbol s_4_3[2] = { 'i', 'v' };
static struct among a_4[4] =
-{
-/* 0 */ { 2, s_4_0, -1, -1, 0},
-/* 1 */ { 4, s_4_1, -1, -1, 0},
-/* 2 */ { 2, s_4_2, -1, -1, 0},
-/* 3 */ { 2, s_4_3, -1, 1, 0}
-};
+ {
+ /* 0 */ { 2, s_4_0, -1, -1, 0},
+ /* 1 */ { 4, s_4_1, -1, -1, 0},
+ /* 2 */ { 2, s_4_2, -1, -1, 0},
+ /* 3 */ { 2, s_4_3, -1, 1, 0}
+ };
static symbol s_5_0[2] = { 'i', 'c' };
static symbol s_5_1[4] = { 'a', 'b', 'i', 'l' };
static symbol s_5_2[2] = { 'i', 'v' };
static struct among a_5[3] =
-{
-/* 0 */ { 2, s_5_0, -1, 1, 0},
-/* 1 */ { 4, s_5_1, -1, 1, 0},
-/* 2 */ { 2, s_5_2, -1, 1, 0}
-};
+ {
+ /* 0 */ { 2, s_5_0, -1, 1, 0},
+ /* 1 */ { 4, s_5_1, -1, 1, 0},
+ /* 2 */ { 2, s_5_2, -1, 1, 0}
+ };
static symbol s_6_0[3] = { 'i', 'c', 'a' };
static symbol s_6_1[5] = { 'l', 'o', 'g', 'i', 'a' };
@@ -230,59 +230,59 @@ static symbol s_6_49[5] = { 'i', 's', 't', 0xC3, 0xA8 };
static symbol s_6_50[5] = { 'i', 's', 't', 0xC3, 0xAC };
static struct among a_6[51] =
-{
-/* 0 */ { 3, s_6_0, -1, 1, 0},
-/* 1 */ { 5, s_6_1, -1, 3, 0},
-/* 2 */ { 3, s_6_2, -1, 1, 0},
-/* 3 */ { 4, s_6_3, -1, 1, 0},
-/* 4 */ { 3, s_6_4, -1, 9, 0},
-/* 5 */ { 4, s_6_5, -1, 1, 0},
-/* 6 */ { 4, s_6_6, -1, 5, 0},
-/* 7 */ { 3, s_6_7, -1, 1, 0},
-/* 8 */ { 6, s_6_8, 7, 1, 0},
-/* 9 */ { 4, s_6_9, -1, 1, 0},
-/* 10 */ { 5, s_6_10, -1, 3, 0},
-/* 11 */ { 5, s_6_11, -1, 1, 0},
-/* 12 */ { 5, s_6_12, -1, 1, 0},
-/* 13 */ { 6, s_6_13, -1, 4, 0},
-/* 14 */ { 6, s_6_14, -1, 2, 0},
-/* 15 */ { 6, s_6_15, -1, 4, 0},
-/* 16 */ { 5, s_6_16, -1, 2, 0},
-/* 17 */ { 3, s_6_17, -1, 1, 0},
-/* 18 */ { 4, s_6_18, -1, 1, 0},
-/* 19 */ { 5, s_6_19, -1, 1, 0},
-/* 20 */ { 6, s_6_20, 19, 7, 0},
-/* 21 */ { 4, s_6_21, -1, 1, 0},
-/* 22 */ { 3, s_6_22, -1, 9, 0},
-/* 23 */ { 4, s_6_23, -1, 1, 0},
-/* 24 */ { 4, s_6_24, -1, 5, 0},
-/* 25 */ { 3, s_6_25, -1, 1, 0},
-/* 26 */ { 6, s_6_26, 25, 1, 0},
-/* 27 */ { 4, s_6_27, -1, 1, 0},
-/* 28 */ { 5, s_6_28, -1, 1, 0},
-/* 29 */ { 5, s_6_29, -1, 1, 0},
-/* 30 */ { 4, s_6_30, -1, 1, 0},
-/* 31 */ { 6, s_6_31, -1, 4, 0},
-/* 32 */ { 6, s_6_32, -1, 2, 0},
-/* 33 */ { 6, s_6_33, -1, 4, 0},
-/* 34 */ { 5, s_6_34, -1, 2, 0},
-/* 35 */ { 3, s_6_35, -1, 1, 0},
-/* 36 */ { 4, s_6_36, -1, 1, 0},
-/* 37 */ { 6, s_6_37, -1, 6, 0},
-/* 38 */ { 6, s_6_38, -1, 6, 0},
-/* 39 */ { 4, s_6_39, -1, 1, 0},
-/* 40 */ { 3, s_6_40, -1, 9, 0},
-/* 41 */ { 3, s_6_41, -1, 1, 0},
-/* 42 */ { 4, s_6_42, -1, 1, 0},
-/* 43 */ { 3, s_6_43, -1, 1, 0},
-/* 44 */ { 6, s_6_44, -1, 6, 0},
-/* 45 */ { 6, s_6_45, -1, 6, 0},
-/* 46 */ { 3, s_6_46, -1, 9, 0},
-/* 47 */ { 4, s_6_47, -1, 8, 0},
-/* 48 */ { 5, s_6_48, -1, 1, 0},
-/* 49 */ { 5, s_6_49, -1, 1, 0},
-/* 50 */ { 5, s_6_50, -1, 1, 0}
-};
+ {
+ /* 0 */ { 3, s_6_0, -1, 1, 0},
+ /* 1 */ { 5, s_6_1, -1, 3, 0},
+ /* 2 */ { 3, s_6_2, -1, 1, 0},
+ /* 3 */ { 4, s_6_3, -1, 1, 0},
+ /* 4 */ { 3, s_6_4, -1, 9, 0},
+ /* 5 */ { 4, s_6_5, -1, 1, 0},
+ /* 6 */ { 4, s_6_6, -1, 5, 0},
+ /* 7 */ { 3, s_6_7, -1, 1, 0},
+ /* 8 */ { 6, s_6_8, 7, 1, 0},
+ /* 9 */ { 4, s_6_9, -1, 1, 0},
+ /* 10 */ { 5, s_6_10, -1, 3, 0},
+ /* 11 */ { 5, s_6_11, -1, 1, 0},
+ /* 12 */ { 5, s_6_12, -1, 1, 0},
+ /* 13 */ { 6, s_6_13, -1, 4, 0},
+ /* 14 */ { 6, s_6_14, -1, 2, 0},
+ /* 15 */ { 6, s_6_15, -1, 4, 0},
+ /* 16 */ { 5, s_6_16, -1, 2, 0},
+ /* 17 */ { 3, s_6_17, -1, 1, 0},
+ /* 18 */ { 4, s_6_18, -1, 1, 0},
+ /* 19 */ { 5, s_6_19, -1, 1, 0},
+ /* 20 */ { 6, s_6_20, 19, 7, 0},
+ /* 21 */ { 4, s_6_21, -1, 1, 0},
+ /* 22 */ { 3, s_6_22, -1, 9, 0},
+ /* 23 */ { 4, s_6_23, -1, 1, 0},
+ /* 24 */ { 4, s_6_24, -1, 5, 0},
+ /* 25 */ { 3, s_6_25, -1, 1, 0},
+ /* 26 */ { 6, s_6_26, 25, 1, 0},
+ /* 27 */ { 4, s_6_27, -1, 1, 0},
+ /* 28 */ { 5, s_6_28, -1, 1, 0},
+ /* 29 */ { 5, s_6_29, -1, 1, 0},
+ /* 30 */ { 4, s_6_30, -1, 1, 0},
+ /* 31 */ { 6, s_6_31, -1, 4, 0},
+ /* 32 */ { 6, s_6_32, -1, 2, 0},
+ /* 33 */ { 6, s_6_33, -1, 4, 0},
+ /* 34 */ { 5, s_6_34, -1, 2, 0},
+ /* 35 */ { 3, s_6_35, -1, 1, 0},
+ /* 36 */ { 4, s_6_36, -1, 1, 0},
+ /* 37 */ { 6, s_6_37, -1, 6, 0},
+ /* 38 */ { 6, s_6_38, -1, 6, 0},
+ /* 39 */ { 4, s_6_39, -1, 1, 0},
+ /* 40 */ { 3, s_6_40, -1, 9, 0},
+ /* 41 */ { 3, s_6_41, -1, 1, 0},
+ /* 42 */ { 4, s_6_42, -1, 1, 0},
+ /* 43 */ { 3, s_6_43, -1, 1, 0},
+ /* 44 */ { 6, s_6_44, -1, 6, 0},
+ /* 45 */ { 6, s_6_45, -1, 6, 0},
+ /* 46 */ { 3, s_6_46, -1, 9, 0},
+ /* 47 */ { 4, s_6_47, -1, 8, 0},
+ /* 48 */ { 5, s_6_48, -1, 1, 0},
+ /* 49 */ { 5, s_6_49, -1, 1, 0},
+ /* 50 */ { 5, s_6_50, -1, 1, 0}
+ };
static symbol s_7_0[4] = { 'i', 's', 'c', 'a' };
static symbol s_7_1[4] = { 'e', 'n', 'd', 'a' };
@@ -373,95 +373,95 @@ static symbol s_7_85[4] = { 'e', 'r', 0xC3, 0xB2 };
static symbol s_7_86[4] = { 'i', 'r', 0xC3, 0xB2 };
static struct among a_7[87] =
-{
-/* 0 */ { 4, s_7_0, -1, 1, 0},
-/* 1 */ { 4, s_7_1, -1, 1, 0},
-/* 2 */ { 3, s_7_2, -1, 1, 0},
-/* 3 */ { 3, s_7_3, -1, 1, 0},
-/* 4 */ { 3, s_7_4, -1, 1, 0},
-/* 5 */ { 3, s_7_5, -1, 1, 0},
-/* 6 */ { 3, s_7_6, -1, 1, 0},
-/* 7 */ { 3, s_7_7, -1, 1, 0},
-/* 8 */ { 6, s_7_8, -1, 1, 0},
-/* 9 */ { 6, s_7_9, -1, 1, 0},
-/* 10 */ { 4, s_7_10, -1, 1, 0},
-/* 11 */ { 4, s_7_11, -1, 1, 0},
-/* 12 */ { 3, s_7_12, -1, 1, 0},
-/* 13 */ { 3, s_7_13, -1, 1, 0},
-/* 14 */ { 3, s_7_14, -1, 1, 0},
-/* 15 */ { 4, s_7_15, -1, 1, 0},
-/* 16 */ { 3, s_7_16, -1, 1, 0},
-/* 17 */ { 5, s_7_17, 16, 1, 0},
-/* 18 */ { 5, s_7_18, 16, 1, 0},
-/* 19 */ { 5, s_7_19, 16, 1, 0},
-/* 20 */ { 3, s_7_20, -1, 1, 0},
-/* 21 */ { 5, s_7_21, 20, 1, 0},
-/* 22 */ { 5, s_7_22, 20, 1, 0},
-/* 23 */ { 3, s_7_23, -1, 1, 0},
-/* 24 */ { 6, s_7_24, -1, 1, 0},
-/* 25 */ { 6, s_7_25, -1, 1, 0},
-/* 26 */ { 3, s_7_26, -1, 1, 0},
-/* 27 */ { 4, s_7_27, -1, 1, 0},
-/* 28 */ { 4, s_7_28, -1, 1, 0},
-/* 29 */ { 4, s_7_29, -1, 1, 0},
-/* 30 */ { 4, s_7_30, -1, 1, 0},
-/* 31 */ { 4, s_7_31, -1, 1, 0},
-/* 32 */ { 4, s_7_32, -1, 1, 0},
-/* 33 */ { 4, s_7_33, -1, 1, 0},
-/* 34 */ { 3, s_7_34, -1, 1, 0},
-/* 35 */ { 3, s_7_35, -1, 1, 0},
-/* 36 */ { 6, s_7_36, -1, 1, 0},
-/* 37 */ { 6, s_7_37, -1, 1, 0},
-/* 38 */ { 3, s_7_38, -1, 1, 0},
-/* 39 */ { 3, s_7_39, -1, 1, 0},
-/* 40 */ { 3, s_7_40, -1, 1, 0},
-/* 41 */ { 3, s_7_41, -1, 1, 0},
-/* 42 */ { 4, s_7_42, -1, 1, 0},
-/* 43 */ { 4, s_7_43, -1, 1, 0},
-/* 44 */ { 4, s_7_44, -1, 1, 0},
-/* 45 */ { 4, s_7_45, -1, 1, 0},
-/* 46 */ { 4, s_7_46, -1, 1, 0},
-/* 47 */ { 5, s_7_47, -1, 1, 0},
-/* 48 */ { 5, s_7_48, -1, 1, 0},
-/* 49 */ { 5, s_7_49, -1, 1, 0},
-/* 50 */ { 5, s_7_50, -1, 1, 0},
-/* 51 */ { 5, s_7_51, -1, 1, 0},
-/* 52 */ { 6, s_7_52, -1, 1, 0},
-/* 53 */ { 4, s_7_53, -1, 1, 0},
-/* 54 */ { 4, s_7_54, -1, 1, 0},
-/* 55 */ { 6, s_7_55, 54, 1, 0},
-/* 56 */ { 6, s_7_56, 54, 1, 0},
-/* 57 */ { 4, s_7_57, -1, 1, 0},
-/* 58 */ { 3, s_7_58, -1, 1, 0},
-/* 59 */ { 6, s_7_59, 58, 1, 0},
-/* 60 */ { 5, s_7_60, 58, 1, 0},
-/* 61 */ { 5, s_7_61, 58, 1, 0},
-/* 62 */ { 5, s_7_62, 58, 1, 0},
-/* 63 */ { 6, s_7_63, -1, 1, 0},
-/* 64 */ { 6, s_7_64, -1, 1, 0},
-/* 65 */ { 3, s_7_65, -1, 1, 0},
-/* 66 */ { 6, s_7_66, 65, 1, 0},
-/* 67 */ { 5, s_7_67, 65, 1, 0},
-/* 68 */ { 5, s_7_68, 65, 1, 0},
-/* 69 */ { 5, s_7_69, 65, 1, 0},
-/* 70 */ { 8, s_7_70, -1, 1, 0},
-/* 71 */ { 8, s_7_71, -1, 1, 0},
-/* 72 */ { 6, s_7_72, -1, 1, 0},
-/* 73 */ { 6, s_7_73, -1, 1, 0},
-/* 74 */ { 6, s_7_74, -1, 1, 0},
-/* 75 */ { 3, s_7_75, -1, 1, 0},
-/* 76 */ { 3, s_7_76, -1, 1, 0},
-/* 77 */ { 3, s_7_77, -1, 1, 0},
-/* 78 */ { 3, s_7_78, -1, 1, 0},
-/* 79 */ { 3, s_7_79, -1, 1, 0},
-/* 80 */ { 3, s_7_80, -1, 1, 0},
-/* 81 */ { 2, s_7_81, -1, 1, 0},
-/* 82 */ { 2, s_7_82, -1, 1, 0},
-/* 83 */ { 4, s_7_83, -1, 1, 0},
-/* 84 */ { 4, s_7_84, -1, 1, 0},
-/* 85 */ { 4, s_7_85, -1, 1, 0},
-/* 86 */ { 4, s_7_86, -1, 1, 0}
-};
+ {
+ /* 0 */ { 4, s_7_0, -1, 1, 0},
+ /* 1 */ { 4, s_7_1, -1, 1, 0},
+ /* 2 */ { 3, s_7_2, -1, 1, 0},
+ /* 3 */ { 3, s_7_3, -1, 1, 0},
+ /* 4 */ { 3, s_7_4, -1, 1, 0},
+ /* 5 */ { 3, s_7_5, -1, 1, 0},
+ /* 6 */ { 3, s_7_6, -1, 1, 0},
+ /* 7 */ { 3, s_7_7, -1, 1, 0},
+ /* 8 */ { 6, s_7_8, -1, 1, 0},
+ /* 9 */ { 6, s_7_9, -1, 1, 0},
+ /* 10 */ { 4, s_7_10, -1, 1, 0},
+ /* 11 */ { 4, s_7_11, -1, 1, 0},
+ /* 12 */ { 3, s_7_12, -1, 1, 0},
+ /* 13 */ { 3, s_7_13, -1, 1, 0},
+ /* 14 */ { 3, s_7_14, -1, 1, 0},
+ /* 15 */ { 4, s_7_15, -1, 1, 0},
+ /* 16 */ { 3, s_7_16, -1, 1, 0},
+ /* 17 */ { 5, s_7_17, 16, 1, 0},
+ /* 18 */ { 5, s_7_18, 16, 1, 0},
+ /* 19 */ { 5, s_7_19, 16, 1, 0},
+ /* 20 */ { 3, s_7_20, -1, 1, 0},
+ /* 21 */ { 5, s_7_21, 20, 1, 0},
+ /* 22 */ { 5, s_7_22, 20, 1, 0},
+ /* 23 */ { 3, s_7_23, -1, 1, 0},
+ /* 24 */ { 6, s_7_24, -1, 1, 0},
+ /* 25 */ { 6, s_7_25, -1, 1, 0},
+ /* 26 */ { 3, s_7_26, -1, 1, 0},
+ /* 27 */ { 4, s_7_27, -1, 1, 0},
+ /* 28 */ { 4, s_7_28, -1, 1, 0},
+ /* 29 */ { 4, s_7_29, -1, 1, 0},
+ /* 30 */ { 4, s_7_30, -1, 1, 0},
+ /* 31 */ { 4, s_7_31, -1, 1, 0},
+ /* 32 */ { 4, s_7_32, -1, 1, 0},
+ /* 33 */ { 4, s_7_33, -1, 1, 0},
+ /* 34 */ { 3, s_7_34, -1, 1, 0},
+ /* 35 */ { 3, s_7_35, -1, 1, 0},
+ /* 36 */ { 6, s_7_36, -1, 1, 0},
+ /* 37 */ { 6, s_7_37, -1, 1, 0},
+ /* 38 */ { 3, s_7_38, -1, 1, 0},
+ /* 39 */ { 3, s_7_39, -1, 1, 0},
+ /* 40 */ { 3, s_7_40, -1, 1, 0},
+ /* 41 */ { 3, s_7_41, -1, 1, 0},
+ /* 42 */ { 4, s_7_42, -1, 1, 0},
+ /* 43 */ { 4, s_7_43, -1, 1, 0},
+ /* 44 */ { 4, s_7_44, -1, 1, 0},
+ /* 45 */ { 4, s_7_45, -1, 1, 0},
+ /* 46 */ { 4, s_7_46, -1, 1, 0},
+ /* 47 */ { 5, s_7_47, -1, 1, 0},
+ /* 48 */ { 5, s_7_48, -1, 1, 0},
+ /* 49 */ { 5, s_7_49, -1, 1, 0},
+ /* 50 */ { 5, s_7_50, -1, 1, 0},
+ /* 51 */ { 5, s_7_51, -1, 1, 0},
+ /* 52 */ { 6, s_7_52, -1, 1, 0},
+ /* 53 */ { 4, s_7_53, -1, 1, 0},
+ /* 54 */ { 4, s_7_54, -1, 1, 0},
+ /* 55 */ { 6, s_7_55, 54, 1, 0},
+ /* 56 */ { 6, s_7_56, 54, 1, 0},
+ /* 57 */ { 4, s_7_57, -1, 1, 0},
+ /* 58 */ { 3, s_7_58, -1, 1, 0},
+ /* 59 */ { 6, s_7_59, 58, 1, 0},
+ /* 60 */ { 5, s_7_60, 58, 1, 0},
+ /* 61 */ { 5, s_7_61, 58, 1, 0},
+ /* 62 */ { 5, s_7_62, 58, 1, 0},
+ /* 63 */ { 6, s_7_63, -1, 1, 0},
+ /* 64 */ { 6, s_7_64, -1, 1, 0},
+ /* 65 */ { 3, s_7_65, -1, 1, 0},
+ /* 66 */ { 6, s_7_66, 65, 1, 0},
+ /* 67 */ { 5, s_7_67, 65, 1, 0},
+ /* 68 */ { 5, s_7_68, 65, 1, 0},
+ /* 69 */ { 5, s_7_69, 65, 1, 0},
+ /* 70 */ { 8, s_7_70, -1, 1, 0},
+ /* 71 */ { 8, s_7_71, -1, 1, 0},
+ /* 72 */ { 6, s_7_72, -1, 1, 0},
+ /* 73 */ { 6, s_7_73, -1, 1, 0},
+ /* 74 */ { 6, s_7_74, -1, 1, 0},
+ /* 75 */ { 3, s_7_75, -1, 1, 0},
+ /* 76 */ { 3, s_7_76, -1, 1, 0},
+ /* 77 */ { 3, s_7_77, -1, 1, 0},
+ /* 78 */ { 3, s_7_78, -1, 1, 0},
+ /* 79 */ { 3, s_7_79, -1, 1, 0},
+ /* 80 */ { 3, s_7_80, -1, 1, 0},
+ /* 81 */ { 2, s_7_81, -1, 1, 0},
+ /* 82 */ { 2, s_7_82, -1, 1, 0},
+ /* 83 */ { 4, s_7_83, -1, 1, 0},
+ /* 84 */ { 4, s_7_84, -1, 1, 0},
+ /* 85 */ { 4, s_7_85, -1, 1, 0},
+ /* 86 */ { 4, s_7_86, -1, 1, 0}
+ };
static unsigned char g_v[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 128, 8, 2, 1 };
@@ -493,631 +493,631 @@ static symbol s_20[] = { 'i' };
static symbol s_21[] = { 'h' };
static int r_prelude(struct SN_env * z) {
- int among_var;
- { int c_test = z->c; /* test, line 35 */
- while(1) { /* repeat, line 35 */
- int c = z->c;
- z->bra = z->c; /* [, line 36 */
- among_var = find_among(z, a_0, 7); /* substring, line 36 */
- if (!(among_var)) goto lab0;
- z->ket = z->c; /* ], line 36 */
- switch(among_var) {
- case 0: goto lab0;
- case 1:
- { int ret;
- ret = slice_from_s(z, 2, s_0); /* <-, line 37 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int ret;
- ret = slice_from_s(z, 2, s_1); /* <-, line 38 */
- if (ret < 0) return ret;
- }
- break;
- case 3:
- { int ret;
- ret = slice_from_s(z, 2, s_2); /* <-, line 39 */
- if (ret < 0) return ret;
- }
- break;
- case 4:
- { int ret;
- ret = slice_from_s(z, 2, s_3); /* <-, line 40 */
- if (ret < 0) return ret;
- }
- break;
- case 5:
- { int ret;
- ret = slice_from_s(z, 2, s_4); /* <-, line 41 */
- if (ret < 0) return ret;
- }
- break;
- case 6:
- { int ret;
- ret = slice_from_s(z, 2, s_5); /* <-, line 42 */
- if (ret < 0) return ret;
- }
- break;
- case 7:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* next, line 43 */
- }
- break;
- }
- continue;
- lab0:
- z->c = c;
- break;
+ int among_var;
+ { int c_test = z->c; /* test, line 35 */
+ while(1) { /* repeat, line 35 */
+ int c = z->c;
+ z->bra = z->c; /* [, line 36 */
+ among_var = find_among(z, a_0, 7); /* substring, line 36 */
+ if (!(among_var)) goto lab0;
+ z->ket = z->c; /* ], line 36 */
+ switch(among_var) {
+ case 0: goto lab0;
+ case 1:
+ { int ret;
+ ret = slice_from_s(z, 2, s_0); /* <-, line 37 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ { int ret;
+ ret = slice_from_s(z, 2, s_1); /* <-, line 38 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 3:
+ { int ret;
+ ret = slice_from_s(z, 2, s_2); /* <-, line 39 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 4:
+ { int ret;
+ ret = slice_from_s(z, 2, s_3); /* <-, line 40 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 5:
+ { int ret;
+ ret = slice_from_s(z, 2, s_4); /* <-, line 41 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 6:
+ { int ret;
+ ret = slice_from_s(z, 2, s_5); /* <-, line 42 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 7:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* next, line 43 */
+ }
+ break;
+ }
+ continue;
+ lab0:
+ z->c = c;
+ break;
+ }
+ z->c = c_test;
}
- z->c = c_test;
- }
- while(1) { /* repeat, line 46 */
- int c = z->c;
- while(1) { /* goto, line 46 */
- int c = z->c;
- if (!(in_grouping_U(z, g_v, 97, 249))) goto lab2;
- z->bra = z->c; /* [, line 47 */
- { int c = z->c; /* or, line 47 */
- if (!(eq_s(z, 1, s_6))) goto lab4;
- z->ket = z->c; /* ], line 47 */
- if (!(in_grouping_U(z, g_v, 97, 249))) goto lab4;
- { int ret;
- ret = slice_from_s(z, 1, s_7); /* <-, line 47 */
- if (ret < 0) return ret;
+ while(1) { /* repeat, line 46 */
+ int c = z->c;
+ while(1) { /* goto, line 46 */
+ int c = z->c;
+ if (!(in_grouping_U(z, g_v, 97, 249))) goto lab2;
+ z->bra = z->c; /* [, line 47 */
+ { int c = z->c; /* or, line 47 */
+ if (!(eq_s(z, 1, s_6))) goto lab4;
+ z->ket = z->c; /* ], line 47 */
+ if (!(in_grouping_U(z, g_v, 97, 249))) goto lab4;
+ { int ret;
+ ret = slice_from_s(z, 1, s_7); /* <-, line 47 */
+ if (ret < 0) return ret;
+ }
+ goto lab3;
+ lab4:
+ z->c = c;
+ if (!(eq_s(z, 1, s_8))) goto lab2;
+ z->ket = z->c; /* ], line 48 */
+ if (!(in_grouping_U(z, g_v, 97, 249))) goto lab2;
+ { int ret;
+ ret = slice_from_s(z, 1, s_9); /* <-, line 48 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab3:
+ z->c = c;
+ break;
+ lab2:
+ z->c = c;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab1;
+ z->c = c; /* goto, line 46 */
+ }
}
- goto lab3;
- lab4:
+ continue;
+ lab1:
z->c = c;
- if (!(eq_s(z, 1, s_8))) goto lab2;
- z->ket = z->c; /* ], line 48 */
- if (!(in_grouping_U(z, g_v, 97, 249))) goto lab2;
- { int ret;
- ret = slice_from_s(z, 1, s_9); /* <-, line 48 */
- if (ret < 0) return ret;
- }
- }
- lab3:
- z->c = c;
- break;
- lab2:
- z->c = c;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab1;
- z->c = c; /* goto, line 46 */
- }
+ break;
}
- continue;
- lab1:
- z->c = c;
- break;
- }
- return 1;
+ return 1;
}
static int r_mark_regions(struct SN_env * z) {
- z->I[0] = z->l;
- z->I[1] = z->l;
- z->I[2] = z->l;
- { int c = z->c; /* do, line 58 */
- { int c = z->c; /* or, line 60 */
- if (!(in_grouping_U(z, g_v, 97, 249))) goto lab2;
- { int c = z->c; /* or, line 59 */
- if (!(out_grouping_U(z, g_v, 97, 249))) goto lab4;
- while(1) { /* gopast, line 59 */
- if (!(in_grouping_U(z, g_v, 97, 249))) goto lab5;
- break;
- lab5:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab4;
- z->c = c; /* gopast, line 59 */
- }
+ z->I[0] = z->l;
+ z->I[1] = z->l;
+ z->I[2] = z->l;
+ { int c = z->c; /* do, line 58 */
+ { int c = z->c; /* or, line 60 */
+ if (!(in_grouping_U(z, g_v, 97, 249))) goto lab2;
+ { int c = z->c; /* or, line 59 */
+ if (!(out_grouping_U(z, g_v, 97, 249))) goto lab4;
+ while(1) { /* gopast, line 59 */
+ if (!(in_grouping_U(z, g_v, 97, 249))) goto lab5;
+ break;
+ lab5:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab4;
+ z->c = c; /* gopast, line 59 */
+ }
+ }
+ goto lab3;
+ lab4:
+ z->c = c;
+ if (!(in_grouping_U(z, g_v, 97, 249))) goto lab2;
+ while(1) { /* gopast, line 59 */
+ if (!(out_grouping_U(z, g_v, 97, 249))) goto lab6;
+ break;
+ lab6:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab2;
+ z->c = c; /* gopast, line 59 */
+ }
+ }
+ }
+ lab3:
+ goto lab1;
+ lab2:
+ z->c = c;
+ if (!(out_grouping_U(z, g_v, 97, 249))) goto lab0;
+ { int c = z->c; /* or, line 61 */
+ if (!(out_grouping_U(z, g_v, 97, 249))) goto lab8;
+ while(1) { /* gopast, line 61 */
+ if (!(in_grouping_U(z, g_v, 97, 249))) goto lab9;
+ break;
+ lab9:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab8;
+ z->c = c; /* gopast, line 61 */
+ }
+ }
+ goto lab7;
+ lab8:
+ z->c = c;
+ if (!(in_grouping_U(z, g_v, 97, 249))) goto lab0;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* next, line 61 */
+ }
+ }
+ lab7:
+ ;
}
- goto lab3;
- lab4:
+ lab1:
+ z->I[0] = z->c; /* setmark pV, line 62 */
+ lab0:
z->c = c;
- if (!(in_grouping_U(z, g_v, 97, 249))) goto lab2;
- while(1) { /* gopast, line 59 */
- if (!(out_grouping_U(z, g_v, 97, 249))) goto lab6;
- break;
- lab6:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab2;
- z->c = c; /* gopast, line 59 */
- }
+ }
+ { int c = z->c; /* do, line 64 */
+ while(1) { /* gopast, line 65 */
+ if (!(in_grouping_U(z, g_v, 97, 249))) goto lab11;
+ break;
+ lab11:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab10;
+ z->c = c; /* gopast, line 65 */
+ }
}
- }
- lab3:
- goto lab1;
- lab2:
- z->c = c;
- if (!(out_grouping_U(z, g_v, 97, 249))) goto lab0;
- { int c = z->c; /* or, line 61 */
- if (!(out_grouping_U(z, g_v, 97, 249))) goto lab8;
- while(1) { /* gopast, line 61 */
- if (!(in_grouping_U(z, g_v, 97, 249))) goto lab9;
- break;
- lab9:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab8;
- z->c = c; /* gopast, line 61 */
- }
+ while(1) { /* gopast, line 65 */
+ if (!(out_grouping_U(z, g_v, 97, 249))) goto lab12;
+ break;
+ lab12:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab10;
+ z->c = c; /* gopast, line 65 */
+ }
}
- goto lab7;
- lab8:
- z->c = c;
- if (!(in_grouping_U(z, g_v, 97, 249))) goto lab0;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* next, line 61 */
+ z->I[1] = z->c; /* setmark p1, line 65 */
+ while(1) { /* gopast, line 66 */
+ if (!(in_grouping_U(z, g_v, 97, 249))) goto lab13;
+ break;
+ lab13:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab10;
+ z->c = c; /* gopast, line 66 */
+ }
}
- }
- lab7:
- ;
- }
- lab1:
- z->I[0] = z->c; /* setmark pV, line 62 */
- lab0:
- z->c = c;
- }
- { int c = z->c; /* do, line 64 */
- while(1) { /* gopast, line 65 */
- if (!(in_grouping_U(z, g_v, 97, 249))) goto lab11;
- break;
- lab11:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab10;
- z->c = c; /* gopast, line 65 */
- }
- }
- while(1) { /* gopast, line 65 */
- if (!(out_grouping_U(z, g_v, 97, 249))) goto lab12;
- break;
- lab12:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab10;
- z->c = c; /* gopast, line 65 */
- }
- }
- z->I[1] = z->c; /* setmark p1, line 65 */
- while(1) { /* gopast, line 66 */
- if (!(in_grouping_U(z, g_v, 97, 249))) goto lab13;
- break;
- lab13:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab10;
- z->c = c; /* gopast, line 66 */
- }
- }
- while(1) { /* gopast, line 66 */
- if (!(out_grouping_U(z, g_v, 97, 249))) goto lab14;
- break;
- lab14:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab10;
- z->c = c; /* gopast, line 66 */
- }
+ while(1) { /* gopast, line 66 */
+ if (!(out_grouping_U(z, g_v, 97, 249))) goto lab14;
+ break;
+ lab14:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab10;
+ z->c = c; /* gopast, line 66 */
+ }
+ }
+ z->I[2] = z->c; /* setmark p2, line 66 */
+ lab10:
+ z->c = c;
}
- z->I[2] = z->c; /* setmark p2, line 66 */
- lab10:
- z->c = c;
- }
- return 1;
+ return 1;
}
static int r_postlude(struct SN_env * z) {
- int among_var;
- while(1) { /* repeat, line 70 */
- int c = z->c;
- z->bra = z->c; /* [, line 72 */
- among_var = find_among(z, a_1, 3); /* substring, line 72 */
- if (!(among_var)) goto lab0;
- z->ket = z->c; /* ], line 72 */
- switch(among_var) {
- case 0: goto lab0;
- case 1:
- { int ret;
- ret = slice_from_s(z, 1, s_10); /* <-, line 73 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int ret;
- ret = slice_from_s(z, 1, s_11); /* <-, line 74 */
- if (ret < 0) return ret;
- }
- break;
- case 3:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* next, line 75 */
+ int among_var;
+ while(1) { /* repeat, line 70 */
+ int c = z->c;
+ z->bra = z->c; /* [, line 72 */
+ among_var = find_among(z, a_1, 3); /* substring, line 72 */
+ if (!(among_var)) goto lab0;
+ z->ket = z->c; /* ], line 72 */
+ switch(among_var) {
+ case 0: goto lab0;
+ case 1:
+ { int ret;
+ ret = slice_from_s(z, 1, s_10); /* <-, line 73 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ { int ret;
+ ret = slice_from_s(z, 1, s_11); /* <-, line 74 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 3:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* next, line 75 */
+ }
+ break;
}
+ continue;
+ lab0:
+ z->c = c;
break;
}
- continue;
- lab0:
- z->c = c;
- break;
- }
- return 1;
+ return 1;
}
static int r_RV(struct SN_env * z) {
- if (!(z->I[0] <= z->c)) return 0;
- return 1;
+ if (!(z->I[0] <= z->c)) return 0;
+ return 1;
}
static int r_R1(struct SN_env * z) {
- if (!(z->I[1] <= z->c)) return 0;
- return 1;
+ if (!(z->I[1] <= z->c)) return 0;
+ return 1;
}
static int r_R2(struct SN_env * z) {
- if (!(z->I[2] <= z->c)) return 0;
- return 1;
+ if (!(z->I[2] <= z->c)) return 0;
+ return 1;
}
static int r_attached_pronoun(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 87 */
- if (!(find_among_b(z, a_2, 37))) return 0; /* substring, line 87 */
- z->bra = z->c; /* ], line 87 */
- among_var = find_among_b(z, a_3, 5); /* among, line 97 */
- if (!(among_var)) return 0;
- { int ret = r_RV(z);
- if (ret == 0) return 0; /* call RV, line 97 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 87 */
+ if (!(find_among_b(z, a_2, 37))) return 0; /* substring, line 87 */
+ z->bra = z->c; /* ], line 87 */
+ among_var = find_among_b(z, a_3, 5); /* among, line 97 */
+ if (!(among_var)) return 0;
+ { int ret = r_RV(z);
+ if (ret == 0) return 0; /* call RV, line 97 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 98 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_del(z); /* delete, line 98 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret;
- ret = slice_from_s(z, 1, s_12); /* <-, line 99 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_from_s(z, 1, s_12); /* <-, line 99 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_standard_suffix(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 104 */
- among_var = find_among_b(z, a_6, 51); /* substring, line 104 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 104 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 104 */
+ among_var = find_among_b(z, a_6, 51); /* substring, line 104 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 104 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 111 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 111 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 111 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 111 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 113 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 113 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 114 */
- z->ket = z->c; /* [, line 114 */
- if (!(eq_s_b(z, 2, s_13))) { z->c = z->l - m; goto lab0; }
- z->bra = z->c; /* ], line 114 */
{ int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab0; } /* call R2, line 114 */
- if (ret < 0) return ret;
+ if (ret == 0) return 0; /* call R2, line 113 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 114 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 113 */
+ if (ret < 0) return ret;
}
- lab0:
- ;
- }
- break;
+ { int m = z->l - z->c; (void) m; /* try, line 114 */
+ z->ket = z->c; /* [, line 114 */
+ if (!(eq_s_b(z, 2, s_13))) { z->c = z->l - m; goto lab0; }
+ z->bra = z->c; /* ], line 114 */
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab0; } /* call R2, line 114 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 114 */
+ if (ret < 0) return ret;
+ }
+ lab0:
+ ;
+ }
+ break;
case 3:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 117 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 3, s_14); /* <-, line 117 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 117 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 3, s_14); /* <-, line 117 */
+ if (ret < 0) return ret;
+ }
+ break;
case 4:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 119 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 1, s_15); /* <-, line 119 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 119 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 1, s_15); /* <-, line 119 */
+ if (ret < 0) return ret;
+ }
+ break;
case 5:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 121 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 4, s_16); /* <-, line 121 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 121 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 4, s_16); /* <-, line 121 */
+ if (ret < 0) return ret;
+ }
+ break;
case 6:
- { int ret = r_RV(z);
- if (ret == 0) return 0; /* call RV, line 123 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 123 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_RV(z);
+ if (ret == 0) return 0; /* call RV, line 123 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 123 */
+ if (ret < 0) return ret;
+ }
+ break;
case 7:
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 125 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 125 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 126 */
- z->ket = z->c; /* [, line 127 */
- among_var = find_among_b(z, a_4, 4); /* substring, line 127 */
- if (!(among_var)) { z->c = z->l - m; goto lab1; }
- z->bra = z->c; /* ], line 127 */
- { int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab1; } /* call R2, line 127 */
- if (ret < 0) return ret;
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 125 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 127 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 125 */
+ if (ret < 0) return ret;
}
- switch(among_var) {
- case 0: { z->c = z->l - m; goto lab1; }
- case 1:
- z->ket = z->c; /* [, line 128 */
- if (!(eq_s_b(z, 2, s_17))) { z->c = z->l - m; goto lab1; }
- z->bra = z->c; /* ], line 128 */
+ { int m = z->l - z->c; (void) m; /* try, line 126 */
+ z->ket = z->c; /* [, line 127 */
+ among_var = find_among_b(z, a_4, 4); /* substring, line 127 */
+ if (!(among_var)) { z->c = z->l - m; goto lab1; }
+ z->bra = z->c; /* ], line 127 */
{ int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab1; } /* call R2, line 128 */
- if (ret < 0) return ret;
+ if (ret == 0) { z->c = z->l - m; goto lab1; } /* call R2, line 127 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 128 */
- if (ret < 0) return ret;
- }
- break;
- }
- lab1:
- ;
- }
- break;
- case 8:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 134 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 134 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 135 */
- z->ket = z->c; /* [, line 136 */
- among_var = find_among_b(z, a_5, 3); /* substring, line 136 */
- if (!(among_var)) { z->c = z->l - m; goto lab2; }
- z->bra = z->c; /* ], line 136 */
- switch(among_var) {
- case 0: { z->c = z->l - m; goto lab2; }
- case 1:
- { int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab2; } /* call R2, line 137 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 127 */
+ if (ret < 0) return ret;
}
- { int ret;
- ret = slice_del(z); /* delete, line 137 */
- if (ret < 0) return ret;
+ switch(among_var) {
+ case 0: { z->c = z->l - m; goto lab1; }
+ case 1:
+ z->ket = z->c; /* [, line 128 */
+ if (!(eq_s_b(z, 2, s_17))) { z->c = z->l - m; goto lab1; }
+ z->bra = z->c; /* ], line 128 */
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab1; } /* call R2, line 128 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 128 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- break;
+ lab1:
+ ;
}
- lab2:
- ;
- }
- break;
- case 9:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 142 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 142 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 143 */
- z->ket = z->c; /* [, line 143 */
- if (!(eq_s_b(z, 2, s_18))) { z->c = z->l - m; goto lab3; }
- z->bra = z->c; /* ], line 143 */
+ break;
+ case 8:
{ int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 143 */
- if (ret < 0) return ret;
+ if (ret == 0) return 0; /* call R2, line 134 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 143 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 134 */
+ if (ret < 0) return ret;
}
- z->ket = z->c; /* [, line 143 */
- if (!(eq_s_b(z, 2, s_19))) { z->c = z->l - m; goto lab3; }
- z->bra = z->c; /* ], line 143 */
+ { int m = z->l - z->c; (void) m; /* try, line 135 */
+ z->ket = z->c; /* [, line 136 */
+ among_var = find_among_b(z, a_5, 3); /* substring, line 136 */
+ if (!(among_var)) { z->c = z->l - m; goto lab2; }
+ z->bra = z->c; /* ], line 136 */
+ switch(among_var) {
+ case 0: { z->c = z->l - m; goto lab2; }
+ case 1:
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab2; } /* call R2, line 137 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 137 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ lab2:
+ ;
+ }
+ break;
+ case 9:
{ int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 143 */
- if (ret < 0) return ret;
+ if (ret == 0) return 0; /* call R2, line 142 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 143 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 142 */
+ if (ret < 0) return ret;
}
- lab3:
- ;
- }
- break;
- }
- return 1;
+ { int m = z->l - z->c; (void) m; /* try, line 143 */
+ z->ket = z->c; /* [, line 143 */
+ if (!(eq_s_b(z, 2, s_18))) { z->c = z->l - m; goto lab3; }
+ z->bra = z->c; /* ], line 143 */
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 143 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 143 */
+ if (ret < 0) return ret;
+ }
+ z->ket = z->c; /* [, line 143 */
+ if (!(eq_s_b(z, 2, s_19))) { z->c = z->l - m; goto lab3; }
+ z->bra = z->c; /* ], line 143 */
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 143 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 143 */
+ if (ret < 0) return ret;
+ }
+ lab3:
+ ;
+ }
+ break;
+ }
+ return 1;
}
static int r_verb_suffix(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 148 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 148 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 149 */
- among_var = find_among_b(z, a_7, 87); /* substring, line 149 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 149 */
- switch(among_var) {
- case 0: { z->lb = m3; return 0; }
- case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 163 */
- if (ret < 0) return ret;
+ int among_var;
+ { int m3; /* setlimit, line 148 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 148 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 149 */
+ among_var = find_among_b(z, a_7, 87); /* substring, line 149 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 149 */
+ switch(among_var) {
+ case 0: { z->lb = m3; return 0; }
+ case 1:
+ { int ret;
+ ret = slice_del(z); /* delete, line 163 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- break;
+ z->lb = m3;
}
- z->lb = m3;
- }
- return 1;
+ return 1;
}
static int r_vowel_suffix(struct SN_env * z) {
- { int m = z->l - z->c; (void) m; /* try, line 171 */
- z->ket = z->c; /* [, line 172 */
- if (!(in_grouping_b_U(z, g_AEIO, 97, 242))) { z->c = z->l - m; goto lab0; }
- z->bra = z->c; /* ], line 172 */
- { int ret = r_RV(z);
- if (ret == 0) { z->c = z->l - m; goto lab0; } /* call RV, line 172 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 172 */
- if (ret < 0) return ret;
- }
- z->ket = z->c; /* [, line 173 */
- if (!(eq_s_b(z, 1, s_20))) { z->c = z->l - m; goto lab0; }
- z->bra = z->c; /* ], line 173 */
- { int ret = r_RV(z);
- if (ret == 0) { z->c = z->l - m; goto lab0; } /* call RV, line 173 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 173 */
- if (ret < 0) return ret;
- }
- lab0:
- ;
- }
- { int m = z->l - z->c; (void) m; /* try, line 175 */
- z->ket = z->c; /* [, line 176 */
- if (!(eq_s_b(z, 1, s_21))) { z->c = z->l - m; goto lab1; }
- z->bra = z->c; /* ], line 176 */
- if (!(in_grouping_b_U(z, g_CG, 99, 103))) { z->c = z->l - m; goto lab1; }
- { int ret = r_RV(z);
- if (ret == 0) { z->c = z->l - m; goto lab1; } /* call RV, line 176 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* try, line 171 */
+ z->ket = z->c; /* [, line 172 */
+ if (!(in_grouping_b_U(z, g_AEIO, 97, 242))) { z->c = z->l - m; goto lab0; }
+ z->bra = z->c; /* ], line 172 */
+ { int ret = r_RV(z);
+ if (ret == 0) { z->c = z->l - m; goto lab0; } /* call RV, line 172 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 172 */
+ if (ret < 0) return ret;
+ }
+ z->ket = z->c; /* [, line 173 */
+ if (!(eq_s_b(z, 1, s_20))) { z->c = z->l - m; goto lab0; }
+ z->bra = z->c; /* ], line 173 */
+ { int ret = r_RV(z);
+ if (ret == 0) { z->c = z->l - m; goto lab0; } /* call RV, line 173 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 173 */
+ if (ret < 0) return ret;
+ }
+ lab0:
+ ;
}
- { int ret;
- ret = slice_del(z); /* delete, line 176 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* try, line 175 */
+ z->ket = z->c; /* [, line 176 */
+ if (!(eq_s_b(z, 1, s_21))) { z->c = z->l - m; goto lab1; }
+ z->bra = z->c; /* ], line 176 */
+ if (!(in_grouping_b_U(z, g_CG, 99, 103))) { z->c = z->l - m; goto lab1; }
+ { int ret = r_RV(z);
+ if (ret == 0) { z->c = z->l - m; goto lab1; } /* call RV, line 176 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 176 */
+ if (ret < 0) return ret;
+ }
+ lab1:
+ ;
}
- lab1:
- ;
- }
- return 1;
+ return 1;
}
extern int italian_UTF_8_stem(struct SN_env * z) {
- { int c = z->c; /* do, line 182 */
- { int ret = r_prelude(z);
- if (ret == 0) goto lab0; /* call prelude, line 182 */
- if (ret < 0) return ret;
+ { int c = z->c; /* do, line 182 */
+ { int ret = r_prelude(z);
+ if (ret == 0) goto lab0; /* call prelude, line 182 */
+ if (ret < 0) return ret;
+ }
+ lab0:
+ z->c = c;
}
- lab0:
- z->c = c;
- }
- { int c = z->c; /* do, line 183 */
- { int ret = r_mark_regions(z);
- if (ret == 0) goto lab1; /* call mark_regions, line 183 */
- if (ret < 0) return ret;
+ { int c = z->c; /* do, line 183 */
+ { int ret = r_mark_regions(z);
+ if (ret == 0) goto lab1; /* call mark_regions, line 183 */
+ if (ret < 0) return ret;
+ }
+ lab1:
+ z->c = c;
}
- lab1:
- z->c = c;
- }
- z->lb = z->c; z->c = z->l; /* backwards, line 184 */
+ z->lb = z->c; z->c = z->l; /* backwards, line 184 */
- { int m = z->l - z->c; (void) m; /* do, line 185 */
- { int ret = r_attached_pronoun(z);
- if (ret == 0) goto lab2; /* call attached_pronoun, line 185 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 185 */
+ { int ret = r_attached_pronoun(z);
+ if (ret == 0) goto lab2; /* call attached_pronoun, line 185 */
+ if (ret < 0) return ret;
+ }
+ lab2:
+ z->c = z->l - m;
}
- lab2:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 186 */
- { int m = z->l - z->c; (void) m; /* or, line 186 */
- { int ret = r_standard_suffix(z);
- if (ret == 0) goto lab5; /* call standard_suffix, line 186 */
- if (ret < 0) return ret;
- }
- goto lab4;
- lab5:
- z->c = z->l - m;
- { int ret = r_verb_suffix(z);
- if (ret == 0) goto lab3; /* call verb_suffix, line 186 */
- if (ret < 0) return ret;
- }
+ { int m = z->l - z->c; (void) m; /* do, line 186 */
+ { int m = z->l - z->c; (void) m; /* or, line 186 */
+ { int ret = r_standard_suffix(z);
+ if (ret == 0) goto lab5; /* call standard_suffix, line 186 */
+ if (ret < 0) return ret;
+ }
+ goto lab4;
+ lab5:
+ z->c = z->l - m;
+ { int ret = r_verb_suffix(z);
+ if (ret == 0) goto lab3; /* call verb_suffix, line 186 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab4:
+ lab3:
+ z->c = z->l - m;
}
- lab4:
- lab3:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 187 */
- { int ret = r_vowel_suffix(z);
- if (ret == 0) goto lab6; /* call vowel_suffix, line 187 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 187 */
+ { int ret = r_vowel_suffix(z);
+ if (ret == 0) goto lab6; /* call vowel_suffix, line 187 */
+ if (ret < 0) return ret;
+ }
+ lab6:
+ z->c = z->l - m;
}
- lab6:
- z->c = z->l - m;
- }
- z->c = z->lb;
- { int c = z->c; /* do, line 189 */
- { int ret = r_postlude(z);
- if (ret == 0) goto lab7; /* call postlude, line 189 */
- if (ret < 0) return ret;
+ z->c = z->lb;
+ { int c = z->c; /* do, line 189 */
+ { int ret = r_postlude(z);
+ if (ret == 0) goto lab7; /* call postlude, line 189 */
+ if (ret < 0) return ret;
+ }
+ lab7:
+ z->c = c;
}
- lab7:
- z->c = c;
- }
- return 1;
+ return 1;
}
extern struct SN_env * italian_UTF_8_create_env(void) { return SN_create_env(0, 3, 0); }
diff --git a/src/libstemmer/stem_UTF_8_italian.h b/src/libstemmer/stem_UTF_8_italian.h
index 312e938..05c986d 100644
--- a/src/libstemmer/stem_UTF_8_italian.h
+++ b/src/libstemmer/stem_UTF_8_italian.h
@@ -18,10 +18,10 @@
extern "C" {
#endif
-extern struct SN_env * italian_UTF_8_create_env(void);
-extern void italian_UTF_8_close_env(struct SN_env * z);
+ extern struct SN_env * italian_UTF_8_create_env(void);
+ extern void italian_UTF_8_close_env(struct SN_env * z);
-extern int italian_UTF_8_stem(struct SN_env * z);
+ extern int italian_UTF_8_stem(struct SN_env * z);
#ifdef __cplusplus
}
diff --git a/src/libstemmer/stem_UTF_8_norwegian.c b/src/libstemmer/stem_UTF_8_norwegian.c
index 4cbea81..08b504b 100644
--- a/src/libstemmer/stem_UTF_8_norwegian.c
+++ b/src/libstemmer/stem_UTF_8_norwegian.c
@@ -56,46 +56,46 @@ static symbol s_0_27[3] = { 'e', 'r', 't' };
static symbol s_0_28[3] = { 'a', 's', 't' };
static struct among a_0[29] =
-{
-/* 0 */ { 1, s_0_0, -1, 1, 0},
-/* 1 */ { 1, s_0_1, -1, 1, 0},
-/* 2 */ { 3, s_0_2, 1, 1, 0},
-/* 3 */ { 4, s_0_3, 1, 1, 0},
-/* 4 */ { 4, s_0_4, 1, 1, 0},
-/* 5 */ { 3, s_0_5, 1, 1, 0},
-/* 6 */ { 3, s_0_6, 1, 1, 0},
-/* 7 */ { 6, s_0_7, 6, 1, 0},
-/* 8 */ { 4, s_0_8, 1, 3, 0},
-/* 9 */ { 2, s_0_9, -1, 1, 0},
-/* 10 */ { 5, s_0_10, 9, 1, 0},
-/* 11 */ { 2, s_0_11, -1, 1, 0},
-/* 12 */ { 2, s_0_12, -1, 1, 0},
-/* 13 */ { 5, s_0_13, 12, 1, 0},
-/* 14 */ { 1, s_0_14, -1, 2, 0},
-/* 15 */ { 2, s_0_15, 14, 1, 0},
-/* 16 */ { 2, s_0_16, 14, 1, 0},
-/* 17 */ { 4, s_0_17, 16, 1, 0},
-/* 18 */ { 5, s_0_18, 16, 1, 0},
-/* 19 */ { 4, s_0_19, 16, 1, 0},
-/* 20 */ { 7, s_0_20, 19, 1, 0},
-/* 21 */ { 3, s_0_21, 14, 1, 0},
-/* 22 */ { 6, s_0_22, 21, 1, 0},
-/* 23 */ { 3, s_0_23, 14, 1, 0},
-/* 24 */ { 3, s_0_24, 14, 1, 0},
-/* 25 */ { 2, s_0_25, -1, 1, 0},
-/* 26 */ { 3, s_0_26, 25, 1, 0},
-/* 27 */ { 3, s_0_27, -1, 3, 0},
-/* 28 */ { 3, s_0_28, -1, 1, 0}
-};
+ {
+ /* 0 */ { 1, s_0_0, -1, 1, 0},
+ /* 1 */ { 1, s_0_1, -1, 1, 0},
+ /* 2 */ { 3, s_0_2, 1, 1, 0},
+ /* 3 */ { 4, s_0_3, 1, 1, 0},
+ /* 4 */ { 4, s_0_4, 1, 1, 0},
+ /* 5 */ { 3, s_0_5, 1, 1, 0},
+ /* 6 */ { 3, s_0_6, 1, 1, 0},
+ /* 7 */ { 6, s_0_7, 6, 1, 0},
+ /* 8 */ { 4, s_0_8, 1, 3, 0},
+ /* 9 */ { 2, s_0_9, -1, 1, 0},
+ /* 10 */ { 5, s_0_10, 9, 1, 0},
+ /* 11 */ { 2, s_0_11, -1, 1, 0},
+ /* 12 */ { 2, s_0_12, -1, 1, 0},
+ /* 13 */ { 5, s_0_13, 12, 1, 0},
+ /* 14 */ { 1, s_0_14, -1, 2, 0},
+ /* 15 */ { 2, s_0_15, 14, 1, 0},
+ /* 16 */ { 2, s_0_16, 14, 1, 0},
+ /* 17 */ { 4, s_0_17, 16, 1, 0},
+ /* 18 */ { 5, s_0_18, 16, 1, 0},
+ /* 19 */ { 4, s_0_19, 16, 1, 0},
+ /* 20 */ { 7, s_0_20, 19, 1, 0},
+ /* 21 */ { 3, s_0_21, 14, 1, 0},
+ /* 22 */ { 6, s_0_22, 21, 1, 0},
+ /* 23 */ { 3, s_0_23, 14, 1, 0},
+ /* 24 */ { 3, s_0_24, 14, 1, 0},
+ /* 25 */ { 2, s_0_25, -1, 1, 0},
+ /* 26 */ { 3, s_0_26, 25, 1, 0},
+ /* 27 */ { 3, s_0_27, -1, 3, 0},
+ /* 28 */ { 3, s_0_28, -1, 1, 0}
+ };
static symbol s_1_0[2] = { 'd', 't' };
static symbol s_1_1[2] = { 'v', 't' };
static struct among a_1[2] =
-{
-/* 0 */ { 2, s_1_0, -1, -1, 0},
-/* 1 */ { 2, s_1_1, -1, -1, 0}
-};
+ {
+ /* 0 */ { 2, s_1_0, -1, -1, 0},
+ /* 1 */ { 2, s_1_1, -1, -1, 0}
+ };
static symbol s_2_0[3] = { 'l', 'e', 'g' };
static symbol s_2_1[4] = { 'e', 'l', 'e', 'g' };
@@ -110,19 +110,19 @@ static symbol s_2_9[4] = { 's', 'l', 'o', 'v' };
static symbol s_2_10[7] = { 'h', 'e', 't', 's', 'l', 'o', 'v' };
static struct among a_2[11] =
-{
-/* 0 */ { 3, s_2_0, -1, 1, 0},
-/* 1 */ { 4, s_2_1, 0, 1, 0},
-/* 2 */ { 2, s_2_2, -1, 1, 0},
-/* 3 */ { 3, s_2_3, 2, 1, 0},
-/* 4 */ { 3, s_2_4, 2, 1, 0},
-/* 5 */ { 4, s_2_5, 4, 1, 0},
-/* 6 */ { 3, s_2_6, -1, 1, 0},
-/* 7 */ { 3, s_2_7, -1, 1, 0},
-/* 8 */ { 4, s_2_8, 7, 1, 0},
-/* 9 */ { 4, s_2_9, 7, 1, 0},
-/* 10 */ { 7, s_2_10, 9, 1, 0}
-};
+ {
+ /* 0 */ { 3, s_2_0, -1, 1, 0},
+ /* 1 */ { 4, s_2_1, 0, 1, 0},
+ /* 2 */ { 2, s_2_2, -1, 1, 0},
+ /* 3 */ { 3, s_2_3, 2, 1, 0},
+ /* 4 */ { 3, s_2_4, 2, 1, 0},
+ /* 5 */ { 4, s_2_5, 4, 1, 0},
+ /* 6 */ { 3, s_2_6, -1, 1, 0},
+ /* 7 */ { 3, s_2_7, -1, 1, 0},
+ /* 8 */ { 4, s_2_8, 7, 1, 0},
+ /* 9 */ { 4, s_2_9, 7, 1, 0},
+ /* 10 */ { 7, s_2_10, 9, 1, 0}
+ };
static unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 48, 0, 128 };
@@ -132,181 +132,181 @@ static symbol s_0[] = { 'k' };
static symbol s_1[] = { 'e', 'r' };
static int r_mark_regions(struct SN_env * z) {
- z->I[0] = z->l;
- { int c_test = z->c; /* test, line 30 */
- { int c = skip_utf8(z->p, z->c, 0, z->l, + 3);
- if (c < 0) return 0;
- z->c = c; /* hop, line 30 */
+ z->I[0] = z->l;
+ { int c_test = z->c; /* test, line 30 */
+ { int c = skip_utf8(z->p, z->c, 0, z->l, + 3);
+ if (c < 0) return 0;
+ z->c = c; /* hop, line 30 */
+ }
+ z->I[1] = z->c; /* setmark x, line 30 */
+ z->c = c_test;
}
- z->I[1] = z->c; /* setmark x, line 30 */
- z->c = c_test;
- }
- while(1) { /* goto, line 31 */
- int c = z->c;
- if (!(in_grouping_U(z, g_v, 97, 248))) goto lab0;
- z->c = c;
- break;
- lab0:
- z->c = c;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* goto, line 31 */
+ while(1) { /* goto, line 31 */
+ int c = z->c;
+ if (!(in_grouping_U(z, g_v, 97, 248))) goto lab0;
+ z->c = c;
+ break;
+ lab0:
+ z->c = c;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* goto, line 31 */
+ }
}
- }
- while(1) { /* gopast, line 31 */
- if (!(out_grouping_U(z, g_v, 97, 248))) goto lab1;
- break;
- lab1:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 31 */
+ while(1) { /* gopast, line 31 */
+ if (!(out_grouping_U(z, g_v, 97, 248))) goto lab1;
+ break;
+ lab1:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 31 */
+ }
}
- }
- z->I[0] = z->c; /* setmark p1, line 31 */
- /* try, line 32 */
- if (!(z->I[0] < z->I[1])) goto lab2;
- z->I[0] = z->I[1];
-lab2:
- return 1;
+ z->I[0] = z->c; /* setmark p1, line 31 */
+ /* try, line 32 */
+ if (!(z->I[0] < z->I[1])) goto lab2;
+ z->I[0] = z->I[1];
+ lab2:
+ return 1;
}
static int r_main_suffix(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 38 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 38 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 38 */
- among_var = find_among_b(z, a_0, 29); /* substring, line 38 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 38 */
- z->lb = m3;
- }
- switch(among_var) {
+ int among_var;
+ { int m3; /* setlimit, line 38 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 38 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 38 */
+ among_var = find_among_b(z, a_0, 29); /* substring, line 38 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 38 */
+ z->lb = m3;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 44 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_del(z); /* delete, line 44 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int m = z->l - z->c; (void) m; /* or, line 46 */
- if (!(in_grouping_b_U(z, g_s_ending, 98, 122))) goto lab1;
- goto lab0;
- lab1:
- z->c = z->l - m;
- if (!(eq_s_b(z, 1, s_0))) return 0;
- if (!(out_grouping_b_U(z, g_v, 97, 248))) return 0;
- }
+ { int m = z->l - z->c; (void) m; /* or, line 46 */
+ if (!(in_grouping_b_U(z, g_s_ending, 98, 122))) goto lab1;
+ goto lab0;
+ lab1:
+ z->c = z->l - m;
+ if (!(eq_s_b(z, 1, s_0))) return 0;
+ if (!(out_grouping_b_U(z, g_v, 97, 248))) return 0;
+ }
lab0:
- { int ret;
- ret = slice_del(z); /* delete, line 46 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_del(z); /* delete, line 46 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret;
- ret = slice_from_s(z, 2, s_1); /* <-, line 48 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_from_s(z, 2, s_1); /* <-, line 48 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_consonant_pair(struct SN_env * z) {
- { int m_test = z->l - z->c; /* test, line 53 */
- { int m3; /* setlimit, line 54 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 54 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 54 */
- if (!(find_among_b(z, a_1, 2))) { z->lb = m3; return 0; } /* substring, line 54 */
- z->bra = z->c; /* ], line 54 */
- z->lb = m3;
+ { int m_test = z->l - z->c; /* test, line 53 */
+ { int m3; /* setlimit, line 54 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 54 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 54 */
+ if (!(find_among_b(z, a_1, 2))) { z->lb = m3; return 0; } /* substring, line 54 */
+ z->bra = z->c; /* ], line 54 */
+ z->lb = m3;
+ }
+ z->c = z->l - m_test;
}
- z->c = z->l - m_test;
- }
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) return 0;
- z->c = c; /* next, line 59 */
- }
- z->bra = z->c; /* ], line 59 */
- { int ret;
- ret = slice_del(z); /* delete, line 59 */
- if (ret < 0) return ret;
- }
- return 1;
+ { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (c < 0) return 0;
+ z->c = c; /* next, line 59 */
+ }
+ z->bra = z->c; /* ], line 59 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 59 */
+ if (ret < 0) return ret;
+ }
+ return 1;
}
static int r_other_suffix(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 63 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 63 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 63 */
- among_var = find_among_b(z, a_2, 11); /* substring, line 63 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 63 */
- z->lb = m3;
- }
- switch(among_var) {
+ int among_var;
+ { int m3; /* setlimit, line 63 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 63 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 63 */
+ among_var = find_among_b(z, a_2, 11); /* substring, line 63 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 63 */
+ z->lb = m3;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 67 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_del(z); /* delete, line 67 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
extern int norwegian_UTF_8_stem(struct SN_env * z) {
- { int c = z->c; /* do, line 74 */
- { int ret = r_mark_regions(z);
- if (ret == 0) goto lab0; /* call mark_regions, line 74 */
- if (ret < 0) return ret;
+ { int c = z->c; /* do, line 74 */
+ { int ret = r_mark_regions(z);
+ if (ret == 0) goto lab0; /* call mark_regions, line 74 */
+ if (ret < 0) return ret;
+ }
+ lab0:
+ z->c = c;
}
- lab0:
- z->c = c;
- }
- z->lb = z->c; z->c = z->l; /* backwards, line 75 */
+ z->lb = z->c; z->c = z->l; /* backwards, line 75 */
- { int m = z->l - z->c; (void) m; /* do, line 76 */
- { int ret = r_main_suffix(z);
- if (ret == 0) goto lab1; /* call main_suffix, line 76 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 76 */
+ { int ret = r_main_suffix(z);
+ if (ret == 0) goto lab1; /* call main_suffix, line 76 */
+ if (ret < 0) return ret;
+ }
+ lab1:
+ z->c = z->l - m;
}
- lab1:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 77 */
- { int ret = r_consonant_pair(z);
- if (ret == 0) goto lab2; /* call consonant_pair, line 77 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 77 */
+ { int ret = r_consonant_pair(z);
+ if (ret == 0) goto lab2; /* call consonant_pair, line 77 */
+ if (ret < 0) return ret;
+ }
+ lab2:
+ z->c = z->l - m;
}
- lab2:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 78 */
- { int ret = r_other_suffix(z);
- if (ret == 0) goto lab3; /* call other_suffix, line 78 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 78 */
+ { int ret = r_other_suffix(z);
+ if (ret == 0) goto lab3; /* call other_suffix, line 78 */
+ if (ret < 0) return ret;
+ }
+ lab3:
+ z->c = z->l - m;
}
- lab3:
- z->c = z->l - m;
- }
- z->c = z->lb;
- return 1;
+ z->c = z->lb;
+ return 1;
}
extern struct SN_env * norwegian_UTF_8_create_env(void) { return SN_create_env(0, 2, 0); }
diff --git a/src/libstemmer/stem_UTF_8_norwegian.h b/src/libstemmer/stem_UTF_8_norwegian.h
index 68f5409..a4b5f81 100644
--- a/src/libstemmer/stem_UTF_8_norwegian.h
+++ b/src/libstemmer/stem_UTF_8_norwegian.h
@@ -18,10 +18,10 @@
extern "C" {
#endif
-extern struct SN_env * norwegian_UTF_8_create_env(void);
-extern void norwegian_UTF_8_close_env(struct SN_env * z);
+ extern struct SN_env * norwegian_UTF_8_create_env(void);
+ extern void norwegian_UTF_8_close_env(struct SN_env * z);
-extern int norwegian_UTF_8_stem(struct SN_env * z);
+ extern int norwegian_UTF_8_stem(struct SN_env * z);
#ifdef __cplusplus
}
diff --git a/src/libstemmer/stem_UTF_8_porter.c b/src/libstemmer/stem_UTF_8_porter.c
index 0fe46ee..ad69f44 100644
--- a/src/libstemmer/stem_UTF_8_porter.c
+++ b/src/libstemmer/stem_UTF_8_porter.c
@@ -38,12 +38,12 @@ static symbol s_0_2[4] = { 's', 's', 'e', 's' };
static symbol s_0_3[2] = { 's', 's' };
static struct among a_0[4] =
-{
-/* 0 */ { 1, s_0_0, -1, 3, 0},
-/* 1 */ { 3, s_0_1, 0, 2, 0},
-/* 2 */ { 4, s_0_2, 0, 1, 0},
-/* 3 */ { 2, s_0_3, 0, -1, 0}
-};
+ {
+ /* 0 */ { 1, s_0_0, -1, 3, 0},
+ /* 1 */ { 3, s_0_1, 0, 2, 0},
+ /* 2 */ { 4, s_0_2, 0, 1, 0},
+ /* 3 */ { 2, s_0_3, 0, -1, 0}
+ };
static symbol s_1_1[2] = { 'b', 'b' };
static symbol s_1_2[2] = { 'd', 'd' };
@@ -59,32 +59,32 @@ static symbol s_1_11[2] = { 't', 't' };
static symbol s_1_12[2] = { 'i', 'z' };
static struct among a_1[13] =
-{
-/* 0 */ { 0, 0, -1, 3, 0},
-/* 1 */ { 2, s_1_1, 0, 2, 0},
-/* 2 */ { 2, s_1_2, 0, 2, 0},
-/* 3 */ { 2, s_1_3, 0, 2, 0},
-/* 4 */ { 2, s_1_4, 0, 2, 0},
-/* 5 */ { 2, s_1_5, 0, 1, 0},
-/* 6 */ { 2, s_1_6, 0, 2, 0},
-/* 7 */ { 2, s_1_7, 0, 2, 0},
-/* 8 */ { 2, s_1_8, 0, 2, 0},
-/* 9 */ { 2, s_1_9, 0, 2, 0},
-/* 10 */ { 2, s_1_10, 0, 1, 0},
-/* 11 */ { 2, s_1_11, 0, 2, 0},
-/* 12 */ { 2, s_1_12, 0, 1, 0}
-};
+ {
+ /* 0 */ { 0, 0, -1, 3, 0},
+ /* 1 */ { 2, s_1_1, 0, 2, 0},
+ /* 2 */ { 2, s_1_2, 0, 2, 0},
+ /* 3 */ { 2, s_1_3, 0, 2, 0},
+ /* 4 */ { 2, s_1_4, 0, 2, 0},
+ /* 5 */ { 2, s_1_5, 0, 1, 0},
+ /* 6 */ { 2, s_1_6, 0, 2, 0},
+ /* 7 */ { 2, s_1_7, 0, 2, 0},
+ /* 8 */ { 2, s_1_8, 0, 2, 0},
+ /* 9 */ { 2, s_1_9, 0, 2, 0},
+ /* 10 */ { 2, s_1_10, 0, 1, 0},
+ /* 11 */ { 2, s_1_11, 0, 2, 0},
+ /* 12 */ { 2, s_1_12, 0, 1, 0}
+ };
static symbol s_2_0[2] = { 'e', 'd' };
static symbol s_2_1[3] = { 'e', 'e', 'd' };
static symbol s_2_2[3] = { 'i', 'n', 'g' };
static struct among a_2[3] =
-{
-/* 0 */ { 2, s_2_0, -1, 2, 0},
-/* 1 */ { 3, s_2_1, 0, 1, 0},
-/* 2 */ { 3, s_2_2, -1, 2, 0}
-};
+ {
+ /* 0 */ { 2, s_2_0, -1, 2, 0},
+ /* 1 */ { 3, s_2_1, 0, 1, 0},
+ /* 2 */ { 3, s_2_2, -1, 2, 0}
+ };
static symbol s_3_0[4] = { 'a', 'n', 'c', 'i' };
static symbol s_3_1[4] = { 'e', 'n', 'c', 'i' };
@@ -108,28 +108,28 @@ static symbol s_3_18[7] = { 'f', 'u', 'l', 'n', 'e', 's', 's' };
static symbol s_3_19[7] = { 'o', 'u', 's', 'n', 'e', 's', 's' };
static struct among a_3[20] =
-{
-/* 0 */ { 4, s_3_0, -1, 3, 0},
-/* 1 */ { 4, s_3_1, -1, 2, 0},
-/* 2 */ { 4, s_3_2, -1, 4, 0},
-/* 3 */ { 3, s_3_3, -1, 6, 0},
-/* 4 */ { 4, s_3_4, -1, 9, 0},
-/* 5 */ { 5, s_3_5, -1, 12, 0},
-/* 6 */ { 5, s_3_6, -1, 5, 0},
-/* 7 */ { 5, s_3_7, -1, 10, 0},
-/* 8 */ { 6, s_3_8, -1, 14, 0},
-/* 9 */ { 5, s_3_9, -1, 13, 0},
-/* 10 */ { 6, s_3_10, -1, 1, 0},
-/* 11 */ { 7, s_3_11, 10, 8, 0},
-/* 12 */ { 5, s_3_12, -1, 10, 0},
-/* 13 */ { 5, s_3_13, -1, 8, 0},
-/* 14 */ { 7, s_3_14, 13, 7, 0},
-/* 15 */ { 4, s_3_15, -1, 7, 0},
-/* 16 */ { 4, s_3_16, -1, 8, 0},
-/* 17 */ { 7, s_3_17, -1, 13, 0},
-/* 18 */ { 7, s_3_18, -1, 11, 0},
-/* 19 */ { 7, s_3_19, -1, 12, 0}
-};
+ {
+ /* 0 */ { 4, s_3_0, -1, 3, 0},
+ /* 1 */ { 4, s_3_1, -1, 2, 0},
+ /* 2 */ { 4, s_3_2, -1, 4, 0},
+ /* 3 */ { 3, s_3_3, -1, 6, 0},
+ /* 4 */ { 4, s_3_4, -1, 9, 0},
+ /* 5 */ { 5, s_3_5, -1, 12, 0},
+ /* 6 */ { 5, s_3_6, -1, 5, 0},
+ /* 7 */ { 5, s_3_7, -1, 10, 0},
+ /* 8 */ { 6, s_3_8, -1, 14, 0},
+ /* 9 */ { 5, s_3_9, -1, 13, 0},
+ /* 10 */ { 6, s_3_10, -1, 1, 0},
+ /* 11 */ { 7, s_3_11, 10, 8, 0},
+ /* 12 */ { 5, s_3_12, -1, 10, 0},
+ /* 13 */ { 5, s_3_13, -1, 8, 0},
+ /* 14 */ { 7, s_3_14, 13, 7, 0},
+ /* 15 */ { 4, s_3_15, -1, 7, 0},
+ /* 16 */ { 4, s_3_16, -1, 8, 0},
+ /* 17 */ { 7, s_3_17, -1, 13, 0},
+ /* 18 */ { 7, s_3_18, -1, 11, 0},
+ /* 19 */ { 7, s_3_19, -1, 12, 0}
+ };
static symbol s_4_0[5] = { 'i', 'c', 'a', 't', 'e' };
static symbol s_4_1[5] = { 'a', 't', 'i', 'v', 'e' };
@@ -140,15 +140,15 @@ static symbol s_4_5[3] = { 'f', 'u', 'l' };
static symbol s_4_6[4] = { 'n', 'e', 's', 's' };
static struct among a_4[7] =
-{
-/* 0 */ { 5, s_4_0, -1, 2, 0},
-/* 1 */ { 5, s_4_1, -1, 3, 0},
-/* 2 */ { 5, s_4_2, -1, 1, 0},
-/* 3 */ { 5, s_4_3, -1, 2, 0},
-/* 4 */ { 4, s_4_4, -1, 2, 0},
-/* 5 */ { 3, s_4_5, -1, 3, 0},
-/* 6 */ { 4, s_4_6, -1, 3, 0}
-};
+ {
+ /* 0 */ { 5, s_4_0, -1, 2, 0},
+ /* 1 */ { 5, s_4_1, -1, 3, 0},
+ /* 2 */ { 5, s_4_2, -1, 1, 0},
+ /* 3 */ { 5, s_4_3, -1, 2, 0},
+ /* 4 */ { 4, s_4_4, -1, 2, 0},
+ /* 5 */ { 3, s_4_5, -1, 3, 0},
+ /* 6 */ { 4, s_4_6, -1, 3, 0}
+ };
static symbol s_5_0[2] = { 'i', 'c' };
static symbol s_5_1[4] = { 'a', 'n', 'c', 'e' };
@@ -171,27 +171,27 @@ static symbol s_5_17[5] = { 'e', 'm', 'e', 'n', 't' };
static symbol s_5_18[2] = { 'o', 'u' };
static struct among a_5[19] =
-{
-/* 0 */ { 2, s_5_0, -1, 1, 0},
-/* 1 */ { 4, s_5_1, -1, 1, 0},
-/* 2 */ { 4, s_5_2, -1, 1, 0},
-/* 3 */ { 4, s_5_3, -1, 1, 0},
-/* 4 */ { 4, s_5_4, -1, 1, 0},
-/* 5 */ { 3, s_5_5, -1, 1, 0},
-/* 6 */ { 3, s_5_6, -1, 1, 0},
-/* 7 */ { 3, s_5_7, -1, 1, 0},
-/* 8 */ { 3, s_5_8, -1, 1, 0},
-/* 9 */ { 2, s_5_9, -1, 1, 0},
-/* 10 */ { 3, s_5_10, -1, 1, 0},
-/* 11 */ { 3, s_5_11, -1, 2, 0},
-/* 12 */ { 2, s_5_12, -1, 1, 0},
-/* 13 */ { 3, s_5_13, -1, 1, 0},
-/* 14 */ { 3, s_5_14, -1, 1, 0},
-/* 15 */ { 3, s_5_15, -1, 1, 0},
-/* 16 */ { 4, s_5_16, 15, 1, 0},
-/* 17 */ { 5, s_5_17, 16, 1, 0},
-/* 18 */ { 2, s_5_18, -1, 1, 0}
-};
+ {
+ /* 0 */ { 2, s_5_0, -1, 1, 0},
+ /* 1 */ { 4, s_5_1, -1, 1, 0},
+ /* 2 */ { 4, s_5_2, -1, 1, 0},
+ /* 3 */ { 4, s_5_3, -1, 1, 0},
+ /* 4 */ { 4, s_5_4, -1, 1, 0},
+ /* 5 */ { 3, s_5_5, -1, 1, 0},
+ /* 6 */ { 3, s_5_6, -1, 1, 0},
+ /* 7 */ { 3, s_5_7, -1, 1, 0},
+ /* 8 */ { 3, s_5_8, -1, 1, 0},
+ /* 9 */ { 2, s_5_9, -1, 1, 0},
+ /* 10 */ { 3, s_5_10, -1, 1, 0},
+ /* 11 */ { 3, s_5_11, -1, 2, 0},
+ /* 12 */ { 2, s_5_12, -1, 1, 0},
+ /* 13 */ { 3, s_5_13, -1, 1, 0},
+ /* 14 */ { 3, s_5_14, -1, 1, 0},
+ /* 15 */ { 3, s_5_15, -1, 1, 0},
+ /* 16 */ { 4, s_5_16, 15, 1, 0},
+ /* 17 */ { 5, s_5_17, 16, 1, 0},
+ /* 18 */ { 2, s_5_18, -1, 1, 0}
+ };
static unsigned char g_v[] = { 17, 65, 16, 1 };
@@ -234,571 +234,571 @@ static symbol s_33[] = { 'Y' };
static symbol s_34[] = { 'y' };
static int r_shortv(struct SN_env * z) {
- if (!(out_grouping_b_U(z, g_v_WXY, 89, 121))) return 0;
- if (!(in_grouping_b_U(z, g_v, 97, 121))) return 0;
- if (!(out_grouping_b_U(z, g_v, 97, 121))) return 0;
- return 1;
+ if (!(out_grouping_b_U(z, g_v_WXY, 89, 121))) return 0;
+ if (!(in_grouping_b_U(z, g_v, 97, 121))) return 0;
+ if (!(out_grouping_b_U(z, g_v, 97, 121))) return 0;
+ return 1;
}
static int r_R1(struct SN_env * z) {
- if (!(z->I[0] <= z->c)) return 0;
- return 1;
+ if (!(z->I[0] <= z->c)) return 0;
+ return 1;
}
static int r_R2(struct SN_env * z) {
- if (!(z->I[1] <= z->c)) return 0;
- return 1;
+ if (!(z->I[1] <= z->c)) return 0;
+ return 1;
}
static int r_Step_1a(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 25 */
- among_var = find_among_b(z, a_0, 4); /* substring, line 25 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 25 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 25 */
+ among_var = find_among_b(z, a_0, 4); /* substring, line 25 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 25 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_from_s(z, 2, s_0); /* <-, line 26 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 2, s_0); /* <-, line 26 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret;
- ret = slice_from_s(z, 1, s_1); /* <-, line 27 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 1, s_1); /* <-, line 27 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret;
- ret = slice_del(z); /* delete, line 29 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_del(z); /* delete, line 29 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_Step_1b(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 34 */
- among_var = find_among_b(z, a_2, 3); /* substring, line 34 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 34 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 34 */
+ among_var = find_among_b(z, a_2, 3); /* substring, line 34 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 34 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 35 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 2, s_2); /* <-, line 35 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 35 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 2, s_2); /* <-, line 35 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int m_test = z->l - z->c; /* test, line 38 */
- while(1) { /* gopast, line 38 */
- if (!(in_grouping_b_U(z, g_v, 97, 121))) goto lab0;
- break;
- lab0:
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 38 */
- }
+ { int m_test = z->l - z->c; /* test, line 38 */
+ while(1) { /* gopast, line 38 */
+ if (!(in_grouping_b_U(z, g_v, 97, 121))) goto lab0;
+ break;
+ lab0:
+ { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 38 */
+ }
+ }
+ z->c = z->l - m_test;
}
- z->c = z->l - m_test;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 38 */
- if (ret < 0) return ret;
- }
- { int m_test = z->l - z->c; /* test, line 39 */
- among_var = find_among_b(z, a_1, 13); /* substring, line 39 */
- if (!(among_var)) return 0;
- z->c = z->l - m_test;
- }
- switch(among_var) {
+ { int ret;
+ ret = slice_del(z); /* delete, line 38 */
+ if (ret < 0) return ret;
+ }
+ { int m_test = z->l - z->c; /* test, line 39 */
+ among_var = find_among_b(z, a_1, 13); /* substring, line 39 */
+ if (!(among_var)) return 0;
+ z->c = z->l - m_test;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- { int c = z->c;
- ret = insert_s(z, z->c, z->c, 1, s_3); /* <+, line 41 */
- z->c = c;
+ { int ret;
+ { int c = z->c;
+ ret = insert_s(z, z->c, z->c, 1, s_3); /* <+, line 41 */
+ z->c = c;
+ }
+ if (ret < 0) return ret;
}
- if (ret < 0) return ret;
- }
- break;
+ break;
case 2:
- z->ket = z->c; /* [, line 44 */
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) return 0;
- z->c = c; /* next, line 44 */
- }
- z->bra = z->c; /* ], line 44 */
- { int ret;
- ret = slice_del(z); /* delete, line 44 */
- if (ret < 0) return ret;
- }
- break;
+ z->ket = z->c; /* [, line 44 */
+ { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (c < 0) return 0;
+ z->c = c; /* next, line 44 */
+ }
+ z->bra = z->c; /* ], line 44 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 44 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- if (z->c != z->I[0]) return 0; /* atmark, line 45 */
- { int m_test = z->l - z->c; /* test, line 45 */
- { int ret = r_shortv(z);
- if (ret == 0) return 0; /* call shortv, line 45 */
- if (ret < 0) return ret;
+ if (z->c != z->I[0]) return 0; /* atmark, line 45 */
+ { int m_test = z->l - z->c; /* test, line 45 */
+ { int ret = r_shortv(z);
+ if (ret == 0) return 0; /* call shortv, line 45 */
+ if (ret < 0) return ret;
+ }
+ z->c = z->l - m_test;
}
- z->c = z->l - m_test;
- }
- { int ret;
- { int c = z->c;
- ret = insert_s(z, z->c, z->c, 1, s_4); /* <+, line 45 */
- z->c = c;
+ { int ret;
+ { int c = z->c;
+ ret = insert_s(z, z->c, z->c, 1, s_4); /* <+, line 45 */
+ z->c = c;
+ }
+ if (ret < 0) return ret;
}
- if (ret < 0) return ret;
- }
- break;
- }
- break;
- }
- return 1;
+ break;
+ }
+ break;
+ }
+ return 1;
}
static int r_Step_1c(struct SN_env * z) {
- z->ket = z->c; /* [, line 52 */
- { int m = z->l - z->c; (void) m; /* or, line 52 */
- if (!(eq_s_b(z, 1, s_5))) goto lab1;
- goto lab0;
- lab1:
- z->c = z->l - m;
- if (!(eq_s_b(z, 1, s_6))) return 0;
- }
-lab0:
- z->bra = z->c; /* ], line 52 */
- while(1) { /* gopast, line 53 */
- if (!(in_grouping_b_U(z, g_v, 97, 121))) goto lab2;
- break;
- lab2:
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 53 */
+ z->ket = z->c; /* [, line 52 */
+ { int m = z->l - z->c; (void) m; /* or, line 52 */
+ if (!(eq_s_b(z, 1, s_5))) goto lab1;
+ goto lab0;
+ lab1:
+ z->c = z->l - m;
+ if (!(eq_s_b(z, 1, s_6))) return 0;
}
- }
- { int ret;
- ret = slice_from_s(z, 1, s_7); /* <-, line 54 */
- if (ret < 0) return ret;
- }
- return 1;
+ lab0:
+ z->bra = z->c; /* ], line 52 */
+ while(1) { /* gopast, line 53 */
+ if (!(in_grouping_b_U(z, g_v, 97, 121))) goto lab2;
+ break;
+ lab2:
+ { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 53 */
+ }
+ }
+ { int ret;
+ ret = slice_from_s(z, 1, s_7); /* <-, line 54 */
+ if (ret < 0) return ret;
+ }
+ return 1;
}
static int r_Step_2(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 58 */
- among_var = find_among_b(z, a_3, 20); /* substring, line 58 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 58 */
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 58 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 58 */
+ among_var = find_among_b(z, a_3, 20); /* substring, line 58 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 58 */
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 58 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_from_s(z, 4, s_8); /* <-, line 59 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 4, s_8); /* <-, line 59 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret;
- ret = slice_from_s(z, 4, s_9); /* <-, line 60 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 4, s_9); /* <-, line 60 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret;
- ret = slice_from_s(z, 4, s_10); /* <-, line 61 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 4, s_10); /* <-, line 61 */
+ if (ret < 0) return ret;
+ }
+ break;
case 4:
- { int ret;
- ret = slice_from_s(z, 4, s_11); /* <-, line 62 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 4, s_11); /* <-, line 62 */
+ if (ret < 0) return ret;
+ }
+ break;
case 5:
- { int ret;
- ret = slice_from_s(z, 3, s_12); /* <-, line 63 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_12); /* <-, line 63 */
+ if (ret < 0) return ret;
+ }
+ break;
case 6:
- { int ret;
- ret = slice_from_s(z, 1, s_13); /* <-, line 64 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 1, s_13); /* <-, line 64 */
+ if (ret < 0) return ret;
+ }
+ break;
case 7:
- { int ret;
- ret = slice_from_s(z, 3, s_14); /* <-, line 66 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_14); /* <-, line 66 */
+ if (ret < 0) return ret;
+ }
+ break;
case 8:
- { int ret;
- ret = slice_from_s(z, 3, s_15); /* <-, line 68 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_15); /* <-, line 68 */
+ if (ret < 0) return ret;
+ }
+ break;
case 9:
- { int ret;
- ret = slice_from_s(z, 2, s_16); /* <-, line 69 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 2, s_16); /* <-, line 69 */
+ if (ret < 0) return ret;
+ }
+ break;
case 10:
- { int ret;
- ret = slice_from_s(z, 2, s_17); /* <-, line 71 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 2, s_17); /* <-, line 71 */
+ if (ret < 0) return ret;
+ }
+ break;
case 11:
- { int ret;
- ret = slice_from_s(z, 3, s_18); /* <-, line 72 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_18); /* <-, line 72 */
+ if (ret < 0) return ret;
+ }
+ break;
case 12:
- { int ret;
- ret = slice_from_s(z, 3, s_19); /* <-, line 74 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_19); /* <-, line 74 */
+ if (ret < 0) return ret;
+ }
+ break;
case 13:
- { int ret;
- ret = slice_from_s(z, 3, s_20); /* <-, line 76 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 3, s_20); /* <-, line 76 */
+ if (ret < 0) return ret;
+ }
+ break;
case 14:
- { int ret;
- ret = slice_from_s(z, 3, s_21); /* <-, line 77 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_from_s(z, 3, s_21); /* <-, line 77 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_Step_3(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 82 */
- among_var = find_among_b(z, a_4, 7); /* substring, line 82 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 82 */
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 82 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 82 */
+ among_var = find_among_b(z, a_4, 7); /* substring, line 82 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 82 */
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 82 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_from_s(z, 2, s_22); /* <-, line 83 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 2, s_22); /* <-, line 83 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret;
- ret = slice_from_s(z, 2, s_23); /* <-, line 85 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_from_s(z, 2, s_23); /* <-, line 85 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret;
- ret = slice_del(z); /* delete, line 87 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_del(z); /* delete, line 87 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_Step_4(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 92 */
- among_var = find_among_b(z, a_5, 19); /* substring, line 92 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 92 */
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 92 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 92 */
+ among_var = find_among_b(z, a_5, 19); /* substring, line 92 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 92 */
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 92 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 95 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_del(z); /* delete, line 95 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int m = z->l - z->c; (void) m; /* or, line 96 */
- if (!(eq_s_b(z, 1, s_24))) goto lab1;
- goto lab0;
- lab1:
- z->c = z->l - m;
- if (!(eq_s_b(z, 1, s_25))) return 0;
- }
+ { int m = z->l - z->c; (void) m; /* or, line 96 */
+ if (!(eq_s_b(z, 1, s_24))) goto lab1;
+ goto lab0;
+ lab1:
+ z->c = z->l - m;
+ if (!(eq_s_b(z, 1, s_25))) return 0;
+ }
lab0:
- { int ret;
- ret = slice_del(z); /* delete, line 96 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_del(z); /* delete, line 96 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_Step_5a(struct SN_env * z) {
- z->ket = z->c; /* [, line 101 */
- if (!(eq_s_b(z, 1, s_26))) return 0;
- z->bra = z->c; /* ], line 101 */
- { int m = z->l - z->c; (void) m; /* or, line 102 */
- { int ret = r_R2(z);
- if (ret == 0) goto lab1; /* call R2, line 102 */
- if (ret < 0) return ret;
- }
- goto lab0;
- lab1:
- z->c = z->l - m;
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 102 */
- if (ret < 0) return ret;
+ z->ket = z->c; /* [, line 101 */
+ if (!(eq_s_b(z, 1, s_26))) return 0;
+ z->bra = z->c; /* ], line 101 */
+ { int m = z->l - z->c; (void) m; /* or, line 102 */
+ { int ret = r_R2(z);
+ if (ret == 0) goto lab1; /* call R2, line 102 */
+ if (ret < 0) return ret;
+ }
+ goto lab0;
+ lab1:
+ z->c = z->l - m;
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 102 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* not, line 102 */
+ { int ret = r_shortv(z);
+ if (ret == 0) goto lab2; /* call shortv, line 102 */
+ if (ret < 0) return ret;
+ }
+ return 0;
+ lab2:
+ z->c = z->l - m;
+ }
}
- { int m = z->l - z->c; (void) m; /* not, line 102 */
- { int ret = r_shortv(z);
- if (ret == 0) goto lab2; /* call shortv, line 102 */
+ lab0:
+ { int ret;
+ ret = slice_del(z); /* delete, line 103 */
if (ret < 0) return ret;
- }
- return 0;
- lab2:
- z->c = z->l - m;
}
- }
-lab0:
- { int ret;
- ret = slice_del(z); /* delete, line 103 */
- if (ret < 0) return ret;
- }
- return 1;
+ return 1;
}
static int r_Step_5b(struct SN_env * z) {
- z->ket = z->c; /* [, line 107 */
- if (!(eq_s_b(z, 1, s_27))) return 0;
- z->bra = z->c; /* ], line 107 */
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 108 */
- if (ret < 0) return ret;
- }
- if (!(eq_s_b(z, 1, s_28))) return 0;
- { int ret;
- ret = slice_del(z); /* delete, line 109 */
- if (ret < 0) return ret;
- }
- return 1;
+ z->ket = z->c; /* [, line 107 */
+ if (!(eq_s_b(z, 1, s_27))) return 0;
+ z->bra = z->c; /* ], line 107 */
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 108 */
+ if (ret < 0) return ret;
+ }
+ if (!(eq_s_b(z, 1, s_28))) return 0;
+ { int ret;
+ ret = slice_del(z); /* delete, line 109 */
+ if (ret < 0) return ret;
+ }
+ return 1;
}
extern int porter_UTF_8_stem(struct SN_env * z) {
- z->B[0] = 0; /* unset Y_found, line 115 */
- { int c = z->c; /* do, line 116 */
- z->bra = z->c; /* [, line 116 */
- if (!(eq_s(z, 1, s_29))) goto lab0;
- z->ket = z->c; /* ], line 116 */
- { int ret;
- ret = slice_from_s(z, 1, s_30); /* <-, line 116 */
- if (ret < 0) return ret;
- }
- z->B[0] = 1; /* set Y_found, line 116 */
- lab0:
- z->c = c;
- }
- { int c = z->c; /* do, line 117 */
- while(1) { /* repeat, line 117 */
- int c = z->c;
- while(1) { /* goto, line 117 */
- int c = z->c;
- if (!(in_grouping_U(z, g_v, 97, 121))) goto lab3;
- z->bra = z->c; /* [, line 117 */
- if (!(eq_s(z, 1, s_31))) goto lab3;
- z->ket = z->c; /* ], line 117 */
- z->c = c;
- break;
- lab3:
- z->c = c;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab2;
- z->c = c; /* goto, line 117 */
+ z->B[0] = 0; /* unset Y_found, line 115 */
+ { int c = z->c; /* do, line 116 */
+ z->bra = z->c; /* [, line 116 */
+ if (!(eq_s(z, 1, s_29))) goto lab0;
+ z->ket = z->c; /* ], line 116 */
+ { int ret;
+ ret = slice_from_s(z, 1, s_30); /* <-, line 116 */
+ if (ret < 0) return ret;
}
- }
- { int ret;
- ret = slice_from_s(z, 1, s_32); /* <-, line 117 */
- if (ret < 0) return ret;
- }
- z->B[0] = 1; /* set Y_found, line 117 */
- continue;
- lab2:
- z->c = c;
- break;
- }
- z->c = c;
- }
- z->I[0] = z->l;
- z->I[1] = z->l;
- { int c = z->c; /* do, line 121 */
- while(1) { /* gopast, line 122 */
- if (!(in_grouping_U(z, g_v, 97, 121))) goto lab5;
- break;
- lab5:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab4;
- z->c = c; /* gopast, line 122 */
- }
- }
- while(1) { /* gopast, line 122 */
- if (!(out_grouping_U(z, g_v, 97, 121))) goto lab6;
- break;
- lab6:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab4;
- z->c = c; /* gopast, line 122 */
- }
+ z->B[0] = 1; /* set Y_found, line 116 */
+ lab0:
+ z->c = c;
}
- z->I[0] = z->c; /* setmark p1, line 122 */
- while(1) { /* gopast, line 123 */
- if (!(in_grouping_U(z, g_v, 97, 121))) goto lab7;
- break;
- lab7:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab4;
- z->c = c; /* gopast, line 123 */
- }
+ { int c = z->c; /* do, line 117 */
+ while(1) { /* repeat, line 117 */
+ int c = z->c;
+ while(1) { /* goto, line 117 */
+ int c = z->c;
+ if (!(in_grouping_U(z, g_v, 97, 121))) goto lab3;
+ z->bra = z->c; /* [, line 117 */
+ if (!(eq_s(z, 1, s_31))) goto lab3;
+ z->ket = z->c; /* ], line 117 */
+ z->c = c;
+ break;
+ lab3:
+ z->c = c;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab2;
+ z->c = c; /* goto, line 117 */
+ }
+ }
+ { int ret;
+ ret = slice_from_s(z, 1, s_32); /* <-, line 117 */
+ if (ret < 0) return ret;
+ }
+ z->B[0] = 1; /* set Y_found, line 117 */
+ continue;
+ lab2:
+ z->c = c;
+ break;
+ }
+ z->c = c;
}
- while(1) { /* gopast, line 123 */
- if (!(out_grouping_U(z, g_v, 97, 121))) goto lab8;
- break;
- lab8:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab4;
- z->c = c; /* gopast, line 123 */
- }
+ z->I[0] = z->l;
+ z->I[1] = z->l;
+ { int c = z->c; /* do, line 121 */
+ while(1) { /* gopast, line 122 */
+ if (!(in_grouping_U(z, g_v, 97, 121))) goto lab5;
+ break;
+ lab5:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab4;
+ z->c = c; /* gopast, line 122 */
+ }
+ }
+ while(1) { /* gopast, line 122 */
+ if (!(out_grouping_U(z, g_v, 97, 121))) goto lab6;
+ break;
+ lab6:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab4;
+ z->c = c; /* gopast, line 122 */
+ }
+ }
+ z->I[0] = z->c; /* setmark p1, line 122 */
+ while(1) { /* gopast, line 123 */
+ if (!(in_grouping_U(z, g_v, 97, 121))) goto lab7;
+ break;
+ lab7:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab4;
+ z->c = c; /* gopast, line 123 */
+ }
+ }
+ while(1) { /* gopast, line 123 */
+ if (!(out_grouping_U(z, g_v, 97, 121))) goto lab8;
+ break;
+ lab8:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab4;
+ z->c = c; /* gopast, line 123 */
+ }
+ }
+ z->I[1] = z->c; /* setmark p2, line 123 */
+ lab4:
+ z->c = c;
}
- z->I[1] = z->c; /* setmark p2, line 123 */
- lab4:
- z->c = c;
- }
- z->lb = z->c; z->c = z->l; /* backwards, line 126 */
-
- { int m = z->l - z->c; (void) m; /* do, line 127 */
- { int ret = r_Step_1a(z);
- if (ret == 0) goto lab9; /* call Step_1a, line 127 */
- if (ret < 0) return ret;
+ z->lb = z->c; z->c = z->l; /* backwards, line 126 */
+
+ { int m = z->l - z->c; (void) m; /* do, line 127 */
+ { int ret = r_Step_1a(z);
+ if (ret == 0) goto lab9; /* call Step_1a, line 127 */
+ if (ret < 0) return ret;
+ }
+ lab9:
+ z->c = z->l - m;
}
- lab9:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 128 */
- { int ret = r_Step_1b(z);
- if (ret == 0) goto lab10; /* call Step_1b, line 128 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 128 */
+ { int ret = r_Step_1b(z);
+ if (ret == 0) goto lab10; /* call Step_1b, line 128 */
+ if (ret < 0) return ret;
+ }
+ lab10:
+ z->c = z->l - m;
}
- lab10:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 129 */
- { int ret = r_Step_1c(z);
- if (ret == 0) goto lab11; /* call Step_1c, line 129 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 129 */
+ { int ret = r_Step_1c(z);
+ if (ret == 0) goto lab11; /* call Step_1c, line 129 */
+ if (ret < 0) return ret;
+ }
+ lab11:
+ z->c = z->l - m;
}
- lab11:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 130 */
- { int ret = r_Step_2(z);
- if (ret == 0) goto lab12; /* call Step_2, line 130 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 130 */
+ { int ret = r_Step_2(z);
+ if (ret == 0) goto lab12; /* call Step_2, line 130 */
+ if (ret < 0) return ret;
+ }
+ lab12:
+ z->c = z->l - m;
}
- lab12:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 131 */
- { int ret = r_Step_3(z);
- if (ret == 0) goto lab13; /* call Step_3, line 131 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 131 */
+ { int ret = r_Step_3(z);
+ if (ret == 0) goto lab13; /* call Step_3, line 131 */
+ if (ret < 0) return ret;
+ }
+ lab13:
+ z->c = z->l - m;
}
- lab13:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 132 */
- { int ret = r_Step_4(z);
- if (ret == 0) goto lab14; /* call Step_4, line 132 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 132 */
+ { int ret = r_Step_4(z);
+ if (ret == 0) goto lab14; /* call Step_4, line 132 */
+ if (ret < 0) return ret;
+ }
+ lab14:
+ z->c = z->l - m;
}
- lab14:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 133 */
- { int ret = r_Step_5a(z);
- if (ret == 0) goto lab15; /* call Step_5a, line 133 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 133 */
+ { int ret = r_Step_5a(z);
+ if (ret == 0) goto lab15; /* call Step_5a, line 133 */
+ if (ret < 0) return ret;
+ }
+ lab15:
+ z->c = z->l - m;
}
- lab15:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 134 */
- { int ret = r_Step_5b(z);
- if (ret == 0) goto lab16; /* call Step_5b, line 134 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 134 */
+ { int ret = r_Step_5b(z);
+ if (ret == 0) goto lab16; /* call Step_5b, line 134 */
+ if (ret < 0) return ret;
+ }
+ lab16:
+ z->c = z->l - m;
}
- lab16:
- z->c = z->l - m;
- }
- z->c = z->lb;
- { int c = z->c; /* do, line 137 */
- if (!(z->B[0])) goto lab17; /* Boolean test Y_found, line 137 */
- while(1) { /* repeat, line 137 */
- int c = z->c;
- while(1) { /* goto, line 137 */
- int c = z->c;
- z->bra = z->c; /* [, line 137 */
- if (!(eq_s(z, 1, s_33))) goto lab19;
- z->ket = z->c; /* ], line 137 */
- z->c = c;
- break;
- lab19:
- z->c = c;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab18;
- z->c = c; /* goto, line 137 */
+ z->c = z->lb;
+ { int c = z->c; /* do, line 137 */
+ if (!(z->B[0])) goto lab17; /* Boolean test Y_found, line 137 */
+ while(1) { /* repeat, line 137 */
+ int c = z->c;
+ while(1) { /* goto, line 137 */
+ int c = z->c;
+ z->bra = z->c; /* [, line 137 */
+ if (!(eq_s(z, 1, s_33))) goto lab19;
+ z->ket = z->c; /* ], line 137 */
+ z->c = c;
+ break;
+ lab19:
+ z->c = c;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab18;
+ z->c = c; /* goto, line 137 */
+ }
+ }
+ { int ret;
+ ret = slice_from_s(z, 1, s_34); /* <-, line 137 */
+ if (ret < 0) return ret;
+ }
+ continue;
+ lab18:
+ z->c = c;
+ break;
}
- }
- { int ret;
- ret = slice_from_s(z, 1, s_34); /* <-, line 137 */
- if (ret < 0) return ret;
- }
- continue;
- lab18:
- z->c = c;
- break;
+ lab17:
+ z->c = c;
}
- lab17:
- z->c = c;
- }
- return 1;
+ return 1;
}
extern struct SN_env * porter_UTF_8_create_env(void) { return SN_create_env(0, 2, 1); }
diff --git a/src/libstemmer/stem_UTF_8_porter.h b/src/libstemmer/stem_UTF_8_porter.h
index 2bd301e..625e517 100644
--- a/src/libstemmer/stem_UTF_8_porter.h
+++ b/src/libstemmer/stem_UTF_8_porter.h
@@ -18,10 +18,10 @@
extern "C" {
#endif
-extern struct SN_env * porter_UTF_8_create_env(void);
-extern void porter_UTF_8_close_env(struct SN_env * z);
+ extern struct SN_env * porter_UTF_8_create_env(void);
+ extern void porter_UTF_8_close_env(struct SN_env * z);
-extern int porter_UTF_8_stem(struct SN_env * z);
+ extern int porter_UTF_8_stem(struct SN_env * z);
#ifdef __cplusplus
}
diff --git a/src/libstemmer/stem_UTF_8_portuguese.c b/src/libstemmer/stem_UTF_8_portuguese.c
index 2aebda8..26803e2 100644
--- a/src/libstemmer/stem_UTF_8_portuguese.c
+++ b/src/libstemmer/stem_UTF_8_portuguese.c
@@ -35,21 +35,21 @@ static symbol s_0_1[2] = { 0xC3, 0xA3 };
static symbol s_0_2[2] = { 0xC3, 0xB5 };
static struct among a_0[3] =
-{
-/* 0 */ { 0, 0, -1, 3, 0},
-/* 1 */ { 2, s_0_1, 0, 1, 0},
-/* 2 */ { 2, s_0_2, 0, 2, 0}
-};
+ {
+ /* 0 */ { 0, 0, -1, 3, 0},
+ /* 1 */ { 2, s_0_1, 0, 1, 0},
+ /* 2 */ { 2, s_0_2, 0, 2, 0}
+ };
static symbol s_1_1[2] = { 'a', '~' };
static symbol s_1_2[2] = { 'o', '~' };
static struct among a_1[3] =
-{
-/* 0 */ { 0, 0, -1, 3, 0},
-/* 1 */ { 2, s_1_1, 0, 1, 0},
-/* 2 */ { 2, s_1_2, 0, 2, 0}
-};
+ {
+ /* 0 */ { 0, 0, -1, 3, 0},
+ /* 1 */ { 2, s_1_1, 0, 1, 0},
+ /* 2 */ { 2, s_1_2, 0, 2, 0}
+ };
static symbol s_2_0[2] = { 'i', 'c' };
static symbol s_2_1[2] = { 'a', 'd' };
@@ -57,34 +57,34 @@ static symbol s_2_2[2] = { 'o', 's' };
static symbol s_2_3[2] = { 'i', 'v' };
static struct among a_2[4] =
-{
-/* 0 */ { 2, s_2_0, -1, -1, 0},
-/* 1 */ { 2, s_2_1, -1, -1, 0},
-/* 2 */ { 2, s_2_2, -1, -1, 0},
-/* 3 */ { 2, s_2_3, -1, 1, 0}
-};
+ {
+ /* 0 */ { 2, s_2_0, -1, -1, 0},
+ /* 1 */ { 2, s_2_1, -1, -1, 0},
+ /* 2 */ { 2, s_2_2, -1, -1, 0},
+ /* 3 */ { 2, s_2_3, -1, 1, 0}
+ };
static symbol s_3_0[4] = { 'a', 'n', 't', 'e' };
static symbol s_3_1[4] = { 'a', 'v', 'e', 'l' };
static symbol s_3_2[5] = { 0xC3, 0xAD, 'v', 'e', 'l' };
static struct among a_3[3] =
-{
-/* 0 */ { 4, s_3_0, -1, 1, 0},
-/* 1 */ { 4, s_3_1, -1, 1, 0},
-/* 2 */ { 5, s_3_2, -1, 1, 0}
-};
+ {
+ /* 0 */ { 4, s_3_0, -1, 1, 0},
+ /* 1 */ { 4, s_3_1, -1, 1, 0},
+ /* 2 */ { 5, s_3_2, -1, 1, 0}
+ };
static symbol s_4_0[2] = { 'i', 'c' };
static symbol s_4_1[4] = { 'a', 'b', 'i', 'l' };
static symbol s_4_2[2] = { 'i', 'v' };
static struct among a_4[3] =
-{
-/* 0 */ { 2, s_4_0, -1, 1, 0},
-/* 1 */ { 4, s_4_1, -1, 1, 0},
-/* 2 */ { 2, s_4_2, -1, 1, 0}
-};
+ {
+ /* 0 */ { 2, s_4_0, -1, 1, 0},
+ /* 1 */ { 4, s_4_1, -1, 1, 0},
+ /* 2 */ { 2, s_4_2, -1, 1, 0}
+ };
static symbol s_5_0[3] = { 'i', 'c', 'a' };
static symbol s_5_1[6] = { 0xC3, 0xA2, 'n', 'c', 'i', 'a' };
@@ -133,53 +133,53 @@ static symbol s_5_43[7] = { 'i', 'm', 'e', 'n', 't', 'o', 's' };
static symbol s_5_44[4] = { 'i', 'v', 'o', 's' };
static struct among a_5[45] =
-{
-/* 0 */ { 3, s_5_0, -1, 1, 0},
-/* 1 */ { 6, s_5_1, -1, 1, 0},
-/* 2 */ { 6, s_5_2, -1, 4, 0},
-/* 3 */ { 3, s_5_3, -1, 9, 0},
-/* 4 */ { 5, s_5_4, -1, 1, 0},
-/* 5 */ { 3, s_5_5, -1, 1, 0},
-/* 6 */ { 4, s_5_6, -1, 1, 0},
-/* 7 */ { 3, s_5_7, -1, 8, 0},
-/* 8 */ { 3, s_5_8, -1, 1, 0},
-/* 9 */ { 6, s_5_9, -1, 2, 0},
-/* 10 */ { 5, s_5_10, -1, 7, 0},
-/* 11 */ { 4, s_5_11, -1, 1, 0},
-/* 12 */ { 5, s_5_12, -1, 6, 0},
-/* 13 */ { 6, s_5_13, 12, 5, 0},
-/* 14 */ { 5, s_5_14, -1, 1, 0},
-/* 15 */ { 5, s_5_15, -1, 1, 0},
-/* 16 */ { 6, s_5_16, -1, 3, 0},
-/* 17 */ { 3, s_5_17, -1, 1, 0},
-/* 18 */ { 4, s_5_18, -1, 1, 0},
-/* 19 */ { 3, s_5_19, -1, 1, 0},
-/* 20 */ { 6, s_5_20, -1, 1, 0},
-/* 21 */ { 6, s_5_21, -1, 1, 0},
-/* 22 */ { 3, s_5_22, -1, 8, 0},
-/* 23 */ { 6, s_5_23, -1, 1, 0},
-/* 24 */ { 4, s_5_24, -1, 1, 0},
-/* 25 */ { 4, s_5_25, -1, 1, 0},
-/* 26 */ { 7, s_5_26, -1, 4, 0},
-/* 27 */ { 4, s_5_27, -1, 9, 0},
-/* 28 */ { 6, s_5_28, -1, 1, 0},
-/* 29 */ { 4, s_5_29, -1, 1, 0},
-/* 30 */ { 5, s_5_30, -1, 1, 0},
-/* 31 */ { 4, s_5_31, -1, 8, 0},
-/* 32 */ { 4, s_5_32, -1, 1, 0},
-/* 33 */ { 7, s_5_33, -1, 2, 0},
-/* 34 */ { 6, s_5_34, -1, 7, 0},
-/* 35 */ { 7, s_5_35, -1, 3, 0},
-/* 36 */ { 6, s_5_36, -1, 1, 0},
-/* 37 */ { 5, s_5_37, -1, 1, 0},
-/* 38 */ { 7, s_5_38, -1, 1, 0},
-/* 39 */ { 4, s_5_39, -1, 1, 0},
-/* 40 */ { 5, s_5_40, -1, 1, 0},
-/* 41 */ { 4, s_5_41, -1, 1, 0},
-/* 42 */ { 7, s_5_42, -1, 1, 0},
-/* 43 */ { 7, s_5_43, -1, 1, 0},
-/* 44 */ { 4, s_5_44, -1, 8, 0}
-};
+ {
+ /* 0 */ { 3, s_5_0, -1, 1, 0},
+ /* 1 */ { 6, s_5_1, -1, 1, 0},
+ /* 2 */ { 6, s_5_2, -1, 4, 0},
+ /* 3 */ { 3, s_5_3, -1, 9, 0},
+ /* 4 */ { 5, s_5_4, -1, 1, 0},
+ /* 5 */ { 3, s_5_5, -1, 1, 0},
+ /* 6 */ { 4, s_5_6, -1, 1, 0},
+ /* 7 */ { 3, s_5_7, -1, 8, 0},
+ /* 8 */ { 3, s_5_8, -1, 1, 0},
+ /* 9 */ { 6, s_5_9, -1, 2, 0},
+ /* 10 */ { 5, s_5_10, -1, 7, 0},
+ /* 11 */ { 4, s_5_11, -1, 1, 0},
+ /* 12 */ { 5, s_5_12, -1, 6, 0},
+ /* 13 */ { 6, s_5_13, 12, 5, 0},
+ /* 14 */ { 5, s_5_14, -1, 1, 0},
+ /* 15 */ { 5, s_5_15, -1, 1, 0},
+ /* 16 */ { 6, s_5_16, -1, 3, 0},
+ /* 17 */ { 3, s_5_17, -1, 1, 0},
+ /* 18 */ { 4, s_5_18, -1, 1, 0},
+ /* 19 */ { 3, s_5_19, -1, 1, 0},
+ /* 20 */ { 6, s_5_20, -1, 1, 0},
+ /* 21 */ { 6, s_5_21, -1, 1, 0},
+ /* 22 */ { 3, s_5_22, -1, 8, 0},
+ /* 23 */ { 6, s_5_23, -1, 1, 0},
+ /* 24 */ { 4, s_5_24, -1, 1, 0},
+ /* 25 */ { 4, s_5_25, -1, 1, 0},
+ /* 26 */ { 7, s_5_26, -1, 4, 0},
+ /* 27 */ { 4, s_5_27, -1, 9, 0},
+ /* 28 */ { 6, s_5_28, -1, 1, 0},
+ /* 29 */ { 4, s_5_29, -1, 1, 0},
+ /* 30 */ { 5, s_5_30, -1, 1, 0},
+ /* 31 */ { 4, s_5_31, -1, 8, 0},
+ /* 32 */ { 4, s_5_32, -1, 1, 0},
+ /* 33 */ { 7, s_5_33, -1, 2, 0},
+ /* 34 */ { 6, s_5_34, -1, 7, 0},
+ /* 35 */ { 7, s_5_35, -1, 3, 0},
+ /* 36 */ { 6, s_5_36, -1, 1, 0},
+ /* 37 */ { 5, s_5_37, -1, 1, 0},
+ /* 38 */ { 7, s_5_38, -1, 1, 0},
+ /* 39 */ { 4, s_5_39, -1, 1, 0},
+ /* 40 */ { 5, s_5_40, -1, 1, 0},
+ /* 41 */ { 4, s_5_41, -1, 1, 0},
+ /* 42 */ { 7, s_5_42, -1, 1, 0},
+ /* 43 */ { 7, s_5_43, -1, 1, 0},
+ /* 44 */ { 4, s_5_44, -1, 8, 0}
+ };
static symbol s_6_0[3] = { 'a', 'd', 'a' };
static symbol s_6_1[3] = { 'i', 'd', 'a' };
@@ -303,128 +303,128 @@ static symbol s_6_118[4] = { 'e', 'r', 0xC3, 0xA1 };
static symbol s_6_119[4] = { 'i', 'r', 0xC3, 0xA1 };
static struct among a_6[120] =
-{
-/* 0 */ { 3, s_6_0, -1, 1, 0},
-/* 1 */ { 3, s_6_1, -1, 1, 0},
-/* 2 */ { 2, s_6_2, -1, 1, 0},
-/* 3 */ { 4, s_6_3, 2, 1, 0},
-/* 4 */ { 4, s_6_4, 2, 1, 0},
-/* 5 */ { 4, s_6_5, 2, 1, 0},
-/* 6 */ { 3, s_6_6, -1, 1, 0},
-/* 7 */ { 3, s_6_7, -1, 1, 0},
-/* 8 */ { 3, s_6_8, -1, 1, 0},
-/* 9 */ { 3, s_6_9, -1, 1, 0},
-/* 10 */ { 4, s_6_10, -1, 1, 0},
-/* 11 */ { 4, s_6_11, -1, 1, 0},
-/* 12 */ { 4, s_6_12, -1, 1, 0},
-/* 13 */ { 4, s_6_13, -1, 1, 0},
-/* 14 */ { 4, s_6_14, -1, 1, 0},
-/* 15 */ { 4, s_6_15, -1, 1, 0},
-/* 16 */ { 2, s_6_16, -1, 1, 0},
-/* 17 */ { 4, s_6_17, 16, 1, 0},
-/* 18 */ { 4, s_6_18, 16, 1, 0},
-/* 19 */ { 4, s_6_19, 16, 1, 0},
-/* 20 */ { 2, s_6_20, -1, 1, 0},
-/* 21 */ { 3, s_6_21, 20, 1, 0},
-/* 22 */ { 5, s_6_22, 21, 1, 0},
-/* 23 */ { 5, s_6_23, 21, 1, 0},
-/* 24 */ { 5, s_6_24, 21, 1, 0},
-/* 25 */ { 4, s_6_25, 20, 1, 0},
-/* 26 */ { 4, s_6_26, 20, 1, 0},
-/* 27 */ { 4, s_6_27, 20, 1, 0},
-/* 28 */ { 4, s_6_28, 20, 1, 0},
-/* 29 */ { 2, s_6_29, -1, 1, 0},
-/* 30 */ { 4, s_6_30, 29, 1, 0},
-/* 31 */ { 4, s_6_31, 29, 1, 0},
-/* 32 */ { 4, s_6_32, 29, 1, 0},
-/* 33 */ { 5, s_6_33, 29, 1, 0},
-/* 34 */ { 5, s_6_34, 29, 1, 0},
-/* 35 */ { 5, s_6_35, 29, 1, 0},
-/* 36 */ { 3, s_6_36, -1, 1, 0},
-/* 37 */ { 3, s_6_37, -1, 1, 0},
-/* 38 */ { 4, s_6_38, -1, 1, 0},
-/* 39 */ { 4, s_6_39, -1, 1, 0},
-/* 40 */ { 4, s_6_40, -1, 1, 0},
-/* 41 */ { 5, s_6_41, -1, 1, 0},
-/* 42 */ { 5, s_6_42, -1, 1, 0},
-/* 43 */ { 5, s_6_43, -1, 1, 0},
-/* 44 */ { 2, s_6_44, -1, 1, 0},
-/* 45 */ { 2, s_6_45, -1, 1, 0},
-/* 46 */ { 2, s_6_46, -1, 1, 0},
-/* 47 */ { 2, s_6_47, -1, 1, 0},
-/* 48 */ { 4, s_6_48, 47, 1, 0},
-/* 49 */ { 4, s_6_49, 47, 1, 0},
-/* 50 */ { 3, s_6_50, 47, 1, 0},
-/* 51 */ { 5, s_6_51, 50, 1, 0},
-/* 52 */ { 5, s_6_52, 50, 1, 0},
-/* 53 */ { 5, s_6_53, 50, 1, 0},
-/* 54 */ { 4, s_6_54, 47, 1, 0},
-/* 55 */ { 4, s_6_55, 47, 1, 0},
-/* 56 */ { 4, s_6_56, 47, 1, 0},
-/* 57 */ { 4, s_6_57, 47, 1, 0},
-/* 58 */ { 2, s_6_58, -1, 1, 0},
-/* 59 */ { 5, s_6_59, 58, 1, 0},
-/* 60 */ { 5, s_6_60, 58, 1, 0},
-/* 61 */ { 5, s_6_61, 58, 1, 0},
-/* 62 */ { 4, s_6_62, 58, 1, 0},
-/* 63 */ { 4, s_6_63, 58, 1, 0},
-/* 64 */ { 4, s_6_64, 58, 1, 0},
-/* 65 */ { 5, s_6_65, 58, 1, 0},
-/* 66 */ { 5, s_6_66, 58, 1, 0},
-/* 67 */ { 5, s_6_67, 58, 1, 0},
-/* 68 */ { 5, s_6_68, 58, 1, 0},
-/* 69 */ { 5, s_6_69, 58, 1, 0},
-/* 70 */ { 5, s_6_70, 58, 1, 0},
-/* 71 */ { 2, s_6_71, -1, 1, 0},
-/* 72 */ { 3, s_6_72, 71, 1, 0},
-/* 73 */ { 3, s_6_73, 71, 1, 0},
-/* 74 */ { 5, s_6_74, 73, 1, 0},
-/* 75 */ { 5, s_6_75, 73, 1, 0},
-/* 76 */ { 5, s_6_76, 73, 1, 0},
-/* 77 */ { 6, s_6_77, 73, 1, 0},
-/* 78 */ { 6, s_6_78, 73, 1, 0},
-/* 79 */ { 6, s_6_79, 73, 1, 0},
-/* 80 */ { 7, s_6_80, 73, 1, 0},
-/* 81 */ { 7, s_6_81, 73, 1, 0},
-/* 82 */ { 7, s_6_82, 73, 1, 0},
-/* 83 */ { 6, s_6_83, 73, 1, 0},
-/* 84 */ { 5, s_6_84, 73, 1, 0},
-/* 85 */ { 7, s_6_85, 84, 1, 0},
-/* 86 */ { 7, s_6_86, 84, 1, 0},
-/* 87 */ { 7, s_6_87, 84, 1, 0},
-/* 88 */ { 4, s_6_88, -1, 1, 0},
-/* 89 */ { 4, s_6_89, -1, 1, 0},
-/* 90 */ { 4, s_6_90, -1, 1, 0},
-/* 91 */ { 7, s_6_91, 90, 1, 0},
-/* 92 */ { 7, s_6_92, 90, 1, 0},
-/* 93 */ { 7, s_6_93, 90, 1, 0},
-/* 94 */ { 7, s_6_94, 90, 1, 0},
-/* 95 */ { 6, s_6_95, 90, 1, 0},
-/* 96 */ { 8, s_6_96, 95, 1, 0},
-/* 97 */ { 8, s_6_97, 95, 1, 0},
-/* 98 */ { 8, s_6_98, 95, 1, 0},
-/* 99 */ { 4, s_6_99, -1, 1, 0},
-/*100 */ { 6, s_6_100, 99, 1, 0},
-/*101 */ { 6, s_6_101, 99, 1, 0},
-/*102 */ { 6, s_6_102, 99, 1, 0},
-/*103 */ { 8, s_6_103, 99, 1, 0},
-/*104 */ { 8, s_6_104, 99, 1, 0},
-/*105 */ { 8, s_6_105, 99, 1, 0},
-/*106 */ { 4, s_6_106, -1, 1, 0},
-/*107 */ { 5, s_6_107, -1, 1, 0},
-/*108 */ { 5, s_6_108, -1, 1, 0},
-/*109 */ { 5, s_6_109, -1, 1, 0},
-/*110 */ { 5, s_6_110, -1, 1, 0},
-/*111 */ { 5, s_6_111, -1, 1, 0},
-/*112 */ { 5, s_6_112, -1, 1, 0},
-/*113 */ { 5, s_6_113, -1, 1, 0},
-/*114 */ { 2, s_6_114, -1, 1, 0},
-/*115 */ { 2, s_6_115, -1, 1, 0},
-/*116 */ { 2, s_6_116, -1, 1, 0},
-/*117 */ { 4, s_6_117, -1, 1, 0},
-/*118 */ { 4, s_6_118, -1, 1, 0},
-/*119 */ { 4, s_6_119, -1, 1, 0}
-};
+ {
+ /* 0 */ { 3, s_6_0, -1, 1, 0},
+ /* 1 */ { 3, s_6_1, -1, 1, 0},
+ /* 2 */ { 2, s_6_2, -1, 1, 0},
+ /* 3 */ { 4, s_6_3, 2, 1, 0},
+ /* 4 */ { 4, s_6_4, 2, 1, 0},
+ /* 5 */ { 4, s_6_5, 2, 1, 0},
+ /* 6 */ { 3, s_6_6, -1, 1, 0},
+ /* 7 */ { 3, s_6_7, -1, 1, 0},
+ /* 8 */ { 3, s_6_8, -1, 1, 0},
+ /* 9 */ { 3, s_6_9, -1, 1, 0},
+ /* 10 */ { 4, s_6_10, -1, 1, 0},
+ /* 11 */ { 4, s_6_11, -1, 1, 0},
+ /* 12 */ { 4, s_6_12, -1, 1, 0},
+ /* 13 */ { 4, s_6_13, -1, 1, 0},
+ /* 14 */ { 4, s_6_14, -1, 1, 0},
+ /* 15 */ { 4, s_6_15, -1, 1, 0},
+ /* 16 */ { 2, s_6_16, -1, 1, 0},
+ /* 17 */ { 4, s_6_17, 16, 1, 0},
+ /* 18 */ { 4, s_6_18, 16, 1, 0},
+ /* 19 */ { 4, s_6_19, 16, 1, 0},
+ /* 20 */ { 2, s_6_20, -1, 1, 0},
+ /* 21 */ { 3, s_6_21, 20, 1, 0},
+ /* 22 */ { 5, s_6_22, 21, 1, 0},
+ /* 23 */ { 5, s_6_23, 21, 1, 0},
+ /* 24 */ { 5, s_6_24, 21, 1, 0},
+ /* 25 */ { 4, s_6_25, 20, 1, 0},
+ /* 26 */ { 4, s_6_26, 20, 1, 0},
+ /* 27 */ { 4, s_6_27, 20, 1, 0},
+ /* 28 */ { 4, s_6_28, 20, 1, 0},
+ /* 29 */ { 2, s_6_29, -1, 1, 0},
+ /* 30 */ { 4, s_6_30, 29, 1, 0},
+ /* 31 */ { 4, s_6_31, 29, 1, 0},
+ /* 32 */ { 4, s_6_32, 29, 1, 0},
+ /* 33 */ { 5, s_6_33, 29, 1, 0},
+ /* 34 */ { 5, s_6_34, 29, 1, 0},
+ /* 35 */ { 5, s_6_35, 29, 1, 0},
+ /* 36 */ { 3, s_6_36, -1, 1, 0},
+ /* 37 */ { 3, s_6_37, -1, 1, 0},
+ /* 38 */ { 4, s_6_38, -1, 1, 0},
+ /* 39 */ { 4, s_6_39, -1, 1, 0},
+ /* 40 */ { 4, s_6_40, -1, 1, 0},
+ /* 41 */ { 5, s_6_41, -1, 1, 0},
+ /* 42 */ { 5, s_6_42, -1, 1, 0},
+ /* 43 */ { 5, s_6_43, -1, 1, 0},
+ /* 44 */ { 2, s_6_44, -1, 1, 0},
+ /* 45 */ { 2, s_6_45, -1, 1, 0},
+ /* 46 */ { 2, s_6_46, -1, 1, 0},
+ /* 47 */ { 2, s_6_47, -1, 1, 0},
+ /* 48 */ { 4, s_6_48, 47, 1, 0},
+ /* 49 */ { 4, s_6_49, 47, 1, 0},
+ /* 50 */ { 3, s_6_50, 47, 1, 0},
+ /* 51 */ { 5, s_6_51, 50, 1, 0},
+ /* 52 */ { 5, s_6_52, 50, 1, 0},
+ /* 53 */ { 5, s_6_53, 50, 1, 0},
+ /* 54 */ { 4, s_6_54, 47, 1, 0},
+ /* 55 */ { 4, s_6_55, 47, 1, 0},
+ /* 56 */ { 4, s_6_56, 47, 1, 0},
+ /* 57 */ { 4, s_6_57, 47, 1, 0},
+ /* 58 */ { 2, s_6_58, -1, 1, 0},
+ /* 59 */ { 5, s_6_59, 58, 1, 0},
+ /* 60 */ { 5, s_6_60, 58, 1, 0},
+ /* 61 */ { 5, s_6_61, 58, 1, 0},
+ /* 62 */ { 4, s_6_62, 58, 1, 0},
+ /* 63 */ { 4, s_6_63, 58, 1, 0},
+ /* 64 */ { 4, s_6_64, 58, 1, 0},
+ /* 65 */ { 5, s_6_65, 58, 1, 0},
+ /* 66 */ { 5, s_6_66, 58, 1, 0},
+ /* 67 */ { 5, s_6_67, 58, 1, 0},
+ /* 68 */ { 5, s_6_68, 58, 1, 0},
+ /* 69 */ { 5, s_6_69, 58, 1, 0},
+ /* 70 */ { 5, s_6_70, 58, 1, 0},
+ /* 71 */ { 2, s_6_71, -1, 1, 0},
+ /* 72 */ { 3, s_6_72, 71, 1, 0},
+ /* 73 */ { 3, s_6_73, 71, 1, 0},
+ /* 74 */ { 5, s_6_74, 73, 1, 0},
+ /* 75 */ { 5, s_6_75, 73, 1, 0},
+ /* 76 */ { 5, s_6_76, 73, 1, 0},
+ /* 77 */ { 6, s_6_77, 73, 1, 0},
+ /* 78 */ { 6, s_6_78, 73, 1, 0},
+ /* 79 */ { 6, s_6_79, 73, 1, 0},
+ /* 80 */ { 7, s_6_80, 73, 1, 0},
+ /* 81 */ { 7, s_6_81, 73, 1, 0},
+ /* 82 */ { 7, s_6_82, 73, 1, 0},
+ /* 83 */ { 6, s_6_83, 73, 1, 0},
+ /* 84 */ { 5, s_6_84, 73, 1, 0},
+ /* 85 */ { 7, s_6_85, 84, 1, 0},
+ /* 86 */ { 7, s_6_86, 84, 1, 0},
+ /* 87 */ { 7, s_6_87, 84, 1, 0},
+ /* 88 */ { 4, s_6_88, -1, 1, 0},
+ /* 89 */ { 4, s_6_89, -1, 1, 0},
+ /* 90 */ { 4, s_6_90, -1, 1, 0},
+ /* 91 */ { 7, s_6_91, 90, 1, 0},
+ /* 92 */ { 7, s_6_92, 90, 1, 0},
+ /* 93 */ { 7, s_6_93, 90, 1, 0},
+ /* 94 */ { 7, s_6_94, 90, 1, 0},
+ /* 95 */ { 6, s_6_95, 90, 1, 0},
+ /* 96 */ { 8, s_6_96, 95, 1, 0},
+ /* 97 */ { 8, s_6_97, 95, 1, 0},
+ /* 98 */ { 8, s_6_98, 95, 1, 0},
+ /* 99 */ { 4, s_6_99, -1, 1, 0},
+ /*100 */ { 6, s_6_100, 99, 1, 0},
+ /*101 */ { 6, s_6_101, 99, 1, 0},
+ /*102 */ { 6, s_6_102, 99, 1, 0},
+ /*103 */ { 8, s_6_103, 99, 1, 0},
+ /*104 */ { 8, s_6_104, 99, 1, 0},
+ /*105 */ { 8, s_6_105, 99, 1, 0},
+ /*106 */ { 4, s_6_106, -1, 1, 0},
+ /*107 */ { 5, s_6_107, -1, 1, 0},
+ /*108 */ { 5, s_6_108, -1, 1, 0},
+ /*109 */ { 5, s_6_109, -1, 1, 0},
+ /*110 */ { 5, s_6_110, -1, 1, 0},
+ /*111 */ { 5, s_6_111, -1, 1, 0},
+ /*112 */ { 5, s_6_112, -1, 1, 0},
+ /*113 */ { 5, s_6_113, -1, 1, 0},
+ /*114 */ { 2, s_6_114, -1, 1, 0},
+ /*115 */ { 2, s_6_115, -1, 1, 0},
+ /*116 */ { 2, s_6_116, -1, 1, 0},
+ /*117 */ { 4, s_6_117, -1, 1, 0},
+ /*118 */ { 4, s_6_118, -1, 1, 0},
+ /*119 */ { 4, s_6_119, -1, 1, 0}
+ };
static symbol s_7_0[1] = { 'a' };
static symbol s_7_1[1] = { 'i' };
@@ -435,15 +435,15 @@ static symbol s_7_5[2] = { 0xC3, 0xAD };
static symbol s_7_6[2] = { 0xC3, 0xB3 };
static struct among a_7[7] =
-{
-/* 0 */ { 1, s_7_0, -1, 1, 0},
-/* 1 */ { 1, s_7_1, -1, 1, 0},
-/* 2 */ { 1, s_7_2, -1, 1, 0},
-/* 3 */ { 2, s_7_3, -1, 1, 0},
-/* 4 */ { 2, s_7_4, -1, 1, 0},
-/* 5 */ { 2, s_7_5, -1, 1, 0},
-/* 6 */ { 2, s_7_6, -1, 1, 0}
-};
+ {
+ /* 0 */ { 1, s_7_0, -1, 1, 0},
+ /* 1 */ { 1, s_7_1, -1, 1, 0},
+ /* 2 */ { 1, s_7_2, -1, 1, 0},
+ /* 3 */ { 2, s_7_3, -1, 1, 0},
+ /* 4 */ { 2, s_7_4, -1, 1, 0},
+ /* 5 */ { 2, s_7_5, -1, 1, 0},
+ /* 6 */ { 2, s_7_6, -1, 1, 0}
+ };
static symbol s_8_0[1] = { 'e' };
static symbol s_8_1[2] = { 0xC3, 0xA7 };
@@ -451,12 +451,12 @@ static symbol s_8_2[2] = { 0xC3, 0xA9 };
static symbol s_8_3[2] = { 0xC3, 0xAA };
static struct among a_8[4] =
-{
-/* 0 */ { 1, s_8_0, -1, 1, 0},
-/* 1 */ { 2, s_8_1, -1, 2, 0},
-/* 2 */ { 2, s_8_2, -1, 1, 0},
-/* 3 */ { 2, s_8_3, -1, 1, 0}
-};
+ {
+ /* 0 */ { 1, s_8_0, -1, 1, 0},
+ /* 1 */ { 2, s_8_1, -1, 2, 0},
+ /* 2 */ { 2, s_8_2, -1, 1, 0},
+ /* 3 */ { 2, s_8_3, -1, 1, 0}
+ };
static unsigned char g_v[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 19, 12, 2 };
@@ -480,586 +480,586 @@ static symbol s_16[] = { 'i' };
static symbol s_17[] = { 'c' };
static int r_prelude(struct SN_env * z) {
- int among_var;
- while(1) { /* repeat, line 36 */
- int c = z->c;
- z->bra = z->c; /* [, line 37 */
- among_var = find_among(z, a_0, 3); /* substring, line 37 */
- if (!(among_var)) goto lab0;
- z->ket = z->c; /* ], line 37 */
- switch(among_var) {
- case 0: goto lab0;
- case 1:
- { int ret;
- ret = slice_from_s(z, 2, s_0); /* <-, line 38 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int ret;
- ret = slice_from_s(z, 2, s_1); /* <-, line 39 */
- if (ret < 0) return ret;
- }
- break;
- case 3:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* next, line 40 */
+ int among_var;
+ while(1) { /* repeat, line 36 */
+ int c = z->c;
+ z->bra = z->c; /* [, line 37 */
+ among_var = find_among(z, a_0, 3); /* substring, line 37 */
+ if (!(among_var)) goto lab0;
+ z->ket = z->c; /* ], line 37 */
+ switch(among_var) {
+ case 0: goto lab0;
+ case 1:
+ { int ret;
+ ret = slice_from_s(z, 2, s_0); /* <-, line 38 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ { int ret;
+ ret = slice_from_s(z, 2, s_1); /* <-, line 39 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 3:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* next, line 40 */
+ }
+ break;
}
+ continue;
+ lab0:
+ z->c = c;
break;
}
- continue;
- lab0:
- z->c = c;
- break;
- }
- return 1;
+ return 1;
}
static int r_mark_regions(struct SN_env * z) {
- z->I[0] = z->l;
- z->I[1] = z->l;
- z->I[2] = z->l;
- { int c = z->c; /* do, line 50 */
- { int c = z->c; /* or, line 52 */
- if (!(in_grouping_U(z, g_v, 97, 250))) goto lab2;
- { int c = z->c; /* or, line 51 */
- if (!(out_grouping_U(z, g_v, 97, 250))) goto lab4;
- while(1) { /* gopast, line 51 */
- if (!(in_grouping_U(z, g_v, 97, 250))) goto lab5;
- break;
- lab5:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab4;
- z->c = c; /* gopast, line 51 */
- }
+ z->I[0] = z->l;
+ z->I[1] = z->l;
+ z->I[2] = z->l;
+ { int c = z->c; /* do, line 50 */
+ { int c = z->c; /* or, line 52 */
+ if (!(in_grouping_U(z, g_v, 97, 250))) goto lab2;
+ { int c = z->c; /* or, line 51 */
+ if (!(out_grouping_U(z, g_v, 97, 250))) goto lab4;
+ while(1) { /* gopast, line 51 */
+ if (!(in_grouping_U(z, g_v, 97, 250))) goto lab5;
+ break;
+ lab5:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab4;
+ z->c = c; /* gopast, line 51 */
+ }
+ }
+ goto lab3;
+ lab4:
+ z->c = c;
+ if (!(in_grouping_U(z, g_v, 97, 250))) goto lab2;
+ while(1) { /* gopast, line 51 */
+ if (!(out_grouping_U(z, g_v, 97, 250))) goto lab6;
+ break;
+ lab6:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab2;
+ z->c = c; /* gopast, line 51 */
+ }
+ }
+ }
+ lab3:
+ goto lab1;
+ lab2:
+ z->c = c;
+ if (!(out_grouping_U(z, g_v, 97, 250))) goto lab0;
+ { int c = z->c; /* or, line 53 */
+ if (!(out_grouping_U(z, g_v, 97, 250))) goto lab8;
+ while(1) { /* gopast, line 53 */
+ if (!(in_grouping_U(z, g_v, 97, 250))) goto lab9;
+ break;
+ lab9:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab8;
+ z->c = c; /* gopast, line 53 */
+ }
+ }
+ goto lab7;
+ lab8:
+ z->c = c;
+ if (!(in_grouping_U(z, g_v, 97, 250))) goto lab0;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* next, line 53 */
+ }
+ }
+ lab7:
+ ;
}
- goto lab3;
- lab4:
+ lab1:
+ z->I[0] = z->c; /* setmark pV, line 54 */
+ lab0:
z->c = c;
- if (!(in_grouping_U(z, g_v, 97, 250))) goto lab2;
- while(1) { /* gopast, line 51 */
- if (!(out_grouping_U(z, g_v, 97, 250))) goto lab6;
- break;
- lab6:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab2;
- z->c = c; /* gopast, line 51 */
- }
+ }
+ { int c = z->c; /* do, line 56 */
+ while(1) { /* gopast, line 57 */
+ if (!(in_grouping_U(z, g_v, 97, 250))) goto lab11;
+ break;
+ lab11:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab10;
+ z->c = c; /* gopast, line 57 */
+ }
}
- }
- lab3:
- goto lab1;
- lab2:
- z->c = c;
- if (!(out_grouping_U(z, g_v, 97, 250))) goto lab0;
- { int c = z->c; /* or, line 53 */
- if (!(out_grouping_U(z, g_v, 97, 250))) goto lab8;
- while(1) { /* gopast, line 53 */
- if (!(in_grouping_U(z, g_v, 97, 250))) goto lab9;
- break;
- lab9:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab8;
- z->c = c; /* gopast, line 53 */
- }
+ while(1) { /* gopast, line 57 */
+ if (!(out_grouping_U(z, g_v, 97, 250))) goto lab12;
+ break;
+ lab12:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab10;
+ z->c = c; /* gopast, line 57 */
+ }
}
- goto lab7;
- lab8:
- z->c = c;
- if (!(in_grouping_U(z, g_v, 97, 250))) goto lab0;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* next, line 53 */
+ z->I[1] = z->c; /* setmark p1, line 57 */
+ while(1) { /* gopast, line 58 */
+ if (!(in_grouping_U(z, g_v, 97, 250))) goto lab13;
+ break;
+ lab13:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab10;
+ z->c = c; /* gopast, line 58 */
+ }
}
- }
- lab7:
- ;
- }
- lab1:
- z->I[0] = z->c; /* setmark pV, line 54 */
- lab0:
- z->c = c;
- }
- { int c = z->c; /* do, line 56 */
- while(1) { /* gopast, line 57 */
- if (!(in_grouping_U(z, g_v, 97, 250))) goto lab11;
- break;
- lab11:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab10;
- z->c = c; /* gopast, line 57 */
- }
- }
- while(1) { /* gopast, line 57 */
- if (!(out_grouping_U(z, g_v, 97, 250))) goto lab12;
- break;
- lab12:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab10;
- z->c = c; /* gopast, line 57 */
- }
- }
- z->I[1] = z->c; /* setmark p1, line 57 */
- while(1) { /* gopast, line 58 */
- if (!(in_grouping_U(z, g_v, 97, 250))) goto lab13;
- break;
- lab13:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab10;
- z->c = c; /* gopast, line 58 */
- }
- }
- while(1) { /* gopast, line 58 */
- if (!(out_grouping_U(z, g_v, 97, 250))) goto lab14;
- break;
- lab14:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab10;
- z->c = c; /* gopast, line 58 */
- }
+ while(1) { /* gopast, line 58 */
+ if (!(out_grouping_U(z, g_v, 97, 250))) goto lab14;
+ break;
+ lab14:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab10;
+ z->c = c; /* gopast, line 58 */
+ }
+ }
+ z->I[2] = z->c; /* setmark p2, line 58 */
+ lab10:
+ z->c = c;
}
- z->I[2] = z->c; /* setmark p2, line 58 */
- lab10:
- z->c = c;
- }
- return 1;
+ return 1;
}
static int r_postlude(struct SN_env * z) {
- int among_var;
- while(1) { /* repeat, line 62 */
- int c = z->c;
- z->bra = z->c; /* [, line 63 */
- among_var = find_among(z, a_1, 3); /* substring, line 63 */
- if (!(among_var)) goto lab0;
- z->ket = z->c; /* ], line 63 */
- switch(among_var) {
- case 0: goto lab0;
- case 1:
- { int ret;
- ret = slice_from_s(z, 2, s_2); /* <-, line 64 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int ret;
- ret = slice_from_s(z, 2, s_3); /* <-, line 65 */
- if (ret < 0) return ret;
- }
- break;
- case 3:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* next, line 66 */
+ int among_var;
+ while(1) { /* repeat, line 62 */
+ int c = z->c;
+ z->bra = z->c; /* [, line 63 */
+ among_var = find_among(z, a_1, 3); /* substring, line 63 */
+ if (!(among_var)) goto lab0;
+ z->ket = z->c; /* ], line 63 */
+ switch(among_var) {
+ case 0: goto lab0;
+ case 1:
+ { int ret;
+ ret = slice_from_s(z, 2, s_2); /* <-, line 64 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ { int ret;
+ ret = slice_from_s(z, 2, s_3); /* <-, line 65 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 3:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* next, line 66 */
+ }
+ break;
}
+ continue;
+ lab0:
+ z->c = c;
break;
}
- continue;
- lab0:
- z->c = c;
- break;
- }
- return 1;
+ return 1;
}
static int r_RV(struct SN_env * z) {
- if (!(z->I[0] <= z->c)) return 0;
- return 1;
+ if (!(z->I[0] <= z->c)) return 0;
+ return 1;
}
static int r_R1(struct SN_env * z) {
- if (!(z->I[1] <= z->c)) return 0;
- return 1;
+ if (!(z->I[1] <= z->c)) return 0;
+ return 1;
}
static int r_R2(struct SN_env * z) {
- if (!(z->I[2] <= z->c)) return 0;
- return 1;
+ if (!(z->I[2] <= z->c)) return 0;
+ return 1;
}
static int r_standard_suffix(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 77 */
- among_var = find_among_b(z, a_5, 45); /* substring, line 77 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 77 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 77 */
+ among_var = find_among_b(z, a_5, 45); /* substring, line 77 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 77 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 93 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 93 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 93 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 93 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 98 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 3, s_4); /* <-, line 98 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 98 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 3, s_4); /* <-, line 98 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 102 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 1, s_5); /* <-, line 102 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 102 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 1, s_5); /* <-, line 102 */
+ if (ret < 0) return ret;
+ }
+ break;
case 4:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 106 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 4, s_6); /* <-, line 106 */
- if (ret < 0) return ret;
- }
- break;
- case 5:
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 110 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 110 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 111 */
- z->ket = z->c; /* [, line 112 */
- among_var = find_among_b(z, a_2, 4); /* substring, line 112 */
- if (!(among_var)) { z->c = z->l - m; goto lab0; }
- z->bra = z->c; /* ], line 112 */
{ int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab0; } /* call R2, line 112 */
- if (ret < 0) return ret;
+ if (ret == 0) return 0; /* call R2, line 106 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 112 */
- if (ret < 0) return ret;
+ ret = slice_from_s(z, 4, s_6); /* <-, line 106 */
+ if (ret < 0) return ret;
}
- switch(among_var) {
- case 0: { z->c = z->l - m; goto lab0; }
- case 1:
- z->ket = z->c; /* [, line 113 */
- if (!(eq_s_b(z, 2, s_7))) { z->c = z->l - m; goto lab0; }
- z->bra = z->c; /* ], line 113 */
+ break;
+ case 5:
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 110 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 110 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 111 */
+ z->ket = z->c; /* [, line 112 */
+ among_var = find_among_b(z, a_2, 4); /* substring, line 112 */
+ if (!(among_var)) { z->c = z->l - m; goto lab0; }
+ z->bra = z->c; /* ], line 112 */
{ int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab0; } /* call R2, line 113 */
- if (ret < 0) return ret;
+ if (ret == 0) { z->c = z->l - m; goto lab0; } /* call R2, line 112 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 113 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 112 */
+ if (ret < 0) return ret;
}
- break;
+ switch(among_var) {
+ case 0: { z->c = z->l - m; goto lab0; }
+ case 1:
+ z->ket = z->c; /* [, line 113 */
+ if (!(eq_s_b(z, 2, s_7))) { z->c = z->l - m; goto lab0; }
+ z->bra = z->c; /* ], line 113 */
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab0; } /* call R2, line 113 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 113 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ lab0:
+ ;
}
- lab0:
- ;
- }
- break;
+ break;
case 6:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 122 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 122 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 123 */
- z->ket = z->c; /* [, line 124 */
- among_var = find_among_b(z, a_3, 3); /* substring, line 124 */
- if (!(among_var)) { z->c = z->l - m; goto lab1; }
- z->bra = z->c; /* ], line 124 */
- switch(among_var) {
- case 0: { z->c = z->l - m; goto lab1; }
- case 1:
- { int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab1; } /* call R2, line 127 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 127 */
- if (ret < 0) return ret;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 122 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 122 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 123 */
+ z->ket = z->c; /* [, line 124 */
+ among_var = find_among_b(z, a_3, 3); /* substring, line 124 */
+ if (!(among_var)) { z->c = z->l - m; goto lab1; }
+ z->bra = z->c; /* ], line 124 */
+ switch(among_var) {
+ case 0: { z->c = z->l - m; goto lab1; }
+ case 1:
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab1; } /* call R2, line 127 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 127 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- break;
+ lab1:
+ ;
}
- lab1:
- ;
- }
- break;
+ break;
case 7:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 134 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 134 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 135 */
- z->ket = z->c; /* [, line 136 */
- among_var = find_among_b(z, a_4, 3); /* substring, line 136 */
- if (!(among_var)) { z->c = z->l - m; goto lab2; }
- z->bra = z->c; /* ], line 136 */
- switch(among_var) {
- case 0: { z->c = z->l - m; goto lab2; }
- case 1:
- { int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab2; } /* call R2, line 139 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 139 */
- if (ret < 0) return ret;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 134 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 134 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 135 */
+ z->ket = z->c; /* [, line 136 */
+ among_var = find_among_b(z, a_4, 3); /* substring, line 136 */
+ if (!(among_var)) { z->c = z->l - m; goto lab2; }
+ z->bra = z->c; /* ], line 136 */
+ switch(among_var) {
+ case 0: { z->c = z->l - m; goto lab2; }
+ case 1:
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab2; } /* call R2, line 139 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 139 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- break;
+ lab2:
+ ;
}
- lab2:
- ;
- }
- break;
+ break;
case 8:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 146 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 146 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 147 */
- z->ket = z->c; /* [, line 148 */
- if (!(eq_s_b(z, 2, s_8))) { z->c = z->l - m; goto lab3; }
- z->bra = z->c; /* ], line 148 */
{ int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 148 */
- if (ret < 0) return ret;
+ if (ret == 0) return 0; /* call R2, line 146 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 148 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 146 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 147 */
+ z->ket = z->c; /* [, line 148 */
+ if (!(eq_s_b(z, 2, s_8))) { z->c = z->l - m; goto lab3; }
+ z->bra = z->c; /* ], line 148 */
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 148 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 148 */
+ if (ret < 0) return ret;
+ }
+ lab3:
+ ;
}
- lab3:
- ;
- }
- break;
+ break;
case 9:
- { int ret = r_RV(z);
- if (ret == 0) return 0; /* call RV, line 153 */
- if (ret < 0) return ret;
- }
- if (!(eq_s_b(z, 1, s_9))) return 0;
- { int ret;
- ret = slice_from_s(z, 2, s_10); /* <-, line 154 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret = r_RV(z);
+ if (ret == 0) return 0; /* call RV, line 153 */
+ if (ret < 0) return ret;
+ }
+ if (!(eq_s_b(z, 1, s_9))) return 0;
+ { int ret;
+ ret = slice_from_s(z, 2, s_10); /* <-, line 154 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_verb_suffix(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 159 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 159 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 160 */
- among_var = find_among_b(z, a_6, 120); /* substring, line 160 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 160 */
- switch(among_var) {
- case 0: { z->lb = m3; return 0; }
- case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 179 */
- if (ret < 0) return ret;
+ int among_var;
+ { int m3; /* setlimit, line 159 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 159 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 160 */
+ among_var = find_among_b(z, a_6, 120); /* substring, line 160 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 160 */
+ switch(among_var) {
+ case 0: { z->lb = m3; return 0; }
+ case 1:
+ { int ret;
+ ret = slice_del(z); /* delete, line 179 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- break;
+ z->lb = m3;
}
- z->lb = m3;
- }
- return 1;
+ return 1;
}
static int r_residual_suffix(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 184 */
- among_var = find_among_b(z, a_7, 7); /* substring, line 184 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 184 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 184 */
+ among_var = find_among_b(z, a_7, 7); /* substring, line 184 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 184 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = r_RV(z);
- if (ret == 0) return 0; /* call RV, line 187 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 187 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret = r_RV(z);
+ if (ret == 0) return 0; /* call RV, line 187 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 187 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_residual_form(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 192 */
- among_var = find_among_b(z, a_8, 4); /* substring, line 192 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 192 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 192 */
+ among_var = find_among_b(z, a_8, 4); /* substring, line 192 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 192 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = r_RV(z);
- if (ret == 0) return 0; /* call RV, line 194 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 194 */
- if (ret < 0) return ret;
- }
- z->ket = z->c; /* [, line 194 */
- { int m = z->l - z->c; (void) m; /* or, line 194 */
- if (!(eq_s_b(z, 1, s_11))) goto lab1;
- z->bra = z->c; /* ], line 194 */
- { int m_test = z->l - z->c; /* test, line 194 */
- if (!(eq_s_b(z, 1, s_12))) goto lab1;
- z->c = z->l - m_test;
+ { int ret = r_RV(z);
+ if (ret == 0) return 0; /* call RV, line 194 */
+ if (ret < 0) return ret;
}
- goto lab0;
- lab1:
- z->c = z->l - m;
- if (!(eq_s_b(z, 1, s_13))) return 0;
- z->bra = z->c; /* ], line 195 */
- { int m_test = z->l - z->c; /* test, line 195 */
- if (!(eq_s_b(z, 1, s_14))) return 0;
- z->c = z->l - m_test;
+ { int ret;
+ ret = slice_del(z); /* delete, line 194 */
+ if (ret < 0) return ret;
+ }
+ z->ket = z->c; /* [, line 194 */
+ { int m = z->l - z->c; (void) m; /* or, line 194 */
+ if (!(eq_s_b(z, 1, s_11))) goto lab1;
+ z->bra = z->c; /* ], line 194 */
+ { int m_test = z->l - z->c; /* test, line 194 */
+ if (!(eq_s_b(z, 1, s_12))) goto lab1;
+ z->c = z->l - m_test;
+ }
+ goto lab0;
+ lab1:
+ z->c = z->l - m;
+ if (!(eq_s_b(z, 1, s_13))) return 0;
+ z->bra = z->c; /* ], line 195 */
+ { int m_test = z->l - z->c; /* test, line 195 */
+ if (!(eq_s_b(z, 1, s_14))) return 0;
+ z->c = z->l - m_test;
+ }
}
- }
lab0:
- { int ret = r_RV(z);
- if (ret == 0) return 0; /* call RV, line 195 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 195 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_RV(z);
+ if (ret == 0) return 0; /* call RV, line 195 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 195 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret;
- ret = slice_from_s(z, 1, s_15); /* <-, line 196 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_from_s(z, 1, s_15); /* <-, line 196 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
extern int portuguese_UTF_8_stem(struct SN_env * z) {
- { int c = z->c; /* do, line 202 */
- { int ret = r_prelude(z);
- if (ret == 0) goto lab0; /* call prelude, line 202 */
- if (ret < 0) return ret;
+ { int c = z->c; /* do, line 202 */
+ { int ret = r_prelude(z);
+ if (ret == 0) goto lab0; /* call prelude, line 202 */
+ if (ret < 0) return ret;
+ }
+ lab0:
+ z->c = c;
}
- lab0:
- z->c = c;
- }
- { int c = z->c; /* do, line 203 */
- { int ret = r_mark_regions(z);
- if (ret == 0) goto lab1; /* call mark_regions, line 203 */
- if (ret < 0) return ret;
+ { int c = z->c; /* do, line 203 */
+ { int ret = r_mark_regions(z);
+ if (ret == 0) goto lab1; /* call mark_regions, line 203 */
+ if (ret < 0) return ret;
+ }
+ lab1:
+ z->c = c;
}
- lab1:
- z->c = c;
- }
- z->lb = z->c; z->c = z->l; /* backwards, line 204 */
+ z->lb = z->c; z->c = z->l; /* backwards, line 204 */
- { int m = z->l - z->c; (void) m; /* do, line 205 */
- { int m = z->l - z->c; (void) m; /* or, line 209 */
- { int m = z->l - z->c; (void) m; /* and, line 207 */
- { int m = z->l - z->c; (void) m; /* or, line 206 */
- { int ret = r_standard_suffix(z);
- if (ret == 0) goto lab6; /* call standard_suffix, line 206 */
- if (ret < 0) return ret;
- }
- goto lab5;
- lab6:
- z->c = z->l - m;
- { int ret = r_verb_suffix(z);
- if (ret == 0) goto lab4; /* call verb_suffix, line 206 */
- if (ret < 0) return ret;
- }
+ { int m = z->l - z->c; (void) m; /* do, line 205 */
+ { int m = z->l - z->c; (void) m; /* or, line 209 */
+ { int m = z->l - z->c; (void) m; /* and, line 207 */
+ { int m = z->l - z->c; (void) m; /* or, line 206 */
+ { int ret = r_standard_suffix(z);
+ if (ret == 0) goto lab6; /* call standard_suffix, line 206 */
+ if (ret < 0) return ret;
+ }
+ goto lab5;
+ lab6:
+ z->c = z->l - m;
+ { int ret = r_verb_suffix(z);
+ if (ret == 0) goto lab4; /* call verb_suffix, line 206 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab5:
+ z->c = z->l - m;
+ { int m = z->l - z->c; (void) m; /* do, line 207 */
+ z->ket = z->c; /* [, line 207 */
+ if (!(eq_s_b(z, 1, s_16))) goto lab7;
+ z->bra = z->c; /* ], line 207 */
+ { int m_test = z->l - z->c; /* test, line 207 */
+ if (!(eq_s_b(z, 1, s_17))) goto lab7;
+ z->c = z->l - m_test;
+ }
+ { int ret = r_RV(z);
+ if (ret == 0) goto lab7; /* call RV, line 207 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 207 */
+ if (ret < 0) return ret;
+ }
+ lab7:
+ z->c = z->l - m;
+ }
+ }
+ goto lab3;
+ lab4:
+ z->c = z->l - m;
+ { int ret = r_residual_suffix(z);
+ if (ret == 0) goto lab2; /* call residual_suffix, line 209 */
+ if (ret < 0) return ret;
+ }
}
- lab5:
+ lab3:
+ lab2:
z->c = z->l - m;
- { int m = z->l - z->c; (void) m; /* do, line 207 */
- z->ket = z->c; /* [, line 207 */
- if (!(eq_s_b(z, 1, s_16))) goto lab7;
- z->bra = z->c; /* ], line 207 */
- { int m_test = z->l - z->c; /* test, line 207 */
- if (!(eq_s_b(z, 1, s_17))) goto lab7;
- z->c = z->l - m_test;
- }
- { int ret = r_RV(z);
- if (ret == 0) goto lab7; /* call RV, line 207 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 207 */
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 211 */
+ { int ret = r_residual_form(z);
+ if (ret == 0) goto lab8; /* call residual_form, line 211 */
if (ret < 0) return ret;
- }
- lab7:
- z->c = z->l - m;
}
- }
- goto lab3;
- lab4:
- z->c = z->l - m;
- { int ret = r_residual_suffix(z);
- if (ret == 0) goto lab2; /* call residual_suffix, line 209 */
- if (ret < 0) return ret;
- }
- }
- lab3:
- lab2:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 211 */
- { int ret = r_residual_form(z);
- if (ret == 0) goto lab8; /* call residual_form, line 211 */
- if (ret < 0) return ret;
+ lab8:
+ z->c = z->l - m;
}
- lab8:
- z->c = z->l - m;
- }
- z->c = z->lb;
- { int c = z->c; /* do, line 213 */
- { int ret = r_postlude(z);
- if (ret == 0) goto lab9; /* call postlude, line 213 */
- if (ret < 0) return ret;
+ z->c = z->lb;
+ { int c = z->c; /* do, line 213 */
+ { int ret = r_postlude(z);
+ if (ret == 0) goto lab9; /* call postlude, line 213 */
+ if (ret < 0) return ret;
+ }
+ lab9:
+ z->c = c;
}
- lab9:
- z->c = c;
- }
- return 1;
+ return 1;
}
extern struct SN_env * portuguese_UTF_8_create_env(void) { return SN_create_env(0, 3, 0); }
diff --git a/src/libstemmer/stem_UTF_8_portuguese.h b/src/libstemmer/stem_UTF_8_portuguese.h
index 5490898..6b136b4 100644
--- a/src/libstemmer/stem_UTF_8_portuguese.h
+++ b/src/libstemmer/stem_UTF_8_portuguese.h
@@ -18,10 +18,10 @@
extern "C" {
#endif
-extern struct SN_env * portuguese_UTF_8_create_env(void);
-extern void portuguese_UTF_8_close_env(struct SN_env * z);
+ extern struct SN_env * portuguese_UTF_8_create_env(void);
+ extern void portuguese_UTF_8_close_env(struct SN_env * z);
-extern int portuguese_UTF_8_stem(struct SN_env * z);
+ extern int portuguese_UTF_8_stem(struct SN_env * z);
#ifdef __cplusplus
}
diff --git a/src/libstemmer/stem_UTF_8_russian.c b/src/libstemmer/stem_UTF_8_russian.c
index ad4fb18..059cd0e 100644
--- a/src/libstemmer/stem_UTF_8_russian.c
+++ b/src/libstemmer/stem_UTF_8_russian.c
@@ -42,17 +42,17 @@ static symbol s_0_7[8] = { 0xD1, 0x8B, 0xD0, 0xB2, 0xD1, 0x88, 0xD0, 0xB8 };
static symbol s_0_8[8] = { 0xD0, 0xB8, 0xD0, 0xB2, 0xD1, 0x88, 0xD0, 0xB8 };
static struct among a_0[9] =
-{
-/* 0 */ { 10, s_0_0, -1, 1, 0},
-/* 1 */ { 12, s_0_1, 0, 2, 0},
-/* 2 */ { 12, s_0_2, 0, 2, 0},
-/* 3 */ { 2, s_0_3, -1, 1, 0},
-/* 4 */ { 4, s_0_4, 3, 2, 0},
-/* 5 */ { 4, s_0_5, 3, 2, 0},
-/* 6 */ { 6, s_0_6, -1, 1, 0},
-/* 7 */ { 8, s_0_7, 6, 2, 0},
-/* 8 */ { 8, s_0_8, 6, 2, 0}
-};
+ {
+ /* 0 */ { 10, s_0_0, -1, 1, 0},
+ /* 1 */ { 12, s_0_1, 0, 2, 0},
+ /* 2 */ { 12, s_0_2, 0, 2, 0},
+ /* 3 */ { 2, s_0_3, -1, 1, 0},
+ /* 4 */ { 4, s_0_4, 3, 2, 0},
+ /* 5 */ { 4, s_0_5, 3, 2, 0},
+ /* 6 */ { 6, s_0_6, -1, 1, 0},
+ /* 7 */ { 8, s_0_7, 6, 2, 0},
+ /* 8 */ { 8, s_0_8, 6, 2, 0}
+ };
static symbol s_1_0[6] = { 0xD0, 0xB5, 0xD0, 0xBC, 0xD1, 0x83 };
static symbol s_1_1[6] = { 0xD0, 0xBE, 0xD0, 0xBC, 0xD1, 0x83 };
@@ -82,34 +82,34 @@ static symbol s_1_24[6] = { 0xD0, 0xB5, 0xD0, 0xB3, 0xD0, 0xBE };
static symbol s_1_25[6] = { 0xD0, 0xBE, 0xD0, 0xB3, 0xD0, 0xBE };
static struct among a_1[26] =
-{
-/* 0 */ { 6, s_1_0, -1, 1, 0},
-/* 1 */ { 6, s_1_1, -1, 1, 0},
-/* 2 */ { 4, s_1_2, -1, 1, 0},
-/* 3 */ { 4, s_1_3, -1, 1, 0},
-/* 4 */ { 4, s_1_4, -1, 1, 0},
-/* 5 */ { 4, s_1_5, -1, 1, 0},
-/* 6 */ { 4, s_1_6, -1, 1, 0},
-/* 7 */ { 4, s_1_7, -1, 1, 0},
-/* 8 */ { 4, s_1_8, -1, 1, 0},
-/* 9 */ { 4, s_1_9, -1, 1, 0},
-/* 10 */ { 4, s_1_10, -1, 1, 0},
-/* 11 */ { 4, s_1_11, -1, 1, 0},
-/* 12 */ { 4, s_1_12, -1, 1, 0},
-/* 13 */ { 4, s_1_13, -1, 1, 0},
-/* 14 */ { 6, s_1_14, -1, 1, 0},
-/* 15 */ { 6, s_1_15, -1, 1, 0},
-/* 16 */ { 4, s_1_16, -1, 1, 0},
-/* 17 */ { 4, s_1_17, -1, 1, 0},
-/* 18 */ { 4, s_1_18, -1, 1, 0},
-/* 19 */ { 4, s_1_19, -1, 1, 0},
-/* 20 */ { 4, s_1_20, -1, 1, 0},
-/* 21 */ { 4, s_1_21, -1, 1, 0},
-/* 22 */ { 4, s_1_22, -1, 1, 0},
-/* 23 */ { 4, s_1_23, -1, 1, 0},
-/* 24 */ { 6, s_1_24, -1, 1, 0},
-/* 25 */ { 6, s_1_25, -1, 1, 0}
-};
+ {
+ /* 0 */ { 6, s_1_0, -1, 1, 0},
+ /* 1 */ { 6, s_1_1, -1, 1, 0},
+ /* 2 */ { 4, s_1_2, -1, 1, 0},
+ /* 3 */ { 4, s_1_3, -1, 1, 0},
+ /* 4 */ { 4, s_1_4, -1, 1, 0},
+ /* 5 */ { 4, s_1_5, -1, 1, 0},
+ /* 6 */ { 4, s_1_6, -1, 1, 0},
+ /* 7 */ { 4, s_1_7, -1, 1, 0},
+ /* 8 */ { 4, s_1_8, -1, 1, 0},
+ /* 9 */ { 4, s_1_9, -1, 1, 0},
+ /* 10 */ { 4, s_1_10, -1, 1, 0},
+ /* 11 */ { 4, s_1_11, -1, 1, 0},
+ /* 12 */ { 4, s_1_12, -1, 1, 0},
+ /* 13 */ { 4, s_1_13, -1, 1, 0},
+ /* 14 */ { 6, s_1_14, -1, 1, 0},
+ /* 15 */ { 6, s_1_15, -1, 1, 0},
+ /* 16 */ { 4, s_1_16, -1, 1, 0},
+ /* 17 */ { 4, s_1_17, -1, 1, 0},
+ /* 18 */ { 4, s_1_18, -1, 1, 0},
+ /* 19 */ { 4, s_1_19, -1, 1, 0},
+ /* 20 */ { 4, s_1_20, -1, 1, 0},
+ /* 21 */ { 4, s_1_21, -1, 1, 0},
+ /* 22 */ { 4, s_1_22, -1, 1, 0},
+ /* 23 */ { 4, s_1_23, -1, 1, 0},
+ /* 24 */ { 6, s_1_24, -1, 1, 0},
+ /* 25 */ { 6, s_1_25, -1, 1, 0}
+ };
static symbol s_2_0[4] = { 0xD0, 0xB2, 0xD1, 0x88 };
static symbol s_2_1[6] = { 0xD1, 0x8B, 0xD0, 0xB2, 0xD1, 0x88 };
@@ -121,25 +121,25 @@ static symbol s_2_6[4] = { 0xD0, 0xB5, 0xD0, 0xBC };
static symbol s_2_7[4] = { 0xD0, 0xBD, 0xD0, 0xBD };
static struct among a_2[8] =
-{
-/* 0 */ { 4, s_2_0, -1, 1, 0},
-/* 1 */ { 6, s_2_1, 0, 2, 0},
-/* 2 */ { 6, s_2_2, 0, 2, 0},
-/* 3 */ { 2, s_2_3, -1, 1, 0},
-/* 4 */ { 4, s_2_4, 3, 1, 0},
-/* 5 */ { 6, s_2_5, 4, 2, 0},
-/* 6 */ { 4, s_2_6, -1, 1, 0},
-/* 7 */ { 4, s_2_7, -1, 1, 0}
-};
+ {
+ /* 0 */ { 4, s_2_0, -1, 1, 0},
+ /* 1 */ { 6, s_2_1, 0, 2, 0},
+ /* 2 */ { 6, s_2_2, 0, 2, 0},
+ /* 3 */ { 2, s_2_3, -1, 1, 0},
+ /* 4 */ { 4, s_2_4, 3, 1, 0},
+ /* 5 */ { 6, s_2_5, 4, 2, 0},
+ /* 6 */ { 4, s_2_6, -1, 1, 0},
+ /* 7 */ { 4, s_2_7, -1, 1, 0}
+ };
static symbol s_3_0[4] = { 0xD1, 0x81, 0xD1, 0x8C };
static symbol s_3_1[4] = { 0xD1, 0x81, 0xD1, 0x8F };
static struct among a_3[2] =
-{
-/* 0 */ { 4, s_3_0, -1, 1, 0},
-/* 1 */ { 4, s_3_1, -1, 1, 0}
-};
+ {
+ /* 0 */ { 4, s_3_0, -1, 1, 0},
+ /* 1 */ { 4, s_3_1, -1, 1, 0}
+ };
static symbol s_4_0[4] = { 0xD1, 0x8B, 0xD1, 0x82 };
static symbol s_4_1[4] = { 0xD1, 0x8E, 0xD1, 0x82 };
@@ -189,54 +189,54 @@ static symbol s_4_44[6] = { 0xD0, 0xB5, 0xD0, 0xBD, 0xD0, 0xBE };
static symbol s_4_45[6] = { 0xD0, 0xBD, 0xD0, 0xBD, 0xD0, 0xBE };
static struct among a_4[46] =
-{
-/* 0 */ { 4, s_4_0, -1, 2, 0},
-/* 1 */ { 4, s_4_1, -1, 1, 0},
-/* 2 */ { 6, s_4_2, 1, 2, 0},
-/* 3 */ { 4, s_4_3, -1, 2, 0},
-/* 4 */ { 4, s_4_4, -1, 1, 0},
-/* 5 */ { 6, s_4_5, 4, 2, 0},
-/* 6 */ { 4, s_4_6, -1, 2, 0},
-/* 7 */ { 4, s_4_7, -1, 1, 0},
-/* 8 */ { 6, s_4_8, 7, 2, 0},
-/* 9 */ { 4, s_4_9, -1, 1, 0},
-/* 10 */ { 6, s_4_10, 9, 2, 0},
-/* 11 */ { 6, s_4_11, 9, 2, 0},
-/* 12 */ { 6, s_4_12, -1, 1, 0},
-/* 13 */ { 6, s_4_13, -1, 2, 0},
-/* 14 */ { 2, s_4_14, -1, 2, 0},
-/* 15 */ { 4, s_4_15, 14, 2, 0},
-/* 16 */ { 4, s_4_16, -1, 1, 0},
-/* 17 */ { 6, s_4_17, 16, 2, 0},
-/* 18 */ { 6, s_4_18, 16, 2, 0},
-/* 19 */ { 4, s_4_19, -1, 1, 0},
-/* 20 */ { 6, s_4_20, 19, 2, 0},
-/* 21 */ { 6, s_4_21, -1, 1, 0},
-/* 22 */ { 6, s_4_22, -1, 2, 0},
-/* 23 */ { 6, s_4_23, -1, 1, 0},
-/* 24 */ { 8, s_4_24, 23, 2, 0},
-/* 25 */ { 8, s_4_25, 23, 2, 0},
-/* 26 */ { 4, s_4_26, -1, 1, 0},
-/* 27 */ { 6, s_4_27, 26, 2, 0},
-/* 28 */ { 6, s_4_28, 26, 2, 0},
-/* 29 */ { 2, s_4_29, -1, 1, 0},
-/* 30 */ { 4, s_4_30, 29, 2, 0},
-/* 31 */ { 4, s_4_31, 29, 2, 0},
-/* 32 */ { 2, s_4_32, -1, 1, 0},
-/* 33 */ { 4, s_4_33, 32, 2, 0},
-/* 34 */ { 4, s_4_34, 32, 2, 0},
-/* 35 */ { 4, s_4_35, -1, 2, 0},
-/* 36 */ { 4, s_4_36, -1, 1, 0},
-/* 37 */ { 4, s_4_37, -1, 2, 0},
-/* 38 */ { 2, s_4_38, -1, 1, 0},
-/* 39 */ { 4, s_4_39, 38, 2, 0},
-/* 40 */ { 4, s_4_40, -1, 1, 0},
-/* 41 */ { 6, s_4_41, 40, 2, 0},
-/* 42 */ { 6, s_4_42, 40, 2, 0},
-/* 43 */ { 4, s_4_43, -1, 1, 0},
-/* 44 */ { 6, s_4_44, 43, 2, 0},
-/* 45 */ { 6, s_4_45, 43, 1, 0}
-};
+ {
+ /* 0 */ { 4, s_4_0, -1, 2, 0},
+ /* 1 */ { 4, s_4_1, -1, 1, 0},
+ /* 2 */ { 6, s_4_2, 1, 2, 0},
+ /* 3 */ { 4, s_4_3, -1, 2, 0},
+ /* 4 */ { 4, s_4_4, -1, 1, 0},
+ /* 5 */ { 6, s_4_5, 4, 2, 0},
+ /* 6 */ { 4, s_4_6, -1, 2, 0},
+ /* 7 */ { 4, s_4_7, -1, 1, 0},
+ /* 8 */ { 6, s_4_8, 7, 2, 0},
+ /* 9 */ { 4, s_4_9, -1, 1, 0},
+ /* 10 */ { 6, s_4_10, 9, 2, 0},
+ /* 11 */ { 6, s_4_11, 9, 2, 0},
+ /* 12 */ { 6, s_4_12, -1, 1, 0},
+ /* 13 */ { 6, s_4_13, -1, 2, 0},
+ /* 14 */ { 2, s_4_14, -1, 2, 0},
+ /* 15 */ { 4, s_4_15, 14, 2, 0},
+ /* 16 */ { 4, s_4_16, -1, 1, 0},
+ /* 17 */ { 6, s_4_17, 16, 2, 0},
+ /* 18 */ { 6, s_4_18, 16, 2, 0},
+ /* 19 */ { 4, s_4_19, -1, 1, 0},
+ /* 20 */ { 6, s_4_20, 19, 2, 0},
+ /* 21 */ { 6, s_4_21, -1, 1, 0},
+ /* 22 */ { 6, s_4_22, -1, 2, 0},
+ /* 23 */ { 6, s_4_23, -1, 1, 0},
+ /* 24 */ { 8, s_4_24, 23, 2, 0},
+ /* 25 */ { 8, s_4_25, 23, 2, 0},
+ /* 26 */ { 4, s_4_26, -1, 1, 0},
+ /* 27 */ { 6, s_4_27, 26, 2, 0},
+ /* 28 */ { 6, s_4_28, 26, 2, 0},
+ /* 29 */ { 2, s_4_29, -1, 1, 0},
+ /* 30 */ { 4, s_4_30, 29, 2, 0},
+ /* 31 */ { 4, s_4_31, 29, 2, 0},
+ /* 32 */ { 2, s_4_32, -1, 1, 0},
+ /* 33 */ { 4, s_4_33, 32, 2, 0},
+ /* 34 */ { 4, s_4_34, 32, 2, 0},
+ /* 35 */ { 4, s_4_35, -1, 2, 0},
+ /* 36 */ { 4, s_4_36, -1, 1, 0},
+ /* 37 */ { 4, s_4_37, -1, 2, 0},
+ /* 38 */ { 2, s_4_38, -1, 1, 0},
+ /* 39 */ { 4, s_4_39, 38, 2, 0},
+ /* 40 */ { 4, s_4_40, -1, 1, 0},
+ /* 41 */ { 6, s_4_41, 40, 2, 0},
+ /* 42 */ { 6, s_4_42, 40, 2, 0},
+ /* 43 */ { 4, s_4_43, -1, 1, 0},
+ /* 44 */ { 6, s_4_44, 43, 2, 0},
+ /* 45 */ { 6, s_4_45, 43, 1, 0}
+ };
static symbol s_5_0[2] = { 0xD1, 0x83 };
static symbol s_5_1[4] = { 0xD1, 0x8F, 0xD1, 0x85 };
@@ -276,53 +276,53 @@ static symbol s_5_34[4] = { 0xD0, 0xBE, 0xD0, 0xBC };
static symbol s_5_35[2] = { 0xD0, 0xBE };
static struct among a_5[36] =
-{
-/* 0 */ { 2, s_5_0, -1, 1, 0},
-/* 1 */ { 4, s_5_1, -1, 1, 0},
-/* 2 */ { 6, s_5_2, 1, 1, 0},
-/* 3 */ { 4, s_5_3, -1, 1, 0},
-/* 4 */ { 2, s_5_4, -1, 1, 0},
-/* 5 */ { 2, s_5_5, -1, 1, 0},
-/* 6 */ { 2, s_5_6, -1, 1, 0},
-/* 7 */ { 4, s_5_7, 6, 1, 0},
-/* 8 */ { 4, s_5_8, 6, 1, 0},
-/* 9 */ { 2, s_5_9, -1, 1, 0},
-/* 10 */ { 4, s_5_10, 9, 1, 0},
-/* 11 */ { 4, s_5_11, 9, 1, 0},
-/* 12 */ { 2, s_5_12, -1, 1, 0},
-/* 13 */ { 4, s_5_13, -1, 1, 0},
-/* 14 */ { 4, s_5_14, -1, 1, 0},
-/* 15 */ { 2, s_5_15, -1, 1, 0},
-/* 16 */ { 4, s_5_16, 15, 1, 0},
-/* 17 */ { 4, s_5_17, 15, 1, 0},
-/* 18 */ { 2, s_5_18, -1, 1, 0},
-/* 19 */ { 4, s_5_19, 18, 1, 0},
-/* 20 */ { 4, s_5_20, 18, 1, 0},
-/* 21 */ { 6, s_5_21, 18, 1, 0},
-/* 22 */ { 8, s_5_22, 21, 1, 0},
-/* 23 */ { 6, s_5_23, 18, 1, 0},
-/* 24 */ { 2, s_5_24, -1, 1, 0},
-/* 25 */ { 4, s_5_25, 24, 1, 0},
-/* 26 */ { 6, s_5_26, 25, 1, 0},
-/* 27 */ { 4, s_5_27, 24, 1, 0},
-/* 28 */ { 4, s_5_28, 24, 1, 0},
-/* 29 */ { 4, s_5_29, -1, 1, 0},
-/* 30 */ { 6, s_5_30, 29, 1, 0},
-/* 31 */ { 4, s_5_31, -1, 1, 0},
-/* 32 */ { 4, s_5_32, -1, 1, 0},
-/* 33 */ { 6, s_5_33, 32, 1, 0},
-/* 34 */ { 4, s_5_34, -1, 1, 0},
-/* 35 */ { 2, s_5_35, -1, 1, 0}
-};
+ {
+ /* 0 */ { 2, s_5_0, -1, 1, 0},
+ /* 1 */ { 4, s_5_1, -1, 1, 0},
+ /* 2 */ { 6, s_5_2, 1, 1, 0},
+ /* 3 */ { 4, s_5_3, -1, 1, 0},
+ /* 4 */ { 2, s_5_4, -1, 1, 0},
+ /* 5 */ { 2, s_5_5, -1, 1, 0},
+ /* 6 */ { 2, s_5_6, -1, 1, 0},
+ /* 7 */ { 4, s_5_7, 6, 1, 0},
+ /* 8 */ { 4, s_5_8, 6, 1, 0},
+ /* 9 */ { 2, s_5_9, -1, 1, 0},
+ /* 10 */ { 4, s_5_10, 9, 1, 0},
+ /* 11 */ { 4, s_5_11, 9, 1, 0},
+ /* 12 */ { 2, s_5_12, -1, 1, 0},
+ /* 13 */ { 4, s_5_13, -1, 1, 0},
+ /* 14 */ { 4, s_5_14, -1, 1, 0},
+ /* 15 */ { 2, s_5_15, -1, 1, 0},
+ /* 16 */ { 4, s_5_16, 15, 1, 0},
+ /* 17 */ { 4, s_5_17, 15, 1, 0},
+ /* 18 */ { 2, s_5_18, -1, 1, 0},
+ /* 19 */ { 4, s_5_19, 18, 1, 0},
+ /* 20 */ { 4, s_5_20, 18, 1, 0},
+ /* 21 */ { 6, s_5_21, 18, 1, 0},
+ /* 22 */ { 8, s_5_22, 21, 1, 0},
+ /* 23 */ { 6, s_5_23, 18, 1, 0},
+ /* 24 */ { 2, s_5_24, -1, 1, 0},
+ /* 25 */ { 4, s_5_25, 24, 1, 0},
+ /* 26 */ { 6, s_5_26, 25, 1, 0},
+ /* 27 */ { 4, s_5_27, 24, 1, 0},
+ /* 28 */ { 4, s_5_28, 24, 1, 0},
+ /* 29 */ { 4, s_5_29, -1, 1, 0},
+ /* 30 */ { 6, s_5_30, 29, 1, 0},
+ /* 31 */ { 4, s_5_31, -1, 1, 0},
+ /* 32 */ { 4, s_5_32, -1, 1, 0},
+ /* 33 */ { 6, s_5_33, 32, 1, 0},
+ /* 34 */ { 4, s_5_34, -1, 1, 0},
+ /* 35 */ { 2, s_5_35, -1, 1, 0}
+ };
static symbol s_6_0[6] = { 0xD0, 0xBE, 0xD1, 0x81, 0xD1, 0x82 };
static symbol s_6_1[8] = { 0xD0, 0xBE, 0xD1, 0x81, 0xD1, 0x82, 0xD1, 0x8C };
static struct among a_6[2] =
-{
-/* 0 */ { 6, s_6_0, -1, 1, 0},
-/* 1 */ { 8, s_6_1, -1, 1, 0}
-};
+ {
+ /* 0 */ { 6, s_6_0, -1, 1, 0},
+ /* 1 */ { 8, s_6_1, -1, 1, 0}
+ };
static symbol s_7_0[6] = { 0xD0, 0xB5, 0xD0, 0xB9, 0xD1, 0x88 };
static symbol s_7_1[2] = { 0xD1, 0x8C };
@@ -330,12 +330,12 @@ static symbol s_7_2[8] = { 0xD0, 0xB5, 0xD0, 0xB9, 0xD1, 0x88, 0xD0, 0xB5 };
static symbol s_7_3[2] = { 0xD0, 0xBD };
static struct among a_7[4] =
-{
-/* 0 */ { 6, s_7_0, -1, 1, 0},
-/* 1 */ { 2, s_7_1, -1, 3, 0},
-/* 2 */ { 8, s_7_2, -1, 1, 0},
-/* 3 */ { 2, s_7_3, -1, 2, 0}
-};
+ {
+ /* 0 */ { 6, s_7_0, -1, 1, 0},
+ /* 1 */ { 2, s_7_1, -1, 3, 0},
+ /* 2 */ { 8, s_7_2, -1, 1, 0},
+ /* 3 */ { 2, s_7_3, -1, 2, 0}
+ };
static unsigned char g_v[] = { 33, 65, 8, 232 };
@@ -351,369 +351,369 @@ static symbol s_8[] = { 0xD0, 0xBD };
static symbol s_9[] = { 0xD0, 0xB8 };
static int r_mark_regions(struct SN_env * z) {
- z->I[0] = z->l;
- z->I[1] = z->l;
- { int c = z->c; /* do, line 61 */
- while(1) { /* gopast, line 62 */
- if (!(in_grouping_U(z, g_v, 1072, 1103))) goto lab1;
- break;
- lab1:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* gopast, line 62 */
- }
- }
- z->I[0] = z->c; /* setmark pV, line 62 */
- while(1) { /* gopast, line 62 */
- if (!(out_grouping_U(z, g_v, 1072, 1103))) goto lab2;
- break;
- lab2:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* gopast, line 62 */
- }
- }
- while(1) { /* gopast, line 63 */
- if (!(in_grouping_U(z, g_v, 1072, 1103))) goto lab3;
- break;
- lab3:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* gopast, line 63 */
- }
- }
- while(1) { /* gopast, line 63 */
- if (!(out_grouping_U(z, g_v, 1072, 1103))) goto lab4;
- break;
- lab4:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* gopast, line 63 */
- }
+ z->I[0] = z->l;
+ z->I[1] = z->l;
+ { int c = z->c; /* do, line 61 */
+ while(1) { /* gopast, line 62 */
+ if (!(in_grouping_U(z, g_v, 1072, 1103))) goto lab1;
+ break;
+ lab1:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* gopast, line 62 */
+ }
+ }
+ z->I[0] = z->c; /* setmark pV, line 62 */
+ while(1) { /* gopast, line 62 */
+ if (!(out_grouping_U(z, g_v, 1072, 1103))) goto lab2;
+ break;
+ lab2:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* gopast, line 62 */
+ }
+ }
+ while(1) { /* gopast, line 63 */
+ if (!(in_grouping_U(z, g_v, 1072, 1103))) goto lab3;
+ break;
+ lab3:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* gopast, line 63 */
+ }
+ }
+ while(1) { /* gopast, line 63 */
+ if (!(out_grouping_U(z, g_v, 1072, 1103))) goto lab4;
+ break;
+ lab4:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* gopast, line 63 */
+ }
+ }
+ z->I[1] = z->c; /* setmark p2, line 63 */
+ lab0:
+ z->c = c;
}
- z->I[1] = z->c; /* setmark p2, line 63 */
- lab0:
- z->c = c;
- }
- return 1;
+ return 1;
}
static int r_R2(struct SN_env * z) {
- if (!(z->I[1] <= z->c)) return 0;
- return 1;
+ if (!(z->I[1] <= z->c)) return 0;
+ return 1;
}
static int r_perfective_gerund(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 72 */
- among_var = find_among_b(z, a_0, 9); /* substring, line 72 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 72 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 72 */
+ among_var = find_among_b(z, a_0, 9); /* substring, line 72 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 72 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int m = z->l - z->c; (void) m; /* or, line 76 */
- if (!(eq_s_b(z, 2, s_0))) goto lab1;
- goto lab0;
- lab1:
- z->c = z->l - m;
- if (!(eq_s_b(z, 2, s_1))) return 0;
- }
+ { int m = z->l - z->c; (void) m; /* or, line 76 */
+ if (!(eq_s_b(z, 2, s_0))) goto lab1;
+ goto lab0;
+ lab1:
+ z->c = z->l - m;
+ if (!(eq_s_b(z, 2, s_1))) return 0;
+ }
lab0:
- { int ret;
- ret = slice_del(z); /* delete, line 76 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_del(z); /* delete, line 76 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret;
- ret = slice_del(z); /* delete, line 83 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_del(z); /* delete, line 83 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_adjective(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 88 */
- among_var = find_among_b(z, a_1, 26); /* substring, line 88 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 88 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 88 */
+ among_var = find_among_b(z, a_1, 26); /* substring, line 88 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 88 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 97 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
-}
-
-static int r_adjectival(struct SN_env * z) {
- int among_var;
- { int ret = r_adjective(z);
- if (ret == 0) return 0; /* call adjective, line 102 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 109 */
- z->ket = z->c; /* [, line 110 */
- among_var = find_among_b(z, a_2, 8); /* substring, line 110 */
- if (!(among_var)) { z->c = z->l - m; goto lab0; }
- z->bra = z->c; /* ], line 110 */
- switch(among_var) {
- case 0: { z->c = z->l - m; goto lab0; }
- case 1:
- { int m = z->l - z->c; (void) m; /* or, line 115 */
- if (!(eq_s_b(z, 2, s_2))) goto lab2;
- goto lab1;
- lab2:
- z->c = z->l - m;
- if (!(eq_s_b(z, 2, s_3))) { z->c = z->l - m; goto lab0; }
- }
- lab1:
{ int ret;
- ret = slice_del(z); /* delete, line 115 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 97 */
+ if (ret < 0) return ret;
}
break;
- case 2:
- { int ret;
- ret = slice_del(z); /* delete, line 122 */
- if (ret < 0) return ret;
+ }
+ return 1;
+}
+
+static int r_adjectival(struct SN_env * z) {
+ int among_var;
+ { int ret = r_adjective(z);
+ if (ret == 0) return 0; /* call adjective, line 102 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 109 */
+ z->ket = z->c; /* [, line 110 */
+ among_var = find_among_b(z, a_2, 8); /* substring, line 110 */
+ if (!(among_var)) { z->c = z->l - m; goto lab0; }
+ z->bra = z->c; /* ], line 110 */
+ switch(among_var) {
+ case 0: { z->c = z->l - m; goto lab0; }
+ case 1:
+ { int m = z->l - z->c; (void) m; /* or, line 115 */
+ if (!(eq_s_b(z, 2, s_2))) goto lab2;
+ goto lab1;
+ lab2:
+ z->c = z->l - m;
+ if (!(eq_s_b(z, 2, s_3))) { z->c = z->l - m; goto lab0; }
+ }
+ lab1:
+ { int ret;
+ ret = slice_del(z); /* delete, line 115 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ { int ret;
+ ret = slice_del(z); /* delete, line 122 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- break;
+ lab0:
+ ;
}
- lab0:
- ;
- }
- return 1;
+ return 1;
}
static int r_reflexive(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 129 */
- among_var = find_among_b(z, a_3, 2); /* substring, line 129 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 129 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 129 */
+ among_var = find_among_b(z, a_3, 2); /* substring, line 129 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 129 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 132 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_del(z); /* delete, line 132 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_verb(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 137 */
- among_var = find_among_b(z, a_4, 46); /* substring, line 137 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 137 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 137 */
+ among_var = find_among_b(z, a_4, 46); /* substring, line 137 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 137 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int m = z->l - z->c; (void) m; /* or, line 143 */
- if (!(eq_s_b(z, 2, s_4))) goto lab1;
- goto lab0;
- lab1:
- z->c = z->l - m;
- if (!(eq_s_b(z, 2, s_5))) return 0;
- }
+ { int m = z->l - z->c; (void) m; /* or, line 143 */
+ if (!(eq_s_b(z, 2, s_4))) goto lab1;
+ goto lab0;
+ lab1:
+ z->c = z->l - m;
+ if (!(eq_s_b(z, 2, s_5))) return 0;
+ }
lab0:
- { int ret;
- ret = slice_del(z); /* delete, line 143 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_del(z); /* delete, line 143 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret;
- ret = slice_del(z); /* delete, line 151 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_del(z); /* delete, line 151 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_noun(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 160 */
- among_var = find_among_b(z, a_5, 36); /* substring, line 160 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 160 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 160 */
+ among_var = find_among_b(z, a_5, 36); /* substring, line 160 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 160 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 167 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_del(z); /* delete, line 167 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_derivational(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 176 */
- among_var = find_among_b(z, a_6, 2); /* substring, line 176 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 176 */
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 176 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 176 */
+ among_var = find_among_b(z, a_6, 2); /* substring, line 176 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 176 */
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 176 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 179 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_del(z); /* delete, line 179 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_tidy_up(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 184 */
- among_var = find_among_b(z, a_7, 4); /* substring, line 184 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 184 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 184 */
+ among_var = find_among_b(z, a_7, 4); /* substring, line 184 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 184 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 188 */
- if (ret < 0) return ret;
- }
- z->ket = z->c; /* [, line 189 */
- if (!(eq_s_b(z, 2, s_6))) return 0;
- z->bra = z->c; /* ], line 189 */
- if (!(eq_s_b(z, 2, s_7))) return 0;
- { int ret;
- ret = slice_del(z); /* delete, line 189 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_del(z); /* delete, line 188 */
+ if (ret < 0) return ret;
+ }
+ z->ket = z->c; /* [, line 189 */
+ if (!(eq_s_b(z, 2, s_6))) return 0;
+ z->bra = z->c; /* ], line 189 */
+ if (!(eq_s_b(z, 2, s_7))) return 0;
+ { int ret;
+ ret = slice_del(z); /* delete, line 189 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- if (!(eq_s_b(z, 2, s_8))) return 0;
- { int ret;
- ret = slice_del(z); /* delete, line 192 */
- if (ret < 0) return ret;
- }
- break;
+ if (!(eq_s_b(z, 2, s_8))) return 0;
+ { int ret;
+ ret = slice_del(z); /* delete, line 192 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- { int ret;
- ret = slice_del(z); /* delete, line 194 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_del(z); /* delete, line 194 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
extern int russian_UTF_8_stem(struct SN_env * z) {
- { int c = z->c; /* do, line 201 */
- { int ret = r_mark_regions(z);
- if (ret == 0) goto lab0; /* call mark_regions, line 201 */
- if (ret < 0) return ret;
- }
- lab0:
- z->c = c;
- }
- z->lb = z->c; z->c = z->l; /* backwards, line 202 */
-
- { int m3; /* setlimit, line 202 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 202 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- { int m = z->l - z->c; (void) m; /* do, line 203 */
- { int m = z->l - z->c; (void) m; /* or, line 204 */
- { int ret = r_perfective_gerund(z);
- if (ret == 0) goto lab3; /* call perfective_gerund, line 204 */
- if (ret < 0) return ret;
+ { int c = z->c; /* do, line 201 */
+ { int ret = r_mark_regions(z);
+ if (ret == 0) goto lab0; /* call mark_regions, line 201 */
+ if (ret < 0) return ret;
}
- goto lab2;
- lab3:
+ lab0:
+ z->c = c;
+ }
+ z->lb = z->c; z->c = z->l; /* backwards, line 202 */
+
+ { int m3; /* setlimit, line 202 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 202 */
+ m3 = z->lb; z->lb = z->c;
z->c = z->l - m;
- { int m = z->l - z->c; (void) m; /* try, line 205 */
- { int ret = r_reflexive(z);
- if (ret == 0) { z->c = z->l - m; goto lab4; } /* call reflexive, line 205 */
- if (ret < 0) return ret;
- }
- lab4:
- ;
+ { int m = z->l - z->c; (void) m; /* do, line 203 */
+ { int m = z->l - z->c; (void) m; /* or, line 204 */
+ { int ret = r_perfective_gerund(z);
+ if (ret == 0) goto lab3; /* call perfective_gerund, line 204 */
+ if (ret < 0) return ret;
+ }
+ goto lab2;
+ lab3:
+ z->c = z->l - m;
+ { int m = z->l - z->c; (void) m; /* try, line 205 */
+ { int ret = r_reflexive(z);
+ if (ret == 0) { z->c = z->l - m; goto lab4; } /* call reflexive, line 205 */
+ if (ret < 0) return ret;
+ }
+ lab4:
+ ;
+ }
+ { int m = z->l - z->c; (void) m; /* or, line 206 */
+ { int ret = r_adjectival(z);
+ if (ret == 0) goto lab6; /* call adjectival, line 206 */
+ if (ret < 0) return ret;
+ }
+ goto lab5;
+ lab6:
+ z->c = z->l - m;
+ { int ret = r_verb(z);
+ if (ret == 0) goto lab7; /* call verb, line 206 */
+ if (ret < 0) return ret;
+ }
+ goto lab5;
+ lab7:
+ z->c = z->l - m;
+ { int ret = r_noun(z);
+ if (ret == 0) goto lab1; /* call noun, line 206 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab5:
+ ;
+ }
+ lab2:
+ lab1:
+ z->c = z->l - m;
}
- { int m = z->l - z->c; (void) m; /* or, line 206 */
- { int ret = r_adjectival(z);
- if (ret == 0) goto lab6; /* call adjectival, line 206 */
- if (ret < 0) return ret;
- }
- goto lab5;
- lab6:
- z->c = z->l - m;
- { int ret = r_verb(z);
- if (ret == 0) goto lab7; /* call verb, line 206 */
- if (ret < 0) return ret;
- }
- goto lab5;
- lab7:
- z->c = z->l - m;
- { int ret = r_noun(z);
- if (ret == 0) goto lab1; /* call noun, line 206 */
- if (ret < 0) return ret;
- }
+ { int m = z->l - z->c; (void) m; /* try, line 209 */
+ z->ket = z->c; /* [, line 209 */
+ if (!(eq_s_b(z, 2, s_9))) { z->c = z->l - m; goto lab8; }
+ z->bra = z->c; /* ], line 209 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 209 */
+ if (ret < 0) return ret;
+ }
+ lab8:
+ ;
}
- lab5:
- ;
- }
- lab2:
- lab1:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* try, line 209 */
- z->ket = z->c; /* [, line 209 */
- if (!(eq_s_b(z, 2, s_9))) { z->c = z->l - m; goto lab8; }
- z->bra = z->c; /* ], line 209 */
- { int ret;
- ret = slice_del(z); /* delete, line 209 */
- if (ret < 0) return ret;
- }
- lab8:
- ;
- }
- { int m = z->l - z->c; (void) m; /* do, line 212 */
- { int ret = r_derivational(z);
- if (ret == 0) goto lab9; /* call derivational, line 212 */
- if (ret < 0) return ret;
- }
- lab9:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 213 */
- { int ret = r_tidy_up(z);
- if (ret == 0) goto lab10; /* call tidy_up, line 213 */
- if (ret < 0) return ret;
- }
- lab10:
- z->c = z->l - m;
+ { int m = z->l - z->c; (void) m; /* do, line 212 */
+ { int ret = r_derivational(z);
+ if (ret == 0) goto lab9; /* call derivational, line 212 */
+ if (ret < 0) return ret;
+ }
+ lab9:
+ z->c = z->l - m;
+ }
+ { int m = z->l - z->c; (void) m; /* do, line 213 */
+ { int ret = r_tidy_up(z);
+ if (ret == 0) goto lab10; /* call tidy_up, line 213 */
+ if (ret < 0) return ret;
+ }
+ lab10:
+ z->c = z->l - m;
+ }
+ z->lb = m3;
}
- z->lb = m3;
- }
- z->c = z->lb;
- return 1;
+ z->c = z->lb;
+ return 1;
}
extern struct SN_env * russian_UTF_8_create_env(void) { return SN_create_env(0, 2, 0); }
diff --git a/src/libstemmer/stem_UTF_8_russian.h b/src/libstemmer/stem_UTF_8_russian.h
index 11149fd..4b42da6 100644
--- a/src/libstemmer/stem_UTF_8_russian.h
+++ b/src/libstemmer/stem_UTF_8_russian.h
@@ -18,10 +18,10 @@
extern "C" {
#endif
-extern struct SN_env * russian_UTF_8_create_env(void);
-extern void russian_UTF_8_close_env(struct SN_env * z);
+ extern struct SN_env * russian_UTF_8_create_env(void);
+ extern void russian_UTF_8_close_env(struct SN_env * z);
-extern int russian_UTF_8_stem(struct SN_env * z);
+ extern int russian_UTF_8_stem(struct SN_env * z);
#ifdef __cplusplus
}
diff --git a/src/libstemmer/stem_UTF_8_spanish.c b/src/libstemmer/stem_UTF_8_spanish.c
index 3dad04e..8cd2ea6 100644
--- a/src/libstemmer/stem_UTF_8_spanish.c
+++ b/src/libstemmer/stem_UTF_8_spanish.c
@@ -38,14 +38,14 @@ static symbol s_0_4[2] = { 0xC3, 0xB3 };
static symbol s_0_5[2] = { 0xC3, 0xBA };
static struct among a_0[6] =
-{
-/* 0 */ { 0, 0, -1, 6, 0},
-/* 1 */ { 2, s_0_1, 0, 1, 0},
-/* 2 */ { 2, s_0_2, 0, 2, 0},
-/* 3 */ { 2, s_0_3, 0, 3, 0},
-/* 4 */ { 2, s_0_4, 0, 4, 0},
-/* 5 */ { 2, s_0_5, 0, 5, 0}
-};
+ {
+ /* 0 */ { 0, 0, -1, 6, 0},
+ /* 1 */ { 2, s_0_1, 0, 1, 0},
+ /* 2 */ { 2, s_0_2, 0, 2, 0},
+ /* 3 */ { 2, s_0_3, 0, 3, 0},
+ /* 4 */ { 2, s_0_4, 0, 4, 0},
+ /* 5 */ { 2, s_0_5, 0, 5, 0}
+ };
static symbol s_1_0[2] = { 'l', 'a' };
static symbol s_1_1[4] = { 's', 'e', 'l', 'a' };
@@ -62,21 +62,21 @@ static symbol s_1_11[5] = { 's', 'e', 'l', 'o', 's' };
static symbol s_1_12[3] = { 'n', 'o', 's' };
static struct among a_1[13] =
-{
-/* 0 */ { 2, s_1_0, -1, -1, 0},
-/* 1 */ { 4, s_1_1, 0, -1, 0},
-/* 2 */ { 2, s_1_2, -1, -1, 0},
-/* 3 */ { 2, s_1_3, -1, -1, 0},
-/* 4 */ { 2, s_1_4, -1, -1, 0},
-/* 5 */ { 2, s_1_5, -1, -1, 0},
-/* 6 */ { 4, s_1_6, 5, -1, 0},
-/* 7 */ { 3, s_1_7, -1, -1, 0},
-/* 8 */ { 5, s_1_8, 7, -1, 0},
-/* 9 */ { 3, s_1_9, -1, -1, 0},
-/* 10 */ { 3, s_1_10, -1, -1, 0},
-/* 11 */ { 5, s_1_11, 10, -1, 0},
-/* 12 */ { 3, s_1_12, -1, -1, 0}
-};
+ {
+ /* 0 */ { 2, s_1_0, -1, -1, 0},
+ /* 1 */ { 4, s_1_1, 0, -1, 0},
+ /* 2 */ { 2, s_1_2, -1, -1, 0},
+ /* 3 */ { 2, s_1_3, -1, -1, 0},
+ /* 4 */ { 2, s_1_4, -1, -1, 0},
+ /* 5 */ { 2, s_1_5, -1, -1, 0},
+ /* 6 */ { 4, s_1_6, 5, -1, 0},
+ /* 7 */ { 3, s_1_7, -1, -1, 0},
+ /* 8 */ { 5, s_1_8, 7, -1, 0},
+ /* 9 */ { 3, s_1_9, -1, -1, 0},
+ /* 10 */ { 3, s_1_10, -1, -1, 0},
+ /* 11 */ { 5, s_1_11, 10, -1, 0},
+ /* 12 */ { 3, s_1_12, -1, -1, 0}
+ };
static symbol s_2_0[4] = { 'a', 'n', 'd', 'o' };
static symbol s_2_1[5] = { 'i', 'e', 'n', 'd', 'o' };
@@ -91,19 +91,19 @@ static symbol s_2_9[3] = { 0xC3, 0xA9, 'r' };
static symbol s_2_10[3] = { 0xC3, 0xAD, 'r' };
static struct among a_2[11] =
-{
-/* 0 */ { 4, s_2_0, -1, 6, 0},
-/* 1 */ { 5, s_2_1, -1, 6, 0},
-/* 2 */ { 5, s_2_2, -1, 7, 0},
-/* 3 */ { 5, s_2_3, -1, 2, 0},
-/* 4 */ { 6, s_2_4, -1, 1, 0},
-/* 5 */ { 2, s_2_5, -1, 6, 0},
-/* 6 */ { 2, s_2_6, -1, 6, 0},
-/* 7 */ { 2, s_2_7, -1, 6, 0},
-/* 8 */ { 3, s_2_8, -1, 3, 0},
-/* 9 */ { 3, s_2_9, -1, 4, 0},
-/* 10 */ { 3, s_2_10, -1, 5, 0}
-};
+ {
+ /* 0 */ { 4, s_2_0, -1, 6, 0},
+ /* 1 */ { 5, s_2_1, -1, 6, 0},
+ /* 2 */ { 5, s_2_2, -1, 7, 0},
+ /* 3 */ { 5, s_2_3, -1, 2, 0},
+ /* 4 */ { 6, s_2_4, -1, 1, 0},
+ /* 5 */ { 2, s_2_5, -1, 6, 0},
+ /* 6 */ { 2, s_2_6, -1, 6, 0},
+ /* 7 */ { 2, s_2_7, -1, 6, 0},
+ /* 8 */ { 3, s_2_8, -1, 3, 0},
+ /* 9 */ { 3, s_2_9, -1, 4, 0},
+ /* 10 */ { 3, s_2_10, -1, 5, 0}
+ };
static symbol s_3_0[2] = { 'i', 'c' };
static symbol s_3_1[2] = { 'a', 'd' };
@@ -111,34 +111,34 @@ static symbol s_3_2[2] = { 'o', 's' };
static symbol s_3_3[2] = { 'i', 'v' };
static struct among a_3[4] =
-{
-/* 0 */ { 2, s_3_0, -1, -1, 0},
-/* 1 */ { 2, s_3_1, -1, -1, 0},
-/* 2 */ { 2, s_3_2, -1, -1, 0},
-/* 3 */ { 2, s_3_3, -1, 1, 0}
-};
+ {
+ /* 0 */ { 2, s_3_0, -1, -1, 0},
+ /* 1 */ { 2, s_3_1, -1, -1, 0},
+ /* 2 */ { 2, s_3_2, -1, -1, 0},
+ /* 3 */ { 2, s_3_3, -1, 1, 0}
+ };
static symbol s_4_0[4] = { 'a', 'b', 'l', 'e' };
static symbol s_4_1[4] = { 'i', 'b', 'l', 'e' };
static symbol s_4_2[4] = { 'a', 'n', 't', 'e' };
static struct among a_4[3] =
-{
-/* 0 */ { 4, s_4_0, -1, 1, 0},
-/* 1 */ { 4, s_4_1, -1, 1, 0},
-/* 2 */ { 4, s_4_2, -1, 1, 0}
-};
+ {
+ /* 0 */ { 4, s_4_0, -1, 1, 0},
+ /* 1 */ { 4, s_4_1, -1, 1, 0},
+ /* 2 */ { 4, s_4_2, -1, 1, 0}
+ };
static symbol s_5_0[2] = { 'i', 'c' };
static symbol s_5_1[4] = { 'a', 'b', 'i', 'l' };
static symbol s_5_2[2] = { 'i', 'v' };
static struct among a_5[3] =
-{
-/* 0 */ { 2, s_5_0, -1, 1, 0},
-/* 1 */ { 4, s_5_1, -1, 1, 0},
-/* 2 */ { 2, s_5_2, -1, 1, 0}
-};
+ {
+ /* 0 */ { 2, s_5_0, -1, 1, 0},
+ /* 1 */ { 4, s_5_1, -1, 1, 0},
+ /* 2 */ { 2, s_5_2, -1, 1, 0}
+ };
static symbol s_6_0[3] = { 'i', 'c', 'a' };
static symbol s_6_1[5] = { 'a', 'n', 'c', 'i', 'a' };
@@ -188,54 +188,54 @@ static symbol s_6_44[8] = { 'i', 'm', 'i', 'e', 'n', 't', 'o', 's' };
static symbol s_6_45[4] = { 'i', 'v', 'o', 's' };
static struct among a_6[46] =
-{
-/* 0 */ { 3, s_6_0, -1, 1, 0},
-/* 1 */ { 5, s_6_1, -1, 2, 0},
-/* 2 */ { 5, s_6_2, -1, 5, 0},
-/* 3 */ { 5, s_6_3, -1, 2, 0},
-/* 4 */ { 3, s_6_4, -1, 1, 0},
-/* 5 */ { 4, s_6_5, -1, 1, 0},
-/* 6 */ { 3, s_6_6, -1, 9, 0},
-/* 7 */ { 4, s_6_7, -1, 1, 0},
-/* 8 */ { 6, s_6_8, -1, 3, 0},
-/* 9 */ { 4, s_6_9, -1, 8, 0},
-/* 10 */ { 4, s_6_10, -1, 1, 0},
-/* 11 */ { 4, s_6_11, -1, 1, 0},
-/* 12 */ { 4, s_6_12, -1, 2, 0},
-/* 13 */ { 5, s_6_13, -1, 7, 0},
-/* 14 */ { 6, s_6_14, 13, 6, 0},
-/* 15 */ { 6, s_6_15, -1, 2, 0},
-/* 16 */ { 6, s_6_16, -1, 4, 0},
-/* 17 */ { 3, s_6_17, -1, 1, 0},
-/* 18 */ { 4, s_6_18, -1, 1, 0},
-/* 19 */ { 3, s_6_19, -1, 1, 0},
-/* 20 */ { 7, s_6_20, -1, 1, 0},
-/* 21 */ { 7, s_6_21, -1, 1, 0},
-/* 22 */ { 3, s_6_22, -1, 9, 0},
-/* 23 */ { 4, s_6_23, -1, 2, 0},
-/* 24 */ { 4, s_6_24, -1, 1, 0},
-/* 25 */ { 6, s_6_25, -1, 2, 0},
-/* 26 */ { 6, s_6_26, -1, 5, 0},
-/* 27 */ { 6, s_6_27, -1, 2, 0},
-/* 28 */ { 4, s_6_28, -1, 1, 0},
-/* 29 */ { 5, s_6_29, -1, 1, 0},
-/* 30 */ { 4, s_6_30, -1, 9, 0},
-/* 31 */ { 5, s_6_31, -1, 1, 0},
-/* 32 */ { 7, s_6_32, -1, 3, 0},
-/* 33 */ { 6, s_6_33, -1, 8, 0},
-/* 34 */ { 5, s_6_34, -1, 1, 0},
-/* 35 */ { 5, s_6_35, -1, 1, 0},
-/* 36 */ { 7, s_6_36, -1, 2, 0},
-/* 37 */ { 7, s_6_37, -1, 4, 0},
-/* 38 */ { 6, s_6_38, -1, 2, 0},
-/* 39 */ { 5, s_6_39, -1, 2, 0},
-/* 40 */ { 4, s_6_40, -1, 1, 0},
-/* 41 */ { 5, s_6_41, -1, 1, 0},
-/* 42 */ { 4, s_6_42, -1, 1, 0},
-/* 43 */ { 8, s_6_43, -1, 1, 0},
-/* 44 */ { 8, s_6_44, -1, 1, 0},
-/* 45 */ { 4, s_6_45, -1, 9, 0}
-};
+ {
+ /* 0 */ { 3, s_6_0, -1, 1, 0},
+ /* 1 */ { 5, s_6_1, -1, 2, 0},
+ /* 2 */ { 5, s_6_2, -1, 5, 0},
+ /* 3 */ { 5, s_6_3, -1, 2, 0},
+ /* 4 */ { 3, s_6_4, -1, 1, 0},
+ /* 5 */ { 4, s_6_5, -1, 1, 0},
+ /* 6 */ { 3, s_6_6, -1, 9, 0},
+ /* 7 */ { 4, s_6_7, -1, 1, 0},
+ /* 8 */ { 6, s_6_8, -1, 3, 0},
+ /* 9 */ { 4, s_6_9, -1, 8, 0},
+ /* 10 */ { 4, s_6_10, -1, 1, 0},
+ /* 11 */ { 4, s_6_11, -1, 1, 0},
+ /* 12 */ { 4, s_6_12, -1, 2, 0},
+ /* 13 */ { 5, s_6_13, -1, 7, 0},
+ /* 14 */ { 6, s_6_14, 13, 6, 0},
+ /* 15 */ { 6, s_6_15, -1, 2, 0},
+ /* 16 */ { 6, s_6_16, -1, 4, 0},
+ /* 17 */ { 3, s_6_17, -1, 1, 0},
+ /* 18 */ { 4, s_6_18, -1, 1, 0},
+ /* 19 */ { 3, s_6_19, -1, 1, 0},
+ /* 20 */ { 7, s_6_20, -1, 1, 0},
+ /* 21 */ { 7, s_6_21, -1, 1, 0},
+ /* 22 */ { 3, s_6_22, -1, 9, 0},
+ /* 23 */ { 4, s_6_23, -1, 2, 0},
+ /* 24 */ { 4, s_6_24, -1, 1, 0},
+ /* 25 */ { 6, s_6_25, -1, 2, 0},
+ /* 26 */ { 6, s_6_26, -1, 5, 0},
+ /* 27 */ { 6, s_6_27, -1, 2, 0},
+ /* 28 */ { 4, s_6_28, -1, 1, 0},
+ /* 29 */ { 5, s_6_29, -1, 1, 0},
+ /* 30 */ { 4, s_6_30, -1, 9, 0},
+ /* 31 */ { 5, s_6_31, -1, 1, 0},
+ /* 32 */ { 7, s_6_32, -1, 3, 0},
+ /* 33 */ { 6, s_6_33, -1, 8, 0},
+ /* 34 */ { 5, s_6_34, -1, 1, 0},
+ /* 35 */ { 5, s_6_35, -1, 1, 0},
+ /* 36 */ { 7, s_6_36, -1, 2, 0},
+ /* 37 */ { 7, s_6_37, -1, 4, 0},
+ /* 38 */ { 6, s_6_38, -1, 2, 0},
+ /* 39 */ { 5, s_6_39, -1, 2, 0},
+ /* 40 */ { 4, s_6_40, -1, 1, 0},
+ /* 41 */ { 5, s_6_41, -1, 1, 0},
+ /* 42 */ { 4, s_6_42, -1, 1, 0},
+ /* 43 */ { 8, s_6_43, -1, 1, 0},
+ /* 44 */ { 8, s_6_44, -1, 1, 0},
+ /* 45 */ { 4, s_6_45, -1, 9, 0}
+ };
static symbol s_7_0[2] = { 'y', 'a' };
static symbol s_7_1[2] = { 'y', 'e' };
@@ -251,20 +251,20 @@ static symbol s_7_10[5] = { 'y', 'a', 'm', 'o', 's' };
static symbol s_7_11[3] = { 'y', 0xC3, 0xB3 };
static struct among a_7[12] =
-{
-/* 0 */ { 2, s_7_0, -1, 1, 0},
-/* 1 */ { 2, s_7_1, -1, 1, 0},
-/* 2 */ { 3, s_7_2, -1, 1, 0},
-/* 3 */ { 3, s_7_3, -1, 1, 0},
-/* 4 */ { 5, s_7_4, -1, 1, 0},
-/* 5 */ { 5, s_7_5, -1, 1, 0},
-/* 6 */ { 2, s_7_6, -1, 1, 0},
-/* 7 */ { 3, s_7_7, -1, 1, 0},
-/* 8 */ { 3, s_7_8, -1, 1, 0},
-/* 9 */ { 4, s_7_9, -1, 1, 0},
-/* 10 */ { 5, s_7_10, -1, 1, 0},
-/* 11 */ { 3, s_7_11, -1, 1, 0}
-};
+ {
+ /* 0 */ { 2, s_7_0, -1, 1, 0},
+ /* 1 */ { 2, s_7_1, -1, 1, 0},
+ /* 2 */ { 3, s_7_2, -1, 1, 0},
+ /* 3 */ { 3, s_7_3, -1, 1, 0},
+ /* 4 */ { 5, s_7_4, -1, 1, 0},
+ /* 5 */ { 5, s_7_5, -1, 1, 0},
+ /* 6 */ { 2, s_7_6, -1, 1, 0},
+ /* 7 */ { 3, s_7_7, -1, 1, 0},
+ /* 8 */ { 3, s_7_8, -1, 1, 0},
+ /* 9 */ { 4, s_7_9, -1, 1, 0},
+ /* 10 */ { 5, s_7_10, -1, 1, 0},
+ /* 11 */ { 3, s_7_11, -1, 1, 0}
+ };
static symbol s_8_0[3] = { 'a', 'b', 'a' };
static symbol s_8_1[3] = { 'a', 'd', 'a' };
@@ -364,104 +364,104 @@ static symbol s_8_94[4] = { 'i', 'r', 0xC3, 0xA9 };
static symbol s_8_95[3] = { 'i', 0xC3, 0xB3 };
static struct among a_8[96] =
-{
-/* 0 */ { 3, s_8_0, -1, 2, 0},
-/* 1 */ { 3, s_8_1, -1, 2, 0},
-/* 2 */ { 3, s_8_2, -1, 2, 0},
-/* 3 */ { 3, s_8_3, -1, 2, 0},
-/* 4 */ { 4, s_8_4, -1, 2, 0},
-/* 5 */ { 3, s_8_5, -1, 2, 0},
-/* 6 */ { 5, s_8_6, 5, 2, 0},
-/* 7 */ { 5, s_8_7, 5, 2, 0},
-/* 8 */ { 5, s_8_8, 5, 2, 0},
-/* 9 */ { 2, s_8_9, -1, 2, 0},
-/* 10 */ { 2, s_8_10, -1, 2, 0},
-/* 11 */ { 2, s_8_11, -1, 2, 0},
-/* 12 */ { 3, s_8_12, -1, 2, 0},
-/* 13 */ { 4, s_8_13, -1, 2, 0},
-/* 14 */ { 4, s_8_14, -1, 2, 0},
-/* 15 */ { 4, s_8_15, -1, 2, 0},
-/* 16 */ { 2, s_8_16, -1, 2, 0},
-/* 17 */ { 4, s_8_17, 16, 2, 0},
-/* 18 */ { 4, s_8_18, 16, 2, 0},
-/* 19 */ { 5, s_8_19, 16, 2, 0},
-/* 20 */ { 4, s_8_20, 16, 2, 0},
-/* 21 */ { 6, s_8_21, 20, 2, 0},
-/* 22 */ { 6, s_8_22, 20, 2, 0},
-/* 23 */ { 6, s_8_23, 20, 2, 0},
-/* 24 */ { 2, s_8_24, -1, 1, 0},
-/* 25 */ { 4, s_8_25, 24, 2, 0},
-/* 26 */ { 5, s_8_26, 24, 2, 0},
-/* 27 */ { 4, s_8_27, -1, 2, 0},
-/* 28 */ { 5, s_8_28, -1, 2, 0},
-/* 29 */ { 5, s_8_29, -1, 2, 0},
-/* 30 */ { 5, s_8_30, -1, 2, 0},
-/* 31 */ { 5, s_8_31, -1, 2, 0},
-/* 32 */ { 3, s_8_32, -1, 2, 0},
-/* 33 */ { 3, s_8_33, -1, 2, 0},
-/* 34 */ { 4, s_8_34, -1, 2, 0},
-/* 35 */ { 5, s_8_35, -1, 2, 0},
-/* 36 */ { 2, s_8_36, -1, 2, 0},
-/* 37 */ { 2, s_8_37, -1, 2, 0},
-/* 38 */ { 2, s_8_38, -1, 2, 0},
-/* 39 */ { 2, s_8_39, -1, 2, 0},
-/* 40 */ { 4, s_8_40, 39, 2, 0},
-/* 41 */ { 4, s_8_41, 39, 2, 0},
-/* 42 */ { 4, s_8_42, 39, 2, 0},
-/* 43 */ { 4, s_8_43, 39, 2, 0},
-/* 44 */ { 5, s_8_44, 39, 2, 0},
-/* 45 */ { 4, s_8_45, 39, 2, 0},
-/* 46 */ { 6, s_8_46, 45, 2, 0},
-/* 47 */ { 6, s_8_47, 45, 2, 0},
-/* 48 */ { 6, s_8_48, 45, 2, 0},
-/* 49 */ { 2, s_8_49, -1, 1, 0},
-/* 50 */ { 4, s_8_50, 49, 2, 0},
-/* 51 */ { 5, s_8_51, 49, 2, 0},
-/* 52 */ { 5, s_8_52, -1, 2, 0},
-/* 53 */ { 5, s_8_53, -1, 2, 0},
-/* 54 */ { 6, s_8_54, -1, 2, 0},
-/* 55 */ { 5, s_8_55, -1, 2, 0},
-/* 56 */ { 7, s_8_56, 55, 2, 0},
-/* 57 */ { 7, s_8_57, 55, 2, 0},
-/* 58 */ { 7, s_8_58, 55, 2, 0},
-/* 59 */ { 5, s_8_59, -1, 2, 0},
-/* 60 */ { 6, s_8_60, -1, 2, 0},
-/* 61 */ { 6, s_8_61, -1, 2, 0},
-/* 62 */ { 6, s_8_62, -1, 2, 0},
-/* 63 */ { 4, s_8_63, -1, 2, 0},
-/* 64 */ { 4, s_8_64, -1, 1, 0},
-/* 65 */ { 6, s_8_65, 64, 2, 0},
-/* 66 */ { 6, s_8_66, 64, 2, 0},
-/* 67 */ { 6, s_8_67, 64, 2, 0},
-/* 68 */ { 4, s_8_68, -1, 2, 0},
-/* 69 */ { 4, s_8_69, -1, 2, 0},
-/* 70 */ { 4, s_8_70, -1, 2, 0},
-/* 71 */ { 7, s_8_71, 70, 2, 0},
-/* 72 */ { 7, s_8_72, 70, 2, 0},
-/* 73 */ { 8, s_8_73, 70, 2, 0},
-/* 74 */ { 6, s_8_74, 70, 2, 0},
-/* 75 */ { 8, s_8_75, 74, 2, 0},
-/* 76 */ { 8, s_8_76, 74, 2, 0},
-/* 77 */ { 8, s_8_77, 74, 2, 0},
-/* 78 */ { 4, s_8_78, -1, 1, 0},
-/* 79 */ { 6, s_8_79, 78, 2, 0},
-/* 80 */ { 6, s_8_80, 78, 2, 0},
-/* 81 */ { 6, s_8_81, 78, 2, 0},
-/* 82 */ { 7, s_8_82, 78, 2, 0},
-/* 83 */ { 8, s_8_83, 78, 2, 0},
-/* 84 */ { 4, s_8_84, -1, 2, 0},
-/* 85 */ { 5, s_8_85, -1, 2, 0},
-/* 86 */ { 5, s_8_86, -1, 2, 0},
-/* 87 */ { 5, s_8_87, -1, 2, 0},
-/* 88 */ { 3, s_8_88, -1, 2, 0},
-/* 89 */ { 4, s_8_89, -1, 2, 0},
-/* 90 */ { 4, s_8_90, -1, 2, 0},
-/* 91 */ { 4, s_8_91, -1, 2, 0},
-/* 92 */ { 4, s_8_92, -1, 2, 0},
-/* 93 */ { 4, s_8_93, -1, 2, 0},
-/* 94 */ { 4, s_8_94, -1, 2, 0},
-/* 95 */ { 3, s_8_95, -1, 2, 0}
-};
+ {
+ /* 0 */ { 3, s_8_0, -1, 2, 0},
+ /* 1 */ { 3, s_8_1, -1, 2, 0},
+ /* 2 */ { 3, s_8_2, -1, 2, 0},
+ /* 3 */ { 3, s_8_3, -1, 2, 0},
+ /* 4 */ { 4, s_8_4, -1, 2, 0},
+ /* 5 */ { 3, s_8_5, -1, 2, 0},
+ /* 6 */ { 5, s_8_6, 5, 2, 0},
+ /* 7 */ { 5, s_8_7, 5, 2, 0},
+ /* 8 */ { 5, s_8_8, 5, 2, 0},
+ /* 9 */ { 2, s_8_9, -1, 2, 0},
+ /* 10 */ { 2, s_8_10, -1, 2, 0},
+ /* 11 */ { 2, s_8_11, -1, 2, 0},
+ /* 12 */ { 3, s_8_12, -1, 2, 0},
+ /* 13 */ { 4, s_8_13, -1, 2, 0},
+ /* 14 */ { 4, s_8_14, -1, 2, 0},
+ /* 15 */ { 4, s_8_15, -1, 2, 0},
+ /* 16 */ { 2, s_8_16, -1, 2, 0},
+ /* 17 */ { 4, s_8_17, 16, 2, 0},
+ /* 18 */ { 4, s_8_18, 16, 2, 0},
+ /* 19 */ { 5, s_8_19, 16, 2, 0},
+ /* 20 */ { 4, s_8_20, 16, 2, 0},
+ /* 21 */ { 6, s_8_21, 20, 2, 0},
+ /* 22 */ { 6, s_8_22, 20, 2, 0},
+ /* 23 */ { 6, s_8_23, 20, 2, 0},
+ /* 24 */ { 2, s_8_24, -1, 1, 0},
+ /* 25 */ { 4, s_8_25, 24, 2, 0},
+ /* 26 */ { 5, s_8_26, 24, 2, 0},
+ /* 27 */ { 4, s_8_27, -1, 2, 0},
+ /* 28 */ { 5, s_8_28, -1, 2, 0},
+ /* 29 */ { 5, s_8_29, -1, 2, 0},
+ /* 30 */ { 5, s_8_30, -1, 2, 0},
+ /* 31 */ { 5, s_8_31, -1, 2, 0},
+ /* 32 */ { 3, s_8_32, -1, 2, 0},
+ /* 33 */ { 3, s_8_33, -1, 2, 0},
+ /* 34 */ { 4, s_8_34, -1, 2, 0},
+ /* 35 */ { 5, s_8_35, -1, 2, 0},
+ /* 36 */ { 2, s_8_36, -1, 2, 0},
+ /* 37 */ { 2, s_8_37, -1, 2, 0},
+ /* 38 */ { 2, s_8_38, -1, 2, 0},
+ /* 39 */ { 2, s_8_39, -1, 2, 0},
+ /* 40 */ { 4, s_8_40, 39, 2, 0},
+ /* 41 */ { 4, s_8_41, 39, 2, 0},
+ /* 42 */ { 4, s_8_42, 39, 2, 0},
+ /* 43 */ { 4, s_8_43, 39, 2, 0},
+ /* 44 */ { 5, s_8_44, 39, 2, 0},
+ /* 45 */ { 4, s_8_45, 39, 2, 0},
+ /* 46 */ { 6, s_8_46, 45, 2, 0},
+ /* 47 */ { 6, s_8_47, 45, 2, 0},
+ /* 48 */ { 6, s_8_48, 45, 2, 0},
+ /* 49 */ { 2, s_8_49, -1, 1, 0},
+ /* 50 */ { 4, s_8_50, 49, 2, 0},
+ /* 51 */ { 5, s_8_51, 49, 2, 0},
+ /* 52 */ { 5, s_8_52, -1, 2, 0},
+ /* 53 */ { 5, s_8_53, -1, 2, 0},
+ /* 54 */ { 6, s_8_54, -1, 2, 0},
+ /* 55 */ { 5, s_8_55, -1, 2, 0},
+ /* 56 */ { 7, s_8_56, 55, 2, 0},
+ /* 57 */ { 7, s_8_57, 55, 2, 0},
+ /* 58 */ { 7, s_8_58, 55, 2, 0},
+ /* 59 */ { 5, s_8_59, -1, 2, 0},
+ /* 60 */ { 6, s_8_60, -1, 2, 0},
+ /* 61 */ { 6, s_8_61, -1, 2, 0},
+ /* 62 */ { 6, s_8_62, -1, 2, 0},
+ /* 63 */ { 4, s_8_63, -1, 2, 0},
+ /* 64 */ { 4, s_8_64, -1, 1, 0},
+ /* 65 */ { 6, s_8_65, 64, 2, 0},
+ /* 66 */ { 6, s_8_66, 64, 2, 0},
+ /* 67 */ { 6, s_8_67, 64, 2, 0},
+ /* 68 */ { 4, s_8_68, -1, 2, 0},
+ /* 69 */ { 4, s_8_69, -1, 2, 0},
+ /* 70 */ { 4, s_8_70, -1, 2, 0},
+ /* 71 */ { 7, s_8_71, 70, 2, 0},
+ /* 72 */ { 7, s_8_72, 70, 2, 0},
+ /* 73 */ { 8, s_8_73, 70, 2, 0},
+ /* 74 */ { 6, s_8_74, 70, 2, 0},
+ /* 75 */ { 8, s_8_75, 74, 2, 0},
+ /* 76 */ { 8, s_8_76, 74, 2, 0},
+ /* 77 */ { 8, s_8_77, 74, 2, 0},
+ /* 78 */ { 4, s_8_78, -1, 1, 0},
+ /* 79 */ { 6, s_8_79, 78, 2, 0},
+ /* 80 */ { 6, s_8_80, 78, 2, 0},
+ /* 81 */ { 6, s_8_81, 78, 2, 0},
+ /* 82 */ { 7, s_8_82, 78, 2, 0},
+ /* 83 */ { 8, s_8_83, 78, 2, 0},
+ /* 84 */ { 4, s_8_84, -1, 2, 0},
+ /* 85 */ { 5, s_8_85, -1, 2, 0},
+ /* 86 */ { 5, s_8_86, -1, 2, 0},
+ /* 87 */ { 5, s_8_87, -1, 2, 0},
+ /* 88 */ { 3, s_8_88, -1, 2, 0},
+ /* 89 */ { 4, s_8_89, -1, 2, 0},
+ /* 90 */ { 4, s_8_90, -1, 2, 0},
+ /* 91 */ { 4, s_8_91, -1, 2, 0},
+ /* 92 */ { 4, s_8_92, -1, 2, 0},
+ /* 93 */ { 4, s_8_93, -1, 2, 0},
+ /* 94 */ { 4, s_8_94, -1, 2, 0},
+ /* 95 */ { 3, s_8_95, -1, 2, 0}
+ };
static symbol s_9_0[1] = { 'a' };
static symbol s_9_1[1] = { 'e' };
@@ -473,16 +473,16 @@ static symbol s_9_6[2] = { 0xC3, 0xAD };
static symbol s_9_7[2] = { 0xC3, 0xB3 };
static struct among a_9[8] =
-{
-/* 0 */ { 1, s_9_0, -1, 1, 0},
-/* 1 */ { 1, s_9_1, -1, 2, 0},
-/* 2 */ { 1, s_9_2, -1, 1, 0},
-/* 3 */ { 2, s_9_3, -1, 1, 0},
-/* 4 */ { 2, s_9_4, -1, 1, 0},
-/* 5 */ { 2, s_9_5, -1, 2, 0},
-/* 6 */ { 2, s_9_6, -1, 1, 0},
-/* 7 */ { 2, s_9_7, -1, 1, 0}
-};
+ {
+ /* 0 */ { 1, s_9_0, -1, 1, 0},
+ /* 1 */ { 1, s_9_1, -1, 2, 0},
+ /* 2 */ { 1, s_9_2, -1, 1, 0},
+ /* 3 */ { 2, s_9_3, -1, 1, 0},
+ /* 4 */ { 2, s_9_4, -1, 1, 0},
+ /* 5 */ { 2, s_9_5, -1, 2, 0},
+ /* 6 */ { 2, s_9_6, -1, 1, 0},
+ /* 7 */ { 2, s_9_7, -1, 1, 0}
+ };
static unsigned char g_v[] = { 17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 17, 4, 10 };
@@ -510,638 +510,638 @@ static symbol s_20[] = { 'u' };
static symbol s_21[] = { 'g' };
static int r_mark_regions(struct SN_env * z) {
- z->I[0] = z->l;
- z->I[1] = z->l;
- z->I[2] = z->l;
- { int c = z->c; /* do, line 37 */
- { int c = z->c; /* or, line 39 */
- if (!(in_grouping_U(z, g_v, 97, 252))) goto lab2;
- { int c = z->c; /* or, line 38 */
- if (!(out_grouping_U(z, g_v, 97, 252))) goto lab4;
- while(1) { /* gopast, line 38 */
- if (!(in_grouping_U(z, g_v, 97, 252))) goto lab5;
- break;
- lab5:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab4;
- z->c = c; /* gopast, line 38 */
- }
+ z->I[0] = z->l;
+ z->I[1] = z->l;
+ z->I[2] = z->l;
+ { int c = z->c; /* do, line 37 */
+ { int c = z->c; /* or, line 39 */
+ if (!(in_grouping_U(z, g_v, 97, 252))) goto lab2;
+ { int c = z->c; /* or, line 38 */
+ if (!(out_grouping_U(z, g_v, 97, 252))) goto lab4;
+ while(1) { /* gopast, line 38 */
+ if (!(in_grouping_U(z, g_v, 97, 252))) goto lab5;
+ break;
+ lab5:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab4;
+ z->c = c; /* gopast, line 38 */
+ }
+ }
+ goto lab3;
+ lab4:
+ z->c = c;
+ if (!(in_grouping_U(z, g_v, 97, 252))) goto lab2;
+ while(1) { /* gopast, line 38 */
+ if (!(out_grouping_U(z, g_v, 97, 252))) goto lab6;
+ break;
+ lab6:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab2;
+ z->c = c; /* gopast, line 38 */
+ }
+ }
+ }
+ lab3:
+ goto lab1;
+ lab2:
+ z->c = c;
+ if (!(out_grouping_U(z, g_v, 97, 252))) goto lab0;
+ { int c = z->c; /* or, line 40 */
+ if (!(out_grouping_U(z, g_v, 97, 252))) goto lab8;
+ while(1) { /* gopast, line 40 */
+ if (!(in_grouping_U(z, g_v, 97, 252))) goto lab9;
+ break;
+ lab9:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab8;
+ z->c = c; /* gopast, line 40 */
+ }
+ }
+ goto lab7;
+ lab8:
+ z->c = c;
+ if (!(in_grouping_U(z, g_v, 97, 252))) goto lab0;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* next, line 40 */
+ }
+ }
+ lab7:
+ ;
}
- goto lab3;
- lab4:
+ lab1:
+ z->I[0] = z->c; /* setmark pV, line 41 */
+ lab0:
z->c = c;
- if (!(in_grouping_U(z, g_v, 97, 252))) goto lab2;
- while(1) { /* gopast, line 38 */
- if (!(out_grouping_U(z, g_v, 97, 252))) goto lab6;
- break;
- lab6:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab2;
- z->c = c; /* gopast, line 38 */
- }
+ }
+ { int c = z->c; /* do, line 43 */
+ while(1) { /* gopast, line 44 */
+ if (!(in_grouping_U(z, g_v, 97, 252))) goto lab11;
+ break;
+ lab11:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab10;
+ z->c = c; /* gopast, line 44 */
+ }
}
- }
- lab3:
- goto lab1;
- lab2:
- z->c = c;
- if (!(out_grouping_U(z, g_v, 97, 252))) goto lab0;
- { int c = z->c; /* or, line 40 */
- if (!(out_grouping_U(z, g_v, 97, 252))) goto lab8;
- while(1) { /* gopast, line 40 */
- if (!(in_grouping_U(z, g_v, 97, 252))) goto lab9;
- break;
- lab9:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab8;
- z->c = c; /* gopast, line 40 */
- }
+ while(1) { /* gopast, line 44 */
+ if (!(out_grouping_U(z, g_v, 97, 252))) goto lab12;
+ break;
+ lab12:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab10;
+ z->c = c; /* gopast, line 44 */
+ }
}
- goto lab7;
- lab8:
- z->c = c;
- if (!(in_grouping_U(z, g_v, 97, 252))) goto lab0;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* next, line 40 */
+ z->I[1] = z->c; /* setmark p1, line 44 */
+ while(1) { /* gopast, line 45 */
+ if (!(in_grouping_U(z, g_v, 97, 252))) goto lab13;
+ break;
+ lab13:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab10;
+ z->c = c; /* gopast, line 45 */
+ }
}
- }
- lab7:
- ;
- }
- lab1:
- z->I[0] = z->c; /* setmark pV, line 41 */
- lab0:
- z->c = c;
- }
- { int c = z->c; /* do, line 43 */
- while(1) { /* gopast, line 44 */
- if (!(in_grouping_U(z, g_v, 97, 252))) goto lab11;
- break;
- lab11:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab10;
- z->c = c; /* gopast, line 44 */
- }
- }
- while(1) { /* gopast, line 44 */
- if (!(out_grouping_U(z, g_v, 97, 252))) goto lab12;
- break;
- lab12:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab10;
- z->c = c; /* gopast, line 44 */
- }
- }
- z->I[1] = z->c; /* setmark p1, line 44 */
- while(1) { /* gopast, line 45 */
- if (!(in_grouping_U(z, g_v, 97, 252))) goto lab13;
- break;
- lab13:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab10;
- z->c = c; /* gopast, line 45 */
- }
- }
- while(1) { /* gopast, line 45 */
- if (!(out_grouping_U(z, g_v, 97, 252))) goto lab14;
- break;
- lab14:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab10;
- z->c = c; /* gopast, line 45 */
- }
+ while(1) { /* gopast, line 45 */
+ if (!(out_grouping_U(z, g_v, 97, 252))) goto lab14;
+ break;
+ lab14:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab10;
+ z->c = c; /* gopast, line 45 */
+ }
+ }
+ z->I[2] = z->c; /* setmark p2, line 45 */
+ lab10:
+ z->c = c;
}
- z->I[2] = z->c; /* setmark p2, line 45 */
- lab10:
- z->c = c;
- }
- return 1;
+ return 1;
}
static int r_postlude(struct SN_env * z) {
- int among_var;
- while(1) { /* repeat, line 49 */
- int c = z->c;
- z->bra = z->c; /* [, line 50 */
- among_var = find_among(z, a_0, 6); /* substring, line 50 */
- if (!(among_var)) goto lab0;
- z->ket = z->c; /* ], line 50 */
- switch(among_var) {
- case 0: goto lab0;
- case 1:
- { int ret;
- ret = slice_from_s(z, 1, s_0); /* <-, line 51 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int ret;
- ret = slice_from_s(z, 1, s_1); /* <-, line 52 */
- if (ret < 0) return ret;
- }
- break;
- case 3:
- { int ret;
- ret = slice_from_s(z, 1, s_2); /* <-, line 53 */
- if (ret < 0) return ret;
- }
- break;
- case 4:
- { int ret;
- ret = slice_from_s(z, 1, s_3); /* <-, line 54 */
- if (ret < 0) return ret;
- }
- break;
- case 5:
- { int ret;
- ret = slice_from_s(z, 1, s_4); /* <-, line 55 */
- if (ret < 0) return ret;
- }
- break;
- case 6:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) goto lab0;
- z->c = c; /* next, line 57 */
+ int among_var;
+ while(1) { /* repeat, line 49 */
+ int c = z->c;
+ z->bra = z->c; /* [, line 50 */
+ among_var = find_among(z, a_0, 6); /* substring, line 50 */
+ if (!(among_var)) goto lab0;
+ z->ket = z->c; /* ], line 50 */
+ switch(among_var) {
+ case 0: goto lab0;
+ case 1:
+ { int ret;
+ ret = slice_from_s(z, 1, s_0); /* <-, line 51 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ { int ret;
+ ret = slice_from_s(z, 1, s_1); /* <-, line 52 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 3:
+ { int ret;
+ ret = slice_from_s(z, 1, s_2); /* <-, line 53 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 4:
+ { int ret;
+ ret = slice_from_s(z, 1, s_3); /* <-, line 54 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 5:
+ { int ret;
+ ret = slice_from_s(z, 1, s_4); /* <-, line 55 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 6:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) goto lab0;
+ z->c = c; /* next, line 57 */
+ }
+ break;
}
+ continue;
+ lab0:
+ z->c = c;
break;
}
- continue;
- lab0:
- z->c = c;
- break;
- }
- return 1;
+ return 1;
}
static int r_RV(struct SN_env * z) {
- if (!(z->I[0] <= z->c)) return 0;
- return 1;
+ if (!(z->I[0] <= z->c)) return 0;
+ return 1;
}
static int r_R1(struct SN_env * z) {
- if (!(z->I[1] <= z->c)) return 0;
- return 1;
+ if (!(z->I[1] <= z->c)) return 0;
+ return 1;
}
static int r_R2(struct SN_env * z) {
- if (!(z->I[2] <= z->c)) return 0;
- return 1;
+ if (!(z->I[2] <= z->c)) return 0;
+ return 1;
}
static int r_attached_pronoun(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 68 */
- if (!(find_among_b(z, a_1, 13))) return 0; /* substring, line 68 */
- z->bra = z->c; /* ], line 68 */
- among_var = find_among_b(z, a_2, 11); /* substring, line 72 */
- if (!(among_var)) return 0;
- { int ret = r_RV(z);
- if (ret == 0) return 0; /* call RV, line 72 */
- if (ret < 0) return ret;
- }
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 68 */
+ if (!(find_among_b(z, a_1, 13))) return 0; /* substring, line 68 */
+ z->bra = z->c; /* ], line 68 */
+ among_var = find_among_b(z, a_2, 11); /* substring, line 72 */
+ if (!(among_var)) return 0;
+ { int ret = r_RV(z);
+ if (ret == 0) return 0; /* call RV, line 72 */
+ if (ret < 0) return ret;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- z->bra = z->c; /* ], line 73 */
- { int ret;
- ret = slice_from_s(z, 5, s_5); /* <-, line 73 */
- if (ret < 0) return ret;
- }
- break;
+ z->bra = z->c; /* ], line 73 */
+ { int ret;
+ ret = slice_from_s(z, 5, s_5); /* <-, line 73 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- z->bra = z->c; /* ], line 74 */
- { int ret;
- ret = slice_from_s(z, 4, s_6); /* <-, line 74 */
- if (ret < 0) return ret;
- }
- break;
+ z->bra = z->c; /* ], line 74 */
+ { int ret;
+ ret = slice_from_s(z, 4, s_6); /* <-, line 74 */
+ if (ret < 0) return ret;
+ }
+ break;
case 3:
- z->bra = z->c; /* ], line 75 */
- { int ret;
- ret = slice_from_s(z, 2, s_7); /* <-, line 75 */
- if (ret < 0) return ret;
- }
- break;
+ z->bra = z->c; /* ], line 75 */
+ { int ret;
+ ret = slice_from_s(z, 2, s_7); /* <-, line 75 */
+ if (ret < 0) return ret;
+ }
+ break;
case 4:
- z->bra = z->c; /* ], line 76 */
- { int ret;
- ret = slice_from_s(z, 2, s_8); /* <-, line 76 */
- if (ret < 0) return ret;
- }
- break;
+ z->bra = z->c; /* ], line 76 */
+ { int ret;
+ ret = slice_from_s(z, 2, s_8); /* <-, line 76 */
+ if (ret < 0) return ret;
+ }
+ break;
case 5:
- z->bra = z->c; /* ], line 77 */
- { int ret;
- ret = slice_from_s(z, 2, s_9); /* <-, line 77 */
- if (ret < 0) return ret;
- }
- break;
+ z->bra = z->c; /* ], line 77 */
+ { int ret;
+ ret = slice_from_s(z, 2, s_9); /* <-, line 77 */
+ if (ret < 0) return ret;
+ }
+ break;
case 6:
- { int ret;
- ret = slice_del(z); /* delete, line 81 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_del(z); /* delete, line 81 */
+ if (ret < 0) return ret;
+ }
+ break;
case 7:
- if (!(eq_s_b(z, 1, s_10))) return 0;
- { int ret;
- ret = slice_del(z); /* delete, line 82 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ if (!(eq_s_b(z, 1, s_10))) return 0;
+ { int ret;
+ ret = slice_del(z); /* delete, line 82 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_standard_suffix(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 87 */
- among_var = find_among_b(z, a_6, 46); /* substring, line 87 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 87 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 87 */
+ among_var = find_among_b(z, a_6, 46); /* substring, line 87 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 87 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 99 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 99 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 99 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 99 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 105 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 105 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 106 */
- z->ket = z->c; /* [, line 106 */
- if (!(eq_s_b(z, 2, s_11))) { z->c = z->l - m; goto lab0; }
- z->bra = z->c; /* ], line 106 */
{ int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab0; } /* call R2, line 106 */
- if (ret < 0) return ret;
+ if (ret == 0) return 0; /* call R2, line 105 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 106 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 105 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 106 */
+ z->ket = z->c; /* [, line 106 */
+ if (!(eq_s_b(z, 2, s_11))) { z->c = z->l - m; goto lab0; }
+ z->bra = z->c; /* ], line 106 */
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab0; } /* call R2, line 106 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 106 */
+ if (ret < 0) return ret;
+ }
+ lab0:
+ ;
}
- lab0:
- ;
- }
- break;
+ break;
case 3:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 111 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 3, s_12); /* <-, line 111 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 111 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 3, s_12); /* <-, line 111 */
+ if (ret < 0) return ret;
+ }
+ break;
case 4:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 115 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 1, s_13); /* <-, line 115 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 115 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_from_s(z, 1, s_13); /* <-, line 115 */
+ if (ret < 0) return ret;
+ }
+ break;
case 5:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 119 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_from_s(z, 4, s_14); /* <-, line 119 */
- if (ret < 0) return ret;
- }
- break;
- case 6:
- { int ret = r_R1(z);
- if (ret == 0) return 0; /* call R1, line 123 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 123 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 124 */
- z->ket = z->c; /* [, line 125 */
- among_var = find_among_b(z, a_3, 4); /* substring, line 125 */
- if (!(among_var)) { z->c = z->l - m; goto lab1; }
- z->bra = z->c; /* ], line 125 */
{ int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab1; } /* call R2, line 125 */
- if (ret < 0) return ret;
+ if (ret == 0) return 0; /* call R2, line 119 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 125 */
- if (ret < 0) return ret;
+ ret = slice_from_s(z, 4, s_14); /* <-, line 119 */
+ if (ret < 0) return ret;
}
- switch(among_var) {
- case 0: { z->c = z->l - m; goto lab1; }
- case 1:
- z->ket = z->c; /* [, line 126 */
- if (!(eq_s_b(z, 2, s_15))) { z->c = z->l - m; goto lab1; }
- z->bra = z->c; /* ], line 126 */
+ break;
+ case 6:
+ { int ret = r_R1(z);
+ if (ret == 0) return 0; /* call R1, line 123 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 123 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 124 */
+ z->ket = z->c; /* [, line 125 */
+ among_var = find_among_b(z, a_3, 4); /* substring, line 125 */
+ if (!(among_var)) { z->c = z->l - m; goto lab1; }
+ z->bra = z->c; /* ], line 125 */
{ int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab1; } /* call R2, line 126 */
- if (ret < 0) return ret;
+ if (ret == 0) { z->c = z->l - m; goto lab1; } /* call R2, line 125 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 126 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 125 */
+ if (ret < 0) return ret;
}
- break;
+ switch(among_var) {
+ case 0: { z->c = z->l - m; goto lab1; }
+ case 1:
+ z->ket = z->c; /* [, line 126 */
+ if (!(eq_s_b(z, 2, s_15))) { z->c = z->l - m; goto lab1; }
+ z->bra = z->c; /* ], line 126 */
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab1; } /* call R2, line 126 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 126 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ lab1:
+ ;
}
- lab1:
- ;
- }
- break;
+ break;
case 7:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 135 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 135 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 136 */
- z->ket = z->c; /* [, line 137 */
- among_var = find_among_b(z, a_4, 3); /* substring, line 137 */
- if (!(among_var)) { z->c = z->l - m; goto lab2; }
- z->bra = z->c; /* ], line 137 */
- switch(among_var) {
- case 0: { z->c = z->l - m; goto lab2; }
- case 1:
- { int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab2; } /* call R2, line 140 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 140 */
- if (ret < 0) return ret;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 135 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 135 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 136 */
+ z->ket = z->c; /* [, line 137 */
+ among_var = find_among_b(z, a_4, 3); /* substring, line 137 */
+ if (!(among_var)) { z->c = z->l - m; goto lab2; }
+ z->bra = z->c; /* ], line 137 */
+ switch(among_var) {
+ case 0: { z->c = z->l - m; goto lab2; }
+ case 1:
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab2; } /* call R2, line 140 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 140 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- break;
+ lab2:
+ ;
}
- lab2:
- ;
- }
- break;
+ break;
case 8:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 147 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 147 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 148 */
- z->ket = z->c; /* [, line 149 */
- among_var = find_among_b(z, a_5, 3); /* substring, line 149 */
- if (!(among_var)) { z->c = z->l - m; goto lab3; }
- z->bra = z->c; /* ], line 149 */
- switch(among_var) {
- case 0: { z->c = z->l - m; goto lab3; }
- case 1:
- { int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 152 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 152 */
- if (ret < 0) return ret;
+ { int ret = r_R2(z);
+ if (ret == 0) return 0; /* call R2, line 147 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 147 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 148 */
+ z->ket = z->c; /* [, line 149 */
+ among_var = find_among_b(z, a_5, 3); /* substring, line 149 */
+ if (!(among_var)) { z->c = z->l - m; goto lab3; }
+ z->bra = z->c; /* ], line 149 */
+ switch(among_var) {
+ case 0: { z->c = z->l - m; goto lab3; }
+ case 1:
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab3; } /* call R2, line 152 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 152 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- break;
+ lab3:
+ ;
}
- lab3:
- ;
- }
- break;
+ break;
case 9:
- { int ret = r_R2(z);
- if (ret == 0) return 0; /* call R2, line 159 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 159 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 160 */
- z->ket = z->c; /* [, line 161 */
- if (!(eq_s_b(z, 2, s_16))) { z->c = z->l - m; goto lab4; }
- z->bra = z->c; /* ], line 161 */
{ int ret = r_R2(z);
- if (ret == 0) { z->c = z->l - m; goto lab4; } /* call R2, line 161 */
- if (ret < 0) return ret;
+ if (ret == 0) return 0; /* call R2, line 159 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 161 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 159 */
+ if (ret < 0) return ret;
}
- lab4:
- ;
- }
- break;
- }
- return 1;
+ { int m = z->l - z->c; (void) m; /* try, line 160 */
+ z->ket = z->c; /* [, line 161 */
+ if (!(eq_s_b(z, 2, s_16))) { z->c = z->l - m; goto lab4; }
+ z->bra = z->c; /* ], line 161 */
+ { int ret = r_R2(z);
+ if (ret == 0) { z->c = z->l - m; goto lab4; } /* call R2, line 161 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 161 */
+ if (ret < 0) return ret;
+ }
+ lab4:
+ ;
+ }
+ break;
+ }
+ return 1;
}
static int r_y_verb_suffix(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 168 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 168 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 168 */
- among_var = find_among_b(z, a_7, 12); /* substring, line 168 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 168 */
- z->lb = m3;
- }
- switch(among_var) {
+ int among_var;
+ { int m3; /* setlimit, line 168 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 168 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 168 */
+ among_var = find_among_b(z, a_7, 12); /* substring, line 168 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 168 */
+ z->lb = m3;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- if (!(eq_s_b(z, 1, s_17))) return 0;
- { int ret;
- ret = slice_del(z); /* delete, line 171 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ if (!(eq_s_b(z, 1, s_17))) return 0;
+ { int ret;
+ ret = slice_del(z); /* delete, line 171 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_verb_suffix(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 176 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 176 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 176 */
- among_var = find_among_b(z, a_8, 96); /* substring, line 176 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 176 */
- z->lb = m3;
- }
- switch(among_var) {
+ int among_var;
+ { int m3; /* setlimit, line 176 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 176 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 176 */
+ among_var = find_among_b(z, a_8, 96); /* substring, line 176 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 176 */
+ z->lb = m3;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int m = z->l - z->c; (void) m; /* try, line 179 */
- if (!(eq_s_b(z, 1, s_18))) { z->c = z->l - m; goto lab0; }
- { int m_test = z->l - z->c; /* test, line 179 */
- if (!(eq_s_b(z, 1, s_19))) { z->c = z->l - m; goto lab0; }
- z->c = z->l - m_test;
+ { int m = z->l - z->c; (void) m; /* try, line 179 */
+ if (!(eq_s_b(z, 1, s_18))) { z->c = z->l - m; goto lab0; }
+ { int m_test = z->l - z->c; /* test, line 179 */
+ if (!(eq_s_b(z, 1, s_19))) { z->c = z->l - m; goto lab0; }
+ z->c = z->l - m_test;
+ }
+ lab0:
+ ;
}
- lab0:
- ;
- }
- z->bra = z->c; /* ], line 179 */
- { int ret;
- ret = slice_del(z); /* delete, line 179 */
- if (ret < 0) return ret;
- }
- break;
+ z->bra = z->c; /* ], line 179 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 179 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- { int ret;
- ret = slice_del(z); /* delete, line 200 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ { int ret;
+ ret = slice_del(z); /* delete, line 200 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_residual_suffix(struct SN_env * z) {
- int among_var;
- z->ket = z->c; /* [, line 205 */
- among_var = find_among_b(z, a_9, 8); /* substring, line 205 */
- if (!(among_var)) return 0;
- z->bra = z->c; /* ], line 205 */
- switch(among_var) {
+ int among_var;
+ z->ket = z->c; /* [, line 205 */
+ among_var = find_among_b(z, a_9, 8); /* substring, line 205 */
+ if (!(among_var)) return 0;
+ z->bra = z->c; /* ], line 205 */
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret = r_RV(z);
- if (ret == 0) return 0; /* call RV, line 208 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 208 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int ret = r_RV(z);
- if (ret == 0) return 0; /* call RV, line 210 */
- if (ret < 0) return ret;
- }
- { int ret;
- ret = slice_del(z); /* delete, line 210 */
- if (ret < 0) return ret;
- }
- { int m = z->l - z->c; (void) m; /* try, line 210 */
- z->ket = z->c; /* [, line 210 */
- if (!(eq_s_b(z, 1, s_20))) { z->c = z->l - m; goto lab0; }
- z->bra = z->c; /* ], line 210 */
- { int m_test = z->l - z->c; /* test, line 210 */
- if (!(eq_s_b(z, 1, s_21))) { z->c = z->l - m; goto lab0; }
- z->c = z->l - m_test;
+ { int ret = r_RV(z);
+ if (ret == 0) return 0; /* call RV, line 208 */
+ if (ret < 0) return ret;
}
+ { int ret;
+ ret = slice_del(z); /* delete, line 208 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
{ int ret = r_RV(z);
- if (ret == 0) { z->c = z->l - m; goto lab0; } /* call RV, line 210 */
- if (ret < 0) return ret;
+ if (ret == 0) return 0; /* call RV, line 210 */
+ if (ret < 0) return ret;
}
{ int ret;
- ret = slice_del(z); /* delete, line 210 */
- if (ret < 0) return ret;
+ ret = slice_del(z); /* delete, line 210 */
+ if (ret < 0) return ret;
+ }
+ { int m = z->l - z->c; (void) m; /* try, line 210 */
+ z->ket = z->c; /* [, line 210 */
+ if (!(eq_s_b(z, 1, s_20))) { z->c = z->l - m; goto lab0; }
+ z->bra = z->c; /* ], line 210 */
+ { int m_test = z->l - z->c; /* test, line 210 */
+ if (!(eq_s_b(z, 1, s_21))) { z->c = z->l - m; goto lab0; }
+ z->c = z->l - m_test;
+ }
+ { int ret = r_RV(z);
+ if (ret == 0) { z->c = z->l - m; goto lab0; } /* call RV, line 210 */
+ if (ret < 0) return ret;
+ }
+ { int ret;
+ ret = slice_del(z); /* delete, line 210 */
+ if (ret < 0) return ret;
+ }
+ lab0:
+ ;
}
- lab0:
- ;
- }
- break;
- }
- return 1;
+ break;
+ }
+ return 1;
}
extern int spanish_UTF_8_stem(struct SN_env * z) {
- { int c = z->c; /* do, line 216 */
- { int ret = r_mark_regions(z);
- if (ret == 0) goto lab0; /* call mark_regions, line 216 */
- if (ret < 0) return ret;
+ { int c = z->c; /* do, line 216 */
+ { int ret = r_mark_regions(z);
+ if (ret == 0) goto lab0; /* call mark_regions, line 216 */
+ if (ret < 0) return ret;
+ }
+ lab0:
+ z->c = c;
}
- lab0:
- z->c = c;
- }
- z->lb = z->c; z->c = z->l; /* backwards, line 217 */
+ z->lb = z->c; z->c = z->l; /* backwards, line 217 */
- { int m = z->l - z->c; (void) m; /* do, line 218 */
- { int ret = r_attached_pronoun(z);
- if (ret == 0) goto lab1; /* call attached_pronoun, line 218 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 218 */
+ { int ret = r_attached_pronoun(z);
+ if (ret == 0) goto lab1; /* call attached_pronoun, line 218 */
+ if (ret < 0) return ret;
+ }
+ lab1:
+ z->c = z->l - m;
}
- lab1:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 219 */
- { int m = z->l - z->c; (void) m; /* or, line 219 */
- { int ret = r_standard_suffix(z);
- if (ret == 0) goto lab4; /* call standard_suffix, line 219 */
- if (ret < 0) return ret;
- }
- goto lab3;
- lab4:
- z->c = z->l - m;
- { int ret = r_y_verb_suffix(z);
- if (ret == 0) goto lab5; /* call y_verb_suffix, line 220 */
- if (ret < 0) return ret;
- }
- goto lab3;
- lab5:
- z->c = z->l - m;
- { int ret = r_verb_suffix(z);
- if (ret == 0) goto lab2; /* call verb_suffix, line 221 */
- if (ret < 0) return ret;
- }
+ { int m = z->l - z->c; (void) m; /* do, line 219 */
+ { int m = z->l - z->c; (void) m; /* or, line 219 */
+ { int ret = r_standard_suffix(z);
+ if (ret == 0) goto lab4; /* call standard_suffix, line 219 */
+ if (ret < 0) return ret;
+ }
+ goto lab3;
+ lab4:
+ z->c = z->l - m;
+ { int ret = r_y_verb_suffix(z);
+ if (ret == 0) goto lab5; /* call y_verb_suffix, line 220 */
+ if (ret < 0) return ret;
+ }
+ goto lab3;
+ lab5:
+ z->c = z->l - m;
+ { int ret = r_verb_suffix(z);
+ if (ret == 0) goto lab2; /* call verb_suffix, line 221 */
+ if (ret < 0) return ret;
+ }
+ }
+ lab3:
+ lab2:
+ z->c = z->l - m;
}
- lab3:
- lab2:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 223 */
- { int ret = r_residual_suffix(z);
- if (ret == 0) goto lab6; /* call residual_suffix, line 223 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 223 */
+ { int ret = r_residual_suffix(z);
+ if (ret == 0) goto lab6; /* call residual_suffix, line 223 */
+ if (ret < 0) return ret;
+ }
+ lab6:
+ z->c = z->l - m;
}
- lab6:
- z->c = z->l - m;
- }
- z->c = z->lb;
- { int c = z->c; /* do, line 225 */
- { int ret = r_postlude(z);
- if (ret == 0) goto lab7; /* call postlude, line 225 */
- if (ret < 0) return ret;
+ z->c = z->lb;
+ { int c = z->c; /* do, line 225 */
+ { int ret = r_postlude(z);
+ if (ret == 0) goto lab7; /* call postlude, line 225 */
+ if (ret < 0) return ret;
+ }
+ lab7:
+ z->c = c;
}
- lab7:
- z->c = c;
- }
- return 1;
+ return 1;
}
extern struct SN_env * spanish_UTF_8_create_env(void) { return SN_create_env(0, 3, 0); }
diff --git a/src/libstemmer/stem_UTF_8_spanish.h b/src/libstemmer/stem_UTF_8_spanish.h
index ed4b420..e717952 100644
--- a/src/libstemmer/stem_UTF_8_spanish.h
+++ b/src/libstemmer/stem_UTF_8_spanish.h
@@ -18,10 +18,10 @@
extern "C" {
#endif
-extern struct SN_env * spanish_UTF_8_create_env(void);
-extern void spanish_UTF_8_close_env(struct SN_env * z);
+ extern struct SN_env * spanish_UTF_8_create_env(void);
+ extern void spanish_UTF_8_close_env(struct SN_env * z);
-extern int spanish_UTF_8_stem(struct SN_env * z);
+ extern int spanish_UTF_8_stem(struct SN_env * z);
#ifdef __cplusplus
}
diff --git a/src/libstemmer/stem_UTF_8_swedish.c b/src/libstemmer/stem_UTF_8_swedish.c
index cb418ab..0cfcb67 100644
--- a/src/libstemmer/stem_UTF_8_swedish.c
+++ b/src/libstemmer/stem_UTF_8_swedish.c
@@ -64,45 +64,45 @@ static symbol s_0_35[3] = { 'h', 'e', 't' };
static symbol s_0_36[3] = { 'a', 's', 't' };
static struct among a_0[37] =
-{
-/* 0 */ { 1, s_0_0, -1, 1, 0},
-/* 1 */ { 4, s_0_1, 0, 1, 0},
-/* 2 */ { 4, s_0_2, 0, 1, 0},
-/* 3 */ { 7, s_0_3, 2, 1, 0},
-/* 4 */ { 4, s_0_4, 0, 1, 0},
-/* 5 */ { 2, s_0_5, -1, 1, 0},
-/* 6 */ { 1, s_0_6, -1, 1, 0},
-/* 7 */ { 3, s_0_7, 6, 1, 0},
-/* 8 */ { 4, s_0_8, 6, 1, 0},
-/* 9 */ { 4, s_0_9, 6, 1, 0},
-/* 10 */ { 3, s_0_10, 6, 1, 0},
-/* 11 */ { 4, s_0_11, 6, 1, 0},
-/* 12 */ { 2, s_0_12, -1, 1, 0},
-/* 13 */ { 5, s_0_13, 12, 1, 0},
-/* 14 */ { 4, s_0_14, 12, 1, 0},
-/* 15 */ { 5, s_0_15, 12, 1, 0},
-/* 16 */ { 3, s_0_16, -1, 1, 0},
-/* 17 */ { 2, s_0_17, -1, 1, 0},
-/* 18 */ { 2, s_0_18, -1, 1, 0},
-/* 19 */ { 5, s_0_19, 18, 1, 0},
-/* 20 */ { 2, s_0_20, -1, 1, 0},
-/* 21 */ { 1, s_0_21, -1, 2, 0},
-/* 22 */ { 2, s_0_22, 21, 1, 0},
-/* 23 */ { 5, s_0_23, 22, 1, 0},
-/* 24 */ { 5, s_0_24, 22, 1, 0},
-/* 25 */ { 5, s_0_25, 22, 1, 0},
-/* 26 */ { 2, s_0_26, 21, 1, 0},
-/* 27 */ { 4, s_0_27, 26, 1, 0},
-/* 28 */ { 5, s_0_28, 26, 1, 0},
-/* 29 */ { 3, s_0_29, 21, 1, 0},
-/* 30 */ { 5, s_0_30, 29, 1, 0},
-/* 31 */ { 6, s_0_31, 29, 1, 0},
-/* 32 */ { 4, s_0_32, 21, 1, 0},
-/* 33 */ { 2, s_0_33, -1, 1, 0},
-/* 34 */ { 5, s_0_34, -1, 1, 0},
-/* 35 */ { 3, s_0_35, -1, 1, 0},
-/* 36 */ { 3, s_0_36, -1, 1, 0}
-};
+ {
+ /* 0 */ { 1, s_0_0, -1, 1, 0},
+ /* 1 */ { 4, s_0_1, 0, 1, 0},
+ /* 2 */ { 4, s_0_2, 0, 1, 0},
+ /* 3 */ { 7, s_0_3, 2, 1, 0},
+ /* 4 */ { 4, s_0_4, 0, 1, 0},
+ /* 5 */ { 2, s_0_5, -1, 1, 0},
+ /* 6 */ { 1, s_0_6, -1, 1, 0},
+ /* 7 */ { 3, s_0_7, 6, 1, 0},
+ /* 8 */ { 4, s_0_8, 6, 1, 0},
+ /* 9 */ { 4, s_0_9, 6, 1, 0},
+ /* 10 */ { 3, s_0_10, 6, 1, 0},
+ /* 11 */ { 4, s_0_11, 6, 1, 0},
+ /* 12 */ { 2, s_0_12, -1, 1, 0},
+ /* 13 */ { 5, s_0_13, 12, 1, 0},
+ /* 14 */ { 4, s_0_14, 12, 1, 0},
+ /* 15 */ { 5, s_0_15, 12, 1, 0},
+ /* 16 */ { 3, s_0_16, -1, 1, 0},
+ /* 17 */ { 2, s_0_17, -1, 1, 0},
+ /* 18 */ { 2, s_0_18, -1, 1, 0},
+ /* 19 */ { 5, s_0_19, 18, 1, 0},
+ /* 20 */ { 2, s_0_20, -1, 1, 0},
+ /* 21 */ { 1, s_0_21, -1, 2, 0},
+ /* 22 */ { 2, s_0_22, 21, 1, 0},
+ /* 23 */ { 5, s_0_23, 22, 1, 0},
+ /* 24 */ { 5, s_0_24, 22, 1, 0},
+ /* 25 */ { 5, s_0_25, 22, 1, 0},
+ /* 26 */ { 2, s_0_26, 21, 1, 0},
+ /* 27 */ { 4, s_0_27, 26, 1, 0},
+ /* 28 */ { 5, s_0_28, 26, 1, 0},
+ /* 29 */ { 3, s_0_29, 21, 1, 0},
+ /* 30 */ { 5, s_0_30, 29, 1, 0},
+ /* 31 */ { 6, s_0_31, 29, 1, 0},
+ /* 32 */ { 4, s_0_32, 21, 1, 0},
+ /* 33 */ { 2, s_0_33, -1, 1, 0},
+ /* 34 */ { 5, s_0_34, -1, 1, 0},
+ /* 35 */ { 3, s_0_35, -1, 1, 0},
+ /* 36 */ { 3, s_0_36, -1, 1, 0}
+ };
static symbol s_1_0[2] = { 'd', 'd' };
static symbol s_1_1[2] = { 'g', 'd' };
@@ -113,15 +113,15 @@ static symbol s_1_5[2] = { 'k', 't' };
static symbol s_1_6[2] = { 't', 't' };
static struct among a_1[7] =
-{
-/* 0 */ { 2, s_1_0, -1, -1, 0},
-/* 1 */ { 2, s_1_1, -1, -1, 0},
-/* 2 */ { 2, s_1_2, -1, -1, 0},
-/* 3 */ { 2, s_1_3, -1, -1, 0},
-/* 4 */ { 2, s_1_4, -1, -1, 0},
-/* 5 */ { 2, s_1_5, -1, -1, 0},
-/* 6 */ { 2, s_1_6, -1, -1, 0}
-};
+ {
+ /* 0 */ { 2, s_1_0, -1, -1, 0},
+ /* 1 */ { 2, s_1_1, -1, -1, 0},
+ /* 2 */ { 2, s_1_2, -1, -1, 0},
+ /* 3 */ { 2, s_1_3, -1, -1, 0},
+ /* 4 */ { 2, s_1_4, -1, -1, 0},
+ /* 5 */ { 2, s_1_5, -1, -1, 0},
+ /* 6 */ { 2, s_1_6, -1, -1, 0}
+ };
static symbol s_2_0[2] = { 'i', 'g' };
static symbol s_2_1[3] = { 'l', 'i', 'g' };
@@ -130,13 +130,13 @@ static symbol s_2_3[5] = { 'f', 'u', 'l', 'l', 't' };
static symbol s_2_4[5] = { 'l', 0xC3, 0xB6, 's', 't' };
static struct among a_2[5] =
-{
-/* 0 */ { 2, s_2_0, -1, 1, 0},
-/* 1 */ { 3, s_2_1, 0, 1, 0},
-/* 2 */ { 3, s_2_2, -1, 1, 0},
-/* 3 */ { 5, s_2_3, -1, 3, 0},
-/* 4 */ { 5, s_2_4, -1, 2, 0}
-};
+ {
+ /* 0 */ { 2, s_2_0, -1, 1, 0},
+ /* 1 */ { 3, s_2_1, 0, 1, 0},
+ /* 2 */ { 3, s_2_2, -1, 1, 0},
+ /* 3 */ { 5, s_2_3, -1, 3, 0},
+ /* 4 */ { 5, s_2_4, -1, 2, 0}
+ };
static unsigned char g_v[] = { 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 32 };
@@ -146,178 +146,178 @@ static symbol s_0[] = { 'l', 0xC3, 0xB6, 's' };
static symbol s_1[] = { 'f', 'u', 'l', 'l' };
static int r_mark_regions(struct SN_env * z) {
- z->I[0] = z->l;
- { int c_test = z->c; /* test, line 29 */
- { int c = skip_utf8(z->p, z->c, 0, z->l, + 3);
- if (c < 0) return 0;
- z->c = c; /* hop, line 29 */
+ z->I[0] = z->l;
+ { int c_test = z->c; /* test, line 29 */
+ { int c = skip_utf8(z->p, z->c, 0, z->l, + 3);
+ if (c < 0) return 0;
+ z->c = c; /* hop, line 29 */
+ }
+ z->I[1] = z->c; /* setmark x, line 29 */
+ z->c = c_test;
}
- z->I[1] = z->c; /* setmark x, line 29 */
- z->c = c_test;
- }
- while(1) { /* goto, line 30 */
- int c = z->c;
- if (!(in_grouping_U(z, g_v, 97, 246))) goto lab0;
- z->c = c;
- break;
- lab0:
- z->c = c;
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* goto, line 30 */
+ while(1) { /* goto, line 30 */
+ int c = z->c;
+ if (!(in_grouping_U(z, g_v, 97, 246))) goto lab0;
+ z->c = c;
+ break;
+ lab0:
+ z->c = c;
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* goto, line 30 */
+ }
}
- }
- while(1) { /* gopast, line 30 */
- if (!(out_grouping_U(z, g_v, 97, 246))) goto lab1;
- break;
- lab1:
- { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
- if (c < 0) return 0;
- z->c = c; /* gopast, line 30 */
+ while(1) { /* gopast, line 30 */
+ if (!(out_grouping_U(z, g_v, 97, 246))) goto lab1;
+ break;
+ lab1:
+ { int c = skip_utf8(z->p, z->c, 0, z->l, 1);
+ if (c < 0) return 0;
+ z->c = c; /* gopast, line 30 */
+ }
}
- }
- z->I[0] = z->c; /* setmark p1, line 30 */
- /* try, line 31 */
- if (!(z->I[0] < z->I[1])) goto lab2;
- z->I[0] = z->I[1];
-lab2:
- return 1;
+ z->I[0] = z->c; /* setmark p1, line 30 */
+ /* try, line 31 */
+ if (!(z->I[0] < z->I[1])) goto lab2;
+ z->I[0] = z->I[1];
+ lab2:
+ return 1;
}
static int r_main_suffix(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 37 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 37 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 37 */
- among_var = find_among_b(z, a_0, 37); /* substring, line 37 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 37 */
- z->lb = m3;
- }
- switch(among_var) {
+ int among_var;
+ { int m3; /* setlimit, line 37 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 37 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 37 */
+ among_var = find_among_b(z, a_0, 37); /* substring, line 37 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 37 */
+ z->lb = m3;
+ }
+ switch(among_var) {
case 0: return 0;
case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 44 */
- if (ret < 0) return ret;
- }
- break;
+ { int ret;
+ ret = slice_del(z); /* delete, line 44 */
+ if (ret < 0) return ret;
+ }
+ break;
case 2:
- if (!(in_grouping_b_U(z, g_s_ending, 98, 121))) return 0;
- { int ret;
- ret = slice_del(z); /* delete, line 46 */
- if (ret < 0) return ret;
- }
- break;
- }
- return 1;
+ if (!(in_grouping_b_U(z, g_s_ending, 98, 121))) return 0;
+ { int ret;
+ ret = slice_del(z); /* delete, line 46 */
+ if (ret < 0) return ret;
+ }
+ break;
+ }
+ return 1;
}
static int r_consonant_pair(struct SN_env * z) {
- { int m3; /* setlimit, line 50 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 50 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- { int m = z->l - z->c; (void) m; /* and, line 52 */
- if (!(find_among_b(z, a_1, 7))) { z->lb = m3; return 0; } /* among, line 51 */
- z->c = z->l - m;
- z->ket = z->c; /* [, line 52 */
- { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
- if (c < 0) { z->lb = m3; return 0; }
- z->c = c; /* next, line 52 */
- }
- z->bra = z->c; /* ], line 52 */
- { int ret;
- ret = slice_del(z); /* delete, line 52 */
- if (ret < 0) return ret;
- }
+ { int m3; /* setlimit, line 50 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 50 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ { int m = z->l - z->c; (void) m; /* and, line 52 */
+ if (!(find_among_b(z, a_1, 7))) { z->lb = m3; return 0; } /* among, line 51 */
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 52 */
+ { int c = skip_utf8(z->p, z->c, z->lb, 0, -1);
+ if (c < 0) { z->lb = m3; return 0; }
+ z->c = c; /* next, line 52 */
+ }
+ z->bra = z->c; /* ], line 52 */
+ { int ret;
+ ret = slice_del(z); /* delete, line 52 */
+ if (ret < 0) return ret;
+ }
+ }
+ z->lb = m3;
}
- z->lb = m3;
- }
- return 1;
+ return 1;
}
static int r_other_suffix(struct SN_env * z) {
- int among_var;
- { int m3; /* setlimit, line 55 */
- int m = z->l - z->c; (void) m;
- if (z->c < z->I[0]) return 0;
- z->c = z->I[0]; /* tomark, line 55 */
- m3 = z->lb; z->lb = z->c;
- z->c = z->l - m;
- z->ket = z->c; /* [, line 56 */
- among_var = find_among_b(z, a_2, 5); /* substring, line 56 */
- if (!(among_var)) { z->lb = m3; return 0; }
- z->bra = z->c; /* ], line 56 */
- switch(among_var) {
- case 0: { z->lb = m3; return 0; }
- case 1:
- { int ret;
- ret = slice_del(z); /* delete, line 57 */
- if (ret < 0) return ret;
- }
- break;
- case 2:
- { int ret;
- ret = slice_from_s(z, 4, s_0); /* <-, line 58 */
- if (ret < 0) return ret;
- }
- break;
- case 3:
- { int ret;
- ret = slice_from_s(z, 4, s_1); /* <-, line 59 */
- if (ret < 0) return ret;
+ int among_var;
+ { int m3; /* setlimit, line 55 */
+ int m = z->l - z->c; (void) m;
+ if (z->c < z->I[0]) return 0;
+ z->c = z->I[0]; /* tomark, line 55 */
+ m3 = z->lb; z->lb = z->c;
+ z->c = z->l - m;
+ z->ket = z->c; /* [, line 56 */
+ among_var = find_among_b(z, a_2, 5); /* substring, line 56 */
+ if (!(among_var)) { z->lb = m3; return 0; }
+ z->bra = z->c; /* ], line 56 */
+ switch(among_var) {
+ case 0: { z->lb = m3; return 0; }
+ case 1:
+ { int ret;
+ ret = slice_del(z); /* delete, line 57 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 2:
+ { int ret;
+ ret = slice_from_s(z, 4, s_0); /* <-, line 58 */
+ if (ret < 0) return ret;
+ }
+ break;
+ case 3:
+ { int ret;
+ ret = slice_from_s(z, 4, s_1); /* <-, line 59 */
+ if (ret < 0) return ret;
+ }
+ break;
}
- break;
+ z->lb = m3;
}
- z->lb = m3;
- }
- return 1;
+ return 1;
}
extern int swedish_UTF_8_stem(struct SN_env * z) {
- { int c = z->c; /* do, line 66 */
- { int ret = r_mark_regions(z);
- if (ret == 0) goto lab0; /* call mark_regions, line 66 */
- if (ret < 0) return ret;
+ { int c = z->c; /* do, line 66 */
+ { int ret = r_mark_regions(z);
+ if (ret == 0) goto lab0; /* call mark_regions, line 66 */
+ if (ret < 0) return ret;
+ }
+ lab0:
+ z->c = c;
}
- lab0:
- z->c = c;
- }
- z->lb = z->c; z->c = z->l; /* backwards, line 67 */
+ z->lb = z->c; z->c = z->l; /* backwards, line 67 */
- { int m = z->l - z->c; (void) m; /* do, line 68 */
- { int ret = r_main_suffix(z);
- if (ret == 0) goto lab1; /* call main_suffix, line 68 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 68 */
+ { int ret = r_main_suffix(z);
+ if (ret == 0) goto lab1; /* call main_suffix, line 68 */
+ if (ret < 0) return ret;
+ }
+ lab1:
+ z->c = z->l - m;
}
- lab1:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 69 */
- { int ret = r_consonant_pair(z);
- if (ret == 0) goto lab2; /* call consonant_pair, line 69 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 69 */
+ { int ret = r_consonant_pair(z);
+ if (ret == 0) goto lab2; /* call consonant_pair, line 69 */
+ if (ret < 0) return ret;
+ }
+ lab2:
+ z->c = z->l - m;
}
- lab2:
- z->c = z->l - m;
- }
- { int m = z->l - z->c; (void) m; /* do, line 70 */
- { int ret = r_other_suffix(z);
- if (ret == 0) goto lab3; /* call other_suffix, line 70 */
- if (ret < 0) return ret;
+ { int m = z->l - z->c; (void) m; /* do, line 70 */
+ { int ret = r_other_suffix(z);
+ if (ret == 0) goto lab3; /* call other_suffix, line 70 */
+ if (ret < 0) return ret;
+ }
+ lab3:
+ z->c = z->l - m;
}
- lab3:
- z->c = z->l - m;
- }
- z->c = z->lb;
- return 1;
+ z->c = z->lb;
+ return 1;
}
extern struct SN_env * swedish_UTF_8_create_env(void) { return SN_create_env(0, 2, 0); }
diff --git a/src/libstemmer/stem_UTF_8_swedish.h b/src/libstemmer/stem_UTF_8_swedish.h
index 4f3c5eb..fe978c8 100644
--- a/src/libstemmer/stem_UTF_8_swedish.h
+++ b/src/libstemmer/stem_UTF_8_swedish.h
@@ -18,10 +18,10 @@
extern "C" {
#endif
-extern struct SN_env * swedish_UTF_8_create_env(void);
-extern void swedish_UTF_8_close_env(struct SN_env * z);
+ extern struct SN_env * swedish_UTF_8_create_env(void);
+ extern void swedish_UTF_8_close_env(struct SN_env * z);
-extern int swedish_UTF_8_stem(struct SN_env * z);
+ extern int swedish_UTF_8_stem(struct SN_env * z);
#ifdef __cplusplus
}
diff --git a/src/libstemmer/utilities.c b/src/libstemmer/utilities.c
index b8eec68..7f2b4fb 100644
--- a/src/libstemmer/utilities.c
+++ b/src/libstemmer/utilities.c
@@ -23,284 +23,284 @@
#define CREATE_SIZE 1
extern symbol * create_s(void) {
- symbol * p;
- void * mem = malloc(HEAD + (CREATE_SIZE + 1) * sizeof(symbol));
- if (mem == NULL) return NULL;
- p = (symbol *) (HEAD + (char *) mem);
- CAPACITY(p) = CREATE_SIZE;
- SET_SIZE(p, CREATE_SIZE);
- return p;
+ symbol * p;
+ void * mem = malloc(HEAD + (CREATE_SIZE + 1) * sizeof(symbol));
+ if (mem == NULL) return NULL;
+ p = (symbol *) (HEAD + (char *) mem);
+ CAPACITY(p) = CREATE_SIZE;
+ SET_SIZE(p, CREATE_SIZE);
+ return p;
}
extern void lose_s(symbol * p) {
- if (p == NULL) return;
- free((char *) p - HEAD);
+ if (p == NULL) return;
+ free((char *) p - HEAD);
}
/*
- new_p = X_skip_utf8(p, c, lb, l, n); skips n characters forwards from p + c
- if n +ve, or n characters backwards from p +c - 1 if n -ve. new_p is the new
- position, or 0 on failure.
+ new_p = X_skip_utf8(p, c, lb, l, n); skips n characters forwards from p + c
+ if n +ve, or n characters backwards from p +c - 1 if n -ve. new_p is the new
+ position, or 0 on failure.
- -- used to implement hop and next in the utf8 case.
+ -- used to implement hop and next in the utf8 case.
*/
extern int skip_utf8(const symbol * p, int c, int lb, int l, int n) {
- int b;
- if (n >= 0) {
- for (; n > 0; n--) {
- if (c >= l) return -1;
- b = p[c++];
- if (b >= 0xC0) { /* 1100 0000 */
- while (c < l) {
- b = p[c];
- if (b >= 0xC0 || b < 0x80) break;
- /* break unless b is 10------ */
- c++;
+ int b;
+ if (n >= 0) {
+ for (; n > 0; n--) {
+ if (c >= l) return -1;
+ b = p[c++];
+ if (b >= 0xC0) { /* 1100 0000 */
+ while (c < l) {
+ b = p[c];
+ if (b >= 0xC0 || b < 0x80) break;
+ /* break unless b is 10------ */
+ c++;
+ }
+ }
}
- }
- }
- } else {
- for (; n < 0; n++) {
- if (c <= lb) return -1;
- b = p[--c];
- if (b >= 0x80) { /* 1000 0000 */
- while (c > lb) {
- b = p[c];
- if (b >= 0xC0) break; /* 1100 0000 */
- c--;
+ } else {
+ for (; n < 0; n++) {
+ if (c <= lb) return -1;
+ b = p[--c];
+ if (b >= 0x80) { /* 1000 0000 */
+ while (c > lb) {
+ b = p[c];
+ if (b >= 0xC0) break; /* 1100 0000 */
+ c--;
+ }
+ }
}
- }
}
- }
- return c;
+ return c;
}
/* Code for character groupings: utf8 cases */
static int get_utf8(const symbol * p, int c, int l, int * slot) {
- int b0, b1;
- if (c >= l) return 0;
- b0 = p[c++];
- if (b0 < 0xC0 || c == l) { /* 1100 0000 */
- * slot = b0; return 1;
- }
- b1 = p[c++];
- if (b0 < 0xE0 || c == l) { /* 1110 0000 */
- * slot = (b0 & 0x1F) << 6 | (b1 & 0x3F); return 2;
- }
- * slot = (b0 & 0xF) << 12 | (b1 & 0x3F) << 6 | (*p & 0x3F); return 3;
+ int b0, b1;
+ if (c >= l) return 0;
+ b0 = p[c++];
+ if (b0 < 0xC0 || c == l) { /* 1100 0000 */
+ * slot = b0; return 1;
+ }
+ b1 = p[c++];
+ if (b0 < 0xE0 || c == l) { /* 1110 0000 */
+ * slot = (b0 & 0x1F) << 6 | (b1 & 0x3F); return 2;
+ }
+ * slot = (b0 & 0xF) << 12 | (b1 & 0x3F) << 6 | (*p & 0x3F); return 3;
}
static int get_b_utf8(const symbol * p, int c, int lb, int * slot) {
- int b0, b1;
- if (c <= lb) return 0;
- b0 = p[--c];
- if (b0 < 0x80 || c == lb) { /* 1000 0000 */
- * slot = b0; return 1;
- }
- b1 = p[--c];
- if (b1 >= 0xC0 || c == lb) { /* 1100 0000 */
- * slot = (b1 & 0x1F) << 6 | (b0 & 0x3F); return 2;
- }
- * slot = (*p & 0xF) << 12 | (b1 & 0x3F) << 6 | (b0 & 0x3F); return 3;
+ int b0, b1;
+ if (c <= lb) return 0;
+ b0 = p[--c];
+ if (b0 < 0x80 || c == lb) { /* 1000 0000 */
+ * slot = b0; return 1;
+ }
+ b1 = p[--c];
+ if (b1 >= 0xC0 || c == lb) { /* 1100 0000 */
+ * slot = (b1 & 0x1F) << 6 | (b0 & 0x3F); return 2;
+ }
+ * slot = (*p & 0xF) << 12 | (b1 & 0x3F) << 6 | (b0 & 0x3F); return 3;
}
extern int in_grouping_U(struct SN_env * z, unsigned char * s, int min, int max) {
- int ch;
- int w = get_utf8(z->p, z->c, z->l, & ch);
- unless (w) return 0;
- if (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
- z->c += w; return 1;
+ int ch;
+ int w = get_utf8(z->p, z->c, z->l, & ch);
+ unless (w) return 0;
+ if (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
+ z->c += w; return 1;
}
extern int in_grouping_b_U(struct SN_env * z, unsigned char * s, int min, int max) {
- int ch;
- int w = get_b_utf8(z->p, z->c, z->lb, & ch);
- unless (w) return 0;
- if (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
- z->c -= w; return 1;
+ int ch;
+ int w = get_b_utf8(z->p, z->c, z->lb, & ch);
+ unless (w) return 0;
+ if (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
+ z->c -= w; return 1;
}
extern int out_grouping_U(struct SN_env * z, unsigned char * s, int min, int max) {
- int ch;
- int w = get_utf8(z->p, z->c, z->l, & ch);
- unless (w) return 0;
- unless (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
- z->c += w; return 1;
+ int ch;
+ int w = get_utf8(z->p, z->c, z->l, & ch);
+ unless (w) return 0;
+ unless (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
+ z->c += w; return 1;
}
extern int out_grouping_b_U(struct SN_env * z, unsigned char * s, int min, int max) {
- int ch;
- int w = get_b_utf8(z->p, z->c, z->lb, & ch);
- unless (w) return 0;
- unless (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
- z->c -= w; return 1;
+ int ch;
+ int w = get_b_utf8(z->p, z->c, z->lb, & ch);
+ unless (w) return 0;
+ unless (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
+ z->c -= w; return 1;
}
/* Code for character groupings: non-utf8 cases */
extern int in_grouping(struct SN_env * z, unsigned char * s, int min, int max) {
- int ch;
- if (z->c >= z->l) return 0;
- ch = z->p[z->c];
- if (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
- z->c++; return 1;
+ int ch;
+ if (z->c >= z->l) return 0;
+ ch = z->p[z->c];
+ if (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
+ z->c++; return 1;
}
extern int in_grouping_b(struct SN_env * z, unsigned char * s, int min, int max) {
- int ch;
- if (z->c <= z->lb) return 0;
- ch = z->p[z->c - 1];
- if (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
- z->c--; return 1;
+ int ch;
+ if (z->c <= z->lb) return 0;
+ ch = z->p[z->c - 1];
+ if (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
+ z->c--; return 1;
}
extern int out_grouping(struct SN_env * z, unsigned char * s, int min, int max) {
- int ch;
- if (z->c >= z->l) return 0;
- ch = z->p[z->c];
- unless (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
- z->c++; return 1;
+ int ch;
+ if (z->c >= z->l) return 0;
+ ch = z->p[z->c];
+ unless (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
+ z->c++; return 1;
}
extern int out_grouping_b(struct SN_env * z, unsigned char * s, int min, int max) {
- int ch;
- if (z->c <= z->lb) return 0;
- ch = z->p[z->c - 1];
- unless (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
- z->c--; return 1;
+ int ch;
+ if (z->c <= z->lb) return 0;
+ ch = z->p[z->c - 1];
+ unless (ch > max || (ch -= min) < 0 || (s[ch >> 3] & (0X1 << (ch & 0X7))) == 0) return 0;
+ z->c--; return 1;
}
extern int eq_s(struct SN_env * z, int s_size, symbol * s) {
- if (z->l - z->c < s_size || memcmp(z->p + z->c, s, s_size * sizeof(symbol)) != 0) return 0;
- z->c += s_size; return 1;
+ if (z->l - z->c < s_size || memcmp(z->p + z->c, s, s_size * sizeof(symbol)) != 0) return 0;
+ z->c += s_size; return 1;
}
extern int eq_s_b(struct SN_env * z, int s_size, symbol * s) {
- if (z->c - z->lb < s_size || memcmp(z->p + z->c - s_size, s, s_size * sizeof(symbol)) != 0) return 0;
- z->c -= s_size; return 1;
+ if (z->c - z->lb < s_size || memcmp(z->p + z->c - s_size, s, s_size * sizeof(symbol)) != 0) return 0;
+ z->c -= s_size; return 1;
}
extern int eq_v(struct SN_env * z, symbol * p) {
- return eq_s(z, SIZE(p), p);
+ return eq_s(z, SIZE(p), p);
}
extern int eq_v_b(struct SN_env * z, symbol * p) {
- return eq_s_b(z, SIZE(p), p);
+ return eq_s_b(z, SIZE(p), p);
}
extern int find_among(struct SN_env * z, struct among * v, int v_size) {
- int i = 0;
- int j = v_size;
+ int i = 0;
+ int j = v_size;
- int c = z->c; int l = z->l;
- symbol * q = z->p + c;
+ int c = z->c; int l = z->l;
+ symbol * q = z->p + c;
- struct among * w;
+ struct among * w;
- int common_i = 0;
- int common_j = 0;
+ int common_i = 0;
+ int common_j = 0;
- int first_key_inspected = 0;
+ int first_key_inspected = 0;
- while(1) {
- int k = i + ((j - i) >> 1);
- int diff = 0;
- int common = common_i < common_j ? common_i : common_j; /* smaller */
- w = v + k;
- {
- int i; for (i = common; i < w->s_size; i++) {
- if (c + common == l) { diff = -1; break; }
- diff = q[common] - w->s[i];
- if (diff != 0) break;
- common++;
- }
- }
- if (diff < 0) { j = k; common_j = common; }
- else { i = k; common_i = common; }
- if (j - i <= 1) {
- if (i > 0) break; /* v->s has been inspected */
- if (j == i) break; /* only one item in v */
-
- /* - but now we need to go round once more to get
- v->s inspected. This looks messy, but is actually
- the optimal approach. */
-
- if (first_key_inspected) break;
- first_key_inspected = 1;
+ while(1) {
+ int k = i + ((j - i) >> 1);
+ int diff = 0;
+ int common = common_i < common_j ? common_i : common_j; /* smaller */
+ w = v + k;
+ {
+ int i; for (i = common; i < w->s_size; i++) {
+ if (c + common == l) { diff = -1; break; }
+ diff = q[common] - w->s[i];
+ if (diff != 0) break;
+ common++;
+ }
+ }
+ if (diff < 0) { j = k; common_j = common; }
+ else { i = k; common_i = common; }
+ if (j - i <= 1) {
+ if (i > 0) break; /* v->s has been inspected */
+ if (j == i) break; /* only one item in v */
+
+ /* - but now we need to go round once more to get
+ v->s inspected. This looks messy, but is actually
+ the optimal approach. */
+
+ if (first_key_inspected) break;
+ first_key_inspected = 1;
+ }
}
- }
- while(1) {
- w = v + i;
- if (common_i >= w->s_size) {
- z->c = c + w->s_size;
- if (w->function == 0) return w->result;
- {
- int res = w->function(z);
- z->c = c + w->s_size;
- if (res) return w->result;
- }
+ while(1) {
+ w = v + i;
+ if (common_i >= w->s_size) {
+ z->c = c + w->s_size;
+ if (w->function == 0) return w->result;
+ {
+ int res = w->function(z);
+ z->c = c + w->s_size;
+ if (res) return w->result;
+ }
+ }
+ i = w->substring_i;
+ if (i < 0) return 0;
}
- i = w->substring_i;
- if (i < 0) return 0;
- }
}
/* find_among_b is for backwards processing. Same comments apply */
extern int find_among_b(struct SN_env * z, struct among * v, int v_size) {
- int i = 0;
- int j = v_size;
+ int i = 0;
+ int j = v_size;
- int c = z->c; int lb = z->lb;
- symbol * q = z->p + c - 1;
+ int c = z->c; int lb = z->lb;
+ symbol * q = z->p + c - 1;
- struct among * w;
+ struct among * w;
- int common_i = 0;
- int common_j = 0;
+ int common_i = 0;
+ int common_j = 0;
- int first_key_inspected = 0;
+ int first_key_inspected = 0;
- while(1) {
- int k = i + ((j - i) >> 1);
- int diff = 0;
- int common = common_i < common_j ? common_i : common_j;
- w = v + k;
- {
- int i; for (i = w->s_size - 1 - common; i >= 0; i--) {
- if (c - common == lb) { diff = -1; break; }
- diff = q[- common] - w->s[i];
- if (diff != 0) break;
- common++;
- }
- }
- if (diff < 0) { j = k; common_j = common; }
- else { i = k; common_i = common; }
- if (j - i <= 1) {
- if (i > 0) break;
- if (j == i) break;
- if (first_key_inspected) break;
- first_key_inspected = 1;
+ while(1) {
+ int k = i + ((j - i) >> 1);
+ int diff = 0;
+ int common = common_i < common_j ? common_i : common_j;
+ w = v + k;
+ {
+ int i; for (i = w->s_size - 1 - common; i >= 0; i--) {
+ if (c - common == lb) { diff = -1; break; }
+ diff = q[- common] - w->s[i];
+ if (diff != 0) break;
+ common++;
+ }
+ }
+ if (diff < 0) { j = k; common_j = common; }
+ else { i = k; common_i = common; }
+ if (j - i <= 1) {
+ if (i > 0) break;
+ if (j == i) break;
+ if (first_key_inspected) break;
+ first_key_inspected = 1;
+ }
}
- }
- while(1) {
- w = v + i;
- if (common_i >= w->s_size) {
- z->c = c - w->s_size;
- if (w->function == 0) return w->result;
- {
- int res = w->function(z);
- z->c = c - w->s_size;
- if (res) return w->result;
- }
+ while(1) {
+ w = v + i;
+ if (common_i >= w->s_size) {
+ z->c = c - w->s_size;
+ if (w->function == 0) return w->result;
+ {
+ int res = w->function(z);
+ z->c = c - w->s_size;
+ if (res) return w->result;
+ }
+ }
+ i = w->substring_i;
+ if (i < 0) return 0;
}
- i = w->substring_i;
- if (i < 0) return 0;
- }
}
@@ -308,17 +308,17 @@ extern int find_among_b(struct SN_env * z, struct among * v, int v_size) {
* If insufficient memory, returns NULL and frees the old buffer.
*/
static symbol * increase_size(symbol * p, int n) {
- symbol * q;
- int new_size = n + 20;
- void * mem = realloc((char *) p - HEAD,
- HEAD + (new_size + 1) * sizeof(symbol));
- if (mem == NULL) {
- lose_s(p);
- return NULL;
- }
- q = (symbol *) (HEAD + (char *)mem);
- CAPACITY(q) = new_size;
- return q;
+ symbol * q;
+ int new_size = n + 20;
+ void * mem = realloc((char *) p - HEAD,
+ HEAD + (new_size + 1) * sizeof(symbol));
+ if (mem == NULL) {
+ lose_s(p);
+ return NULL;
+ }
+ q = (symbol *) (HEAD + (char *)mem);
+ CAPACITY(q) = new_size;
+ return q;
}
/* to replace symbols between c_bra and c_ket in z->p by the
@@ -328,132 +328,132 @@ static symbol * increase_size(symbol * p, int n) {
*/
extern int replace_s(struct SN_env * z, int c_bra, int c_ket, int s_size, const symbol * s, int * adjptr)
{
- int adjustment;
- int len;
- if (z->p == NULL) {
- z->p = create_s();
- if (z->p == NULL) return -1;
- }
- adjustment = s_size - (c_ket - c_bra);
- len = SIZE(z->p);
- if (adjustment != 0) {
- if (adjustment + len > CAPACITY(z->p)) {
- z->p = increase_size(z->p, adjustment + len);
- if (z->p == NULL) return -1;
+ int adjustment;
+ int len;
+ if (z->p == NULL) {
+ z->p = create_s();
+ if (z->p == NULL) return -1;
}
- memmove(z->p + c_ket + adjustment,
- z->p + c_ket,
- (len - c_ket) * sizeof(symbol));
- SET_SIZE(z->p, adjustment + len);
- z->l += adjustment;
- if (z->c >= c_ket)
- z->c += adjustment;
- else
- if (z->c > c_bra)
- z->c = c_bra;
- }
- unless (s_size == 0) memmove(z->p + c_bra, s, s_size * sizeof(symbol));
- if (adjptr != NULL)
- *adjptr = adjustment;
- return 0;
+ adjustment = s_size - (c_ket - c_bra);
+ len = SIZE(z->p);
+ if (adjustment != 0) {
+ if (adjustment + len > CAPACITY(z->p)) {
+ z->p = increase_size(z->p, adjustment + len);
+ if (z->p == NULL) return -1;
+ }
+ memmove(z->p + c_ket + adjustment,
+ z->p + c_ket,
+ (len - c_ket) * sizeof(symbol));
+ SET_SIZE(z->p, adjustment + len);
+ z->l += adjustment;
+ if (z->c >= c_ket)
+ z->c += adjustment;
+ else
+ if (z->c > c_bra)
+ z->c = c_bra;
+ }
+ unless (s_size == 0) memmove(z->p + c_bra, s, s_size * sizeof(symbol));
+ if (adjptr != NULL)
+ *adjptr = adjustment;
+ return 0;
}
static int slice_check(struct SN_env * z) {
- if (z->bra < 0 ||
- z->bra > z->ket ||
- z->ket > z->l ||
- z->p == NULL ||
- z->l > SIZE(z->p)) /* this line could be removed */
- {
+ if (z->bra < 0 ||
+ z->bra > z->ket ||
+ z->ket > z->l ||
+ z->p == NULL ||
+ z->l > SIZE(z->p)) /* this line could be removed */
+ {
#if 0
- fprintf(stderr, "faulty slice operation:\n");
- debug(z, -1, 0);
+ fprintf(stderr, "faulty slice operation:\n");
+ debug(z, -1, 0);
#endif
- return -1;
- }
- return 0;
+ return -1;
+ }
+ return 0;
}
extern int slice_from_s(struct SN_env * z, int s_size, symbol * s) {
- if (slice_check(z)) return -1;
- return replace_s(z, z->bra, z->ket, s_size, s, NULL);
+ if (slice_check(z)) return -1;
+ return replace_s(z, z->bra, z->ket, s_size, s, NULL);
}
extern int slice_from_v(struct SN_env * z, symbol * p) {
- return slice_from_s(z, SIZE(p), p);
+ return slice_from_s(z, SIZE(p), p);
}
extern int slice_del(struct SN_env * z) {
- return slice_from_s(z, 0, 0);
+ return slice_from_s(z, 0, 0);
}
extern int insert_s(struct SN_env * z, int bra, int ket, int s_size, symbol * s) {
- int adjustment;
- if (replace_s(z, bra, ket, s_size, s, &adjustment))
- return -1;
- if (bra <= z->bra) z->bra += adjustment;
- if (bra <= z->ket) z->ket += adjustment;
- return 0;
+ int adjustment;
+ if (replace_s(z, bra, ket, s_size, s, &adjustment))
+ return -1;
+ if (bra <= z->bra) z->bra += adjustment;
+ if (bra <= z->ket) z->ket += adjustment;
+ return 0;
}
extern int insert_v(struct SN_env * z, int bra, int ket, symbol * p) {
- int adjustment;
- if (replace_s(z, bra, ket, SIZE(p), p, &adjustment))
- return -1;
- if (bra <= z->bra) z->bra += adjustment;
- if (bra <= z->ket) z->ket += adjustment;
- return 0;
+ int adjustment;
+ if (replace_s(z, bra, ket, SIZE(p), p, &adjustment))
+ return -1;
+ if (bra <= z->bra) z->bra += adjustment;
+ if (bra <= z->ket) z->ket += adjustment;
+ return 0;
}
extern symbol * slice_to(struct SN_env * z, symbol * p) {
- if (slice_check(z)) {
- lose_s(p);
- return NULL;
- }
- {
- int len = z->ket - z->bra;
- if (CAPACITY(p) < len) {
- p = increase_size(p, len);
- if (p == NULL)
+ if (slice_check(z)) {
+ lose_s(p);
return NULL;
}
- memmove(p, z->p + z->bra, len * sizeof(symbol));
- SET_SIZE(p, len);
- }
- return p;
+ {
+ int len = z->ket - z->bra;
+ if (CAPACITY(p) < len) {
+ p = increase_size(p, len);
+ if (p == NULL)
+ return NULL;
+ }
+ memmove(p, z->p + z->bra, len * sizeof(symbol));
+ SET_SIZE(p, len);
+ }
+ return p;
}
extern symbol * assign_to(struct SN_env * z, symbol * p) {
- int len = z->l;
- if (CAPACITY(p) < len) {
- p = increase_size(p, len);
- if (p == NULL)
- return NULL;
- }
- memmove(p, z->p, len * sizeof(symbol));
- SET_SIZE(p, len);
- return p;
+ int len = z->l;
+ if (CAPACITY(p) < len) {
+ p = increase_size(p, len);
+ if (p == NULL)
+ return NULL;
+ }
+ memmove(p, z->p, len * sizeof(symbol));
+ SET_SIZE(p, len);
+ return p;
}
#if 0
extern void debug(struct SN_env * z, int number, int line_count) {
- int i;
- int limit = SIZE(z->p);
- /*if (number >= 0) printf("%3d (line %4d): '", number, line_count);*/
- if (number >= 0) printf("%3d (line %4d): [%d]'", number, line_count,limit);
- for (i = 0; i <= limit; i++) {
- if (z->lb == i) printf("{");
- if (z->bra == i) printf("[");
- if (z->c == i) printf("|");
- if (z->ket == i) printf("]");
- if (z->l == i) printf("}");
- if (i < limit)
- { int ch = z->p[i];
- if (ch == 0) ch = '#';
- printf("%c", ch);
+ int i;
+ int limit = SIZE(z->p);
+ /*if (number >= 0) printf("%3d (line %4d): '", number, line_count);*/
+ if (number >= 0) printf("%3d (line %4d): [%d]'", number, line_count,limit);
+ for (i = 0; i <= limit; i++) {
+ if (z->lb == i) printf("{");
+ if (z->bra == i) printf("[");
+ if (z->c == i) printf("|");
+ if (z->ket == i) printf("]");
+ if (z->l == i) printf("}");
+ if (i < limit)
+ { int ch = z->p[i];
+ if (ch == 0) ch = '#';
+ printf("%c", ch);
+ }
}
- }
- printf("'\n");
+ printf("'\n");
}
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]