Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

dan-divy/quiero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm i -g quiero

Quiero is a markup language deisgned to create question papers and worksheets.

Depreciation notice

This project is no longer maintained.

Motivation and Features

  • Designed keeping flow in mind.
  • Easier than typing and formatting a word document.
  • Uses markdown-like tokens.
  • Learning is a pice-of-cake.

Playground

Freshly prepared web-enviornment for playing around here.

Installation

  • Install quiero via npm

    npm i -g quiero

  • Parse a .quio file using

    quiero index.quio

Usage

Questions

Defining questions is very easy.

token : @

example:

@ Who is the current Prime Minister of India?

result :

 {type:"Question", value:"Who is the current Prime Minister of India?"}

Options

Define numbered-options using the # token.

token : #{number} example:

#1 Narendra Modi
#2 Donald Trump
#3 Imran Khan

result:

{ type:"Answer", index:1, value:"Narendra Modi" }
{ type:"Answer", index:2, value:"Donald Trump" }
{ type:"Answer", index:3, value:"Imran Khan" }

Variables

Assign one-char variables simply using the : operator.

token: {variable} : {value}

example:

x : 2
y : 3

result:

{ type:"Variable", name:"x", value:2 }
{ type:"Variable", name:"y", value:3 }

End of line characters

2 characters will determine the end of a line in quiero.

Either \n or ; will tell quiero to end the line.

Parsing a file

Assuming the file name to be index.quio.

Just type in quiero index.quio to get the output.

Tests

Some tests have been created under the tests directory for you to play around and test them out.

Contributing

Setup

$ git clone git@github.com:dan-divy/quiero.git
$ cd quiero 
$ npm i

Maintainers

License

(The MIT License)

Copyright (c) 2019 Dan-Divy organisation dan@dancodes.online

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Quiero is an open sourced language for teachers and mentors to create worksheets and question papers with zero efforts! 😄

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published