*** empty log message ***
[chuck-blob.git] / v2 / chuck_scan.h
bloba965cdfeb4fb49af3826274764789d454c08be92
1 /*----------------------------------------------------------------------------
2 ChucK Concurrent, On-the-fly Audio Programming Language
3 Compiler and Virtual Machine
5 Copyright (c) 2004 Ge Wang and Perry R. Cook. All rights reserved.
6 http://chuck.cs.princeton.edu/
7 http://soundlab.cs.princeton.edu/
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 U.S.A.
23 -----------------------------------------------------------------------------*/
25 //-----------------------------------------------------------------------------
26 // file: chuck_scan.h
27 // desc: chuck type-system / type-checker pre-scan
29 // author: Ge Wang (gewang@cs.princeton.edu)
30 // Perry R. Cook (prc@cs.princeton.edu)
31 // date: Summer 2005 - original
32 //-----------------------------------------------------------------------------
33 #ifndef __CHUCK_SCAN_H__
34 #define __CHUCK_SCAN_H__
36 #include "chuck_type.h"
39 // scan a program into the env - type discovery scan
40 t_CKBOOL type_engine_scan0_prog( Chuck_Env * env, a_Program prog,
41 te_HowMuch val = te_do_all );
42 // scan a class definition (used by type_engine_add_dll())
43 t_CKBOOL type_engine_scan0_class_def( Chuck_Env * env, a_Class_Def def );
45 // scan a program into the env - type resolution scan
46 t_CKBOOL type_engine_scan1_prog( Chuck_Env * env, a_Program prog,
47 te_HowMuch val = te_do_all );
48 // scan a class definition (used by type_engine_add_dll())
49 t_CKBOOL type_engine_scan1_class_def( Chuck_Env * env, a_Class_Def def );
50 // scan a function definition (used by type_engine_add_dll())
51 t_CKBOOL type_engine_scan1_func_def( Chuck_Env * env, a_Func_Def def );
52 // scan an exp decl
53 t_CKBOOL type_engine_scan1_exp_decl( Chuck_Env * env, a_Exp_Decl decl );
55 // scan a program into the env - function/member/static scan
56 t_CKBOOL type_engine_scan2_prog( Chuck_Env * env, a_Program prog,
57 te_HowMuch val = te_do_all );
58 // scan a class definition (used by type_engine_add_dll())
59 t_CKBOOL type_engine_scan2_class_def( Chuck_Env * env, a_Class_Def def );
60 // scan a function definition (used by type_engine_add_dll())
61 t_CKBOOL type_engine_scan2_func_def( Chuck_Env * env, a_Func_Def def );
62 // scan an exp decl
63 t_CKBOOL type_engine_scan2_exp_decl( Chuck_Env * env, a_Exp_Decl decl );
65 // the rest is done in chuck_type
68 #endif