Skip to content
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

Bump 1.3.0 version #402

Merged
merged 236 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
236 commits
Select commit Hold shift + click to select a range
d8d9e72
Merge pull request #350 from smeup/vtag1.2.0
mattiabonardi Nov 9, 2023
64ac3d3
bump develop-SNAPSHOT version
lanarimarco Nov 9, 2023
4cfbc4a
Merge pull request #351 from smeup/feature/bump_develop
lanarimarco Nov 9, 2023
346bd4b
fix .module were not signed
lanarimarco Nov 9, 2023
406aa4c
fix: ingore continuation line token in D spec comment
mattiabonardi Nov 15, 2023
6103b21
Merge pull request #352 from smeup/bugfix/sonatype_release_publish
mattiabonardi Nov 15, 2023
05f99e6
Merge pull request #353 from smeup/fix/continuation_line_token_in_dsp…
mattiabonardi Nov 16, 2023
144bb4a
fix: fix move str str, int int
mattiabonardi Nov 16, 2023
043fe4c
feat: add case MOVE string integer
mattiabonardi Nov 17, 2023
500661c
fix: fix code formatting caused by ktlin check
mattiabonardi Nov 17, 2023
8437624
fix: formatting
mattiabonardi Nov 17, 2023
ab0f03b
fix: formatting
mattiabonardi Nov 17, 2023
8e13d87
fix: formatting
mattiabonardi Nov 17, 2023
28af2eb
Merge pull request #354 from smeup/feat/move_str_int
lanarimarco Nov 17, 2023
2464a90
bugfix: fix move with numeric variables
mattiabonardi Nov 20, 2023
a54482e
Little changes in order to make the code more "kotlinian"
lanarimarco Nov 20, 2023
eb83ef7
Merge pull request #355 from smeup/bugfix/fix-move-with-numbers
lanarimarco Nov 20, 2023
27c5563
fix: fix MOVE varying string to string
mattiabonardi Nov 20, 2023
9c1c1cd
feat: add MOVE(P) test cases with varying
mattiabonardi Nov 20, 2023
3f87237
Merge pull request #356 from smeup/bugfix/NW23001440/fix-move-varying
lanarimarco Nov 21, 2023
5088cfd
Added JarikoCallback.onCallPgmError
lanarimarco Nov 20, 2023
eb8202a
Added RpgProgram.intepreterCore property
lanarimarco Nov 21, 2023
a1348a5
Fix: The SourceReference.relativeLine in the ErrorEvent passed to the…
lanarimarco Nov 21, 2023
cda800f
fix: implement and fix MOVEL
mattiabonardi Nov 21, 2023
8eb5ff3
Merge pull request #357 from smeup/feature/NW23000730/add_on_call_err…
mattiabonardi Nov 22, 2023
8969629
fix: move and movel refactoring
mattiabonardi Nov 22, 2023
e27b7ec
fix: restore coerce function
mattiabonardi Nov 22, 2023
c69ca1a
fix: private methods move
mattiabonardi Nov 22, 2023
cd8ce9e
Merge pull request #358 from smeup/bugfix/NW23001440/fix-movel
lanarimarco Nov 22, 2023
1105682
Added test case
lanarimarco Nov 22, 2023
383aba3
Added String.outputOf() test method that overcomes the limitations of…
lanarimarco Nov 22, 2023
bbf24a6
Fix runtime error when the first argument of %EDITC was the result of…
lanarimarco Nov 23, 2023
c83a926
Added test case to fix: Issue executing EvalStmt at line 49. An opera…
lanarimarco Nov 23, 2023
34bbf63
Fixed a regression
lanarimarco Nov 23, 2023
f16bf06
Add doc
lanarimarco Nov 23, 2023
28bfcbb
fix: handle MOVEL(P) with varying variables
mattiabonardi Nov 23, 2023
68c1efe
fix: Issue executing EvalStmt at line 49. An operation is not impleme…
lanarimarco Nov 23, 2023
bbf2ee5
Merge pull request #359 from smeup/bugfix/NW23001440/fix-movelp-varying
lanarimarco Nov 24, 2023
6e8ed1b
fix: runtime error in T15_A90_P01 and T15_A90_P02
lanarimarco Nov 24, 2023
4642ff9
Merge branch 'develop' into bugfix/NW23001440/editc_len_arg
lanarimarco Nov 24, 2023
e86ca4b
Added test case for parsing error in %SCAN with start and len arguments
lanarimarco Nov 24, 2023
5a7b007
fix: move/movel throws exceptions for negative values
mattiabonardi Nov 24, 2023
d979599
Fixed parsing error in T15_A90_P03
lanarimarco Nov 24, 2023
1ffdb27
fix: deprecation annotation in outputOf
lanarimarco Nov 24, 2023
526b3ac
doc: changed deprecation level of outputOf
lanarimarco Nov 24, 2023
96bca3d
doc: restored deprecation level to WARNING because the HIDDEN, hides …
lanarimarco Nov 24, 2023
1df347c
feat: %SCANF now supports even the optional length argument
lanarimarco Nov 24, 2023
b6a1c45
fix: T15_A90_P03
lanarimarco Nov 24, 2023
03935c8
Merge pull request #361 from smeup/bugfix/NW23001440/editc_scan_issues
mattiabonardi Nov 24, 2023
24e2ceb
Added test case for T02_A30
lanarimarco Nov 24, 2023
0863bab
Fix: coerceString returns a wrong value if StringValue.value.length i…
lanarimarco Nov 27, 2023
e83326a
Fix: a not perfect implementation of executeCALCFIB_otherClauseOfSelect
lanarimarco Nov 27, 2023
a25ae60
Test case implementation
lanarimarco Nov 27, 2023
0738c61
Merge pull request #362 from smeup/bugfix/NW23001440/array
mattiabonardi Nov 28, 2023
e70319a
fix: use isNegative() method
mattiabonardi Nov 28, 2023
8c56820
Merge pull request #360 from smeup/bugfix/NW23001440/fix-movel-negati…
lanarimarco Nov 28, 2023
8d90413
Added test case
lanarimarco Nov 28, 2023
39020a4
Fix: EqualityExpr between a literal and UnlimitedStringValue returned…
lanarimarco Nov 28, 2023
87fe1de
Added test to compare ds unlimited with limited string type
lanarimarco Nov 28, 2023
53ae695
Added test to compare uninitialized unlimited field with *BLANKS
lanarimarco Nov 28, 2023
711a595
Added test that resets an unlimited and compares it with *BLANKS
lanarimarco Nov 28, 2023
276fe52
fix: fix move with array + test
mattiabonardi Nov 28, 2023
f3ab420
Merge pull request #363 from smeup/bugfix/NW23001440/unlimited_string
mattiabonardi Nov 28, 2023
d529c99
feat: handle DESCEND keyword for Arrays
mattiabonardi Nov 28, 2023
ea59cf5
fix: ArrayType instead of Type
mattiabonardi Nov 28, 2023
65fc06a
Refactor sortA method in SortAStmt
lanarimarco Nov 28, 2023
88628fe
Merge pull request #365 from smeup/feature/NW23001440/sorta-descend
lanarimarco Nov 28, 2023
b68eefc
Merge pull request #364 from smeup/bugfix/NW23001440/fix-move-with-ar…
lanarimarco Nov 28, 2023
ed94147
Fix: %CHAR(arg) where arg is an instance of StringValue, returns a tr…
lanarimarco Nov 28, 2023
94d8a73
Fix: %CHAR(arg) where arg is an instance of StringValue, returns a tr…
lanarimarco Nov 28, 2023
a6ab2e7
Chore: String.outputOf now returns the displayed messages trimmed
lanarimarco Nov 28, 2023
7d802bf
Chore: trimmed message in order to preserve test cases
lanarimarco Nov 28, 2023
a0eb926
Chore: trimmed displayed message
lanarimarco Nov 28, 2023
19a02c2
Chore: trimmed displayed message
lanarimarco Nov 28, 2023
e620e41
Add trimOutput parameter to outputOfDBPgm function
lanarimarco Nov 28, 2023
4699da6
Removed an unhelpful import
lanarimarco Nov 28, 2023
97f5054
Refactor test methods and add trimEnd
lanarimarco Nov 28, 2023
7be2ab5
Update GitHub Actions workflows
lanarimarco Nov 29, 2023
a58e37a
Merge pull request #367 from smeup/bugfix/char_bif_trailng_spaces
mattiabonardi Nov 29, 2023
cb34da8
Fix: when a real literal is assigned to variable the scale is not pre…
lanarimarco Nov 29, 2023
c46fb52
Fix decimal value in UNLIMIT_BIF test
lanarimarco Nov 29, 2023
3f16840
Merge pull request #368 from smeup/bugfix/chars_missing_trailing_zeros
mattiabonardi Nov 29, 2023
5eefef3
feat: create test and handle initial value
mattiabonardi Dec 5, 2023
ebae07d
fix: handle initialization only there isn't a variable declaration
mattiabonardi Dec 5, 2023
3864ae1
Merge pull request #369 from smeup/feature/NW23001440/handle-params-i…
lanarimarco Dec 5, 2023
2d9592a
feat: add test case
mattiabonardi Dec 5, 2023
d19639a
feat: code refactor and add test case
mattiabonardi Dec 6, 2023
952bb06
fix: fix SORTA for DS OVERLAY
mattiabonardi Dec 6, 2023
a21abe9
feat: use EBCDIComparator
mattiabonardi Dec 7, 2023
237f2fb
fix: use StringBuilder and remove charset
mattiabonardi Dec 7, 2023
a098674
Merge pull request #370 from smeup/feat/NW23001440/sorta-ds-overlay
lanarimarco Dec 7, 2023
d10eb76
Add test case for T10_A20.rpgle program
lanarimarco Dec 7, 2023
d7b55ea
Fix issue. The problem occurred when the number belonged to this rang…
lanarimarco Dec 7, 2023
a2e9286
Resolve some deprecation warning
lanarimarco Dec 7, 2023
c924484
Remove an obsolete comment
lanarimarco Dec 7, 2023
f09b604
Merge pull request #371 from smeup/bugfix/NW23001440/chars_for_zero_d…
mattiabonardi Dec 7, 2023
8c5b440
Merge branch 'develop' into bugfix/NW23001440/handle-return-stmt
mattiabonardi Dec 11, 2023
a45a512
feat: set the RT indicator always on in return statement
mattiabonardi Dec 11, 2023
a4e43d0
Merge pull request #372 from smeup/bugfix/NW23001440/handle-return-stmt
lanarimarco Dec 11, 2023
0afbe0b
feat: add test case
mattiabonardi Dec 12, 2023
f4dd722
feat: handle %ELEM bif for OccurableDataStructValue
mattiabonardi Dec 12, 2023
9413547
fix: removed unused test
mattiabonardi Dec 12, 2023
da9c7a0
feat: replicate error
mattiabonardi Dec 12, 2023
8fbd924
Add RecordFormatType used as a driver for the assignment operations
lanarimarco Dec 12, 2023
043ddb7
Change the FileDefinition.toDataDefinitions() in order to add both th…
lanarimarco Dec 13, 2023
404ea0e
Define blank function for RecordFormatType
lanarimarco Dec 13, 2023
a921886
Implement coerceBlanks for RecordFormatTye and fix the implementation…
lanarimarco Dec 13, 2023
afc5b4c
Improve CLEARRECC test
lanarimarco Dec 13, 2023
3bc085f
feat: add %ELEM in declaration
mattiabonardi Dec 13, 2023
338f932
Merge pull request #374 from smeup/fix/NW23001440/fix-array-like-with…
mattiabonardi Dec 13, 2023
aecfd84
Merge pull request #373 from smeup/feature/NW23001440/elem-bif-occurs
lanarimarco Dec 13, 2023
f6a9c0e
Merge pull request #375 from smeup/bugfix/NW23001440/clear-record-format
mattiabonardi Dec 13, 2023
be715c7
fix: fix CAT statement + test
mattiabonardi Dec 13, 2023
cf4f631
feat: add CAT(P) test case and trim factor 1
mattiabonardi Dec 13, 2023
792d4da
fix: fix code style
mattiabonardi Dec 13, 2023
fcbcdf8
feat: add operation extender
mattiabonardi Dec 15, 2023
293840b
Merge pull request #376 from smeup/fix/NW23001440/fix-cat-statement
lanarimarco Dec 18, 2023
37f9afc
fix: refactor T10_A20 rpgle file to add other step
mattiabonardi Dec 18, 2023
0a05178
feat: handle mvr op code + test case
mattiabonardi Dec 19, 2023
fc4e267
feat: add test case
mattiabonardi Dec 19, 2023
1c3d8d9
feat: first bif implementation
mattiabonardi Dec 19, 2023
8cc70f1
fix: kotlin style
mattiabonardi Dec 19, 2023
c475505
Merge pull request #377 from smeup/bugfix/NW23001440/fix-div-statement
lanarimarco Dec 19, 2023
34367fb
Merge branch 'develop' into feature/NW23001440/bif-subarr
mattiabonardi Dec 19, 2023
056e842
feat: handle eval between arrays
mattiabonardi Dec 20, 2023
82cdea4
feat: and subarr bif as target
mattiabonardi Dec 20, 2023
0c70766
feat: add test case SORTA with %SUBARR
mattiabonardi Dec 21, 2023
83208b0
Merge pull request #379 from smeup/feature/NW23001440/sorta-subarr
mattiabonardi Dec 21, 2023
c60e720
fix: gregorian calendar settings, string representation and clear sta…
mattiabonardi Dec 21, 2023
7c78f60
fix: fix %REPLACE with varying
mattiabonardi Dec 21, 2023
5e6e552
Merge pull request #380 from smeup/bugfix/NW23001440/timestamp-clear
lanarimarco Dec 22, 2023
f168ed4
Merge pull request #381 from smeup/bugfix/NW23001440/replace-bif
lanarimarco Dec 22, 2023
cca8e72
fix: restore data definition but fix compile time array
mattiabonardi Dec 22, 2023
b611749
fix: use data class copy method
mattiabonardi Dec 22, 2023
37ef221
Merge pull request #378 from smeup/feature/NW23001440/bif-subarr
lanarimarco Dec 22, 2023
b0a99f9
fix: use LocalDateTime instead of Date
mattiabonardi Dec 22, 2023
123b049
fix: serialization for LocalDateTime
mattiabonardi Dec 28, 2023
4b9c7e1
feat: handle integer as result of TIME
mattiabonardi Dec 28, 2023
cd5d953
fix: replicate case
mattiabonardi Dec 28, 2023
23c80ab
Merge pull request #382 from smeup/bugfix/NW23001440/timestamp
lanarimarco Jan 2, 2024
82161dc
add XLATE operation code
cosentino-smeup Jan 3, 2024
83d654b
change format
cosentino-smeup Jan 3, 2024
44ee305
add snipped T10_A90 from mulangt90 and related test
cosentino-smeup Jan 3, 2024
64a5e8e
remove comment
cosentino-smeup Jan 3, 2024
58fd4cc
fix: use map instead of foreach
mattiabonardi Jan 3, 2024
c422ec2
fix XLATE in case of literal string in factor 1 parameters (From and To)
cosentino-smeup Jan 3, 2024
2301667
change the return type of the function "toDoubleExpression" from "Pai…
cosentino-smeup Jan 3, 2024
b8e1f8f
Merge branch 'develop' into feature/add-CO-xlate
cosentino-smeup Jan 4, 2024
57e9036
Fix merge
cosentino-smeup Jan 4, 2024
38c4eb1
fix CABNE Operation Code
cosentino-smeup Jan 4, 2024
0963245
Fix a wrong implemented test
lanarimarco Jan 4, 2024
9c7e540
Merge pull request #383 from smeup/feature/add-CO-xlate
lanarimarco Jan 4, 2024
01010ed
First release without tests
foresti-smeup Jan 4, 2024
c639cce
First release without tests
foresti-smeup Jan 4, 2024
80dbda7
Merge pull request #384 from smeup/bugfix/NW23001440/eval-array-array
lanarimarco Jan 4, 2024
6225532
Merge remote-tracking branch 'origin/develop' into feature/cod-open-c…
foresti-smeup Jan 4, 2024
59b0faa
Merge and fix conflicts
lanarimarco Jan 4, 2024
752f4cd
Merge pull request #385 from smeup/bugfix/CABNE-not-working
lanarimarco Jan 4, 2024
d6357bf
Add first test
foresti-smeup Jan 4, 2024
e64f076
Merge remote-tracking branch 'origin/develop' into feature/cod-open-c…
foresti-smeup Jan 4, 2024
38550dd
Merged with develop and add new test
foresti-smeup Jan 4, 2024
316ca2b
Add test for OPEN,CLOSE and %OPEN
foresti-smeup Jan 4, 2024
b1f79a4
fix: when rightElement is smaller than left element
mattiabonardi Jan 5, 2024
32fa841
fix: %char format of the result of DivExpr
mattiabonardi Jan 5, 2024
61bcb54
refactor: isolate code in separated function
mattiabonardi Jan 5, 2024
d245be2
Merge branch 'develop' into bugfix/NW23001440/eval-array-array
mattiabonardi Jan 5, 2024
cf659e8
Merge pull request #386 from smeup/bugfix/NW23001440/eval-array-array
lanarimarco Jan 5, 2024
ca84419
Merge pull request #387 from smeup/bugfix/NW23001440/char-of-div-expr…
lanarimarco Jan 5, 2024
deb77ab
feat: add missing case with integer
mattiabonardi Jan 5, 2024
cbe4236
UsrOpn default implmentation and test patches
foresti-smeup Jan 8, 2024
e6db19c
Add parameter configuration to String.outputOf method
lanarimarco Jan 8, 2024
e3a32ab
Add T40_A10 test
lanarimarco Jan 8, 2024
016828b
Merge pull request #388 from smeup/bugfix/NW23001440/char-of-div-expr…
lanarimarco Jan 8, 2024
1b2f2ef
Patches requested after code revision
foresti-smeup Jan 8, 2024
d37b85b
Patches requested after code revision
foresti-smeup Jan 8, 2024
d014a05
Patches requested after code revision
foresti-smeup Jan 8, 2024
5cbe6a0
Patches requested after code revision
foresti-smeup Jan 8, 2024
de5f016
add the "toAstWithParameters" extension method to include the prefix …
cosentino-smeup Jan 8, 2024
3461b6c
Merge pull request #389 from smeup/feature/cod-open-close
lanarimarco Jan 8, 2024
29f756d
fix: remove unnecessary check
mattiabonardi Jan 9, 2024
590cbf2
Merge pull request #391 from smeup/bugfix/NW23001440/eval-array-perf
lanarimarco Jan 9, 2024
32322e0
fix IF condition in case of AND returning "false" and OR returning "t…
cosentino-smeup Jan 9, 2024
7b65f67
Merge pull request #390 from smeup/bugfix/NW23001440/data_ref_not_res…
lanarimarco Jan 9, 2024
2d9868c
add BIFCHAR.rpgle test
cosentino-smeup Jan 9, 2024
0824c56
rename A02_P12 -> T12_A02
cosentino-smeup Jan 9, 2024
1dd4c36
Merge branch 'develop' into bugfix/NW23001440/different-result-with-i…
cosentino-smeup Jan 9, 2024
c4274ec
add missing @Test
cosentino-smeup Jan 9, 2024
797e48f
remove wrong trims
cosentino-smeup Jan 9, 2024
a59139e
Fixed the reported problem and created the test.
foresti-smeup Jan 9, 2024
dfed629
Merge pull request #392 from smeup/bugfix/NW23001440/different-result…
lanarimarco Jan 10, 2024
650a289
add concatenation tests of %CHAR VARYING variable
cosentino-smeup Jan 10, 2024
cea15f3
Merge branch 'develop' into bugfix/NW23001440/trim-on-char-bif
cosentino-smeup Jan 10, 2024
c75611b
Merge pull request #393 from smeup/bugfix/NW23001440/trim-on-char-bif
lanarimarco Jan 10, 2024
31c65d0
Extended test with %CHAR applied to variables that contains operation…
foresti-smeup Jan 10, 2024
89322ba
Merge remote-tracking branch 'origin/develop' into bugfix/NW23001440/…
foresti-smeup Jan 10, 2024
2aeb48c
Merging with develop
foresti-smeup Jan 10, 2024
c8a068f
Simplified mute test T04_A70.rpgle
foresti-smeup Jan 11, 2024
777dce8
Minimized the T04_A70 test
foresti-smeup Jan 11, 2024
7a4b4f3
Merge pull request #394 from smeup/bugfix/NW23001440/count_n_not_nega…
lanarimarco Jan 12, 2024
ad6a4bf
fix decimal format
cosentino-smeup Jan 12, 2024
9cf2338
Merge branch 'develop' into bugfix/NW23001440/char-of-decimal-wrong-f…
cosentino-smeup Jan 12, 2024
a7c870d
change test on £JaxWT6
cosentino-smeup Jan 12, 2024
9d78530
Merge pull request #395 from smeup/bugfix/NW23001440/char-of-decimal-…
lanarimarco Jan 12, 2024
96d1ce3
Fixed delta issue in occur statement
foresti-smeup Jan 12, 2024
5155d87
Merge pull request #396 from smeup/bugfix/NW23001440/delta_in_occur_s…
lanarimarco Jan 12, 2024
0ac925f
Remove deprecation decorator and fix some typos
lanarimarco Jan 12, 2024
2922fd9
Add test
lanarimarco Jan 12, 2024
523b78a
Refactor test
lanarimarco Jan 12, 2024
51f1b3c
Add ResetStmt implementation
lanarimarco Jan 15, 2024
68bea5d
Fix some warnings
lanarimarco Jan 15, 2024
a13437a
Add defaultValue handling in interpreter initialization
lanarimarco Jan 15, 2024
f7f87f7
Fix ktlin format
lanarimarco Jan 15, 2024
5b65ad2
Fix serializazion
lanarimarco Jan 15, 2024
9296e4d
Made defaultValue transient
lanarimarco Jan 15, 2024
d8ded06
Fix procedure test failures caused by the missing implementation of Z…
lanarimarco Jan 15, 2024
44ff72e
Fix potential issue in compiled pgms that use open and close opcode
lanarimarco Jan 15, 2024
af380d2
Add T40_A10_P03D test
lanarimarco Jan 15, 2024
b90d9dd
Fix T40_A10_P03D test
lanarimarco Jan 15, 2024
2ac185c
Made blocking all cases of RESET usage if not provided by the current…
lanarimarco Jan 15, 2024
258227e
Refactor RESET01 test
lanarimarco Jan 15, 2024
37164a6
fix stringLiteral in case of multiple quote marks
cosentino-smeup Jan 15, 2024
89d892d
Change compileAllMutes function in order to handle F specs too
lanarimarco Jan 16, 2024
a055ec1
Add SmeupInterpreterTestCompiled
lanarimarco Jan 16, 2024
3548ecd
Added error indicator management on program call
foresti-smeup Jan 16, 2024
719446a
Merge pull request #397 from smeup/feature/NW23001440/add_reset
mattiabonardi Jan 16, 2024
a794bf7
Merge remote-tracking branch 'origin/develop' into bugfix/NW23001440/…
foresti-smeup Jan 16, 2024
5834361
change array elements number from its DIM if there is the LIKE keyword
cosentino-smeup Jan 17, 2024
4ee7818
Merge branch 'develop' into bugfix/NW23001440/like_with_arrays
cosentino-smeup Jan 17, 2024
97e83b3
Merge branch 'develop' into bugfix/NW23001440/single-quotation-mark
cosentino-smeup Jan 17, 2024
85034b3
Merge pull request #398 from smeup/bugfix/NW23001440/single-quotation…
lanarimarco Jan 17, 2024
9b2a4bf
Merge remote-tracking branch 'origin/develop' into bugfix/NW23001440/…
foresti-smeup Jan 17, 2024
bd61bad
Merge branch 'develop' into bugfix/NW23001440/like_with_arrays
cosentino-smeup Jan 17, 2024
b7746d9
add executeT02_A50_P03
cosentino-smeup Jan 17, 2024
87fa2b7
Merge pull request #399 from smeup/bugfix/NW23001440/call_not_existen…
lanarimarco Jan 18, 2024
27b64d6
Merge pull request #400 from smeup/bugfix/NW23001440/like_with_arrays
lanarimarco Jan 18, 2024
4e8030f
Bump reloadVersion and jarikoVersion
lanarimarco Jan 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CIBuild

on: [push]
on:
push:
workflow_dispatch:

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-smeup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Deploy to internal smeup nexus
on:
push:
branches: ['master', 'develop']
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Deploy to maven central
on:
push:
branches: [master, develop]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
Expand Down
24 changes: 0 additions & 24 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,37 +73,13 @@ subprojects {
project.group = jarikoGroupId
project.version = jarikoVersion

// specifying what we want to sign
signing {
if (!project.hasProperty("signing.keyId")) {
println "$project.name - Signing disabled because signing.keyId property is not present, it is not an error!!!"
}
required { project.hasProperty("signing.keyId") }
sign configurations.archives
}

publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
}
}
}

model {
tasks.generatePomFileForMavenJavaPublication {
destination = file("$buildDir/generated-pom.xml")
}
tasks.publishMavenJavaPublicationToSonatypeRepository{
dependsOn project.tasks.signArchives
}
tasks.publishMavenJavaPublicationToSmeupRepository{
dependsOn project.tasks.signArchives
}
tasks.publishMavenJavaPublicationToMavenLocal{
dependsOn project.tasks.signArchives
}
}
}

nexusPublishing {
Expand Down
33 changes: 8 additions & 25 deletions examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,35 +47,18 @@ publishing {
groupId jarikoGroupId
artifactId 'examples'
version jarikoVersion
//version 'develop-SNAPSHOT'

// create the sign pom artifact
pom.withXml {
def pomFile = file("${project.buildDir}/generated-pom.xml")
writeTo(pomFile)
def pomAscFile = signing.sign(pomFile).signatureFiles[0]
artifact(pomAscFile) {
classifier = null
extension = 'pom.asc'
}
}

// create the signed artifacts
project.tasks.signArchives.signatureFiles.each {
artifact(it) {
def matcher = it.file =~ /-(sources|javadoc)\.jar\.asc$/
if (matcher.find()) {
classifier = matcher.group(1)
} else {
classifier = null
}
extension = 'jar.asc'
}
}
}
}
}

signing {
if (!project.hasProperty("signing.keyId")) {
println "$project.name - Signing disabled because signing.keyId property is not present, it is not an error!!!"
}
required { project.hasProperty("signing.keyId") }
sign publishing.publications.mavenJava
}

java {
withJavadocJar()
withSourcesJar()
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ serializationVersion=1.5.0
jvmVersion=11
reloadVersion=v1.3.2
jarikoGroupId=io.github.smeup.jariko
jarikoVersion=v1.2.0
jarikoVersion=v1.3.0
32 changes: 8 additions & 24 deletions kolasu/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,34 +90,18 @@ publishing {
groupId jarikoGroupId
artifactId 'kolasu'
version jarikoVersion

// create the sign pom artifact
pom.withXml {
def pomFile = file("${project.buildDir}/generated-pom.xml")
writeTo(pomFile)
def pomAscFile = signing.sign(pomFile).signatureFiles[0]
artifact(pomAscFile) {
classifier = null
extension = 'pom.asc'
}
}

// create the signed artifacts
project.tasks.signArchives.signatureFiles.each {
artifact(it) {
def matcher = it.file =~ /-(sources|javadoc)\.jar\.asc$/
if (matcher.find()) {
classifier = matcher.group(1)
} else {
classifier = null
}
extension = 'jar.asc'
}
}
}
}
}

signing {
if (!project.hasProperty("signing.keyId")) {
println "$project.name - Signing disabled because signing.keyId property is not present, it is not an error!!!"
}
required { project.hasProperty("signing.keyId") }
sign publishing.publications.mavenJava
}

java {
withJavadocJar()
withSourcesJar()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ fun Node.find(predicate: (Node) -> Boolean): Node? {
return null
}

/**
* Navigate the abstract syntax tree and execute the operation on all the nodes of the given type.
* */
fun <T : Node> Node.specificProcess(klass: Class<T>, operation: (T) -> Unit) {
process { if (klass.isInstance(it)) {
operation(it as T) }
Expand Down
32 changes: 8 additions & 24 deletions rpgJavaInterpreter-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -410,34 +410,18 @@ publishing {
groupId jarikoGroupId
artifactId 'rpgJavaInterpreter-core'
version jarikoVersion

// create the sign pom artifact
pom.withXml {
def pomFile = file("${project.buildDir}/generated-pom.xml")
writeTo(pomFile)
def pomAscFile = signing.sign(pomFile).signatureFiles[0]
artifact(pomAscFile) {
classifier = null
extension = 'pom.asc'
}
}

// create the signed artifacts
project.tasks.signArchives.signatureFiles.each {
artifact(it) {
def matcher = it.file =~ /-(sources|javadoc)\.jar\.asc$/
if (matcher.find()) {
classifier = matcher.group(1)
} else {
classifier = null
}
extension = 'jar.asc'
}
}
}
}
}

signing {
if (!project.hasProperty("signing.keyId")) {
println "$project.name - Signing disabled because signing.keyId property is not present, it is not an error!!!"
}
required { project.hasProperty("signing.keyId") }
sign publishing.publications.mavenJava
}

java {
withJavadocJar()
withSourcesJar()
Expand Down
2 changes: 1 addition & 1 deletion rpgJavaInterpreter-core/src/main/antlr/RpgLexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ mode FIXED_DefSpec;
BLANK_SPEC :
' '
{getCharPositionInLine()==81}?;
CONTINUATION_NAME : {getCharPositionInLine()<21}? [ ]* NAMECHAR+ CONTINUATION {setText(getText().substring(0,getText().length()-3).trim());} -> pushMode(CONTINUATION_ELIPSIS) ;
CONTINUATION_NAME : {getCharPositionInLine()<21 && getCharPositionInLine()>=81}? [ ]* NAMECHAR+ CONTINUATION {setText(getText().substring(0,getText().length()-3).trim());} -> pushMode(CONTINUATION_ELIPSIS) ;
CONTINUATION : '...' ;
NAME : NAME5 NAME5 NAME5 {getCharPositionInLine()==21}? {setText(getText().trim());};
EXTERNAL_DESCRIPTION: [eE ] {getCharPositionInLine()==22}? ;
Expand Down
3 changes: 2 additions & 1 deletion rpgJavaInterpreter-core/src/main/antlr/RpgParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -2240,7 +2240,7 @@ bif_parmnum: BIF_PARMNUM OPEN_PAREN identifier CLOSE_PAREN;
bif_realloc: BIF_REALLOC OPEN_PAREN ptr=identifier COLON num=expression CLOSE_PAREN;
bif_rem: BIF_REM OPEN_PAREN numerator=expression COLON denominator=expression CLOSE_PAREN;
bif_replace: BIF_REPLACE OPEN_PAREN replacement=expression COLON source=expression (COLON start=expression (COLON length=expression)? )? CLOSE_PAREN;
bif_scan: BIF_SCAN OPEN_PAREN searcharg=expression COLON source=expression (COLON start=expression )? CLOSE_PAREN;
bif_scan: BIF_SCAN OPEN_PAREN searcharg=expression COLON source=expression (COLON start=expression )? (COLON length=expression )? CLOSE_PAREN;
bif_scanrpl: BIF_SCANRPL OPEN_PAREN scanstring=expression COLON replacement=expression COLON source=expression (COLON start=expression (COLON length=expression)? )? CLOSE_PAREN;
bif_seconds: BIF_SECONDS OPEN_PAREN numberexpression=expression CLOSE_PAREN;
bif_shtdn: BIF_SHTDN;
Expand Down Expand Up @@ -2642,6 +2642,7 @@ target:
| container=idOrKeyword FREE_DOT field=idOrKeyword #qualifiedTarget
| base=target OPEN_PAREN index=expression CLOSE_PAREN #indexedTarget
| bif_subst #substTarget
| bif_subarr #subarrTarget
| container=idOrKeyword DOT fieldName=idOrKeyword #qualifiedTarget
| indic=SPLAT_INDICATOR #indicatorTarget
| SPLAT_IN #globalIndicatorTarget
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@

public class EBCDICComparator implements Comparator<String> {

private final String EBCDIC_CODE = "CP037";
private final Charset STANDARD_CHARSET = StandardCharsets.ISO_8859_1;
private int order = 1;

public EBCDICComparator() {
}

public EBCDICComparator(boolean descend) {
if (descend)
order = -1;
Expand All @@ -44,6 +40,7 @@ public int compare(String s1, String s2) {
byte[] b1;
byte[] b2;
try {
String EBCDIC_CODE = "CP037";
b1 = s1.getBytes(EBCDIC_CODE);
b2 = s2.getBytes(EBCDIC_CODE);
} catch (UnsupportedEncodingException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ data class Options(
* @param onEnterFunction It is invoked on function enter after symboltable initialization.
* @param onExitFunction It is invoked on function exit, only if the function does not throw any error
* @param onError It is invoked in case of errors. The default implementation writes error event in stderr
* @param onCallPgmError It is invoked in case of runtime errors accurred inside the program called only if the error indicator
* at column 73-74 is specified. The default implementation does nothing
* @param logInfo If specified, it is invoked to log information messages, for all channel enabled
* @param channelLoggingEnabled If specified, it allows to enable programmatically the channel logging.
* For instance, you can enable all channels by using [consoleVerboseConfiguration] but you can decide, through
Expand Down Expand Up @@ -158,6 +160,7 @@ data class JarikoCallback(
}
} ?: System.err.println(errorEvent)
},
var onCallPgmError: (errorEvent: ErrorEvent) -> Unit = { },
var logInfo: ((channel: String, message: String) -> Unit)? = null,
var channelLoggingEnabled: ((channel: String) -> Boolean)? = null
)
Expand All @@ -180,7 +183,7 @@ data class CallProgramHandler(
data class ErrorEvent(val error: Throwable, val errorEventSource: ErrorEventSource, val absoluteLine: Int?, val sourceReference: SourceReference?) {

/**
Re * The source code line from which the error event has been fired.
* The source code line from which the error event has been fired.
* Could be null
* */
val fragment = absoluteLine?.let { line ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,51 +64,61 @@ class DBFileMap {
* */
data class EnrichedDBFile(private val dbFile: DBFile, private val fileDefinition: FileDefinition, val jarikoMetadata: FileMetadata) : DBFile {

// All files are opened by default when defined in F specs.
var open = true

override var fileMetadata = dbFile.fileMetadata

override var name = dbFile.name

override var logger = dbFile.logger

override fun chain(key: String) = dbFile.chain(key).validate()
override fun chain(key: String) = checkOpened().chain(key).validate()

override fun chain(keys: List<String>) = dbFile.chain(keys).validate()
override fun chain(keys: List<String>) = checkOpened().chain(keys).validate()

override fun delete(record: Record) = dbFile.delete(record).validate()
override fun delete(record: Record) = checkOpened().delete(record).validate()

override fun eof() = dbFile.eof()
override fun eof() = checkOpened().eof()

override fun equal() = dbFile.equal()
override fun equal() = checkOpened().equal()

override fun read() = dbFile.read().validate()
override fun read() = checkOpened().read().validate()

override fun readEqual() = dbFile.readEqual().validate()
override fun readEqual() = checkOpened().readEqual().validate()

override fun readEqual(key: String) = dbFile.readEqual(key).validate()
override fun readEqual(key: String) = checkOpened().readEqual(key).validate()

override fun readEqual(keys: List<String>) = dbFile.readEqual(keys).validate()
override fun readEqual(keys: List<String>) = checkOpened().readEqual(keys).validate()

override fun readPrevious() = dbFile.readPrevious().validate()
override fun readPrevious() = checkOpened().readPrevious().validate()

override fun readPreviousEqual() = dbFile.readPreviousEqual().validate()
override fun readPreviousEqual() = checkOpened().readPreviousEqual().validate()

override fun readPreviousEqual(key: String) = dbFile.readPreviousEqual(key).validate()
override fun readPreviousEqual(key: String) = checkOpened().readPreviousEqual(key).validate()

override fun readPreviousEqual(keys: List<String>) = dbFile.readPreviousEqual(keys).validate()
override fun readPreviousEqual(keys: List<String>) = checkOpened().readPreviousEqual(keys).validate()

override fun setgt(key: String) = dbFile.setgt(key)
override fun setgt(key: String) = checkOpened().setgt(key)

override fun setgt(keys: List<String>) = dbFile.setgt(keys)
override fun setgt(keys: List<String>) = checkOpened().setgt(keys)

override fun setll(key: String) = dbFile.setll(key)
override fun setll(key: String) = checkOpened().setll(key)

override fun setll(keys: List<String>) = dbFile.setll(keys)
override fun setll(keys: List<String>) = checkOpened().setll(keys)

override fun update(record: Record) = dbFile.update(record).validate()
override fun update(record: Record) = checkOpened().update(record).validate()

override fun write(record: Record) = dbFile.write(record).validate()
override fun write(record: Record) = checkOpened().write(record).validate()

fun getDataDefinitionName(dbFieldName: String) = fileDefinition.getDataDefinitionName(dbFieldName)

private fun checkOpened(): DBFile {
require(open) {
"Cannot access to closed file $name"
}
return dbFile
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ interface Evaluator {
fun eval(expression: NotExpr): BooleanValue
fun eval(expression: ScanExpr): Value
fun eval(expression: SubstExpr): Value
fun eval(expression: SubarrExpr): Value
fun eval(expression: LenExpr): Value
fun eval(expression: OffRefExpr): BooleanValue
fun eval(expression: IndicatorExpr): BooleanValue
Expand All @@ -76,4 +77,5 @@ interface Evaluator {
fun eval(expression: AssignmentExpr): Value
fun eval(expression: GlobalIndicatorExpr): Value
fun eval(expression: ParmsExpr): Value
fun eval(expression: OpenExpr): Value
}
Loading
Loading