Skip to content

Instantly share code, notes, and snippets.

View tajmone's full-sized avatar

Tristano Ajmone tajmone

  • Italy
View GitHub Profile
@tajmone
tajmone / tree-test.a3log
Created January 13, 2019 15:45
Alan 3.0beta6 build 1852 -- Test Apostrophes Elisions
Garden
There is a albero here.
> ; "climb on the tree" (bad Italian):
> arrampicati su albero
You climb the albero!
> ; "climb on the tree" (correct Italian):
@tajmone
tajmone / egrav-bug.a3log
Created November 13, 2018 15:49
Alan `è` Bug
Room
There is a ball and a caffè here.
> ; ==============================================================================
> ; The 'è' Bug in Action
> ; ==============================================================================
> ; The parser seems unable to catch the 'è' (grave accent):
> cosa è ball
@tajmone
tajmone / example-brief.alan
Created October 23, 2018 09:36
Alan VISITS Tests
Syntax q = 'quit'.
Synonyms q = 'quit'.
Verb q
Does
Quit.
End Verb.
Verb brief
Does
@tajmone
tajmone / ChangeLog.txt
Created October 15, 2018 22:11
AsciiDoc 2 PlainText
HIGHLIGHT CHANGELOG
HIGHLIGHT 3.47
13.10.2018
* fixed xterm256 and truecolor whitespace output #2 (
https://gitlab.com/saalen/highlight/issues/90
[https://gitlab.com/saalen/highlight/issues/90])
* fixed LaTeX, TeX, SVG and ODT whitespace output (regression of
@tajmone
tajmone / nested_location.alan
Created August 4, 2018 13:02
Alan 3 Beta 05: Testing Nested Locations as Verb Parameters
--==============================================================================
-- "Test Verb on Enclosing Location" by Tristano Ajmone
--==============================================================================
-- Alan 3.0 Beta5
THE world IsA LOCATION.
-- Outer location enclosing other locations...
VERB touch
DOES "You touch $+1."
END VERB.
@tajmone
tajmone / theme2to3.py
Created June 19, 2018 13:47
Highlight `theme2to3.py` Script Recovered (from Highlight v3.5-1)
# -*- coding: utf-8 -*-
#/usr/bin/python
from __future__ import with_statement # This isn't required in Python 2.6
import sys
def convert(oldFile):
ParamMap = {
'$DEFAULTCOLOUR': 'Default',
@tajmone
tajmone / meta-comands.alan
Created May 28, 2018 13:12
Alan IF 3beta05 Test META VERB
--==============================================================================
-- "METACOMANDI" by Tristano Ajmone
--==============================================================================
-- Questo test dimostra che non vi sono conflitti tra verbi di partita e verbi
-- comandi che richiedono oggetto.
--
-- Per?resta il problema che se il comando ?un META VERB, questo influir?
-- su tutti gli altri:
--
--| If your verb has multiple definitions, e.g. for various classes, applying
@tajmone
tajmone / mod_semver.pbi
Last active April 29, 2018 22:54
PureBasic mod_SemVer
; ··············································································
; ··············································································
; ······················· Semantic Versioning 2.0 Module ·······················
; ··············································································
; ····························· by Tristano Ajmone ·····························
; ··············································································
; ··············································································
; "mod_semver.pbi" | PureBASIC 5.60
@tajmone
tajmone / haskell.lang
Created January 14, 2018 19:28
Highlight Haskell Syntax Fix
--[[ Answering @17dec on Issue #48:
https://github.com/andre-simon/highlight/issues/48
A working fix to his request...
--]]
Description="Haskell"
Keywords={
{ Id=1, -- You could use (or reuse) any Group ID (eg: 3, 4, 7, etc)