ADTast-experimental
Last change
on this file since c86b08d was
8f06277,
checked in by Andrew Beach <ajbeach@…>, 22 months ago
|
Some clean-up in Common/utility.h. Deleted some unused declarations and moved others to one of two new headers.
|
-
Property mode set to
100644
|
File size:
882 bytes
|
Line | |
---|
1 | // |
---|
2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo |
---|
3 | // |
---|
4 | // The contents of this file are covered under the licence agreement in the |
---|
5 | // file "LICENCE" distributed with Cforall. |
---|
6 | // |
---|
7 | // Eval.h -- Evaluate parts of the ast at compile time. |
---|
8 | // |
---|
9 | // Author : Andrew Beach |
---|
10 | // Created On : Fri Feb 17 11:41:00 2023 |
---|
11 | // Last Modified By : Andrew Beach |
---|
12 | // Last Modified On : Fri Feb 17 11:41:00 2023 |
---|
13 | // Update Count : 0 |
---|
14 | // |
---|
15 | |
---|
16 | #pragma once |
---|
17 | |
---|
18 | #include <utility> // for pair |
---|
19 | |
---|
20 | class Expression; |
---|
21 | namespace ast { |
---|
22 | class Expr; |
---|
23 | } |
---|
24 | |
---|
25 | /// Evaluates expr as a long long int. |
---|
26 | /// If second is false, expr could not be evaluated. |
---|
27 | std::pair<long long int, bool> eval(const Expression * expr); |
---|
28 | std::pair<long long int, bool> eval(const ast::Expr * expr); |
---|
29 | |
---|
30 | // Local Variables: // |
---|
31 | // tab-width: 4 // |
---|
32 | // mode: c++ // |
---|
33 | // compile-command: "make install" // |
---|
34 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.