]>
git.saurik.com Git - cycript.git/log
Jay Freeman (saurik) [Sat, 19 Dec 2015 09:43:37 +0000 (01:43 -0800)]
Try to use std::streambuf instead of std::istream.
Jay Freeman (saurik) [Sat, 19 Dec 2015 09:20:33 +0000 (01:20 -0800)]
Move uses of super/return stack next to Lex rules.
Jay Freeman (saurik) [Sat, 19 Dec 2015 08:55:12 +0000 (00:55 -0800)]
Correct even more bugs in no line terminator code.
Jay Freeman (saurik) [Sat, 19 Dec 2015 07:10:34 +0000 (23:10 -0800)]
Add __proto__ as token, only for syntax highlight.
Jay Freeman (saurik) [Sat, 19 Dec 2015 05:57:13 +0000 (21:57 -0800)]
Finally provide totally legit support for structs.
Jay Freeman (saurik) [Sat, 19 Dec 2015 04:21:08 +0000 (20:21 -0800)]
Implement output of Objective-C class field lists.
Jay Freeman (saurik) [Sat, 19 Dec 2015 02:33:15 +0000 (18:33 -0800)]
Move TypedIdentifier assertions to separate rules.
Jay Freeman (saurik) [Sat, 19 Dec 2015 02:23:20 +0000 (18:23 -0800)]
Add typedef-expressions syntax to replace @encode.
Jay Freeman (saurik) [Sat, 19 Dec 2015 01:28:17 +0000 (17:28 -0800)]
We need to disallow newlines after extern/typedef.
Jay Freeman (saurik) [Fri, 18 Dec 2015 14:11:56 +0000 (06:11 -0800)]
Remove Cycript's auto keyword (even I don't care).
Jay Freeman (saurik) [Fri, 18 Dec 2015 14:10:37 +0000 (06:10 -0800)]
The inside of a template span protects us from in.
Jay Freeman (saurik) [Fri, 18 Dec 2015 13:44:32 +0000 (05:44 -0800)]
Parse array binding patterns (I skipped these :/).
Jay Freeman (saurik) [Fri, 18 Dec 2015 12:50:58 +0000 (04:50 -0800)]
Replace \n-tokens with LexNewLine and held tokens.
Jay Freeman (saurik) [Fri, 18 Dec 2015 09:24:39 +0000 (01:24 -0800)]
Fix various bugs with using "of" as an identifier.
Jay Freeman (saurik) [Fri, 18 Dec 2015 05:04:55 +0000 (21:04 -0800)]
Remove LexSetRegExp now that it is no longer used.
Jay Freeman (saurik) [Fri, 18 Dec 2015 04:58:30 +0000 (20:58 -0800)]
Rename everything now that we are on Bison >= 2.5.
Jay Freeman (saurik) [Fri, 18 Dec 2015 02:18:59 +0000 (18:18 -0800)]
Use Lex rules to force "let of" to parse as CYLet.
Jay Freeman (saurik) [Thu, 17 Dec 2015 11:01:22 +0000 (03:01 -0800)]
Move all "regular" LexPushInOff/LexPopIn to lexer.
Jay Freeman (saurik) [Thu, 17 Dec 2015 10:06:15 +0000 (02:06 -0800)]
Use syntax-directed lexing to remove LexSetRegExp.
Jay Freeman (saurik) [Thu, 17 Dec 2015 08:22:30 +0000 (00:22 -0800)]
Use macros to simplify semantic actions for lexer.
Jay Freeman (saurik) [Thu, 17 Dec 2015 08:17:40 +0000 (00:17 -0800)]
Use Lex rules to guide let [/{ parse in for loops.
Jay Freeman (saurik) [Wed, 16 Dec 2015 15:21:08 +0000 (07:21 -0800)]
Avoid token precedence as Ruby blocks requirement.
Jay Freeman (saurik) [Wed, 16 Dec 2015 14:39:31 +0000 (06:39 -0800)]
Move lexer hacks for ++ and -- to LexCrement rule.
Jay Freeman (saurik) [Wed, 16 Dec 2015 14:31:55 +0000 (06:31 -0800)]
Remove precedence information of ++ and -- tokens.
Jay Freeman (saurik) [Wed, 16 Dec 2015 13:41:41 +0000 (05:41 -0800)]
Move return lexer hack to grammar semantic action.
Jay Freeman (saurik) [Wed, 16 Dec 2015 13:35:27 +0000 (05:35 -0800)]
Move lexer hacks for \n=> and \n{ into Lex* rules.
Jay Freeman (saurik) [Wed, 16 Dec 2015 12:31:34 +0000 (04:31 -0800)]
Move non-RegEx lexer hacks from Scanner to Parser.
Jay Freeman (saurik) [Wed, 16 Dec 2015 12:08:19 +0000 (04:08 -0800)]
Verify lexer tokens are always default reductions.
Jay Freeman (saurik) [Wed, 16 Dec 2015 00:38:29 +0000 (16:38 -0800)]
Usage of with needs to create a new damaged scope.
Jay Freeman (saurik) [Wed, 16 Dec 2015 00:37:09 +0000 (16:37 -0800)]
Magic identifiers can still be overridden by vars.
Jay Freeman (saurik) [Wed, 16 Dec 2015 00:37:00 +0000 (16:37 -0800)]
The arguments variable needs to be declared Magic.
Jay Freeman (saurik) [Wed, 16 Dec 2015 00:35:03 +0000 (16:35 -0800)]
We aren't allowed to treat Infinity as keyword ;P.
Jay Freeman (saurik) [Wed, 16 Dec 2015 00:34:26 +0000 (16:34 -0800)]
Precedence and RightHand have to represent Output.
Jay Freeman (saurik) [Wed, 16 Dec 2015 00:33:41 +0000 (16:33 -0800)]
"new"."target" did not parse as it wasn't a token.
Jay Freeman (saurik) [Wed, 16 Dec 2015 00:31:36 +0000 (16:31 -0800)]
Remove "!super" hack: "super" is always a keyword.
Jay Freeman (saurik) [Wed, 16 Dec 2015 00:30:54 +0000 (16:30 -0800)]
Commit this @else code, as it seems useful-ish ;P.
Jay Freeman (saurik) [Wed, 16 Dec 2015 00:30:13 +0000 (16:30 -0800)]
Always assign methods (to support JavaScriptCore).
Jay Freeman (saurik) [Wed, 16 Dec 2015 00:26:56 +0000 (16:26 -0800)]
Support Unicode line ends in single-line comments.
Jay Freeman (saurik) [Tue, 15 Dec 2015 22:27:42 +0000 (14:27 -0800)]
Detect dpkg-deb -Z flags and prepare for fakeroot.
Jay Freeman (saurik) [Tue, 15 Dec 2015 15:50:53 +0000 (07:50 -0800)]
Fix parse of yield keywords without an expression.
Jay Freeman (saurik) [Tue, 15 Dec 2015 15:47:23 +0000 (07:47 -0800)]
Avoid using NULL-terminated strings when possible.
Jay Freeman (saurik) [Tue, 15 Dec 2015 15:23:06 +0000 (07:23 -0800)]
Throw SyntaxError, not Error, for Cycript.compile.
Jay Freeman (saurik) [Tue, 15 Dec 2015 10:31:21 +0000 (02:31 -0800)]
Restrict to valid escape sequences in identifiers.
Jay Freeman (saurik) [Sun, 13 Dec 2015 11:48:20 +0000 (03:48 -0800)]
The smarttab code wasn't used at ends of commands.
Jay Freeman (saurik) [Sun, 13 Dec 2015 11:44:17 +0000 (03:44 -0800)]
Fix for-of comprehensions (got broken by scoping).
Jay Freeman (saurik) [Sun, 13 Dec 2015 01:57:37 +0000 (17:57 -0800)]
Allow scanner to backtrack (for UTF-8 whitespace).
Jay Freeman (saurik) [Sat, 12 Dec 2015 23:45:22 +0000 (15:45 -0800)]
Support Infinity (syntax highlighting and output).
Jay Freeman (saurik) [Sat, 12 Dec 2015 14:47:18 +0000 (06:47 -0800)]
Support ECMAScript 1-5 for-in initializers syntax.
Jay Freeman (saurik) [Sat, 12 Dec 2015 14:15:39 +0000 (06:15 -0800)]
Solidify formatting of ->* uses in global Replace.
Jay Freeman (saurik) [Sat, 12 Dec 2015 14:13:05 +0000 (06:13 -0800)]
Extract ForInitializer as a subclass of Statement.
Jay Freeman (saurik) [Sat, 12 Dec 2015 14:07:07 +0000 (06:07 -0800)]
Catch errors during replace and output to console.
Jay Freeman (saurik) [Sat, 12 Dec 2015 13:56:41 +0000 (05:56 -0800)]
Reboot variable renaming for lexical name scoping.
Jay Freeman (saurik) [Fri, 11 Dec 2015 01:13:04 +0000 (17:13 -0800)]
Sort-of improve multi-line editor when in vi mode.
Jay Freeman (saurik) [Thu, 10 Dec 2015 22:20:05 +0000 (14:20 -0800)]
Simplify command return by avoiding extra newline.
Jay Freeman (saurik) [Wed, 9 Dec 2015 21:51:30 +0000 (13:51 -0800)]
Avoid breaking normal down-arrow cursor semantics.
Jay Freeman (saurik) [Wed, 9 Dec 2015 20:51:16 +0000 (12:51 -0800)]
Commit line on return inside single-line commands.
Jay Freeman (saurik) [Wed, 9 Dec 2015 20:50:40 +0000 (12:50 -0800)]
Call rl_newline instead of attempting to simulate.
Jay Freeman (saurik) [Wed, 9 Dec 2015 20:01:37 +0000 (12:01 -0800)]
Allow use of up/down arrows in multi-line command.
Jay Freeman (saurik) [Wed, 9 Dec 2015 09:21:19 +0000 (01:21 -0800)]
Avoid breaking ^C-for-cancel after tab completion.
Jay Freeman (saurik) [Wed, 9 Dec 2015 09:20:17 +0000 (01:20 -0800)]
Allow multi-line editing and drop libedit support.
Jay Freeman (saurik) [Tue, 8 Dec 2015 12:16:31 +0000 (04:16 -0800)]
Remove ?syntax and set failure exit code on throw.
Jay Freeman (saurik) [Tue, 8 Dec 2015 05:42:09 +0000 (21:42 -0800)]
Move LexSetRegEx to new "post-lookahead" paradigm.
Jay Freeman (saurik) [Mon, 7 Dec 2015 10:35:12 +0000 (02:35 -0800)]
Support tab completion on unenumerable properties.
Jay Freeman (saurik) [Mon, 7 Dec 2015 10:13:33 +0000 (02:13 -0800)]
Remove CYLetStatement and provide a stub of CYLet.
Jay Freeman (saurik) [Mon, 7 Dec 2015 09:22:20 +0000 (01:22 -0800)]
Use Object.defineProperty as ES6 class visibility.
Jay Freeman (saurik) [Mon, 7 Dec 2015 08:49:07 +0000 (00:49 -0800)]
Implement ECMAScript 6 class syntax (sort of?...).
Jay Freeman (saurik) [Sun, 6 Dec 2015 22:27:43 +0000 (14:27 -0800)]
Fix support for multiple "block lambda" arguments.
Jay Freeman (saurik) [Fri, 4 Dec 2015 09:35:12 +0000 (01:35 -0800)]
Slightly improve syntax hierarchy near CYFunction.
Jay Freeman (saurik) [Thu, 3 Dec 2015 05:14:39 +0000 (21:14 -0800)]
Avoid crashing when the user types a mismatched }.
Jay Freeman (saurik) [Thu, 3 Dec 2015 04:22:05 +0000 (20:22 -0800)]
Add libuv to the build (static linking for Apple).
Jay Freeman (saurik) [Wed, 2 Dec 2015 11:19:38 +0000 (03:19 -0800)]
Fix "fat arrow" functions that have no parameters.
Jay Freeman (saurik) [Wed, 2 Dec 2015 10:30:22 +0000 (02:30 -0800)]
Finally implemented *entire* ECMAScript 6 grammar.
Jay Freeman (saurik) [Wed, 2 Dec 2015 09:11:18 +0000 (01:11 -0800)]
Use fauxsu (from DHowett) to fix .deb permissions.
Jay Freeman (saurik) [Wed, 2 Dec 2015 08:59:09 +0000 (00:59 -0800)]
Compress lexer tables for usual download in Cydia.
Jay Freeman (saurik) [Wed, 2 Dec 2015 08:58:31 +0000 (00:58 -0800)]
The grammar and lexer should not share a filename.
Jay Freeman (saurik) [Wed, 2 Dec 2015 07:43:24 +0000 (23:43 -0800)]
Flex drove me crazy with "you just got jammed" :/.
Jay Freeman (saurik) [Wed, 2 Dec 2015 07:32:39 +0000 (23:32 -0800)]
Use start conditions to parse regular expressions.
Jay Freeman (saurik) [Wed, 2 Dec 2015 03:09:29 +0000 (19:09 -0800)]
Limit recompilation of files upon changed grammar.
Jay Freeman (saurik) [Wed, 2 Dec 2015 01:29:51 +0000 (17:29 -0800)]
Stub all of ECMAScript 6, but leave unimplemented.
Jay Freeman (saurik) [Wed, 2 Dec 2015 00:44:37 +0000 (16:44 -0800)]
Avoid ECMAScript6 conflicts with RubyBlock syntax.
Jay Freeman (saurik) [Tue, 1 Dec 2015 23:47:19 +0000 (15:47 -0800)]
OS X 10.11 on 64-bit now supports non-pointer isa.
Jay Freeman (saurik) [Tue, 1 Dec 2015 21:56:01 +0000 (13:56 -0800)]
Fix lexer hack correctness check when more spaces.
Jay Freeman (saurik) [Tue, 1 Dec 2015 21:53:34 +0000 (13:53 -0800)]
Put back YYABORT, just after we've called error().
Jay Freeman (saurik) [Tue, 1 Dec 2015 00:13:18 +0000 (16:13 -0800)]
Use forced lookahead to move "No" hacks to parser.
Jay Freeman (saurik) [Mon, 30 Nov 2015 21:27:16 +0000 (13:27 -0800)]
Drop support for ObjC @implementation expressions.
Jay Freeman (saurik) [Mon, 30 Nov 2015 21:20:35 +0000 (13:20 -0800)]
Parse (but ignore) ECMAScript 6 "spread elements".
Jay Freeman (saurik) [Mon, 30 Nov 2015 14:16:22 +0000 (06:16 -0800)]
Massive changes to lexer to get template literals.
Jay Freeman (saurik) [Sun, 29 Nov 2015 21:41:18 +0000 (13:41 -0800)]
Move tokens that aren't Words into IdentifierName.
Jay Freeman (saurik) [Sun, 29 Nov 2015 21:38:02 +0000 (13:38 -0800)]
Reorganize grammar to match the ECMAScript 6 spec.
Jay Freeman (saurik) [Sun, 29 Nov 2015 19:11:16 +0000 (11:11 -0800)]
Remove all non-%union fields from semantic values.
Jay Freeman (saurik) [Sun, 29 Nov 2015 10:53:01 +0000 (10:53 +0000)]
Attempt to make all the identifiers look the same.
Jay Freeman (saurik) [Sun, 29 Nov 2015 09:42:48 +0000 (09:42 +0000)]
This %union field has been obsolete for six years.
Jay Freeman (saurik) [Sun, 29 Nov 2015 09:24:50 +0000 (09:24 +0000)]
Move non-tk::Identifier_ CYIdentifiers to grammar.
Jay Freeman (saurik) [Sun, 29 Nov 2015 08:31:41 +0000 (00:31 -0800)]
Commit a generally useful -gtiming implementation.
Jay Freeman (saurik) [Sun, 29 Nov 2015 07:14:11 +0000 (23:14 -0800)]
Remove flex/gperf hacks (this was fixed upstream).
Jay Freeman (saurik) [Sat, 28 Nov 2015 12:35:50 +0000 (04:35 -0800)]
Organize tokens into something more of a database.
Jay Freeman (saurik) [Sat, 28 Nov 2015 12:25:15 +0000 (04:25 -0800)]
Remove seemingly-unneccessary CYBlank from parser.
Jay Freeman (saurik) [Sat, 28 Nov 2015 10:54:35 +0000 (02:54 -0800)]
Cleanly separate words and keywords using grammar.
Jay Freeman (saurik) [Sat, 28 Nov 2015 09:18:53 +0000 (01:18 -0800)]
Remove all (ignored!) destructors from Parser.hpp.
Jay Freeman (saurik) [Thu, 26 Nov 2015 10:17:14 +0000 (02:17 -0800)]
Maybe thread local storage is a performance issue.