Commit Graph

19 Commits

Author SHA1 Message Date
Qi Xiao
99921ea222 Get rid of types.String.
Elvish strings are now simply Go strings. \o/ This addresses #573.
2018-01-25 22:50:42 +00:00
Qi Xiao
68bc4d925d Make Value an empty interface.
This addresses #573. The implementations of Value are not yet changed.
2018-01-25 22:50:41 +00:00
Qi Xiao
8c1f9d9c27 eval: Move String to eval/types. 2018-01-02 01:34:09 +00:00
Qi Xiao
3efc92b00c eval: Move Bool to eval/types. 2018-01-01 15:21:15 +00:00
Qi Xiao
ebb12b7eb8 eval: Move Map to eval/types. 2017-12-31 21:08:37 +00:00
Qi Xiao
00d126b0e1 eval: Move List to eval/types. 2017-12-31 21:01:21 +00:00
Qi Xiao
29b13a917c eval: Move Value interfaces to eval/types. 2017-12-31 20:31:45 +00:00
Qi Xiao
6cfca909ec Use persistent hashmap to implement map.
This resolves #414.
2017-09-01 01:07:20 +02:00
Qi Xiao
c7901a7e3e Use persistent list as the underlying data structure for lists. 2017-06-14 01:46:19 +01:00
Qi Xiao
856dde57b6 Fix representation of Exception. 2017-03-07 01:08:37 +00:00
Qi Xiao
f2a58f53ca Make glob.Segment an interface. 2017-02-02 11:15:42 -08:00
Qi Xiao
ddbbfb9d33 Clean up exception representation.
Exceptions are now already represented by eval.Exception, which consist of an
error and a traceback. eval.Error is dropped.
2017-01-29 02:30:04 +00:00
Qi Xiao
89c9c5ac93 Fix test cases. 2016-04-13 13:16:25 +02:00
Qi Xiao
169b9917e3 Refine evaler's error reporting. 2016-02-20 00:48:13 +01:00
Qi Xiao
2cdbf67147 Slightly simplify Repr. 2016-02-19 20:31:54 +01:00
Qi Xiao
2413edcc09 Implement pretty printing.
This fixes #112.
2016-02-19 20:11:31 +01:00
Qi Xiao
17ae71b36c Change the syntax of pairs to use = to separate key and value.
This resolves #136.
2016-02-19 13:58:49 +01:00
Qi Xiao
9e40b129e1 Implement basic wildcard.
Implicit concat in compounds is much more strict now.
2016-02-07 20:39:03 +01:00
Qi Xiao
70917927b0 Test against Repr method of Value types. 2016-02-07 00:55:42 +01:00