I hereby claim:
- I am zhujinxuan on github.
- I am jinxuanzhu (https://keybase.io/jinxuanzhu) on keybase.
- I have a public key ASBdALdgDc4qwKAdrYnbmhsRsbxCvm0Ek2uw1CpK8nQJyQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/* tslint:disable:ban-types */ | |
const BOUND = Symbol('BOUND_FUNCTION') | |
const UNDEFINED = Symbol('UNDEFINED') | |
const NULL = Symbol('NULL') | |
const WM_STORE = Symbol('WM_STORE') | |
const RESULT = Symbol('RESULT') | |
interface IST { | |
[WM_STORE]?: WeakMap<any, IST>; | |
[RESULT]?: any; |
enum LR { isInL, isInR } | |
class InL<L> { | |
public readonly cc: LR = LR.isInL | |
public readonly value : L; | |
constructor(x : L) { | |
this.value = x; | |
} | |
} |
import mergeStyle from "./mergeStyle/index.js"; | |
/** | |
* A default parseHTML by Slate | |
* | |
* @param {String} html | |
* @return {Object} | |
*/ | |
function slateDOMParser(html) { | |
if (typeof DOMParser === "undefined") { | |
throw new Error( |
"use strict"; | |
function evaluate(expression) { | |
let neatExpr = expr2Array(expression); | |
let rightInd = evaluateNeat(neatExpr, 1); | |
return rightInd === neatExpr.length - 1; | |
} | |
function expr2Array(expression) { | |
let newExpr = expression.replace(/\(/g, " ( ").replace(/\)/g, " ) "); | |
let neatExpr = newExpr.split(" ").filter(xstr => xstr !== ""); |