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

introduce Zig Object Notation and use it for the build manifest file (build.zig.zon) #14523

Merged
merged 2 commits into from
Feb 3, 2023

Commits on Feb 3, 2023

  1. introduce ZON: Zig Object Notation

     * std.zig.parse is moved to std.zig.Ast.parse
     * the new function has an additional parameter that requires passing
       Mode.zig or Mode.zon
     * moved parser.zig code to Parse.zig
     * added parseZon function next to parseRoot function
    andrewrk committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    873bb29 View commit details
    Browse the repository at this point in the history
  2. use build.zig.zon instead of build.zig.ini for the manifest file

     * improve error message when build manifest file is missing
     * update std.zig.Ast to support ZON
     * Compilation.AllErrors.Message: make the notes field a const slice
     * move build manifest parsing logic into src/Manifest.zig and add more
       checks, and make the checks integrate into the standard error
       reporting code so that reported errors look sexy
    
    closes #14290
    andrewrk committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    81c27c7 View commit details
    Browse the repository at this point in the history