This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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 !== ""); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum LR { isInL, isInR } | |
class InL<L> { | |
public readonly cc: LR = LR.isInL | |
public readonly value : L; | |
constructor(x : L) { | |
this.value = x; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; |
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: