1
0
forked from Mirror/wren

1802 Commits

Author SHA1 Message Date
31e179907d Add support for home, end, delete, and ctrl+w 2018-10-31 18:32:34 -04:00
091d2c4313 Fix call to markdown.markdown 2018-10-30 15:06:50 -04:00
a4b034f30b Fixup Handling of \ in REPL to Prevent Crash
When parsing the string token if a `\` was used it would
unconditionally consume the next character. This would led to a token
with an invalid lenght causing a crash when it was printed. This fixes
that by only consuming the token after the `\` if there is one to
consume.

Fixes #603
2018-10-08 07:35:55 +01:00
8929415847 Remove unused prototype. 2018-09-27 15:03:10 +02:00
744147fd94 Flush prompt in animals example. 2018-08-01 07:28:48 -07:00
fefed21158 Rename include guard 2018-07-27 18:57:17 +04:00
fe57c1eea0 Trivial: wren_core.wren.inc needs to be regenerated. 2018-07-25 11:58:50 +02:00
051e224ce6 De-inline wrenHasError.
Move fiber error detection inside a function instead of using inlined
version everywhere.
2018-07-25 11:55:03 +02:00
0ebf4e1277 Add me to AUTHORS. 2018-07-25 11:55:03 +02:00
e47f17567e Fix a couple more casts needed in C++. 2018-07-24 07:27:18 -07:00
03ec25720d Add cast to satisfy the C++ warning gods. 2018-07-24 07:21:41 -07:00
c237a44b88 Add file to test directory so Git creates directory. 2018-07-24 07:15:04 -07:00
f23c82071a Don't allow calling the root fiber.
The VM used to not detect this case. It meant you could get into a
situation where another fiber's caller had completed. Then, when it
tried to resume that fiber, the VM would crash because there was nothing
to resume to.

This is part of thinking through all the cases around re-entrancy. Added
some notes for that too.
2018-07-21 10:02:29 -07:00
5f29a72d65 Remove the special method type for Fn.call(...).
Instead, using regular primitives for each of the call() methods.
Doesn't help performance (alas), but does seem cleaner to me.
2018-07-18 08:20:11 -07:00
ed64a13778 Add new files to api_test target in XCode project. 2018-07-18 07:30:18 -07:00
fe7e56d508 Merge branch 'rfc-0001-smarter-imports' 2018-07-16 07:03:00 -07:00
b2b2b8a4e7 Add note. 2018-07-16 07:02:53 -07:00
1a37d2228d Merge branch 'smarter-imports' 2018-07-16 07:00:08 -07:00
7a42a20b98 Merge branch 'master' into smarter-imports
# Conflicts:
#	src/module/io.c
#	src/vm/wren_vm.c
2018-07-15 21:01:14 -07:00
c367fc3bfc Get logical imports in "wren_modules" working.
There's a lot of changes here and surely some rough edges to iron out.
Also, I need to update the docs. But I want to get closer to landing
this so I can build on it.
2018-07-15 20:09:41 -07:00
e486c56ae9 Merge pull request #546 from mathewmariani/master
Fixed PreBuildEvents on vs2017
2018-07-15 11:08:21 -07:00
09f4beff4a Add trim methods on String:
- trim()
- trim(chars)
- trimEnd()
- trimEnd(chars)
- trimStart()
- trimStart(chars)
2018-07-15 10:48:56 -07:00
ef5f38b48f Turn on auto-deploying docs.
Looks like it's working now. <crosses fingers>
2018-07-14 21:35:33 -07:00
7b42a9d621 More guessing at package names. 2018-07-14 21:00:59 -07:00
361b57fa8d Try to get right package name for smartypants. 2018-07-14 20:51:48 -07:00
3920818b46 Install smartypants on Travis. 2018-07-14 20:44:22 -07:00
c7c69d1291 Check in shared Xcode file. 2018-07-14 12:12:37 -07:00
09be27d3d5 Install pygments on Travis. 2018-07-14 12:12:07 -07:00
7d8292fe90 Fix a Travis dependency. 2018-07-14 11:57:11 -07:00
52f08aec05 Install the custom pygments lexer using python3. 2018-07-14 11:44:53 -07:00
d13cafed71 Fix command. I am an idiot. 2018-07-14 11:17:36 -07:00
db77a9dce4 Disable container-based build so we can use sudo. 2018-07-14 11:05:41 -07:00
5fff693530 Testing fix to doc deploy script. 2018-07-14 10:35:45 -07:00
08b5492362 Turn off doc deploying for now. 2018-07-13 09:15:26 -07:00
c120769977 Make some tweaks to doc deploy script.
- Rename file to match other naming conventions.
- Simplify condition a little.
2018-07-13 08:02:37 -07:00
91b4f53ee5 Merge branch 'auto-deploy-docs-from-travis' of https://github.com/CodogoFreddie/wren into CodogoFreddie-auto-deploy-docs-from-travis 2018-07-13 07:46:46 -07:00
1f93e16fb2 Provide actual soname when building shared lib on Linux.
Fix #572.
2018-07-13 07:19:06 -07:00
646fedab98 Merge pull request #555 from GHvW/GHvW-patch-1
Update file.markdown
2018-07-13 07:02:49 -07:00
a3c2402ca0 Merge branch 'missing_undef' of https://github.com/dressupgeekout/wren into dressupgeekout-missing_undef
# Conflicts:
#	AUTHORS
2018-07-13 07:01:57 -07:00
1029d5feb6 Merge pull request #581 from michal037/michal037
Small improvements
2018-07-13 06:53:34 -07:00
ad9a0e13ac Small improvements
* Safer definitions in io.c
* Easier to understand information in repl.wren
* Added my e-mail; Contributing > Hacking on the VM
2018-07-12 21:50:23 +02:00
5356ccb760 Add myself to the AUTHORS 2018-06-14 00:33:59 -07:00
e7b1bade1a Check that there is space in local variable array
Otherwise it can overflow due to for loop's hidden
variables.

Fix #561
2018-06-13 00:59:55 +03:00
18f74d89c4 Don't forget to #undef FINALIZER 2018-06-05 13:27:45 -07:00
4c9209c1b2 Update file.markdown
minor fix to close() language
2018-06-03 23:06:40 -05:00
9934d17019 Update PreBuildEvent scripts for more conditions 2018-05-21 11:14:23 -04:00
85b2c9a99d added explicity vs2017 argument
To build with VS2017 you need to explicitly add a vs2017 argument
2018-05-21 01:57:50 -04:00
4957fff584 Fixed PreBuildEvents on vs2017 2018-05-21 01:25:38 -04:00
c40bb93d60 Changed shebang to python3 2018-05-16 23:10:44 +02:00
abd1cf37c4 Repaired amalgamation script
The amalgamation script now searches for files in the different
directories of src.

Also the full paths in the amalgamation were replaced by the basename
to produce the same content on all machines.

The makefile now creates the build directory for the amalgamation
if it does not exist.
2018-05-12 09:24:23 +02:00