Commit 9ebdd111 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Added parser.

parent e670b5c8
......@@ -37,6 +37,8 @@ dlls/display.drv16
dlls/gdi.exe16
dlls/imm.dll16
dlls/jscript/jsglobal.tlb
dlls/jscript/parser.tab.c
dlls/jscript/parser.tab.h
dlls/kernel32/nls/winerr_deu.mc.rc
dlls/kernel32/nls/winerr_enu.mc.rc
dlls/kernel32/nls/winerr_fra.mc.rc
......
......@@ -9,11 +9,15 @@ RC_SRCS = rsrc.rc
C_SRCS = \
dispex.c \
engine.c \
jscript.c \
jscript_main.c
IDL_TLB_SRCS = jsglobal.idl
BISON_SRCS = \
parser.y
@MAKE_DLL_RULES@
@DEPENDENCIES@ # everything below this line is overwritten by make depend
......@@ -17,6 +17,7 @@
*/
#include "jscript.h"
#include "engine.h"
#include "objsafe.h"
#include "wine/debug.h"
......@@ -394,9 +395,18 @@ static HRESULT WINAPI JScriptParse_ParseScriptText(IActiveScriptParse *iface,
DWORD dwFlags, VARIANT *pvarResult, EXCEPINFO *pexcepinfo)
{
JScript *This = ASPARSE_THIS(iface);
parser_ctx_t *parser_ctx;
HRESULT hres;
FIXME("(%p)->(%s %s %p %s %x %u %x %p %p)\n", This, debugstr_w(pstrCode),
debugstr_w(pstrItemName), punkContext, debugstr_w(pstrDelimiter),
dwSourceContextCookie, ulStartingLine, dwFlags, pvarResult, pexcepinfo);
hres = script_parse(This->ctx, pstrCode, &parser_ctx);
if(FAILED(hres))
return hres;
parser_release(parser_ctx);
return E_NOTIMPL;
}
......
......@@ -28,6 +28,8 @@
#include "dispex.h"
#include "activscp.h"
#include "wine/unicode.h"
typedef struct _script_ctx_t script_ctx_t;
typedef struct DispatchEx {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment