-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transpiler WIP #23
Open
sbcgua
wants to merge
17
commits into
master
Choose a base branch
from
transpiler
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+164
−45
Open
Transpiler WIP #23
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
fd59d9e
initial config
sbcgua 989ebe6
add actions
sbcgua ac1370d
fix transpiler
sbcgua e831b36
adjust dir
sbcgua d26b2a7
adjust ci
sbcgua 9e02ba8
update
sbcgua e8a3e53
dep domain and dtel
sbcgua 515e522
update again
sbcgua 96c7803
more ci
sbcgua b387005
update
sbcgua 84eef06
pkg update and sy-sybrc fixes
sbcgua e7a9267
next
sbcgua 97b9d0e
skips
sbcgua 4fcc3b5
npm updates
sbcgua 280a380
excludes
sbcgua e938802
update packages
sbcgua f2d1220
update pkg
sbcgua File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: testing | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
unit_test: | ||
name: Run unit tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '20' | ||
- uses: actions/checkout@v3 | ||
- name: Prepare env | ||
run: | | ||
rm -Rf transpiled | ||
rm package*.json | ||
npm -g install @abaplint/transpiler-cli | ||
npm install @abaplint/runtime | ||
- name: Build unit tests | ||
run: | | ||
echo "Building ..." | ||
abap_transpile abap_transpile.json | ||
- name: Run unit tests | ||
run: | | ||
echo "Running unit tests ..." | ||
node transpiled/index.mjs |
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 |
---|---|---|
|
@@ -8,3 +8,5 @@ | |
abaplint-deps | ||
transpiled | ||
node_modules | ||
# package.json | ||
# package-lock.json |
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,30 @@ | ||
{ | ||
"input_folder": "{src,deps}", | ||
"input_filter": [ | ||
"deps/", | ||
"src/zcl*", | ||
"src/zif*", | ||
"src/zcx*" | ||
], | ||
"output_folder": "transpiled", | ||
"libs": [ | ||
{ | ||
"url": "https://github.com/open-abap/open-abap-core" | ||
} | ||
], | ||
"write_unit_tests": true, | ||
"write_source_map": true, | ||
"options": { | ||
"ignoreSyntaxCheck": false, | ||
"addFilenames": true, | ||
"addCommonJS": true, | ||
"unknownTypes": "runtimeError", | ||
"keywords": ["return", "in", "class"], | ||
"skip": [ | ||
{ "object": "ZCL_TEXT2TAB_SERIALIZER", "class": "ltcl_text2tab_serializer_test", "method": "serialize_field_cunit", "note": "CUNIT issue" }, | ||
{ "object": "ZCL_TEXT2TAB_PARSER", "class": "ltcl_text2tab_parser_test", "method": "parse_field_special", "note": "CUNIT issue" }, | ||
{ "object": "ZCL_TEXT2TAB_PARSER", "class": "ltcl_text2tab_parser_test", "method": "parse_df16", "note": "TypeError: abap.types.typeTodoDecFloat16Type is not a constructor" }, | ||
{ "object": "ZCL_TEXT2TAB_PARSER", "class": "ltcl_text2tab_parser_test", "method": "parse_ignore_convexit", "note": "CUNIT issue" } | ||
] | ||
} | ||
} |
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,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_DOMA" serializer_version="v1.0.0"> | ||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"> | ||
<asx:values> | ||
<DD01V> | ||
<DOMNAME>VERI_ALPHA</DOMNAME> | ||
<DDLANGUAGE>E</DDLANGUAGE> | ||
<DATATYPE>CHAR</DATATYPE> | ||
<LENG>000010</LENG> | ||
<OUTPUTLEN>000010</OUTPUTLEN> | ||
<CONVEXIT>ALPHA</CONVEXIT> | ||
<DDTEXT>VERI_ALPHA</DDTEXT> | ||
</DD01V> | ||
</asx:values> | ||
</asx:abap> | ||
</abapGit> |
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,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<abapGit version="v1.0.0" serializer="LCL_OBJECT_DTEL" serializer_version="v1.0.0"> | ||
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0"> | ||
<asx:values> | ||
<DD04V> | ||
<ROLLNAME>VERI_ALPHA</ROLLNAME> | ||
<DDLANGUAGE>E</DDLANGUAGE> | ||
<DOMNAME>VERI_ALPHA</DOMNAME> | ||
<SCRLEN1>10</SCRLEN1> | ||
<SCRLEN2>15</SCRLEN2> | ||
<SCRLEN3>20</SCRLEN3> | ||
<DDTEXT>VERI_ALPHA</DDTEXT> | ||
<SCRTEXT_S>ALPHA</SCRTEXT_S> | ||
<SCRTEXT_M>ALPHA</SCRTEXT_M> | ||
<SCRTEXT_L>ALPHA</SCRTEXT_L> | ||
<DTELMASTER>D</DTELMASTER> | ||
<REFKIND>D</REFKIND> | ||
</DD04V> | ||
</asx:values> | ||
</asx:abap> | ||
</abapGit> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a trick: you can set
private: true
so that it cannot accidently be published to npmThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍