as2js: /home/snapwebsites/snapcpp/contrib/as2js/lib/compiler.cpp Source File

as2js  0.1.14
AlexScript to JavaScript
compiler.cpp
Go to the documentation of this file.
1 /* lib/compiler.cpp
2 
3 Copyright (c) 2005-2019 Made to Order Software Corp. All Rights Reserved
4 
6 
7 Permission is hereby granted, free of charge, to any
8 person obtaining a copy of this software and
9 associated documentation files (the "Software"), to
10 deal in the Software without restriction, including
11 without limitation the rights to use, copy, modify,
12 merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom
14 the Software is furnished to do so, subject to the
15 following conditions:
16 
17 The above copyright notice and this permission notice
18 shall be included in all copies or substantial
19 portions of the Software.
20 
21 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
22 ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
23 LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
24 FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
25 EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
27 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28 ARISING FROM, OUT OF OR IN CONNECTION WITH THE
29 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 SOFTWARE.
31 
32 */
33 
34 #include "as2js/compiler.h"
35 
36 
37 namespace as2js
38 {
39 
40 
41 
42 
43 
44 
45 
58  : f_time(time(nullptr))
59  //, f_optimizer(nullptr) -- auto-init
60  , f_options(options)
61  //, f_program(nullptr) -- auto-init
62  //, f_input_retriever(nullptr) -- auto-init
63  //, f_err_flags(0) -- auto-init
64  //, f_scope(nullptr) -- auto-init
65  //, f_modules() -- auto-init
66 {
68 }
69 
70 
72 {
73 }
74 
75 
77 {
79 
80  f_input_retriever = retriever;
81 
82  return old;
83 }
84 
85 
86 
87 
88 
89 
90 
91 
92 
93 
94 }
95 // namespace as2js
96 
97 // vim: ts=4 sw=4 et
Compiler(Options::pointer_t options)
Initialize the compiler object.
Definition: compiler.cpp:57
virtual ~Compiler()
Definition: compiler.cpp:71
InputRetriever::pointer_t set_input_retriever(InputRetriever::pointer_t retriever)
Definition: compiler.cpp:76
std::shared_ptr< Options > pointer_t
The smart pointer used when creating an Options object.
Definition: options.h:53
InputRetriever::pointer_t f_input_retriever
Definition: compiler.h:229
std::shared_ptr< InputRetriever > pointer_t
Definition: stream.h:243
The AlexScript to JavaScript namespace.
Definition: compiler.cpp:37

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.

Syndicate content

Snap! Websites
An Open Source CMS System in C++

Contact Us Directly