A backtick centered extensible templating language inspired by Javascript template litterals.
h1`A title`
This is a paragraph.
| #!/bin/bash | |
| # Colors | |
| end="\033[0m" | |
| black="\033[0;30m" | |
| blackb="\033[1;30m" | |
| white="\033[0;37m" | |
| whiteb="\033[1;37m" | |
| red="\033[0;31m" | |
| redb="\033[1;31m" |
| # Colors | |
| end="\033[0m" | |
| black="\033[0;30m" | |
| blackb="\033[1;30m" | |
| white="\033[0;37m" | |
| whiteb="\033[1;37m" | |
| red="\033[0;31m" | |
| redb="\033[1;31m" | |
| green="\033[0;32m" | |
| greenb="\033[1;32m" |
| #!/bin/bash | |
| if [ "$#" -eq "0" ] ; then | |
| echo "Passa come primo parametro il nome del file in cui mettere la lezione!" | |
| exit 1 | |
| fi | |
| FILE_NAME=$1 | |
| cat "./lezioni/template.tex" > "./lezioni/$FILE_NAME.tex" |
| import pygame | |
| import random | |
| WIDTH = 720 | |
| HEIGHT = 480 | |
| FPS = 30 | |
| WHITE = (255, 255, 255) | |
| BLACK = (0, 0, 0) |
| \documentclass{article} | |
| \usepackage[utf8]{inputenc} | |
| \usepackage[italian]{babel} | |
| \usepackage{libertine} | |
| \usepackage{libertinust1math} | |
| \usepackage[T1]{fontenc} | |
| \usepackage{titlesec} |
This is the actual definition of the custom VM to run web bytecode.
The various options for the VM are:
Nah, let's go for the stack based one that seems decent. So one bytecode can be one of the following operation
| (A number := 12) | |
| (A bit of text := "Here there is some text") | |
| (println (join (A bit of text) " and the number " (A number))) | |
| (Sum of things := ((A number) + 5)) | |
| (i, j := (tuple of 12 and 16)) |