-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#969: Use new CTPG parser in java vm
- Loading branch information
Showing
19 changed files
with
411 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
exaudfclient/base/javacontainer/script_options/keywords.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#include "base/javacontainer/script_options/keywords.h" | ||
#include <string_view> | ||
|
||
namespace SWIGVMContainers { | ||
|
||
namespace JavaScriptOptions { | ||
|
||
Keywords::Keywords(bool withScriptOptionsPrefix) | ||
: m_jarKeyword() | ||
, m_scriptClassKeyword() | ||
, m_importKeyword() | ||
, m_jvmKeyword() { | ||
const std::string_view jar{"%jar"}; | ||
const std::string_view scriptClass{"%scriptclass"}; | ||
const std::string_view import{"%import"}; | ||
const std::string_view jvm{"%jvmoption"}; | ||
if (withScriptOptionsPrefix) { | ||
m_jarKeyword = jar; | ||
m_scriptClassKeyword = scriptClass; | ||
m_importKeyword = import; | ||
m_jvmKeyword = jvm; | ||
} else { | ||
m_jarKeyword.assign(jar.substr(1)); | ||
m_scriptClassKeyword.assign(scriptClass.substr(1)); | ||
m_importKeyword.assign(import.substr(1)); | ||
m_jvmKeyword.assign(jvm.substr(1)); | ||
} | ||
} | ||
|
||
} //namespace JavaScriptOptions | ||
|
||
} //namespace SWIGVMContainers | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
138 changes: 138 additions & 0 deletions
138
exaudfclient/base/javacontainer/script_options/parser_ctpg.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
exaudfclient/base/javacontainer/script_options/parser_ctpg.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.