This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void LookupTypeName(const AST::TypeName & tn, EntitySet & entity_list) | |
{ | |
std::vector<TypePart> parts = ConvertToList(*this, tn); | |
EntitySet possible_places; | |
Entity* context = this; | |
do | |
{ | |
possible_places.insert(context); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define TYPE_VALUEARRAY 0 | |
#define TYPE_POINTERARRAY 1 | |
typedef struct value | |
{ | |
long Type, Rank, Dimensions[3], Elements[2]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tinytalk include: "stdlib/Tests.tt" | |
/* | |
OrderedCollection | |
The default implementation works with integer keys. | |
*/ | |
OrderedCollection add-method: { first | |
"Returns the first element of the collection." | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FFIModule add-method: { add-func: aSymbol | |
| sym | | |
sym = mDLL symbol: aSymbol; | |
sym not-nil assert: "Symbol not found: ", aSymbol to-string; | |
mFunMap at: aSymbol put: sym; | |
^ sym; | |
}; | |
FFIModule add-method: { add-func: aSymbol | |
| sym | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <utility> | |
#include <typeinfo> | |
#include <type_traits> | |
#include <typeindex> | |
#include <string> | |
using std::type_index; | |
template<typename... Ts> |