mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 11:50:28 +02:00
* libguile/Makefile.am (libguile_@GUILE_EFFECTIVE_VERSION@_la_SOURCES): (DOT_X_FILES, DOT_DOC_FILES, noinst_HEADERS): Add syntax.c and syntax.h. * libguile/evalext.c (scm_self_evaluating_p): * libguile/goops.c (class_syntax, scm_class_of, scm_goops_early_init): * libguile/init.c (scm_init_guile): * libguile/print.c (iprin1): * libguile/tags.h (scm_tc7_syntax): * module/oop/goops.scm (<syntax>): * module/system/base/types.scm (%tc7-syntax, cell->object): * module/system/vm/disassembler.scm (code-annotation): Wire up the new data type. * libguile/syntax.c: * libguile/syntax.h: New files. * module/ice-9/boot-9.scm: Move new definitions to (system syntax internal). * module/system/syntax.scm (print-syntax): New helper. * module/system/vm/assembler.scm (statically-allocatable?) (intern-constant, link-data): Arrange to be able to write syntax objects into images. * module/language/cps/types.scm (&syntax): New type. Remove &hash-table; it was never detected, an internal binding, and we need the bit to avoid going into bignum territory.
34 lines
1.3 KiB
C
34 lines
1.3 KiB
C
#ifndef SCM_SYNTAX_H
|
|
#define SCM_SYNTAX_H
|
|
|
|
/* Copyright (C) 2017 Free Software Foundation, Inc.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public License
|
|
* as published by the Free Software Foundation; either version 3 of
|
|
* the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
* 02110-1301 USA
|
|
*/
|
|
|
|
#include "libguile/__scm.h"
|
|
|
|
SCM_INTERNAL SCM scm_syntax_p (SCM obj);
|
|
SCM_INTERNAL SCM scm_make_syntax (SCM exp, SCM wrap, SCM module);
|
|
SCM_INTERNAL SCM scm_syntax_expression (SCM obj);
|
|
SCM_INTERNAL SCM scm_syntax_wrap (SCM obj);
|
|
SCM_INTERNAL SCM scm_syntax_module (SCM obj);
|
|
|
|
SCM_INTERNAL void scm_i_syntax_print (SCM obj, SCM port,
|
|
scm_print_state *pstate);
|
|
SCM_INTERNAL void scm_init_syntax (void);
|
|
|
|
#endif /* SCM_SYNTAX_H */
|