Skip to content

Commit

Permalink
add names to missing invlisible chars jcubic#64
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Nov 11, 2020
1 parent 5ec03eb commit 41b6534
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![LIPS - Scheme Based Powerful Lisp Language](https://github.com/jcubic/lips/blob/devel/assets/lips.svg?raw=true)

[![npm](https://img.shields.io/badge/npm-1.0.0%E2%80%93beta.8-blue.svg)](https://www.npmjs.com/package/@jcubic/lips)
[![travis](https://travis-ci.org/jcubic/lips.svg?branch=devel&c6fa2c7817450170edcfc78f17a662943e57efe0)](https://travis-ci.org/jcubic/lips)
[![travis](https://travis-ci.org/jcubic/lips.svg?branch=devel&5ec03ebb4622bef2dcb6107c4e56aecccbbaf916)](https://travis-ci.org/jcubic/lips)
[![Coverage Status](https://coveralls.io/repos/github/jcubic/lips/badge.svg?branch=devel&2c48907438a7265935a7b21e6931008d)](https://coveralls.io/github/jcubic/lips?branch=devel)
[![Join Gitter Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jcubic/lips)
<a href="https://twitter.com/intent/tweet?text=Powerful%20Scheme%20based%20lisp%20language%20written%20in%20JavaScript.%20It%20makes%20life%20easier%20by%20better%20interaction%20with%20JS.%20Use%20full%20power%20of%20JavaScript%2C%20lisp%20and%20npm%20to%20create%20your%20applications%20via%20@jcubic&url=https://github.com/jcubic/lips&hashtags=javascript,opensource,lisp,scheme,language,programming">
Expand Down
43 changes: 38 additions & 5 deletions dist/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* Copyright (c) 2014-present, Facebook, Inc.
* released under MIT license
*
* build: Wed, 11 Nov 2020 11:21:50 +0000
* build: Wed, 11 Nov 2020 11:37:22 +0000
*/
(function () {
'use strict';
Expand Down Expand Up @@ -1290,7 +1290,40 @@
'null': '\x00',
'return': '\r',
'space': ' ',
'tab': '\t'
'tab': '\t',
// new symbols from ASCII table in SRFI-175
'dle': '\x10',
'soh': '\x01',
'dc1': '\x11',
'stx': '\x02',
'dc2': '\x12',
'etx': '\x03',
'dc3': '\x13',
'eot': '\x04',
'dc4': '\x14',
'enq': '\x05',
'nak': '\x15',
'ack': '\x06',
'syn': '\x16',
'bel': '\x07',
'etb': '\x17',
'bs': '\x08',
'can': '\x18',
'ht': '\x09',
'em': '\x19',
'lf': '\x0a',
'sub': '\x1a',
'vt': '\x0b',
'esc': '\x1b',
'ff': '\x0c',
'fs': '\x1c',
'cr': '\x0d',
'gs': '\x1d',
'so': '\x0e',
'rs': '\x1e',
'si': '\x0f',
'us': '\x1f',
'del': '\x7f'
};
var character_symbols = Object.keys(characters).join('|');
var char_sre_re = "#\\\\(?:x[0-9a-f]+|".concat(character_symbols, "|[\\s\\S])");
Expand Down Expand Up @@ -11123,10 +11156,10 @@

var banner = function () {
// Rollup tree-shaking is removing the variable if it's normal string because
// obviously 'Wed, 11 Nov 2020 11:21:50 +0000' == '{{' + 'DATE}}'; can be removed
// obviously 'Wed, 11 Nov 2020 11:37:22 +0000' == '{{' + 'DATE}}'; can be removed
// but disablig Tree-shaking is adding lot of not used code so we use this
// hack instead
var date = LString('Wed, 11 Nov 2020 11:21:50 +0000').valueOf();
var date = LString('Wed, 11 Nov 2020 11:37:22 +0000').valueOf();

var _date = date === '{{' + 'DATE}}' ? new Date() : new Date(date);

Expand Down Expand Up @@ -11163,7 +11196,7 @@
var lips = {
version: 'DEV',
banner: banner,
date: 'Wed, 11 Nov 2020 11:21:50 +0000',
date: 'Wed, 11 Nov 2020 11:37:22 +0000',
exec: exec,
parse: parse,
tokenize: tokenize,
Expand Down
4 changes: 2 additions & 2 deletions dist/lips.min.js

Large diffs are not rendered by default.

35 changes: 34 additions & 1 deletion src/lips.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,40 @@
'null': '\x00',
'return': '\r',
'space': ' ',
'tab': '\t'
'tab': '\t',
// new symbols from ASCII table in SRFI-175
'dle': '\x10',
'soh': '\x01',
'dc1': '\x11',
'stx': '\x02',
'dc2': '\x12',
'etx': '\x03',
'dc3': '\x13',
'eot': '\x04',
'dc4': '\x14',
'enq': '\x05',
'nak': '\x15',
'ack': '\x06',
'syn': '\x16',
'bel': '\x07',
'etb': '\x17',
'bs': '\x08',
'can': '\x18',
'ht': '\x09',
'em': '\x19',
'lf': '\x0a',
'sub': '\x1a',
'vt': '\x0b',
'esc': '\x1b',
'ff': '\x0c',
'fs': '\x1c',
'cr': '\x0d',
'gs': '\x1d',
'so': '\x0e',
'rs': '\x1e',
'si': '\x0f',
'us': '\x1f',
'del': '\x7f'
};
const character_symbols = Object.keys(characters).join('|');
const char_sre_re = `#\\\\(?:x[0-9a-f]+|${character_symbols}|[\\s\\S])`;
Expand Down

0 comments on commit 41b6534

Please sign in to comment.