summaryrefslogtreecommitdiffstats
path: root/lexer.l
AgeCommit message (Collapse)Author
2014-08-14Add `module` directive, `modulemeta` builtinNicolas Williams
Fix #425.
2014-07-22Added library system with -l, -L, and JQ_LIBRARY_PATHWilliam Langford
Created util.[ch] to hold common utilities.
2014-07-06Add `foreach` and `limit`Nicolas Williams
2014-07-06Add `try EXP catch EXP`Nicolas Williams
2014-02-20Add `?`, `.[]?`, and `..` operatorsNicolas Williams
Make XPath-like `//a/b` recursive structure traversal easier in jq, which then becomes: ..|.a?.b? The `?` operator suppresses errors about . not being an array or object. The `..` operator is equivalent to calling the new `recurse_down` built-in, which in turn is equivalent to recurse(.[]?) Note that `..a` is not supported; neither is `...a`. That could be add added, but it doesn't seem worth the trouble of saving the need to type a '|'.
2013-09-14Merge branch 'libjq'Stephen Dolan
Conflicts: Makefile.am configure.ac
2013-06-23Remove #includes from jv.hlibjqStephen Dolan
2013-06-21Add mod (and setmod) operatorsNicolas Williams
2013-06-05Lex and parse .foo better.Stephen Dolan
'.as' is now valid, '. foo' is now invalid. See #141.
2013-05-16Remove the insane "fold" operation, replace with saner "reduce".Stephen Dolan
2013-05-15'length' function now measures string length in codepoints, not bytes.Stephen Dolan
2013-02-02merging upstream stedolan changesLee Thompson
2013-01-03Fix negative number syntax. Add a unary '-' operator.Stephen Dolan
Closes #63.
2012-12-28Fold operation (code/docs/test)Stephen Dolan
2012-12-28@foo syntax for encoding of strings into various formats.Stephen Dolan
Fixes part of #47 and #48.
2012-12-18Add wrappers for malloc/realloc/free. See #43.Stephen Dolan
2012-12-02Demote "contains" to a built-in function rather than an operator.Stephen Dolan
2012-11-28revert back to make invoking flex, fix a few bugsLee Thompson
2012-11-26Merge remote-tracking branch 'origin/master'Stephen Dolan
2012-11-26Raise a proper error from the lexer on unmatched },),]Stephen Dolan
2012-10-24Implemented contains operatorStephen Roantree
2012-10-24Replace yyscan_t with another pointer type that we control.Damian Gryski
This prevents the circuluar dependency between parser.gen.h and lexer.gen.h. Newer versions of bison add a prototype for yyparse() to parser.gen.h that include the as-yet-undeclared yyscan_t type.
2012-10-23Implement 'not equal' (!=) as a binopDamian Gryski
2012-10-22Support a -f option to load from a file, and # commentsStephen Dolan
This means '#!/usr/local/bin/jq -f' is now a sensible way to start a file. Closes #13
2012-10-20A string interpolation syntax that I don't hate. Also tests.Stephen Dolan
You can interpolate values into strings using \(this syntax), e.g. "best \("str" + "ing") ever"
2012-10-07Add <,>,<=,>= binopsStephen Roantree
2012-09-22Allow underscores in IDENT tokens. Fixes #3.Stephen Dolan
IDENT syntax now includes ASCII letters and underscores, so '.foo_bar' now works. Non-ASCII letters won't work in IDENT tokens (it's impossible to tell which non-ascii characters are "letters" without full unicode tables), so '.données' is still a syntax error (the workaround is '.["données"]', since you can put anything you like in a string).
2012-09-18Move everything around - delete old Haskell code, clean up build.Stephen Dolan