Giter Club home page Giter Club logo

vgura's Introduction

Continuous Integration Deploy Documentation License: MIT

>>> import gura { raw_parse, raw_encode }
>>> data := raw_parse('text: "Hello World!"') ?
>>> println(data)
{'text': gura.Any('Hello World!')}
>>> raw_encode(data)
text: "Hello World!"

Installation

Via vpm

$ v install gura

Via vpkg

$ vpkg get https://github.com/gura-conf/vgura

Done. Installation completed.

Testing

To test the module, just type the following command:

$ ./bin/test # execute `./bin/test -h` to know more about the test command

License

MIT

Contributors

Made with contributors-img.

vgura's People

Contributors

ulises-jeremias avatar

Stargazers

nonoco avatar  avatar Garoslaw avatar Ingwie Phoenix avatar ThatXliner avatar BARTOS Márk avatar Dave Ostroske avatar Brad Svercl avatar Swastik Baranwal avatar Ned avatar Isaiah avatar yc avatar Abdullah Atta avatar Ken avatar Nicolas Sauzede avatar  avatar  avatar  avatar Steve Phillips avatar  avatar Genaro Camele avatar

Watchers

 avatar Genaro Camele avatar

vgura's Issues

Arrays parsed incorrectly

vgura version: 0.1.8
OS: Ubuntu Linux 20.04 (Focal)

What did you do?
As per the Gura specs, Array section (https://gura.netlify.app/docs/spec#array) I should be able to create a Gura file (example.ura) like this:

version: "0.1.0"

# Much better!
singers: [
    name: "Andrea"
    surname: "Bocelli"
    gender: "Opera",

    name: "Jimi"
    surname: "Hendrix"
    gender: "Rock"
]

And the following code to parse:

fn read_config() ? {
    file_path := os.join_path(@VMODROOT, '', 'example.ura')
    gura_str := os.read_file(file_path) ?

    contents := gura.raw_parse(gura_str) or {
        println(err)
        return
    }
    println(contents)
}

What did you expect to see?
I should see the contents of the parsed file

What did you see instead?
I receive a parsing error:
gura.ParseError: Expected end of string but got s at line 4 position 33

Have I done something incorrect, or is array parsing incomplete? Please let me know if I can help.

Best Regards,
Dean Powell
Edmonton, Canada

Make vgura work with latest V

Make vgura work with latest V. Now V has different types for Result and Option. We need to make the proper changes to support both types

Angular 11 installation

Hi, i tried to install angular 11 on my windows but it fails half way, i don't know what is going on ?

i do want to know how do fix it.

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.