1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef _XFA_FM_PROGRAM_H
8 #define _XFA_FM_PROGRAM_H
9 class CXFA_FMProgram {
10  public:
11   CXFA_FMProgram();
12   ~CXFA_FMProgram();
13   int32_t Init(const CFX_WideStringC& wsFormcalc);
14   int32_t ParseProgram();
15   int32_t TranslateProgram(CFX_WideTextBuf& wsJavaScript);
GetError()16   CXFA_FMErrorInfo& GetError() { return m_pErrorInfo; }
17 
18  private:
19   CXFA_FMErrorInfo m_pErrorInfo;
20   CXFA_FMParse m_parse;
21   CXFA_FMFunctionDefinition* m_globalFunction;
22 };
23 #endif
24