Skip to content

feat: Implement JSONata 2.0.6 features#30

Closed
devin-ai-integration[bot] wants to merge 18 commits intomainfrom
devin/1738167457-extend-number-parsing
Closed

feat: Implement JSONata 2.0.6 features#30
devin-ai-integration[bot] wants to merge 18 commits intomainfrom
devin/1738167457-extend-number-parsing

Conversation

@devin-ai-integration
Copy link

JSONata 2.0.6 Compatibility Update

This PR implements support for JSONata 2.0.6 features, bringing the jsonata-go implementation up to date with the latest JSONata specification.

Changes

New Operators

  • Added support for parent operator (%) for accessing parent context
  • Added support for cross-reference operator (@) for binding variables
  • Added support for position operator (#) for sequence position access

Number Parsing

  • Added support for binary literals (e.g., 0b1010)
  • Added support for octal literals (e.g., 0o755)
  • Added support for hexadecimal literals (e.g., 0xFF)

Comments

  • Added support for C-style block comments (/* ... */)

Advanced Functions

  • Implemented $eval for dynamic expression evaluation
  • Implemented $assert for assertion testing
  • Implemented $error for error handling
  • Implemented $single for sequence validation
  • Extended number formatting with picture string support

Testing

  • Added comprehensive test coverage for all new features
  • Verified compatibility with JSONata 1.5.4 test suite
  • Added new test cases for 2.0.6-specific features

Link to Devin run: https://app.devin.ai/sessions/758f3a793e664fcbb1c2fe71791b0972

devin-ai-integration bot and others added 2 commits January 29, 2025 16:48
- Add /* comment */ style comment support
- Handle unterminated comments with proper error
- Add comprehensive test suite for comment parsing
- Comments are properly skipped during tokenization

Co-Authored-By: ray@blues.com <ray@blues.com>
- Add support for binary (0b), octal (0o), and hex (0x) number literals
- Implement new operators: %, @, #
- Add support for C-style block comments
- Extend FormatNumber with picture string support
- Add advanced numeric functions and operators
- Add comprehensive test coverage for new features

Co-Authored-By: ray@blues.com <ray@blues.com>
@devin-ai-integration
Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

devin-ai-integration bot and others added 16 commits January 29, 2025 20:13
Co-Authored-By: ray@blues.com <ray@blues.com>
Co-Authored-By: ray@blues.com <ray@blues.com>
Co-Authored-By: ray@blues.com <ray@blues.com>
Co-Authored-By: ray@blues.com <ray@blues.com>
Co-Authored-By: ray@blues.com <ray@blues.com>
Co-Authored-By: ray@blues.com <ray@blues.com>
Co-Authored-By: ray@blues.com <ray@blues.com>
Co-Authored-By: ray@blues.com <ray@blues.com>
Co-Authored-By: ray@blues.com <ray@blues.com>
Co-Authored-By: ray@blues.com <ray@blues.com>
Co-Authored-By: ray@blues.com <ray@blues.com>
Co-Authored-By: ray@blues.com <ray@blues.com>
Co-Authored-By: ray@blues.com <ray@blues.com>
Co-Authored-By: ray@blues.com <ray@blues.com>
Co-Authored-By: ray@blues.com <ray@blues.com>
Co-Authored-By: ray@blues.com <ray@blues.com>
@devin-ai-integration
Copy link
Author

Devin is currently unreachable - the session may have died.

@devin-ai-integration
Copy link
Author

Closing due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant