about summary refs log tree commit diff stats
path: root/freevars.h
blob: f800220f6b3c3d31a0a699529f9c91810b33a189 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <string>
#include <set>

#ifndef FREEVARS_H
#define FREEVARS_H

class word;

class freevar
{
  public:
    freevar(word& w, std::string file);
    bool check(std::string f) const;
    void add(std::string f);
    word& getWord();
    
  private:
    word& w;
    std::set<std::string> instances;
};

#endif