diff options
author | Denis Bitouzé <dbitouze@wanadoo.fr> | 2021-02-25 18:23:07 +0000 |
---|---|---|
committer | Denis Bitouzé <dbitouze@wanadoo.fr> | 2021-02-25 18:23:07 +0000 |
commit | c6101f91d071883b48b1b4b51e5eba0f36d9a78d (patch) | |
tree | 1bf7f5a881d7a4f5c5bf59d0b2821943dd822372 /Build/source/utils/asymptote/varinit.h | |
parent | 07ee7222e389b0777456b427a55c22d0e6ffd267 (diff) |
French translation for tlmgr updated
git-svn-id: svn://tug.org/texlive/trunk@57912 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/varinit.h')
-rw-r--r-- | Build/source/utils/asymptote/varinit.h | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/Build/source/utils/asymptote/varinit.h b/Build/source/utils/asymptote/varinit.h deleted file mode 100644 index 55c47665945..00000000000 --- a/Build/source/utils/asymptote/varinit.h +++ /dev/null @@ -1,87 +0,0 @@ -/***** - * varinit.h - * Andy Hammerlindl 2005/07/01 - * - * Variable initializers are syntax that finish code such as - * Int var = ... - * As such, they are translated to yield a certain type, the type of the - * variable. Expressions are a special case that can be translated without an - * associated variable or its type. - *****/ - -#ifndef VARINIT_H -#define VARINIT_H - -#include "types.h" -#include "symbol.h" -#include "absyn.h" - -namespace absyntax { - -using trans::coenv; -using trans::access; -using sym::symbol; -using types::array; - -class varinit : public absyn { -public: - varinit(position pos) - : absyn(pos) {} - - // This determines what instruction are needed to put the associated - // value onto the stack, then adds those instructions to the current - // lambda in e. - // In some expressions and initializers, the target type needs to be - // known in order to translate properly. For most expressions, this is - // kept to a minimum. - // For expression, this also allows an implicit cast, hence the name. - virtual void transToType(coenv &e, types::ty *target) = 0; -}; - -// A default initializer. For example: -// int a; -// is in some sense equivalent to -// int a=0; -// where the definit for Int is a function that returns 0. -class definit : public varinit { -public: - definit(position pos) - : varinit(pos) {} - - void prettyprint(ostream &out, Int indent); - - void transToType(coenv &e, types::ty *target); -}; - -class arrayinit : public varinit { - mem::list<varinit *> inits; - - varinit *rest; -public: - arrayinit(position pos) - : varinit(pos), rest(0) {} - - virtual ~arrayinit() - {} - - void prettyprint(ostream &out, Int indent); - - // Encodes the instructions to make an array from size elements on the stack. - static void transMaker(coenv &e, Int size, bool rest); - - void transToType(coenv &e, types::ty *target); - - void add(varinit *init) { - inits.push_back(init); - } - - void addRest(varinit *init) { - rest=init; - } - - friend class joinExp; -}; - -} // namespace absyntax - -#endif |