Coder Social home page Coder Social logo

zig-docsearch's Introduction

zig-docsearch

NOTE: zig master now has in-progress docs! see ziglang/zig#21

search over zig stdlib doc comments (and generate a simple html file with what's possible)

WIP: using -fdump-analysis

using

zig build install --prefix ~/.local/
# build the state out of the std file in your zig installation
zig-docsearch ./state.bin build /path/to/zig/source/std/std.zig

# search through
zig-docsearch ./state.bin search 'mem'

# make a single html file
zig-docsearch ./state.bin htmlgen index.html

zig-docsearch's People

Contributors

lun-4 avatar

Watchers

 avatar  avatar  avatar

Forkers

masterq32

zig-docsearch's Issues

Syntax error when compiling with latest zig version

I'm new to Zig so I might be wrong, but I think this is due to newer versions changing the var in type declarations to anytype. Here's the error output:

diegovsky@ryzenarch ~/zig-docsearch (master)> zig build install --prefix ~/.local/
./src/state.zig:10:29: error: invalid token: 'var'
fn serializeStr(serializer: var, string: []const u8) !void {

Compile error on Linux x86 64 on master branch

./src/main.zig:52:29: error: container 'std.heap' has no member called 'direct_allocator'
    var allocator = std.heap.direct_allocator;

I'm using the latest zig compiler build, right from the master branch:

diegovsky@ryzenarch ~/zig-docsearch ((ce87ef9eā€¦)) [1]> zig version
0.8.0-dev.1562+9f01598a4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.