npm i -g quiero
Quiero is a markup language deisgned to create question papers and worksheets.
This project is no longer maintained.
- Designed keeping flow in mind.
- Easier than typing and formatting a word document.
- Uses markdown-like tokens.
- Learning is a pice-of-cake.
Freshly prepared web-enviornment for playing around here.
-
Install quiero via npm
npm i -g quiero
-
Parse a
.quio
file usingquiero index.quio
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?"}
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" }
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 }
2 characters will determine the end of a line in quiero.
Either \n
or ;
will tell quiero to end the line.
Assuming the file name to be index.quio
.
Just type in quiero index.quio
to get the output.
Some tests have been created under the tests
directory for you to play around and test them out.
Setup
$ git clone [email protected]:dan-divy/quiero.git
$ cd quiero
$ npm i
(The MIT License)
Copyright (c) 2019 Dan-Divy organisation [email protected]
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.