LeMP-repl
is a super simple interactive program that that reads unprocessed EC#, LES v2 or LES v3 code as input and produces processed or unprocessed EC#, LES v2 or LES v3 code as output.
Here's what LeMP-repl
looks like in action:
Easy, right? It's just a simple tool that makes it much easier to look at and reason about EC# syntax trees.
LeMP-repl
is fairly straightforward to build. Just do this following:
$ nuget restore
$ msbuild /p:Configuration=Release
-
LeMP-repl
is mostly just a wrapper around David Piepgrass' amazing Lexical Macro Processor (LeMP) and Enhanced C# (EC#) parser, both of which can be found here. -
LeMP-repl
uses Pixie for option parsing and error logging.
LeMP-repl
tries to fulfill a simple use case, so there aren't a lot of options. Here's a full list, adapted from --help
:
-
--input-language=⟨language⟩, -i⟨language⟩
Selects an input language, which can be either
ecs
,les
,les2
orles3
. By default, the input language isecs
. -
--no-process-macros, -p
Turns off macro processing by LeMP.
-
--output-language=⟨language⟩, -o⟨language⟩
Selects an output language, which can be either
cs
,ecs
,les
,les2
orles3
. By default, the output language isles
.
-
--help, -h, -?
Display a help message and exit.