Skip to content

LangTrans/LISP_Trans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

LISP_Trans

Customize syntax of lisp with LangTrans

source.yaml - Syntax Representation(Customized Language)
(Regular Expression for tokens)
target.yaml - Pattern Representation(Orginal Language)
(Template of orginal language with tokens)

Example

Customized Syntax

func printhis(s):
	format(t,s)
printhis("Customized!")

Original Syntax

(defun printhis (s)
	(format t s)
)
(printhis "Customized!")

Usages

py langtrans.py <source file> <target file> source target