Sha256: 493a719a9ec49d9d321ee75e8db4c22ef373c3e65943981362ed09c25225c673
Contents?: true
Size: 675 Bytes
Versions: 2
Compression:
Stored size: 675 Bytes
Contents
= Luobo Luobo is a code-generator that can expands macros defined in a source file. Basically you use luobo by extends a Converter: require "luobo" class LuaSpecConverter < Luobo::Converter def regex_comment_header; '^\s*--' end def do_hello token "-- Hello, " + token.line_code + "!" end end You write a lua file (`test.lua`) like: require "some_code" -- HELLO: world You run: LuaSpecConverter.new('test.lua', STDOUT).convert Then you will get those in stdout: require "some_code" -- Hello, world! TODO: - block inside comments - more robust tests - remove bin file
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
luobo-0.0.5 | README.rdoc |
luobo-0.1.0 | README.rdoc |