README
Lop Language
Lop is a language interpreter for making websites.
[SYNTAX UPDATE] Multi line items must use '<<' instead of '<' to close them off as of 1.0.1!
here
Read the full documentationInstalling
npm i -g lop-language
Usage
lop [filename].lop
translates the lop file into HTML.
lop [html/markdown/md]
translates a lop file into markdown/HTML.
Want a language added? open an issue on the github!
API Usage
You can parse lop files using the api as of 1.0.4!
var lop = require('lop-language')
var html1 = lop.toHtml('path/to/file.lop')
var html2 = lop.tohTMLCode(`
text>
Hello, World!
<<
`)
var markdown1 = lop.toMarkdown('path/to/file.lop')
var markdown2 = lop.toMarkdownCode(`
text>
Hello, World!
<<
`)
Basic Syntax
Normal object
[tagname]>[value]
Same line object
%[tagname]>[value]
Multi-Line object
%[tagname]>
[values]
<<
Multi-value object
%[tagname]-[value1]>[value2]
A normal object would be something like, let's say.. A header.
h>Hello, World!
A same line object would be an object thats on the same line as the last line, For instance, a link.
link>https://www.google.com
A multi-line object would be an object that can have multiple lines, such as text.
text>
Hello, World!
<<
And a multi-value object would be an object that has multiple values, like code, which has 2 values, language and text.
code-js>
console.log('multiple values.')
<<