This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//// inspired by https://hannesdorfmann.com/abstraction-text-resource/ | |
// TextResource.kt | |
sealed class TextResource { | |
class Raw(val str: String) : TextResource() | |
class TextId(val id: Int) : TextResource() | |
class TextIdArgString(val id: Int, val arg: String) : TextResource() | |
class TextIdArgInt(val id: Int, val arg: Int) : TextResource() | |
class TextIdArgId(val id: Int, val argRes: Int) : TextResource() | |
class TextList(val texts: List<TextResource>) : TextResource() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; lama-mode.el --- Major mode for Lama -*- coding: utf-8; lexical-binding: t; -*- | |
;; Copyright © 2020 Eugene Tagin | |
;; Author: Eugene Tagin (evjava@yandex.ru) | |
;; Keywords: languages | |
;; Package-Requires: ((emacs "24.3")) | |
;; This program is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by |