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
b0459e4867
Add AppVeyor Windows builds and releases ( #206 )
...
* Make some filenames Windows-friendly
* Update references to renamed files
* Fix escaped filenames to run on non-Windows platforms
2018-03-12 20:46:57 -04:00
Dave Cunningham
5cc426ed04
Bring submodule and stdlib to cpp master
2018-03-06 23:49:02 -05:00
Marcelo Cantos
ed5f280c59
Apply golint recommendations ( #196 )
...
* Apply golint recommendations
2018-02-26 14:12:25 -05:00
Stanisław Barzowski
44770e75dd
Add std.sign and fix division by zero in stdlib
2018-02-21 20:31:04 -05:00
Dave Cunningham
2ea01b24d8
Introduce a Parens AST ( #189 )
...
* Introduce a Parens AST
2018-02-16 13:01:14 -05:00
Dave Cunningham
f46dea2835
Update std.jsonnet
2018-02-01 14:21:39 -05:00
Stanisław Barzowski
61b33d1a2a
Fast, native implementation of strReplace
2018-01-31 15:27:59 -05:00
Dave Cunningham
741f9f06a2
Update stdlib and ||| fix
2018-01-23 23:26:28 -05:00
Stanisław Barzowski
eedf6760ad
Convert non-string errors to string
2018-01-18 12:48:38 -05:00
Stanisław Barzowski
d135effbe4
Add missing check for array out of bounds
2018-01-17 15:26:31 -05:00
Dave Cunningham
7c8f4d0b12
Call top level function even if there are no TLAs (match cpp semantics) ( #169 )
...
* Call top level function even if there are no TLAs (match cpp semantics)
2018-01-10 20:43:55 -05:00
Cam Hutchison
c7a5b68f1c
Add test case for native function returning error
...
A native function returning an error should be reported as a runtime
error, with a stack trace.
2017-12-18 10:22:53 -05:00
Stanisław Barzowski
8ade994928
Efficient native implementation of std.join
...
It changes the behavior slightly - mixing strings
and arrays in join is no longer allowed.
2017-12-13 18:09:56 -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
Dave Cunningham
3eaf189897
Allow bitwise operations on floats, according to Spec (and Javascript behavior)
2017-10-26 20:26:16 -04:00
Stanisław Barzowski
10d377f068
[WIP] Disallow floating point indexing (waiting for #116 )
2017-10-14 00:49:04 -04:00
Stanisław Barzowski
bb8d424f73
Add previously forgotten tests
2017-10-13 19:55:24 -04:00
Stanisław Barzowski
ed281bc563
Support for native callbacks
2017-10-13 15:49:06 -04:00
Stanisław Barzowski
5c946dfb76
Eliminate duplication in builtin names
...
Actually there was one (objectFieldEx) that was inconsistent, i.e.
it was available by a different name from what appeared in the stack
trace. This is now fixed.
2017-10-13 15:33:34 -04:00
Stanisław Barzowski
0f049eaa38
Basic tailstrict support
2017-10-13 15:33:23 -04:00
Stanisław Barzowski
4a4a7fe459
Check index types ( #116 )
...
Before it would just crash
2017-10-10 00:09:32 -04:00
Stanisław Barzowski
ba0f236b14
Optional eval ( #92 )
...
* Optional arguments
2017-10-10 00:06:14 -04:00
Stanisław Barzowski
f0f70419f8
Clean up some TODOs
...
Some were stale, some were transformed into issues, some were fixed
2017-10-05 22:13:09 -04:00
Stanisław Barzowski
a4058fc177
Support for stack trace size limit
2017-10-05 03:31:16 -04:00
Stanisław Barzowski
02a4eed22d
Support $ in comprehesions, fixes #68
2017-10-03 19:51:01 -04:00
Stanisław Barzowski
774715b3cf
Support for std.thisFile, fixes #91 .
...
Sadly it means that std in no longer the same object in each file.
2017-10-03 15:17:43 -04:00
Stanisław Barzowski
82f213a1e3
Fix tests (after rebase)
2017-10-03 15:17:32 -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
80ce6ac112
Don't escape block strings ( #98 )
...
* Don't escape block strings
2017-10-03 14:29:12 -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
df1b805c96
More tests for builtins.
2017-09-29 22:57:31 -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
b1a9c0bd6d
ExtVar support
2017-09-28 23:14:53 -04:00
Stanisław Barzowski
0c86c9e109
Support of +:, in, in super
...
Also profiling
2017-09-28 22:21:46 -04:00
Stanisław Barzowski
93bcf64454
Add tests for std.primitiveEquals
2017-09-27 23:07:33 -04:00
Stanisław Barzowski
544fe25700
Simplistic argument checking
...
To be expanded when optional arguments arrive.
2017-09-27 22:45:41 -04:00
Stanisław Barzowski
78b4794523
Object comprehensions
2017-09-27 18:00:30 -04:00
Stanisław Barzowski
850575cf34
More tests for log and exp
2017-09-26 12:17:08 -04:00
Stanisław Barzowski
650825cd5a
Change test file extension
2017-09-22 18:28:02 -04:00
Stanisław Barzowski
97a80b94cd
Fix inheritance of hidden fields, closes #70
2017-09-22 18:11:05 -04:00
Stanisław Barzowski
02f86ba308
Fix extenstions of test files (merging order issue)
2017-09-22 18:10:44 -04:00
Stanisław Barzowski
fe62ec46a8
Improve imports ( #66 )
...
* Improve imports
* Nonexistent file is now a runtime error (used to be ignored)
* Permission denied is a runtime error (used to be an internal error)
* Basic tests added for imports
* Renamed tests from .input to .jsonnet
* It's standard
* It's compatible with C++ test suite
* Editors enable syntax highlighting based on extension
* Importing .input looks weird
2017-09-22 18:03:00 -04:00
Stanisław Barzowski
8638a21287
Object invariants ( #62 )
...
* Object invariants
2017-09-22 18:02:05 -04:00
Stanisław Barzowski
9047718ad0
Add std.filter
2017-09-22 13:45:52 -04:00
Stanisław Barzowski
2cf7443b91
Add support for % operator
2017-09-22 13:26:04 -04:00
Stanisław Barzowski
cab0cc887e
std.codepoint, std.char + a bunch of tests
2017-09-22 11:53:25 -04:00
Stanisław Barzowski
8a80309137
std.md5
2017-09-14 17:09:57 -04:00
Stanisław Barzowski
a94b877d4b
Add std.exponent and std.mantissa
2017-09-12 17:10:21 -04:00