Skip to content

Commit

Permalink
v0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
shellyln committed Sep 2, 2018
1 parent 5b9866e commit a1c114a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "liyad",
"private": false,
"version": "0.0.6",
"version": "0.0.7",
"description": "Liyad (Lisp yet another DSL interpreter) is very small Lisp interpreter written in JavaScript.",
"keywords": [
"LISP",
Expand Down
14 changes: 14 additions & 0 deletions src/s-exp/operators/jsx/jsx.fn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,20 @@ export const $jsxProps = (state: SxParserState, name: string) => (...args: any[]
}
}
break;
case 'setInnerText':
{
if (x.length === 1) {
r[keyName] = {__text: ''};
} else if (x.length >= 2) {
r[keyName] = {__text: evaluate(state, x[1])};
} else {
r[keyName] = {__text:
evaluate(state, ([{symbol: state.config.reservedNames.list}] as SxToken[])
.concat(x.slice(1)))
};
}
}
break;
default:
{
if (x.length === 1) {
Expand Down

0 comments on commit a1c114a

Please sign in to comment.