1 | /** @file
|
---|
2 | *
|
---|
3 | * VBox HDD container test utility - scripting engine, interpreter.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2013 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 | #define LOGGROUP LOGGROUP_DEFAULT
|
---|
18 | #include <iprt/list.h>
|
---|
19 | #include <iprt/mem.h>
|
---|
20 | #include <iprt/assert.h>
|
---|
21 |
|
---|
22 | #include <VBox/log.h>
|
---|
23 |
|
---|
24 | #include "VDScriptAst.h"
|
---|
25 | #include "VDScriptInternal.h"
|
---|
26 |
|
---|
27 | /**
|
---|
28 | * Interpreter context
|
---|
29 | */
|
---|
30 | typedef struct VDSCRIPTINTERPCTX
|
---|
31 | {
|
---|
32 | /** List of currently accessible variables and their value. */
|
---|
33 |
|
---|
34 | } VDSCRIPTINTERPCTX;
|
---|
35 | /** Pointer to an interpreter context. */
|
---|
36 | typedef VDSCRIPTINTERPCTX *PVDSCRIPTINTERPCTX;
|
---|
37 |
|
---|
38 | /**
|
---|
39 | * Record an error while interpreting.
|
---|
40 | *
|
---|
41 | * @returns VBox status code passed.
|
---|
42 | */
|
---|
43 | static int vdScriptInterpreterError(PVDSCRIPTCTXINT pThis, int rc, RT_SRC_POS_DECL, const char *pszFmt, ...)
|
---|
44 | {
|
---|
45 | return rc;
|
---|
46 | }
|
---|
47 |
|
---|
48 | DECLHIDDEN(int) vdScriptCtxInterprete(PVDSCRIPTCTXINT pThis, PVDSCRIPTASTFN pAstFn,
|
---|
49 | PVDSCRIPTARG paArgs, unsigned cArgs,
|
---|
50 | PVDSCRIPTARG pRet)
|
---|
51 | {
|
---|
52 | return VERR_NOT_IMPLEMENTED;
|
---|
53 | }
|
---|