2005-12-19 18:02:54 -08:00
|
|
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4; coding: utf-8 -*-
|
|
|
|
*
|
2006-02-24 20:03:13 -08:00
|
|
|
* mooscript-parser.h
|
2005-12-19 18:02:54 -08:00
|
|
|
*
|
2006-02-23 06:03:17 -08:00
|
|
|
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
2005-12-19 18:02:54 -08:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* See COPYING file that comes with this distribution.
|
|
|
|
*/
|
|
|
|
|
2006-02-24 20:03:13 -08:00
|
|
|
#ifndef __MOO_SCRIPT_PARSER_H__
|
|
|
|
#define __MOO_SCRIPT_PARSER_H__
|
2005-12-19 18:02:54 -08:00
|
|
|
|
2006-04-06 01:32:16 -07:00
|
|
|
#include <mooscript/mooscript-node.h>
|
|
|
|
#include <mooscript/mooscript-context.h>
|
2005-12-19 18:02:54 -08:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2006-03-14 15:01:08 -08:00
|
|
|
typedef enum {
|
|
|
|
MS_SCRIPT_COMPLETE,
|
|
|
|
MS_SCRIPT_INCOMPLETE,
|
|
|
|
MS_SCRIPT_ERROR
|
|
|
|
} MSScriptCheckResult;
|
|
|
|
|
|
|
|
MSNode *ms_script_parse (const char *string);
|
|
|
|
MSScriptCheckResult ms_script_check (const char *string);
|
2005-12-19 18:02:54 -08:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2006-02-24 20:03:13 -08:00
|
|
|
#endif /* __MOO_SCRIPT_PARSER_H__ */
|