NewLang Project
Yet another programm language
|
Namespaces | |
namespace | runtime |
Classes | |
class | AstAnalysis |
struct | BigNum |
class | BuiltInTorchDirect |
struct | CompileInfo |
class | Compiler |
class | Context |
class | CtxPush |
class | Diag |
class | Dict |
struct | FileModule |
struct | Func |
class | GlobalObjects |
class | IntAny |
class | InternalName |
class | IntMinus |
class | IntPlus |
struct | is_shared_ptr |
struct | is_shared_ptr< std::shared_ptr< T > > |
class | Iter |
class | Iterator |
class | JIT |
class | LatterType |
class | Logger |
class | Macro |
class | Module |
class | NameLookupStack |
class | NLC |
class | Obj |
class | Parser |
class | ParserError |
class | Rational |
class | RunTime |
class | Scanner |
class | ScopePush |
struct | ScopeVars |
class | StorageTerm |
class | StringMatcher |
class | Sync |
class | Term |
class | Variable |
class | VariableOp |
struct | VariablePair |
struct | VariableScope |
struct | VariableShared |
class | VariableTaken |
struct | VariableWeak |
class | VirtualFuncImpl |
Typedefs | |
typedef std::vector< LatterType > | VariablePairList |
typedef std::shared_timed_mutex | Lock |
typedef std::unique_lock< Lock > | WriteLock |
typedef std::shared_lock< Lock > | ReadLock |
typedef std::vector< std::string > | StringArray |
typedef std::shared_ptr< Module > | ModulePtr |
typedef std::shared_ptr< runtime::Buildin > | BuildinPtr |
typedef std::vector< TermPtr > | BlockType |
typedef std::vector< ObjPtr > | ArrayObjType |
typedef std::shared_ptr< RunTime > | RuntimePtr |
typedef std::shared_ptr< Diag > | DiagPtr |
typedef std::shared_ptr< Macro > | MacroPtr |
typedef std::shared_ptr< Parser > | ParserPtr |
typedef std::shared_ptr< Context > | RunnerPtr |
typedef ObjPtr | FunctionType(Context *ctx, Obj &in) |
typedef ObjPtr(* | EvalFunction) (Context *ctx, const TermPtr &term, Obj *args, bool eval_block) |
typedef std::shared_ptr< std::string > | SourceType |
typedef std::vector< std::string > | PostLexerType |
typedef std::shared_ptr< Obj > | ObjPtr |
typedef std::shared_ptr< const Obj > | ObjPtrConst |
typedef std::weak_ptr< Obj > | ObjWeak |
typedef std::weak_ptr< const Obj > | ObjWeakConst |
typedef std::shared_ptr< Term > | TermPtr |
typedef std::shared_ptr< const Term > | TermPtrConst |
typedef std::shared_ptr< Variable > | VariablePtr |
typedef std::variant< std::monostate, VariableShared, VariableWeak, VariableTaken, ObjPtr, int64_t, double, std::string, std::wstring, Rational > | VariableVariant |
Enumerations | |
enum class | ConcatMode : uint8_t { Error = 0 , Append = 1 , Discard = 2 } |
enum class | ExpandMacroResult : uint8_t { Continue , Break , Goto } |
enum class | TermID : uint8_t { END = 0 , DEFINE_ENUM , NONE , SPACE , INDENT , COMMENT , CRLF , DOC_BEFORE , DOC_AFTER , SEQUENCE , BLOCK , BLOCK_TRY , BLOCK_PLUS , BLOCK_MINUS , INT_PLUS , INT_MINUS , INT_REPEAT , NAME , LOCAL , STATIC , MACRO , MODULE , NATIVE , MANGLED , TYPE , INTEGER , NUMBER , COMPLEX , RATIONAL , STRWIDE , STRCHAR , TEMPLATE , EVAL , EMPTY , ARGS , ARGUMENT , NEWLANG , TYPENAME , TYPECAST , TYPEDUCK , UNKNOWN , SYMBOL , NAMESPACE , PARENT , ESCAPE , MACRO_SEQ , MACRO_STR , MACRO_DEL , MACRO_TOSTR , MACRO_CONCAT , MACRO_ARGUMENT , MACRO_ARGNAME , MACRO_ARGPOS , MACRO_ARGCOUNT , MACRO_ATTR , MACRO_EXPR , CREATE_NEW , CREATE_USE , ASSIGN , PURE_USE , PURE_NEW , APPEND , SWAP , SYM_RULE , FUNCTION , COROUTINE , ITERATOR , FOLLOW , WHILE , DOWHILE , MATCHING , WITH , TAKE , RANGE , ELLIPSIS , FILLING , INDEX , FIELD , TENSOR , SET , DICT , CLASS , OP_LOGICAL , OP_MATH , OP_COMPARE , OP_BITWISE , EMBED } |
enum class | ObjType : uint8_t { DEFINE_ENUM , None = static_cast<uint8_t>(0) , Bool = static_cast<uint8_t>(1) , Int8 = static_cast<uint8_t>(2) , Char = static_cast<uint8_t>(3) , Byte = static_cast<uint8_t>(4) , Int16 = static_cast<uint8_t>(5) , Word = static_cast<uint8_t>(6) , Int32 = static_cast<uint8_t>(7) , DWord = static_cast<uint8_t>(8) , Int64 = static_cast<uint8_t>(9) , DWord64 = static_cast<uint8_t>(10) , Integer = static_cast<uint8_t>(15) , Float16 = static_cast<uint8_t>(16) , Float32 = static_cast<uint8_t>(17) , Single = static_cast<uint8_t>(18) , Float64 = static_cast<uint8_t>(19) , Double = static_cast<uint8_t>(20) , Number = static_cast<uint8_t>(24) , Complex16 = static_cast<uint8_t>(25) , Complex32 = static_cast<uint8_t>(26) , Complex64 = static_cast<uint8_t>(27) , Complex = static_cast<uint8_t>(31) , Tensor = static_cast<uint8_t>(32) , Rational = static_cast<uint8_t>(33) , Arithmetic = static_cast<uint8_t>(47) , StrChar = static_cast<uint8_t>(48) , StrWide = static_cast<uint8_t>(49) , FmtChar = static_cast<uint8_t>(50) , FmtWide = static_cast<uint8_t>(51) , ViewChar = static_cast<uint8_t>(52) , ViewWide = static_cast<uint8_t>(53) , StdChar = static_cast<uint8_t>(54) , StdWide = static_cast<uint8_t>(55) , PtrChar = static_cast<uint8_t>(56) , PtrWide = static_cast<uint8_t>(57) , String = static_cast<uint8_t>(59) , Iterator = static_cast<uint8_t>(62) , IteratorEnd = static_cast<uint8_t>(63) , Pointer = static_cast<uint8_t>(64) , NativeFunc = static_cast<uint8_t>(65) , Function = static_cast<uint8_t>(70) , PureFunc = static_cast<uint8_t>(71) , Thread = static_cast<uint8_t>(80) , Base = static_cast<uint8_t>(84) , Sys = static_cast<uint8_t>(85) , TorchTensor = static_cast<uint8_t>(86) , Range = static_cast<uint8_t>(104) , Dictionary = static_cast<uint8_t>(105) , Interface = static_cast<uint8_t>(106) , Class = static_cast<uint8_t>(107) , Ellipsis = static_cast<uint8_t>(108) , EVAL_FUNCTION = static_cast<uint8_t>(110) , BLOCK = static_cast<uint8_t>(111) , BLOCK_TRY = static_cast<uint8_t>(112) , BLOCK_PLUS = static_cast<uint8_t>(113) , BLOCK_MINUS = static_cast<uint8_t>(114) , Macro = static_cast<uint8_t>(115) , Reference = static_cast<uint8_t>(117) , Virtual = static_cast<uint8_t>(118) , Eval = static_cast<uint8_t>(119) , Other = static_cast<uint8_t>(120) , Plain = static_cast<uint8_t>(121) , Object = static_cast<uint8_t>(122) , Any = static_cast<uint8_t>(123) , Type = static_cast<uint8_t>(200) , Struct = static_cast<uint8_t>(202) , Union = static_cast<uint8_t>(203) , Enum = static_cast<uint8_t>(204) , RetPlus = static_cast<uint8_t>(210) , RetMinus = static_cast<uint8_t>(211) , RetRepeat = static_cast<uint8_t>(212) , IntParser = static_cast<uint8_t>(213) , IntError = static_cast<uint8_t>(214) , Context = static_cast<uint8_t>(227) , Module = static_cast<uint8_t>(228) , Undefined = static_cast<uint8_t>(229) , Error = static_cast<uint8_t>(230) , Break = static_cast<uint8_t>(231) , Continue = static_cast<uint8_t>(232) , ErrorParser = static_cast<uint8_t>(241) , ErrorRunTime = static_cast<uint8_t>(242) , ErrorSignal = static_cast<uint8_t>(243) } |
enum class | RefType : uint8_t { Value = 0 , Shared = 1 , LiteSingle = 2 , LiteThread = 3 , SyncMono = 4 , SyncMulti = 5 , SharedConst = 6 , LiteSingleConst = 7 , LiteThreadConst = 8 , SyncMonoConst = 9 , SyncMultiConst = 10 } |
enum class | VariableCase : uint8_t { DEFINE_ENUM , EMPTY = static_cast<uint8_t>(0) , SHARED = static_cast<uint8_t>(1) , WEAK = static_cast<uint8_t>(2) , TAKEN = static_cast<uint8_t>(3) , OBJECT = static_cast<uint8_t>(4) , INTEGER = static_cast<uint8_t>(5) , DOUBLE = static_cast<uint8_t>(6) , STRING = static_cast<uint8_t>(7) , WSTRING = static_cast<uint8_t>(8) , RATIONAL = static_cast<uint8_t>(9) } |
Functions | |
newlang::ObjPtr | clone (newlang::Context *ctx, newlang::Obj &in) |
newlang::ObjPtr | const_ (newlang::Context *ctx, newlang::Obj &in) |
newlang::ObjPtr | mutable_ (newlang::Context *ctx, newlang::Obj &in) |
newlang::ObjPtr | min (const newlang::Context *ctx, const newlang::Obj &in) |
newlang::ObjPtr | newlang_min (const newlang::Context *ctx, const newlang::ObjPtr in) |
template<typename... T> | |
std::enable_if< newlang::is_all< newlang::Obj::PairType, T... >::value, newlang::ObjPtr >::type | newlang_newlang_min (newlang::Context *ctx, T ... args) |
newlang::ObjPtr | max (const newlang::Context *ctx, const newlang::Obj &in) |
newlang::ObjPtr | newlang_max (const newlang::Context *ctx, const newlang::ObjPtr in) |
template<typename... T> | |
std::enable_if< newlang::is_all< newlang::Obj::PairType, T... >::value, newlang::ObjPtr >::type | newlang_newlang_max (newlang::Context *ctx, T ... args) |
newlang::ObjPtr | newlang_maks (const newlang::Context *ctx, const newlang::ObjPtr in) |
template<typename... T> | |
std::enable_if< newlang::is_all< newlang::Obj::PairType, T... >::value, newlang::ObjPtr >::type | newlang_newlang_maks (newlang::Context *ctx, T ... args) |
newlang::ObjPtr | clone (const newlang::Context *ctx, const newlang::Obj &in) |
newlang::ObjPtr | newlang_clone (const newlang::Context *ctx, const newlang::ObjPtr in) |
template<typename... T> | |
std::enable_if< newlang::is_all< newlang::Obj::PairType, T... >::value, newlang::ObjPtr >::type | newlang_newlang_clone (newlang::Context *ctx, T ... args) |
newlang::ObjPtr | const_ (const newlang::Context *ctx, const newlang::Obj &in) |
newlang::ObjPtr | newlang_const_ (const newlang::Context *ctx, const newlang::ObjPtr in) |
template<typename... T> | |
std::enable_if< newlang::is_all< newlang::Obj::PairType, T... >::value, newlang::ObjPtr >::type | newlang_newlang_const_ (newlang::Context *ctx, T ... args) |
newlang::ObjPtr | mutable_ (const newlang::Context *ctx, const newlang::Obj &in) |
newlang::ObjPtr | newlang_mutable_ (const newlang::Context *ctx, const newlang::ObjPtr in) |
template<typename... T> | |
std::enable_if< newlang::is_all< newlang::Obj::PairType, T... >::value, newlang::ObjPtr >::type | newlang_newlang_mutable_ (newlang::Context *ctx, T ... args) |
newlang::ObjPtr | help (const newlang::Context *ctx, const newlang::Obj &in) |
newlang::ObjPtr | newlang_help (const newlang::Context *ctx, const newlang::ObjPtr in) |
template<typename... T> | |
std::enable_if< newlang::is_all< newlang::Obj::PairType, T... >::value, newlang::ObjPtr >::type | newlang_newlang_help (newlang::Context *ctx, T ... args) |
bool | Tranliterate (const wchar_t c, std::wstring &str) |
std::string | MangleName (const char *name) |
std::string | MangaledFuncCPP (const char *name, const char *space=nullptr) |
std::string | MangaledFunc (const std::string name) |
void | SplitString (const ::std::string &str, char delimiter, ::std::vector< ::std::string > *dest) |
static bool | PatternMatchesString (const std::string &name_str, const char *pattern, const char *pattern_end) |
bool | IsGlobPattern (const std::string &pattern) |
template<typename T > | |
std::enable_if< std::is_same< T, std::string >::value, std::string >::type | DumpToString (const T &obj) |
template<typename T > | |
std::enable_if<!std::is_same< T, std::string >::value, std::string >::type | DumpToString (const T &obj) |
template<typename T > | |
std::string | Dump (const T &iterable) |
std::vector< int64_t > | TensorShapeFromDict (const Obj *obj) |
ObjPtr | CheckSystemField (const Obj *obj, const std::string name) |
int64_t | ConcatData (Obj *dest, Obj &src, ConcatMode mode=ConcatMode::Error) |
TermPtr | ProcessMacro (Parser &parser, TermPtr &term) |
ExpandMacroResult | ExpandTermMacro (Parser &parser) |
EXTERN_C int | nlc_prinft_sub_ (char const *format,...) |
int | RunMain (const int arg, const char **argv, const char **penv) |
std::string | GetFileExt (const char *str) |
std::string | AddDefaultFileExt (const char *str, const char *ext_default) |
std::string | ReplaceFileExt (const char *str, const char *ext_old, const char *ext_new) |
std::string | ReadFile (const char *fileName) |
std::string | GetDoc (std::string name) |
std::string | MakeConstructorName (std::string name) |
std::string | MakeLocalName (std::string name) |
ObjType | typeFromString (TermPtr &term, RunTime *rt, bool *has_error) |
const char * | toString (TermID type) |
size_t | IndexArg (TermPtr term) |
std::string | ParserMessage (std::string &buffer, int row, int col, const char *format,...) |
static bool | IsAnyCreate (TermID id) |
std::ostream & | operator<< (std::ostream &out, newlang::TermPtr &var) |
std::ostream & | operator<< (std::ostream &out, newlang::TermPtr var) |
std::string & | rtrim (std::string &s, const char *t=ws) |
std::string & | ltrim (std::string &s, const char *t=ws) |
std::string & | trim (std::string &s, const char *t=ws) |
template<typename T > | |
T | repeat (T str, const std::size_t n) |
template<class T > | |
T | BaseFileName (T const &path, T const &delims="/\\") |
template<class T > | |
T | RemoveFileExtension (T const &filename) |
void | NewLangSignalHandler (int signal) |
void | ParserException (const char *msg, std::string &buffer, int row, int col) |
const char * | toString (ObjType type) |
const char * | toCXXType (ObjType type, bool int_bool) |
ObjType | GetBaseTypeFromString (const std::string_view type_arg, bool *has_error=nullptr) |
const char * | toCXXRef (const std::string_view ref) |
bool | isGenericType (ObjType t) |
bool | isNativeType (ObjType t) |
bool | isObjectType (ObjType t) |
bool | isDefaultType (const TermPtr &term) |
const TermPtr | getDefaultType (const std::string_view text) |
const TermPtr | getDefaultType (ObjType type) |
const TermPtr | getNoneTerm () |
const TermPtr | getEllipsysTerm () |
const TermPtr | getRequiredTerm () |
const ObjPtr | getNoneObj () |
const Variable & | getNoneVar () |
const ObjPtr | getEllipsysObj () |
const VariablePtr | getEllipsysVar () |
const VariablePair & | getNonePair () |
bool | isBaseType (ObjType t) |
bool | isFunction (ObjType t) |
bool | isNative (ObjType t) |
bool | isEval (ObjType t) |
bool | isSimpleType (ObjType t) |
bool | isIntegralType (ObjType t, bool includeBool) |
bool | isFloatingType (ObjType t) |
bool | isComplexType (ObjType t) |
bool | isTensor (ObjType t) |
bool | isBooleanType (ObjType t) |
bool | isArithmeticType (ObjType t) |
bool | isStringChar (ObjType t) |
bool | isStringWide (ObjType t) |
bool | isString (ObjType t) |
bool | isInterrupt (ObjType t) |
bool | isPlainDataType (ObjType t) |
bool | isDictionary (ObjType t) |
bool | isClass (ObjType t) |
bool | isEllipsis (ObjType t) |
bool | isRange (ObjType t) |
bool | isTypeName (ObjType t) |
bool | isModule (ObjType t) |
bool | isIndexingType (ObjType curr, ObjType fix) |
bool | isLocalType (ObjType) |
ObjType | typeFromLimit (int64_t value, ObjType type_default=ObjType::Int64) |
ObjType | typeFromLimit (double value, ObjType type_default=ObjType::Float64) |
bool | canCastLimit (const ObjType from, const ObjType to) |
bool | canCast (const ObjType from, const ObjType to) |
bool | canCast (const std::string from, const std::string to) |
bool | canCast (const TermPtr &from, const ObjType to) |
bool | canCast (const TermPtr &from, const TermPtr &to) |
int64_t | parseInteger (const char *str) |
double | parseDouble (const char *str) |
std::complex< double > | parseComplex (const char *) |
bool | isReservedName (const std::string_view name) |
bool | isInternalName (const std::string_view name) |
bool | isMangledName (const std::string_view name) |
bool | isModuleName (const std::string_view name) |
bool | isStaticName (const std::string_view name) |
bool | isFieldName (const std::string_view name) |
bool | isTrivialName (const std::string_view name) |
bool | isLocalName (const std::string_view name) |
bool | isGlobalScope (const std::string_view name) |
bool | isModuleScope (const std::string_view name) |
bool | isTypeName (const std::string_view name) |
bool | isFullName (const std::string_view name) |
bool | isMacroName (const std::string_view name) |
bool | isNativeName (const std::string_view name) |
bool | isLocalAnyName (const std::string_view name) |
bool | isSystemName (const std::string_view name) |
bool | isPrivateName (const std::string_view name) |
bool | isHidenName (const std::string_view name) |
bool | isVariableName (const std::string_view name) |
bool | isConstName (const std::string_view name) |
std::string | NormalizeName (const std::string_view name) |
std::string | MakeName (std::string name) |
std::string | ExtractModuleName (const std::string_view name) |
bool | CheckCharModuleName (const std::string_view name) |
std::string | ExtractName (std::string name) |
bool | isContainsType (ObjType generic, ObjType type) |
std::string | utf8_encode (const std::wstring wstr) |
std::wstring | utf8_decode (const std::string str) |
constexpr RefType | RefTypeFromString (const std::string_view text) |
constexpr bool | isLiteRef (RefType type) |
constexpr bool | isLiteSyncRef (RefType type) |
bool | isHeavyRef (RefType type) |
constexpr bool | isConstRef (RefType type) |
constexpr bool | isEditableRef (RefType type) |
constexpr bool | isValidReference (RefType type, RefType test) |
const char * | VariableCaseToString (size_t index) |
Variables | |
static constexpr const char * | ws = " \t\n\r\f\v" |
typedef std::vector< LatterType > newlang::VariablePairList |
typedef std::shared_timed_mutex newlang::Lock |
typedef std::unique_lock< Lock > newlang::WriteLock |
typedef std::shared_lock< Lock > newlang::ReadLock |
typedef std::vector<std::string> newlang::StringArray |
typedef std::shared_ptr<Module> newlang::ModulePtr |
typedef std::shared_ptr<runtime::Buildin> newlang::BuildinPtr |
typedef std::vector<TermPtr> newlang::BlockType |
typedef std::vector<ObjPtr> newlang::ArrayObjType |
typedef std::shared_ptr<RunTime> newlang::RuntimePtr |
typedef std::shared_ptr<Diag> newlang::DiagPtr |
typedef std::shared_ptr<Macro> newlang::MacroPtr |
typedef std::shared_ptr<Parser> newlang::ParserPtr |
typedef std::shared_ptr<Context> newlang::RunnerPtr |
typedef std::shared_ptr<std::string> newlang::SourceType |
typedef std::vector<std::string> newlang::PostLexerType |
typedef std::shared_ptr<Obj> newlang::ObjPtr |
Definition at line 28 of file variable.h.
typedef std::shared_ptr<const Obj> newlang::ObjPtrConst |
Definition at line 29 of file variable.h.
typedef std::weak_ptr<Obj> newlang::ObjWeak |
Definition at line 30 of file variable.h.
typedef std::weak_ptr<const Obj> newlang::ObjWeakConst |
Definition at line 31 of file variable.h.
typedef std::shared_ptr<Term> newlang::TermPtr |
Definition at line 33 of file variable.h.
typedef std::shared_ptr<const Term> newlang::TermPtrConst |
Definition at line 34 of file variable.h.
typedef std::shared_ptr<Variable> newlang::VariablePtr |
Definition at line 131 of file variable.h.
typedef std::variant< std::monostate, VariableShared, VariableWeak, VariableTaken, ObjPtr, int64_t, double, std::string, std::wstring, Rational > newlang::VariableVariant |
Варианты данных для хрения в классе Variable
Definition at line 400 of file variable.h.
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
Типы ссылочных объектов
Enumerator | |
---|---|
Value | |
Shared | |
LiteSingle | |
LiteThread | |
SyncMono | |
SyncMulti | |
SharedConst | |
LiteSingleConst | |
LiteThreadConst | |
SyncMonoConst | |
SyncMultiConst |
Definition at line 40 of file variable.h.
|
strong |
Enumerator | |
---|---|
DEFINE_ENUM | |
EMPTY | |
SHARED | |
WEAK | |
TAKEN | |
OBJECT | |
INTEGER | |
DOUBLE | |
STRING | |
WSTRING | |
RATIONAL |
Definition at line 417 of file variable.h.
newlang::ObjPtr newlang::clone | ( | newlang::Context * | ctx, |
newlang::Obj & | in ) |
Definition at line 39 of file builtin.cpp.
References LOG_RUNTIME.
Referenced by newlang::Obj::Clone(), newlang::Obj::CloneDataTo(), newlang::Obj::ClonePropTo(), newlang::Obj::CloneTo(), newlang::Obj::CloneTo(), and newlang::Obj::toType().
newlang::ObjPtr newlang::const_ | ( | newlang::Context * | ctx, |
newlang::Obj & | in ) |
Definition at line 46 of file builtin.cpp.
References LOG_RUNTIME.
newlang::ObjPtr newlang::mutable_ | ( | newlang::Context * | ctx, |
newlang::Obj & | in ) |
Definition at line 53 of file builtin.cpp.
References LOG_RUNTIME.
newlang::ObjPtr newlang::min | ( | const newlang::Context * | ctx, |
const newlang::Obj & | in ) |
|
inline |
std::enable_if< newlang::is_all< newlang::Obj::PairType, T... >::value, newlang::ObjPtr >::type newlang::newlang_newlang_min | ( | newlang::Context * | ctx, |
T ... | args ) |
newlang::ObjPtr newlang::max | ( | const newlang::Context * | ctx, |
const newlang::Obj & | in ) |
|
inline |
std::enable_if< newlang::is_all< newlang::Obj::PairType, T... >::value, newlang::ObjPtr >::type newlang::newlang_newlang_max | ( | newlang::Context * | ctx, |
T ... | args ) |
|
inline |
std::enable_if< newlang::is_all< newlang::Obj::PairType, T... >::value, newlang::ObjPtr >::type newlang::newlang_newlang_maks | ( | newlang::Context * | ctx, |
T ... | args ) |
newlang::ObjPtr newlang::clone | ( | const newlang::Context * | ctx, |
const newlang::Obj & | in ) |
|
inline |
std::enable_if< newlang::is_all< newlang::Obj::PairType, T... >::value, newlang::ObjPtr >::type newlang::newlang_newlang_clone | ( | newlang::Context * | ctx, |
T ... | args ) |
newlang::ObjPtr newlang::const_ | ( | const newlang::Context * | ctx, |
const newlang::Obj & | in ) |
|
inline |
std::enable_if< newlang::is_all< newlang::Obj::PairType, T... >::value, newlang::ObjPtr >::type newlang::newlang_newlang_const_ | ( | newlang::Context * | ctx, |
T ... | args ) |
newlang::ObjPtr newlang::mutable_ | ( | const newlang::Context * | ctx, |
const newlang::Obj & | in ) |
|
inline |
std::enable_if< newlang::is_all< newlang::Obj::PairType, T... >::value, newlang::ObjPtr >::type newlang::newlang_newlang_mutable_ | ( | newlang::Context * | ctx, |
T ... | args ) |
newlang::ObjPtr newlang::help | ( | const newlang::Context * | ctx, |
const newlang::Obj & | in ) |
|
inline |
std::enable_if< newlang::is_all< newlang::Obj::PairType, T... >::value, newlang::ObjPtr >::type newlang::newlang_newlang_help | ( | newlang::Context * | ctx, |
T ... | args ) |
bool newlang::Tranliterate | ( | const wchar_t | c, |
std::wstring & | str ) |
Definition at line 44 of file jit.cpp.
Referenced by MangleName().
std::string newlang::MangleName | ( | const char * | name | ) |
Definition at line 209 of file jit.cpp.
References ALLOW_CHAR, NEWLANG_PREFIX, result, and Tranliterate().
std::string newlang::MangaledFuncCPP | ( | const char * | name, |
const char * | space = nullptr ) |
std::string newlang::MangaledFunc | ( | const std::string | name | ) |
Definition at line 201 of file jit.cpp.
References isConstName(), and result.
|
inline |
Definition at line 153 of file logger.h.
Referenced by newlang::StringMatcher::StringMatcher().
|
static |
|
inline |
Definition at line 223 of file logger.h.
Referenced by newlang::StringMatcher::StringMatcher().
std::enable_if< std::is_same< T, std::string >::value, std::string >::type newlang::DumpToString | ( | const T & | obj | ) |
std::enable_if<!std::is_same< T, std::string >::value, std::string >::type newlang::DumpToString | ( | const T & | obj | ) |
std::string newlang::Dump | ( | const T & | iterable | ) |
Definition at line 306 of file logger.h.
References DumpToString(), and result.
std::vector< int64_t > newlang::TensorShapeFromDict | ( | const Obj * | obj | ) |
Definition at line 2132 of file object.cpp.
References ShapeFromDict().
Referenced by newlang::Context::CreateTensor().
Definition at line 3314 of file object.cpp.
References newlang::Obj::CreateDict(), newlang::Obj::CreateString(), newlang::Obj::CreateValue(), ExtractModuleName(), ExtractName(), newlang::Obj::is_init(), isSystemName(), newlang::Obj::m_class_name, newlang::Obj::m_class_parents, newlang::Obj::m_var_name, newlang::Obj::m_var_type_current, newlang::Obj::m_var_type_fixed, Module, newlang::Obj::size(), newlang::Obj::toString(), and toString().
Referenced by newlang::Obj::at(), and newlang::Obj::at().
int64_t newlang::ConcatData | ( | Obj * | dest, |
Obj & | src, | ||
ConcatMode | mode = ConcatMode::Error ) |
Definition at line 2061 of file object.cpp.
References ASSERT, newlang::Obj::clear_(), ConcatData(), Dictionary, newlang::Obj::GetValueAsString(), newlang::Obj::GetValueAsStringWide(), newlang::Obj::is_dictionary_type(), newlang::Obj::is_string_type(), newlang::Obj::is_tensor_type(), LOG_RUNTIME, newlang::Obj::m_string, newlang::Obj::m_tensor, newlang::Obj::m_value, newlang::Obj::m_var_is_init, newlang::Obj::m_var_type_current, newlang::Obj::push_back(), StrChar, StrWide, newlang::Obj::toString(), and newlang::Obj::toType().
Referenced by ConcatData(), and newlang::Obj::op_concat_().
Definition at line 26 of file macro.cpp.
References newlang::Diag::DIAG_MACRO_NOT_FOUND, newlang::Parser::m_diag, newlang::Parser::m_macro, and NL_PARSER.
ExpandMacroResult newlang::ExpandTermMacro | ( | Parser & | parser | ) |
Definition at line 45 of file macro.cpp.
References ASSERT, Break, Continue, newlang::Macro::ExpandMacros(), newlang::Macro::ExpandString(), newlang::Macro::ExtractArgs(), Goto, newlang::Macro::IdentityMacro(), newlang::Parser::lexer, LOG_RUNTIME, newlang::Parser::m_is_lexer_complete, newlang::Scanner::m_loc, newlang::Parser::m_macro, newlang::Parser::m_macro_analisys_buff, newlang::Scanner::m_macro_iss, newlang::Scanner::m_macro_loc, MACRO, MACRO_STR, NAME, newlang::Scanner::source_string, newlang::Macro::toMacroHash(), and toString().
Referenced by newlang::Parser::GetNextToken().
EXTERN_C int newlang::nlc_prinft_sub_ | ( | char const * | format, |
... ) |
int newlang::RunMain | ( | const int | arg, |
const char ** | argv, | ||
const char ** | penv ) |
Definition at line 69 of file runtime.cpp.
std::string newlang::GetFileExt | ( | const char * | str | ) |
Definition at line 1917 of file runtime.cpp.
Referenced by AddDefaultFileExt(), and ReplaceFileExt().
std::string newlang::AddDefaultFileExt | ( | const char * | str, |
const char * | ext_default ) |
Definition at line 1927 of file runtime.cpp.
References GetFileExt().
std::string newlang::ReplaceFileExt | ( | const char * | str, |
const char * | ext_old, | ||
const char * | ext_new ) |
Definition at line 1937 of file runtime.cpp.
References GetFileExt().
std::string newlang::ReadFile | ( | const char * | fileName | ) |
Definition at line 1952 of file runtime.cpp.
Referenced by newlang::JIT::RunFile().
std::string newlang::GetDoc | ( | std::string | name | ) |
Definition at line 2251 of file runtime.cpp.
std::string newlang::MakeConstructorName | ( | std::string | name | ) |
Definition at line 2256 of file runtime.cpp.
References ASSERT, isTypeName(), and result.
std::string newlang::MakeLocalName | ( | std::string | name | ) |
Definition at line 2243 of file runtime.cpp.
References newlang::RunTime::BaseTypeFromString().
Referenced by newlang::AstAnalysis::CheckCall(), newlang::AstAnalysis::CheckIndex_(), newlang::AstAnalysis::CheckOpType(), newlang::Context::EvalCreateAsValue_(), newlang::Context::EvalTerm(), newlang::AstAnalysis::MakeFormatArgs(), and newlang::Term::SetType().
|
inline |
Definition at line 126 of file term.h.
References DEFINE_CASE, END, LOG_ERROR, and NL_TERMS.
Referenced by newlang::Obj::at_index(), newlang::Obj::at_index_const(), newlang::Obj::BaseTypeConstructor(), newlang::Obj::begin(), newlang::Obj::begin(), newlang::runtime::Buildin::Buildin(), newlang::AstAnalysis::CalcSummaryType(), newlang::Context::Call(), newlang::Context::CallNative_(), newlang::AstAnalysis::CheckCall(), newlang::AstAnalysis::CheckIndex_(), newlang::AstAnalysis::CheckOpType(), newlang::AstAnalysis::CheckStrPrintf(), CheckSystemField(), newlang::Obj::ConstructorSimpleType_(), newlang::Obj::ConstructorStruct_(), newlang::Obj::CreateBaseType(), CreateFromGenericValue(), newlang::AstAnalysis::CreateOp_(), newlang::Obj::CreateValue(), newlang::Obj::end(), newlang::Obj::end(), newlang::Obj::erase(), newlang::Obj::erase(), newlang::Context::EvalDoWhile_(), newlang::Context::EvalInterrupt_(), newlang::Context::EvalTerm(), newlang::Context::EvalTryBlock_(), newlang::Context::EvalWhile_(), newlang::Macro::ExpandString(), ExpandTermMacro(), newlang::Macro::ExtractArgs(), newlang::Obj::find(), getDefaultType(), newlang::runtime::System::getenv(), GetGenericValueRef(), newlang::Obj::GetIndex(), newlang::Context::GetIndexValue(), newlang::Macro::GetMacroId(), newlang::Obj::GetValueAsString(), newlang::Obj::insert(), newlang::Obj::IteratorData(), newlang::Obj::IteratorReset(), newlang::Macro::MakeMacroId(), newlang::Obj::op_class_test(), newlang::Obj::op_class_test(), newlang::Obj::op_compare(), newlang::Obj::op_div_ceil_(), newlang::Obj::op_equal(), newlang::Obj::operator%=(), newlang::Obj::operator*=(), newlang::Obj::operator+=(), newlang::Obj::operator-=(), newlang::Obj::operator/=(), newlang::Obj::operator[](), newlang::Obj::operator[](), newlang::Obj::push_back(), newlang::Obj::push_back(), newlang::AstAnalysis::RecursiveAnalyzer(), newlang::RunTime::RegisterBuildinType(), newlang::Obj::resize(), newlang::Obj::resize_(), newlang::Context::SetIndexValue(), newlang::Obj::SetValue_(), newlang::runtime::System::system(), TensorToString(), newlang::Obj::testConvertType(), newlang::Obj::testResultIntegralType(), toCXXType(), toIndex(), toLLVMType(), newlang::Obj::toString(), newlang::Term::toString(), toTorchType(), and newlang::Obj::toType_().
size_t newlang::IndexArg | ( | TermPtr | term | ) |
Definition at line 6 of file term.cpp.
References ASSERT, and LOG_RUNTIME.
std::string newlang::ParserMessage | ( | std::string & | buffer, |
int | row, | ||
int | col, | ||
const char * | format, | ||
... ) |
Definition at line 525 of file parser.cpp.
Referenced by newlang::Scanner::LexerError(), and ParserException().
|
inlinestatic |
Definition at line 146 of file term.h.
References ASSIGN, CREATE_NEW, CREATE_USE, PURE_NEW, and PURE_USE.
std::ostream & newlang::operator<< | ( | std::ostream & | out, |
newlang::TermPtr & | var ) |
std::ostream & newlang::operator<< | ( | std::ostream & | out, |
newlang::TermPtr | var ) |
|
inline |
|
inline |
|
inline |
Definition at line 111 of file types.h.
References ltrim(), and rtrim().
Referenced by newlang::Obj::GetValueAsString().
T newlang::repeat | ( | T | str, |
const std::size_t | n ) |
Definition at line 116 of file types.h.
Referenced by newlang::CompileInfo::GetIndent(), newlang::Obj::op_pow_(), and newlang::Obj::operator*=().
T newlang::BaseFileName | ( | T const & | path, |
T const & | delims = "/\\" ) |
Definition at line 137 of file types.h.
Referenced by newlang::RunTime::ModuleRead(), and newlang::RunTime::ModuleSave().
T newlang::RemoveFileExtension | ( | T const & | filename | ) |
Definition at line 142 of file types.h.
Referenced by newlang::RunTime::ModuleRead(), and newlang::RunTime::ModuleSave().
void newlang::NewLangSignalHandler | ( | int | signal | ) |
void newlang::ParserException | ( | const char * | msg, |
std::string & | buffer, | ||
int | row, | ||
int | col ) |
Definition at line 579 of file parser.cpp.
References ParserMessage().
|
inline |
Definition at line 533 of file types.h.
References DEFINE_CASE, LOG_RUNTIME, and NL_TYPES.
|
inline |
ObjType newlang::GetBaseTypeFromString | ( | const std::string_view | type_arg, |
bool * | has_error = nullptr ) |
Definition at line 1102 of file parser.cpp.
References DEFINE_CASE, LOG_RUNTIME, NL_TYPES, and None.
Referenced by newlang::RunTime::BaseTypeFromString(), newlang::AstAnalysis::CalcSummaryType(), canCast(), canCast(), canCast(), newlang::RunTime::CreateNative(), newlang::Context::CreateRange(), and newlang::Context::CreateTensor().
|
inline |
Definition at line 602 of file types.h.
References LOG_RUNTIME.
|
inline |
Definition at line 626 of file types.h.
References Any, Arithmetic, Complex, Eval, Integer, Number, Object, Other, Plain, String, and Tensor.
Referenced by newlang::Obj::ConstructorSimpleType_(), newlang::Obj::ConstructorStruct_(), getSummaryTensorType(), isContainsType(), and newlang::Obj::toType_().
|
inline |
|
inline |
Definition at line 678 of file types.h.
References Class, Dictionary, and Interface.
bool newlang::isDefaultType | ( | const TermPtr & | term | ) |
Definition at line 1060 of file parser.cpp.
References getDefaultType().
Referenced by newlang::Context::CallNative_(), newlang::AstAnalysis::CheckOpType(), newlang::AstAnalysis::CreateOp_(), newlang::Term::dump_items_(), newlang::Context::EvalTerm(), and newlang::Term::toString().
const TermPtr newlang::getDefaultType | ( | const std::string_view | text | ) |
Definition at line 1072 of file parser.cpp.
References ASSERT, default_types, type_default_any, and type_default_none.
Referenced by newlang::AstAnalysis::CalcSummaryType(), newlang::AstAnalysis::CreateOp_(), getDefaultType(), isDefaultType(), and newlang::Term::SetType().
Definition at line 1068 of file parser.cpp.
References getDefaultType(), and toString().
const TermPtr newlang::getNoneTerm | ( | ) |
Definition at line 1028 of file parser.cpp.
References term_none.
const TermPtr newlang::getEllipsysTerm | ( | ) |
Definition at line 1036 of file parser.cpp.
References term_ellipsys.
const TermPtr newlang::getRequiredTerm | ( | ) |
Definition at line 1032 of file parser.cpp.
References term_required.
const ObjPtr newlang::getNoneObj | ( | ) |
Definition at line 1040 of file parser.cpp.
References obj_none.
Referenced by newlang::Context::EvalLeftVars_().
const Variable & newlang::getNoneVar | ( | ) |
Definition at line 1044 of file parser.cpp.
References var_none.
Referenced by newlang::Context::EvalTryBlock_().
const ObjPtr newlang::getEllipsysObj | ( | ) |
Definition at line 1048 of file parser.cpp.
References obj_ellipsys.
Referenced by newlang::Context::EvalTerm().
const VariablePtr newlang::getEllipsysVar | ( | ) |
Definition at line 1052 of file parser.cpp.
References var_ellipsys.
const VariablePair & newlang::getNonePair | ( | ) |
Definition at line 1056 of file parser.cpp.
References var_none_pair.
Referenced by newlang::Context::FindObject(), and newlang::LatterType::GetVariablePair().
|
inline |
|
inline |
Definition at line 704 of file types.h.
References EVAL_FUNCTION, Function, NativeFunc, PureFunc, and Virtual.
Referenced by canCastLimit(), newlang::Obj::is_function_type(), isContainsType(), and isIndexingType().
|
inline |
Definition at line 710 of file types.h.
References NativeFunc.
Referenced by newlang::Obj::is_native().
|
inline |
Definition at line 715 of file types.h.
References BLOCK, and BLOCK_TRY.
Referenced by isContainsType().
|
inline |
Definition at line 720 of file types.h.
References Tensor.
Referenced by canCastLimit(), newlang::Obj::ConstructorStruct_(), newlang::Obj::GetValueAsBoolean(), newlang::Obj::is_simple_type(), and newlang::Obj::toString().
|
inline |
Definition at line 725 of file types.h.
Referenced by newlang::Context::Call(), CreateFromGenericValue(), newlang::Obj::getTypeAsLimit(), newlang::Obj::is_integer(), newlang::Obj::is_integral(), isContainsType(), newlang::Obj::op_equal(), newlang::Obj::testResultIntegralType(), and newlang::Obj::toType_().
|
inline |
Definition at line 732 of file types.h.
References Double, Float16, Float32, Float64, Number, and Single.
Referenced by newlang::Context::Call(), canCastLimit(), CreateFromGenericValue(), newlang::Obj::getTypeAsLimit(), newlang::Obj::is_floating(), isContainsType(), newlang::Obj::op_equal(), newlang::Obj::operator-(), newlang::Obj::testResultIntegralType(), and newlang::Obj::toType_().
|
inline |
Definition at line 737 of file types.h.
References Complex, Complex16, Complex32, and Complex64.
Referenced by newlang::Obj::is_complex(), and isContainsType().
|
inline |
Definition at line 742 of file types.h.
References Tensor.
Referenced by newlang::Obj::ConstructorSimpleType_(), CreateTensor(), newlang::Obj::is_tensor_type(), isContainsType(), isIndexingType(), isPlainDataType(), and newlang::Obj::toType_().
|
inline |
Definition at line 747 of file types.h.
References Bool.
Referenced by newlang::Obj::is_bool_type(), and isContainsType().
|
inline |
Definition at line 752 of file types.h.
References Arithmetic, and Bool.
Referenced by newlang::Obj::BaseTypeConstructor(), and newlang::Obj::is_arithmetic_type().
|
inline |
Definition at line 759 of file types.h.
References FmtChar, StrChar, and ViewChar.
Referenced by newlang::AstAnalysis::CheckCall(), newlang::AstAnalysis::CheckIndex_(), newlang::Obj::is_string_char_type(), isString(), newlang::Context::SetIndexValue(), and newlang::Obj::toType_().
|
inline |
Definition at line 764 of file types.h.
References FmtWide, StrWide, and ViewWide.
Referenced by newlang::AstAnalysis::CheckCall(), newlang::AstAnalysis::CheckIndex_(), newlang::Obj::is_string_wide_type(), isString(), newlang::Context::SetIndexValue(), and newlang::Obj::toType_().
|
inline |
Definition at line 769 of file types.h.
References isStringChar(), isStringWide(), and String.
Referenced by canCastLimit(), newlang::AstAnalysis::CheckCall(), newlang::Obj::ConstructorSimpleType_(), newlang::Obj::is_string_type(), isContainsType(), isIndexingType(), isPlainDataType(), and newlang::Obj::toType_().
|
inline |
Definition at line 774 of file types.h.
References RetMinus, RetPlus, and RetRepeat.
Referenced by newlang::Context::EvalDoWhile_(), newlang::Context::EvalTryBlock_(), newlang::Context::EvalWhile_(), and newlang::Context::HasReThrow().
|
inline |
Definition at line 779 of file types.h.
References Enum, isString(), isTensor(), Struct, and Union.
Referenced by newlang::Obj::is_plain_type(), and isContainsType().
|
inline |
Definition at line 784 of file types.h.
References Class, and Dictionary.
Referenced by canCastLimit(), newlang::AstAnalysis::CheckCall(), newlang::Obj::ConstructorSimpleType_(), newlang::Obj::is_dictionary_type(), isIndexingType(), and newlang::Obj::toType_().
|
inline |
Definition at line 789 of file types.h.
References Class, and Interface.
Referenced by newlang::Obj::is_class_type(), and newlang::Obj::SetValue_().
|
inline |
Definition at line 794 of file types.h.
References Ellipsis.
Referenced by newlang::Obj::is_ellipsis().
|
inline |
|
inline |
Definition at line 804 of file types.h.
References Type.
Referenced by newlang::AstAnalysis::CheckCall(), newlang::Context::FindObject(), newlang::Obj::is_type_name(), isIndexingType(), newlang::InternalName::isTypeName(), isVariableName(), MakeConstructorName(), NormalizeName(), and newlang::RunTime::SelectPredict().
|
inline |
Definition at line 814 of file types.h.
References isDictionary(), isFunction(), isIndexingType(), isModule(), isString(), isTensor(), and isTypeName().
Referenced by newlang::Context::GetIndexValue(), newlang::Obj::is_indexing(), and isIndexingType().
|
inline |
Definition at line 819 of file types.h.
Referenced by newlang::Obj::CloneDataTo(), and newlang::Obj::ClonePropTo().
ObjType newlang::typeFromLimit | ( | int64_t | value, |
ObjType | type_default = ObjType::Int64 ) |
Definition at line 3788 of file object.cpp.
References ASSERT, Bool, Int16, Int32, Int64, and Int8.
Referenced by newlang::Obj::CreateValue(), newlang::Context::EvalTerm(), newlang::Obj::getTypeAsLimit(), newlang::Obj::op_div_ceil_(), newlang::Obj::operator*=(), newlang::Obj::operator+=(), newlang::Obj::operator-=(), newlang::Obj::operator/=(), newlang::Term::SetType(), and newlang::Obj::SetValue_().
ObjType newlang::typeFromLimit | ( | double | value, |
ObjType | type_default = ObjType::Float64 ) |
Definition at line 3781 of file object.cpp.
Definition at line 933 of file types.h.
References Any, isDictionary(), isFloatingType(), isFunction(), isSimpleType(), isString(), None, and Rational.
Referenced by canCast(), and newlang::Term::SetType().
Definition at line 967 of file types.h.
References canCastLimit().
Referenced by newlang::AstAnalysis::CalcSummaryType(), canCast(), canCast(), canCast(), newlang::AstAnalysis::CheckCall(), newlang::AstAnalysis::CheckCallArg(), newlang::AstAnalysis::CheckIndex_(), newlang::AstAnalysis::CheckOpType(), newlang::AstAnalysis::CheckStrPrintf(), newlang::AstAnalysis::CkeckRange_(), newlang::AstAnalysis::CreateOp_(), newlang::Obj::CreateValue(), newlang::Context::SetIndexValue(), newlang::Obj::SetValue_(), newlang::Obj::testConvertType(), and newlang::Obj::testResultIntegralType().
|
inline |
Definition at line 990 of file types.h.
References canCast(), and GetBaseTypeFromString().
Definition at line 1087 of file parser.cpp.
References canCast(), and GetBaseTypeFromString().
Definition at line 1095 of file parser.cpp.
References canCast(), and GetBaseTypeFromString().
|
inline |
Definition at line 998 of file types.h.
References LOG_RUNTIME, and result.
Referenced by newlang::Macro::CheckMacro(), newlang::Context::EvalTerm(), newlang::AstAnalysis::MakeFormatArgs(), newlang::RunTime::ParseArgs(), and newlang::Term::SetType().
|
inline |
Definition at line 1012 of file types.h.
References LOG_RUNTIME, and result.
Referenced by newlang::Context::EvalTerm(), newlang::AstAnalysis::MakeFormatArgs(), and newlang::Term::SetType().
|
inline |
Definition at line 1026 of file types.h.
References LOG_RUNTIME.
|
inline |
Definition at line 1036 of file types.h.
Referenced by newlang::AstAnalysis::CheckAssignRef(), newlang::Macro::CheckMacro(), newlang::Context::EvalIterator_(), isInternalName(), newlang::AstAnalysis::LookupName(), and newlang::Term::TestConst().
|
inline |
Definition at line 1049 of file types.h.
References isReservedName().
Referenced by newlang::Context::FindLocalVar(), newlang::InternalName::InternalName(), newlang::InternalName::InternalName(), newlang::InternalName::isInternalName(), newlang::NameLookupStack::LookupName(), NormalizeName(), and newlang::InternalName::operator=().
|
inline |
Definition at line 1053 of file types.h.
Referenced by ExtractModuleName(), and isGlobalScope().
|
inline |
Definition at line 1057 of file types.h.
Referenced by newlang::Parser::CheckModuleTerm(), ExtractModuleName(), ExtractName(), newlang::InternalName::isModule(), isVariableName(), newlang::RunTime::OpLoadModule(), and newlang::RunTime::SelectPredict().
|
inline |
Definition at line 1061 of file types.h.
Referenced by newlang::NameLookupStack::AddName(), newlang::InternalName::isStatic(), newlang::NameLookupStack::MakeInternalName(), and NormalizeName().
|
inline |
|
inline |
Definition at line 1070 of file types.h.
Referenced by newlang::NameLookupStack::LookupName(), newlang::NameLookupStack::MakeInternalName(), and NormalizeName().
|
inline |
Definition at line 1074 of file types.h.
Referenced by newlang::Macro::CheckMacro(), newlang::Macro::CompareMacroName(), newlang::Macro::ExtractArgs(), newlang::Term::isExportName(), newlang::InternalName::isLocal(), NormalizeName(), newlang::RunTime::SelectPredict(), and newlang::Macro::toMacroHashName().
|
inline |
Definition at line 1078 of file types.h.
References ASSERT, and isMangledName().
Referenced by newlang::NameLookupStack::AddName(), newlang::Context::EvalLeftVars_(), newlang::Context::FindObject(), and newlang::InternalName::isGlobalScope().
|
inline |
Definition at line 1083 of file types.h.
Referenced by newlang::InternalName::isModuleScope().
|
inline |
|
inline |
Definition at line 1092 of file types.h.
Referenced by newlang::InternalName::isFullName().
|
inline |
Definition at line 1097 of file types.h.
Referenced by newlang::Macro::CompareMacroName(), newlang::InternalName::isMacroName(), newlang::RunTime::SelectPredict(), and newlang::Macro::toMacroHashName().
|
inline |
Definition at line 1102 of file types.h.
Referenced by newlang::InternalName::isNativeName(), and newlang::RunTime::NativeNameMangling().
|
inline |
Definition at line 1107 of file types.h.
Referenced by newlang::Macro::CompareMacroName(), and newlang::InternalName::isLocalAnyName().
|
inline |
Definition at line 1118 of file types.h.
Referenced by newlang::AstAnalysis::CheckArgs_(), newlang::AstAnalysis::CheckCall(), newlang::AstAnalysis::CheckStrPrintf(), CheckSystemField(), newlang::InternalName::isSystemName(), and newlang::Term::SetArgs().
|
inline |
Definition at line 1126 of file types.h.
Referenced by isHidenName(), and newlang::InternalName::isPrivateName().
|
inline |
Definition at line 1134 of file types.h.
References isPrivateName().
Referenced by newlang::InternalName::isHidenName().
|
inline |
Definition at line 1139 of file types.h.
References isModuleName(), isTypeName(), and LOG_DEBUG.
Referenced by newlang::InternalName::isVariableName().
|
inline |
Definition at line 1148 of file types.h.
Referenced by newlang::InternalName::isConstName(), MangaledFunc(), and newlang::Term::TestConst().
|
inline |
Definition at line 1152 of file types.h.
References ASSERT, isInternalName(), isLocalName(), isStaticName(), isTrivialName(), isTypeName(), and result.
Referenced by newlang::Context::Call(), newlang::Obj::CreateBaseType(), newlang::AstAnalysis::CreateOp_(), newlang::RunTime::GetTypeFromString(), newlang::NameLookupStack::LookupName(), newlang::JIT::MakeCodeModule(), and newlang::RunTime::RegisterBuildinType().
|
inline |
Definition at line 1180 of file types.h.
Referenced by newlang::JIT::ReplaceObjectInEmbedSource().
|
inline |
Definition at line 1188 of file types.h.
References isMangledName(), isModuleName(), and result.
Referenced by CheckSystemField(), newlang::InternalName::ExtractModuleName(), newlang::InternalName::ExtractModuleName(), and newlang::RunTime::OpLoadModule().
|
inline |
Definition at line 1207 of file types.h.
Referenced by newlang::Parser::CheckModuleTerm().
|
inline |
Definition at line 1223 of file types.h.
References isModuleName().
Referenced by CheckSystemField(), and newlang::InternalName::ExtractName().
Definition at line 1418 of file types.h.
References Any, Arithmetic, Class, Complex, Dictionary, Ellipsis, Eval, Function, Integer, Interface, isBooleanType(), isComplexType(), isEval(), isFloatingType(), isFunction(), isGenericType(), isIntegralType(), isPlainDataType(), isString(), isTensor(), None, Number, Object, Other, Plain, Range, Rational, String, and Tensor.
Referenced by newlang::Obj::ConstructorSimpleType_(), newlang::Obj::op_class_test(), and newlang::Obj::toType_().
std::string newlang::utf8_encode | ( | const std::wstring | wstr | ) |
Definition at line 10 of file variable.cpp.
Referenced by newlang::RunTime::GetLastErrorMessage(), newlang::Obj::GetValueAsString(), newlang::Obj::index_get(), newlang::RunTime::SelectPredict(), and newlang::Obj::toString().
std::wstring newlang::utf8_decode | ( | const std::string | str | ) |
Definition at line 22 of file variable.cpp.
Referenced by newlang::Context::EvalTerm(), newlang::Obj::GetValueAsStringWide(), newlang::Obj::op_set_index(), newlang::Variable::operator std::wstring(), newlang::Obj::operator*=(), newlang::RunTime::RunTime(), and newlang::RunTime::SelectPredict().
|
inlineconstexpr |
Definition at line 55 of file variable.h.
References LiteSingle, LiteSingleConst, LiteThread, LiteThreadConst, LOG_RUNTIME, Shared, SharedConst, SyncMono, SyncMonoConst, SyncMulti, SyncMultiConst, and Value.
Referenced by newlang::AstAnalysis::CheckAssignRef(), newlang::AstAnalysis::CheckReference(), and newlang::Sync::CreateSync().
|
inlineconstexpr |
Definition at line 82 of file variable.h.
References LiteSingle, LiteSingleConst, LiteThread, and LiteThreadConst.
|
inlineconstexpr |
Definition at line 86 of file variable.h.
References LiteThread, and LiteThreadConst.
Referenced by newlang::AstAnalysis::CheckAssignRef().
|
inline |
Definition at line 90 of file variable.h.
References SyncMono, SyncMonoConst, SyncMulti, and SyncMultiConst.
|
inlineconstexpr |
Definition at line 94 of file variable.h.
References LiteSingleConst, LiteThreadConst, SyncMonoConst, and SyncMultiConst.
Referenced by newlang::AstAnalysis::CheckAssignRef().
|
inlineconstexpr |
Definition at line 98 of file variable.h.
References LiteSingle, LiteThread, SyncMono, and SyncMulti.
Definition at line 102 of file variable.h.
References LiteSingle, LiteSingleConst, LiteThread, LiteThreadConst, LOG_RUNTIME, Shared, SharedConst, SyncMono, SyncMonoConst, SyncMulti, SyncMultiConst, and Value.
Referenced by newlang::AstAnalysis::CheckReference().
|
inline |
Definition at line 425 of file variable.h.
References DEFINE_CASE, LOG_RUNTIME, and VARIABLE_TYPES.
Referenced by __attribute__(), newlang::VariableOp::__clone__(), newlang::VariableOp::__copy__(), newlang::VariableOp::__eq__(), newlang::Variable::GetValueAsBoolean(), newlang::Variable::GetValueAsInteger(), newlang::Variable::GetValueAsNumber(), newlang::Variable::GetValueAsObject(), newlang::Variable::GetValueAsPointer(), newlang::Variable::GetValueAsRational(), newlang::Variable::GetValueAsString(), newlang::Variable::GetValueAsStringWide(), newlang::Variable::Object(), and newlang::Variable::Ref().