mini-program-cljs
Version:
2 lines • 1.11 kB
JavaScript
var window=global;var $CLJS=require("./cljs_env");require("./goog.base.js");require("./cljs.core.js");require("./instaparse.core.js");
$CLJS.lG=new $CLJS.U(null,"link","link",-1769163468);$CLJS.mG=new $CLJS.U(null,"others","others",2084874583);$CLJS.nG=new $CLJS.U(null,"expr","expr",745722291);$CLJS.oG=new $CLJS.U(null,"objs","objs",-1810725634);$CLJS.pG=new $CLJS.U(null,"bref","bref",1235972964);$CLJS.kG=$CLJS.eB("S \x3d AB*\n AB \x3d A B\n A \x3d 'a'+\n B \x3d 'b'+");$CLJS.qG=$CLJS.eB("S \x3d c | link | bref | hash | expr* (* 对象可以是直接的四种对象,加上混合的表达式 *)\n \x3cspace\x3e \x3d \x3c#'[ ]+'\x3e\n others \x3d space* c* space* (* 剩下的字符串,非目标 *)\n expr \x3d others* objs* others* (* 混合的表达式 *)\n objs \x3d link | hash | bref (* 匹配的目标 *)\n \x3cc\x3e \x3d #'(\\w|\\s|[一-龥])+' (* 中英文字符串 *)\n link \x3d \x3c'[['\x3e c \x3c']]'\x3e | \x3c'[[]]'\x3e\n hash \x3d \x3c'#'\x3e c | \x3c'#'\x3e \x3c'[['\x3e c \x3c']]'\x3e\n bref \x3d \x3c'(('\x3e c \x3c'))'\x3e | \x3c'(())'\x3e\n ");