root/ggpa/Utils.cpp

Revision 1, 367 bytes (checked in by pantley2, 4 years ago)

GGPA code from the good old days of SIGART

Line 
1 // Utils.cpp
2 // The implementation of some simple helper functions
3
4 #include "Utils.h"
5
6 /*
7  * isVariable
8  * Parameter:  value - a string that we are interested in
9  * Return type: bool
10  * Returns true if the value represents a variable, and false otherwise
11  */
12 bool isVariable(string value) {
13     if (value[0] == '?') {
14         return true;
15     }
16     return false;
17 }
Note: See TracBrowser for help on using the browser.