|
20 | 20 | class jsil_languaget:public languaget
|
21 | 21 | {
|
22 | 22 | public:
|
23 |
| - bool preprocess( |
| 23 | + virtual bool preprocess( |
24 | 24 | std::istream &instream,
|
25 | 25 | const std::string &path,
|
26 |
| - std::ostream &outstream) override; |
| 26 | + std::ostream &outstream); |
27 | 27 |
|
28 |
| - bool parse( |
| 28 | + virtual bool parse( |
29 | 29 | std::istream &instream,
|
30 |
| - const std::string &path) override; |
| 30 | + const std::string &path); |
31 | 31 |
|
32 |
| - bool typecheck( |
| 32 | + virtual bool typecheck( |
33 | 33 | symbol_tablet &context,
|
34 |
| - const std::string &module) override; |
| 34 | + const std::string &module); |
35 | 35 |
|
36 |
| - bool final(symbol_tablet &context) override; |
| 36 | + virtual bool final(symbol_tablet &context); |
37 | 37 |
|
38 |
| - void show_parse(std::ostream &out) override; |
| 38 | + virtual void show_parse(std::ostream &out); |
39 | 39 |
|
| 40 | + virtual ~jsil_languaget(); |
40 | 41 | jsil_languaget() { }
|
41 |
| - ~jsil_languaget(); |
42 | 42 |
|
43 |
| - bool from_expr( |
| 43 | + virtual bool from_expr( |
44 | 44 | const exprt &expr,
|
45 | 45 | std::string &code,
|
46 |
| - const namespacet &ns) override; |
| 46 | + const namespacet &ns); |
47 | 47 |
|
48 |
| - bool from_type( |
| 48 | + virtual bool from_type( |
49 | 49 | const typet &type,
|
50 | 50 | std::string &code,
|
51 |
| - const namespacet &ns) override; |
| 51 | + const namespacet &ns); |
52 | 52 |
|
53 |
| - bool to_expr( |
| 53 | + virtual bool to_expr( |
54 | 54 | const std::string &code,
|
55 | 55 | const std::string &module,
|
56 | 56 | exprt &expr,
|
57 |
| - const namespacet &ns) override; |
| 57 | + const namespacet &ns); |
58 | 58 |
|
59 |
| - std::unique_ptr<languaget> new_language() override |
| 59 | + virtual std::unique_ptr<languaget> new_language() |
60 | 60 | { return util_make_unique<jsil_languaget>(); }
|
61 | 61 |
|
62 |
| - std::string id() const override { return "jsil"; } |
63 |
| - std::string description() const override |
| 62 | + virtual std::string id() const { return "jsil"; } |
| 63 | + virtual std::string description() const |
64 | 64 | { return "Javascript Intermediate Language"; }
|
65 |
| - std::set<std::string> extensions() const override; |
| 65 | + virtual std::set<std::string> extensions() const; |
66 | 66 |
|
67 |
| - void modules_provided(std::set<std::string> &modules) override; |
68 |
| - bool interfaces(symbol_tablet &symbol_table) override; |
| 67 | + virtual void modules_provided(std::set<std::string> &modules); |
| 68 | + virtual bool interfaces(symbol_tablet &symbol_table); |
69 | 69 |
|
70 | 70 | protected:
|
71 | 71 | jsil_parse_treet parse_tree;
|
|
0 commit comments