Namespaces | Functions
identifier-lookup.cpp File Reference
#include "compiler.h"
#include "../common/consts.h"
#include "tree.h"
#include "../utils/FormatableString.h"
#include <cassert>
#include <cstdlib>
#include <sstream>
#include <iostream>
#include <fstream>
#include <iomanip>
#include <memory>
#include <limits>
#include <malloc.h>
Include dependency graph for identifier-lookup.cpp:

Go to the source code of this file.

Namespaces

namespace  Aseba

Functions

template<class T >
unsigned int Aseba::editDistance (const T &s1, const T &s2, const unsigned maxDist)
 Compute the edit distance between two vector-style containers, inspired from http://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Levenshtein_distance#C.2B.2B.
template<typename MapType >
MapType::const_iterator Aseba::findInTable (const MapType &map, const std::wstring &name, const SourcePos &pos, const ErrorCode notFoundError, const ErrorCode misspelledError)
 Helper function to find for something in one of the map, using edit-distance to check for candidates if not found.

Detailed Description

Functions for quick lookup of identifiers (variables, events, subroutines, native functions, constants) using maps.

Definition in file identifier-lookup.cpp.



aseba
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:39