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

Use YAML version traits in the scanner #228

Open
wants to merge 35 commits into
base: master
Choose a base branch
from

Commits on Jun 15, 2024

  1. Refactoring of scan_line_break.

    * Performance improvement of `scan_line_break`.
    * Rename `scan_line_break` to `yaml_1_1_scan_line_break`.
    * Add `yaml_1_2_scan_line_break`.
    * Add better comments.
    * Add a TODO comment about possible bugs.
    Paalon committed Jun 15, 2024
    Configuration menu
    Copy the full SHA
    1c9a97d View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. Rewrite forwardchars!(::TokenStream, ::Integer).

    * Bug fix.
    * Change to use `yaml_1_1_` prefix for YAML 1.1's `forwardchars!`.
    * Add `yaml_1_2_forwardchars!` for YAML 1.2's `forwardchars!`.
    * Add some helper functions for `forwardchars!`:
      * `forwardchar_skip!`
      * `forwardchar_nobreak!`
      * `forwardchar_breakline!`
    Paalon committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    e9c5827 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a9d3d1a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a56bdce View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dba3e68 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Configuration menu
    Copy the full SHA
    1595c5b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    76f857b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    787111e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6d7dd03 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. Add objects to represent YAML versions.

    Here we use abstract type & subtyping because it's common traits pattern
    in Julia.
    We do not need to export these objects because we can use strings for
    versions in user-facing functions like:
    
    ```julia
    
    function load(str::AbstractString; version::YAMLVersion)
        # ...
    end
    
    function load(str::AbstractString; version::AbstractString)
        version == "1.1" ? load(str, version=YAMLV1_1()) :
        version == "1.2" ? load(str, version=YAMLV1_2()) :
        throw(ErrorException())
    end
    
    load(str, version="1.1")
    ```
    Paalon committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    73a52ff View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3dbeadf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    689e27a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6738103 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8542039 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3983d9c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d3358b9 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    1f329f2 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    331c5a2 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    78c04b3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    af6dc18 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    be9d213 View commit details
    Browse the repository at this point in the history
  13. Refactoring and sort out functions.

    * Sort out functions.
    * Add `b-char` for YAML 1.2.
    * Add comments to `forwardchars!`.
    Paalon committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    427158f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    a1a293f View commit details
    Browse the repository at this point in the history
  15. Rename get_mark to Mark.

    Paalon committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    d9b45af View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    fe68efb View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    5378896 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a13f9ed View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    36ed962 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    01db7c0 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2024

  1. Configuration menu
    Copy the full SHA
    fa885a0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9a67da0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    beecaec View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a753635 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4204b0e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1db2624 View commit details
    Browse the repository at this point in the history