1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-27 00:29:00 +02:00

datasets for sketches

This commit is contained in:
Pomax
2020-08-24 23:20:25 -07:00
parent 4f823cf856
commit 22ffc4b6c2
107 changed files with 5474 additions and 23516 deletions

View File

@@ -1,3 +1,24 @@
// TODO: FIXME: finish writing out this functionality
/**
Scope 0:
check for variable declaration/assignment, as well as function
declarations _without_ the `function` keyword
Scope 1+:
check any not-namespaced function calls to see whether they map
to any API functions. If they do, they should be prefixed with
`this.`
check any not-namespaced var references to see whether they map
to any predefined API vars. If they do, they should be prefixed
with `this.`
**/
function splitSymbols(v) {
if (v.match(/\w/)) return v;
return v.split(``);
@@ -20,12 +41,12 @@ class Lexer {
this.parseVariable(token);
}
// ...
// skip over strings so we don't treat them as active content
else if ([`'`, `"`, "`"].includes(token)) {
this.parseString(token);
}
// ...
// figure out if
else if (token === `(`) {
let functor,
i = 2;