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

Implement YAML data module #2

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
56b7c0d
Add data.yaml initial implementation
LakshanWeerasinghe Feb 19, 2024
16e8ba4
Impl yaml lexer
LakshanWeerasinghe Feb 22, 2024
cf4eddb
Impl yaml parser
LakshanWeerasinghe Apr 21, 2024
7a49666
Add tests for basic types
LakshanWeerasinghe Apr 22, 2024
5e05d50
Fix issue with apply projection
LakshanWeerasinghe Apr 24, 2024
bef0b7d
[Automated] Update the native jar versions
LakshanWeerasinghe Apr 24, 2024
7ade15b
Add tests for yaml document parsing
LakshanWeerasinghe Apr 29, 2024
c46037c
Implement toYamlString api
LakshanWeerasinghe May 2, 2024
d2d80a9
Handle union type as expected type
LakshanWeerasinghe May 2, 2024
4c6914c
Add JsonTraverse to create values from json
LakshanWeerasinghe May 4, 2024
858a6a6
Add tests for union type as expected type
LakshanWeerasinghe May 4, 2024
92c443a
Support yaml input as byte[] stream
LakshanWeerasinghe May 4, 2024
216068f
Handle runtime errors as BErrors
LakshanWeerasinghe May 5, 2024
fb20398
Add negative tests
LakshanWeerasinghe May 6, 2024
0a30bde
Merge branch 'to-yaml-string' into yaml-data-impl
LakshanWeerasinghe May 7, 2024
30911de
Add options for parsing
LakshanWeerasinghe May 7, 2024
9d9fac6
Add test after disabling projection
LakshanWeerasinghe May 7, 2024
db5d271
Support anchors for maps and sequences
LakshanWeerasinghe May 8, 2024
9ee33b9
Add tests with anchors
LakshanWeerasinghe May 8, 2024
cc72c28
Add tag resolution for json and core schemas
LakshanWeerasinghe May 8, 2024
bde792e
Add tests for tag resolution
LakshanWeerasinghe May 8, 2024
d0cf4cb
Add tests for escaped characters
LakshanWeerasinghe May 8, 2024
bac9a4c
Fix issue with handling directives
LakshanWeerasinghe May 9, 2024
15aa7da
Support intersection types and yaml stream parsing
LakshanWeerasinghe May 13, 2024
816eaa8
Impl union and intersection exp type yaml streams
LakshanWeerasinghe May 13, 2024
2c32d86
Fix issue with handling indents
LakshanWeerasinghe May 14, 2024
2641189
Fix issue handling espcaed white spaces
LakshanWeerasinghe May 14, 2024
e78c360
Add tests for parsing yaml streams
LakshanWeerasinghe May 14, 2024
a3dac22
Add tests for toYamlString
LakshanWeerasinghe May 14, 2024
1e2b0dc
[Automated] Update the native jar versions
LakshanWeerasinghe May 14, 2024
8097874
Add Name annotation
LakshanWeerasinghe May 15, 2024
1ee0272
Impl compiler plugin
LakshanWeerasinghe May 15, 2024
4db611e
Fix validating var declrations
LakshanWeerasinghe May 15, 2024
4b51713
Add compiler plugin tests
LakshanWeerasinghe May 15, 2024
b7d3d60
Fix issue handling union expected types
LakshanWeerasinghe May 15, 2024
813b7e5
Add tests for yaml stream parsing
LakshanWeerasinghe May 15, 2024
abc82d1
Add licence headers
LakshanWeerasinghe May 16, 2024
12fd41d
Refactor code
LakshanWeerasinghe May 16, 2024
cc34639
Merge branch 'yaml-data-impl' into yml-data
LakshanWeerasinghe May 17, 2024
00c3f68
[Automated] Update the native jar versions
LakshanWeerasinghe May 17, 2024
fdceef7
Update .gitattributes file
LakshanWeerasinghe May 20, 2024
db993a7
Add codecov.yml file
LakshanWeerasinghe May 20, 2024
4153e1a
Fix issue handling new line characters
LakshanWeerasinghe May 24, 2024
9f1557d
Add graalvm resource config
LakshanWeerasinghe May 28, 2024
177fbdc
Support parsing yaml stream using a single api
LakshanWeerasinghe May 29, 2024
aae0d27
Support tuple member re-order for yaml streams
LakshanWeerasinghe May 30, 2024
f787d68
Fix handling union types for yaml streams
LakshanWeerasinghe Jun 3, 2024
5ff8ca2
Fix handling union types in tuple mem
LakshanWeerasinghe Jun 4, 2024
18ee860
Add tests for tuple expected type
LakshanWeerasinghe Jun 4, 2024
d573cd6
[Automated] Update the native jar versions
LakshanWeerasinghe Jun 4, 2024
43849a2
Refactor code
LakshanWeerasinghe Jun 4, 2024
f209fc0
Refactor code
LakshanWeerasinghe Jun 4, 2024
9437104
Refactor yaml stream composing
LakshanWeerasinghe Jun 4, 2024
7ee195b
Add Module.md and Package.md files
LakshanWeerasinghe Jun 4, 2024
d62c994
Update READEME.md file
LakshanWeerasinghe Jun 4, 2024
a05ef8e
[Automated] Update the native jar versions
LakshanWeerasinghe Jun 5, 2024
5dc871f
Update ballerina version
LakshanWeerasinghe Jun 5, 2024
499bf19
Add more tests for projection options
LakshanWeerasinghe Jun 6, 2024
7123aac
Remove unreachable functions
LakshanWeerasinghe Jun 6, 2024
15de097
Add compiler plugin tests
LakshanWeerasinghe Jun 7, 2024
5388c3a
Add tests for parsing tag handles
LakshanWeerasinghe Jun 7, 2024
610124a
Remove empty files
LakshanWeerasinghe Jun 10, 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
Prev Previous commit
Next Next commit
Remove unreachable functions
  • Loading branch information
LakshanWeerasinghe committed Jun 6, 2024
commit 7123aacb440ba05fcc40a92d747129ab7ffaf9bb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
public abstract class YamlEvent {

private EventKind kind;
private final EventKind kind;
private String anchor = null;
private String tag = null;

Expand All @@ -41,10 +41,6 @@ public EventKind getKind() {

public abstract YamlEvent clone();

public void setKind(EventKind kind) {
this.kind = kind;
}

public String getAnchor() {
return anchor;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,6 @@ public CharacterReader(Reader reader) {
this.buff = new char[1024];
}

/**
* Peeks next code point.
*
* @return next code point
*/
public int peek() {
return peek(0);
}

/**
* Peeks the k-th indexed code point.
*
Expand Down Expand Up @@ -168,10 +159,6 @@ public int getColumn() {
return column;
}

public int getDataBufferSize() {
return dataBufferSize;
}

public int getRemainingBufferedSize() {
return remainingBufferedSize;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,6 @@ public boolean isIndentationBreak() {
return indentationBreak;
}

public boolean isNewLine() {
return isNewLine;
}

public void setNewLine(boolean newLine) {
isNewLine = newLine;
}
Expand All @@ -280,10 +276,6 @@ public void setJsonKey(boolean jsonKey) {
isJsonKey = jsonKey;
}

public boolean isTrailingComment() {
return trailingComment;
}

public void setTrailingComment(boolean trailingComment) {
this.trailingComment = trailingComment;
}
Expand All @@ -296,10 +288,6 @@ public void setFirstLine(boolean firstLine) {
this.firstLine = firstLine;
}

public boolean isAllowTokensAsPlanar() {
return allowTokensAsPlanar;
}

public void setAllowTokensAsPlanar(boolean allowTokensAsPlanar) {
this.allowTokensAsPlanar = allowTokensAsPlanar;
}
Expand Down
Loading