Browse Source

peg support

Namdak Tonpa 6 years ago
parent
commit
a21c9c8b3c
2 changed files with 3 additions and 1 deletions
  1. 1 1
      include/mad.hrl
  2. 2 0
      src/compile/mad_compile.erl

+ 1 - 1
include/mad.hrl

@@ -1 +1 @@
--define(VERSION,"a14d11").
+-define(VERSION,"05317d").

+ 2 - 0
src/compile/mad_compile.erl

@@ -42,6 +42,7 @@ dep(Cwd, _Conf, ConfigFile, Name) ->
 
 
     AllFiles  = files(SrcDir,".yrl") ++
     AllFiles  = files(SrcDir,".yrl") ++
                 files(SrcDir,".xrl") ++
                 files(SrcDir,".xrl") ++
+                files(SrcDir,".peg") ++
                 files(SrcDir,".erl"),
                 files(SrcDir,".erl"),
 
 
     AppSrcFiles = files(SrcDir,".app.src"),
     AppSrcFiles = files(SrcDir,".app.src"),
@@ -84,6 +85,7 @@ module("erl")      -> mad_erl;
 module("ctt")      -> mad_cubical;
 module("ctt")      -> mad_cubical;
 module("erl.src")  -> mad_utils;
 module("erl.src")  -> mad_utils;
 module("yrl")      -> mad_yecc;
 module("yrl")      -> mad_yecc;
+module("peg")      -> mad_peg;
 module("xrl")      -> mad_leex;
 module("xrl")      -> mad_leex;
 module("app.src")  -> mad_app;
 module("app.src")  -> mad_app;
 module(_)          -> mad_none.
 module(_)          -> mad_none.