Stanisław Barzowski
aa47869bc4
Add basic tests for Children and add missing cases
2019-03-20 10:23:24 -04:00
Jameson
39887d9751
pull Local.Binds[].Body out via specialChildren ( #232 )
...
* pull Local.Binds[].Body out via specialChildren
* move Local.Body to special from direct
2018-06-11 21:06:59 -04:00
Dave Cunningham
95e1c1790a
Lex fodder in a manner compatible with C++ ( #231 )
...
* Lex fodder in a manner compatible with C++
2018-06-11 14:40:28 -04:00
Jameson Lee
a1964b49f1
support for traversing AST tree with parens and objectcomps
2018-06-06 02:06:10 -04:00
Dave Cunningham
d9b833b8a0
Bump C++ version, implement std.trace, fix parsing of -$, update std ( #224 )
2018-05-23 22:24:12 -04:00
Stanisław Barzowski
f4428e6d47
Better Importer interface
...
As discussed in https://github.com/google/go-jsonnet/issues/190
2018-04-28 01:34:42 -04:00
Marcelo Cantos
88519c3704
Apply more golint recommendations ( #201 )
...
* Apply more golint recommendations
* Update dumpstdlibast.go to include StdAst comment
* Improve dump.go package comment.
2018-02-28 01:11:18 -05:00
Marcelo Cantos
ed5f280c59
Apply golint recommendations ( #196 )
...
* Apply golint recommendations
2018-02-26 14:12:25 -05:00
Marcelo Cantos
5ae4798d8d
Clean up token strings
2018-02-25 13:41:11 -05:00
Dave Cunningham
2ea01b24d8
Introduce a Parens AST ( #189 )
...
* Introduce a Parens AST
2018-02-16 13:01:14 -05:00
Dave Cunningham
741f9f06a2
Update stdlib and ||| fix
2018-01-23 23:26:28 -05:00
Stanisław Barzowski
bc88189964
Very basic, experimental linter
...
No tests yet
2018-01-15 21:05:52 -05:00
Dave Cunningham
b6ee2c2f51
String token end location off-by-one error ( #139 )
...
* String token end location off-by-one error
2017-11-03 21:36:31 -04:00
Stanisław Barzowski
ba0f236b14
Optional eval ( #92 )
...
* Optional arguments
2017-10-10 00:06:14 -04:00
Stanisław Barzowski
33377907ec
Allow all kinds of string literals as object field names
2017-10-03 14:30:32 -04:00
Stanisław Barzowski
c3459153df
Location, error formatting and stack trace improvements ( #59 )
...
* Location, error formatting and stack trace improvements
* Static context for AST nodes
* Thunks no longer need `name`
* Prototype for showing snippets in error messages (old format still
available)
* Use ast.Function to represent methods and local function sugar.
* Change tests so that the error output is pretty
2017-10-03 14:27:44 -04:00
Stanisław Barzowski
a1b8248e84
Fix comprehensions ( #90 )
...
* Fix comprehensions
Only first and last forspec was used due to a parser bug.
2017-09-29 23:33:55 -04:00
Stanisław Barzowski
0b52ea4d40
Support for various kinds of strings in imports
2017-09-29 12:34:21 -04:00
Stanisław Barzowski
c26c50c04b
Array comprehensions ( #35 )
...
* Array comprehensions
Implemented using flatMap.
The representation in AST was changed - now it expresses
the semantic structure better.
Ifs in comprehensions are not supported yet, but easy.
2017-09-07 11:55:33 -04:00
Stanisław Barzowski
77b8b9e335
Optional args parser/lexer/ast support ( #33 )
...
* Optional args parser/lexer/ast support
Just "frontend" part. They are ignored during actual execution.
2017-09-06 11:53:10 -04:00
Stanisław Barzowski
b1427d563b
Parser & desugarer support for "in"
2017-08-29 22:14:12 -04:00
Alex Clemmer
0d716ae56f
Move parser to its own package
2017-08-25 00:30:56 -04:00