Debian Codegraph @

src/core/chuck_scan.h

raw symbols SCIP
1 /*----------------------------------------------------------------------------
2 ChucK Strongly-timed Audio Programming Language
3 Compiler, Virtual Machine, and Synthesis Engine
4
5 Copyright (c) 2003 Ge Wang and Perry R. Cook. All rights reserved.
6 http://chuck.stanford.edu/
7 http://chuck.cs.princeton.edu/
8
9 This program is free software; you can redistribute it and/or modify
10 it under the dual-license terms of EITHER the MIT License OR the GNU
11 General Public License (the latter as published by the Free Software
12 Foundation; either version 2 of the License or, at your option, any
13 later version).
14
15 This program is distributed in the hope that it will be useful and/or
16 interesting, but WITHOUT ANY WARRANTY; without even the implied warranty
17 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 MIT Licence and/or the GNU General Public License for details.
19
20 You should have received a copy of the MIT License and the GNU General
21 Public License (GPL) along with this program; a copy of the GPL can also
22 be obtained by writing to the Free Software Foundation, Inc., 59 Temple
23 Place, Suite 330, Boston, MA 02111-1307 U.S.A.
24 -----------------------------------------------------------------------------*/
25
26 //-----------------------------------------------------------------------------
27 // file: chuck_scan.h
28 // desc: chuck type-system / type-checker pre-scan
29 //
30 // author: Ge Wang ([email protected] | [email protected])
31 // date: Summer 2005 - original
32 //-----------------------------------------------------------------------------
33 #ifndef __CHUCK_SCAN_H__
34 #define __CHUCK_SCAN_H__
35
36 #include "chuck_type.h"
37
38
39
40
41 // scan a program into the env - type discovery scan
42 t_CKBOOL type_engine_scan0_prog( Chuck_Env * env, a_Program prog,
43 te_HowMuch val = te_do_all );
44 // scan a class definition (used by type_engine_add_dll())
45 t_CKBOOL type_engine_scan0_class_def( Chuck_Env * env, a_Class_Def def );
46
47 // scan a program into the env - type resolution scan
48 t_CKBOOL type_engine_scan1_prog( Chuck_Env * env, a_Program prog,
49 te_HowMuch val = te_do_all );
50 // scan a class definition (used by type_engine_add_dll())
51 t_CKBOOL type_engine_scan1_class_def( Chuck_Env * env, a_Class_Def def );
52 // scan a function definition (used by type_engine_add_dll())
53 t_CKBOOL type_engine_scan1_func_def( Chuck_Env * env, a_Func_Def def );
54 // scan an exp decl
55 t_CKBOOL type_engine_scan1_exp_decl( Chuck_Env * env, a_Exp_Decl decl );
56
57 // scan a program into the env - function/member/static scan
58 t_CKBOOL type_engine_scan2_prog( Chuck_Env * env, a_Program prog,
59 te_HowMuch val = te_do_all );
60 // scan a class definition (used by type_engine_add_dll())
61 t_CKBOOL type_engine_scan2_class_def( Chuck_Env * env, a_Class_Def def );
62 // scan a function definition (used by type_engine_add_dll())
63 t_CKBOOL type_engine_scan2_func_def( Chuck_Env * env, a_Func_Def def );
64 // scan an exp decl
65 t_CKBOOL type_engine_scan2_exp_decl( Chuck_Env * env, a_Exp_Decl decl );
66
67 // create the decl value
68 // (can be called from chuck_scan or chuck_type, depending on 'auto')
69 t_CKBOOL type_engine_scan2_exp_decl_create( Chuck_Env * env, a_Exp_Decl decl );
70
71 // the rest is done in chuck_type
72
73
74
75
76 #endif