summaryrefslogtreecommitdiffstats
path: root/lexer.l
AgeCommit message (Collapse)Author
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