Commit Graph

36 Commits

Author SHA1 Message Date
Thakee Nathees
6992f54ef3 Tail call optimization implemented 2021-06-13 21:57:54 +05:30
Thakee Nathees
17df5eb1e4 disassemble implemented 2021-06-12 16:34:10 +05:30
Thakee Nathees
749456e215 some (minor) code cleanups 2021-06-11 13:16:55 +05:30
Thakee Nathees
9fdab23a94 core attributes refactored and added tests 2021-06-10 23:12:04 +05:30
Derick Alangi
3a7ffc7cf1
Cleanup more typos from cli/ source files (#50) 2021-06-10 07:53:16 +05:30
Derick Alangi
fd6d2412ee
Fix more typos in cli/common.h (#49) 2021-06-10 04:27:28 +05:30
Derick Alangi
04c333a15e
Set pointer to first byte of mem block when realloc()'d (#48)
* While reading various files in the repo, just going ahead to
clean up some typos (for clarity of text).

* When calling `realloc()`, let the pointer be returned to the
first byte of the memory block after resize. Compiler warns against
not doing this too.

* In addition, rename the file uitls.c to "utils.c" which seems to
be the correct name in this case.

NOTE: I recompiled and tested the `./pocket` intepreter and it still
works as expected.
2021-06-10 04:10:24 +05:30
Thakee Nathees
49c1fec85f
REPL implementation. (#47) 2021-06-09 16:12:26 +05:30
Derick Alangi
1a60646e38
Fix minor typos, while reading codebase (#46)
* Fix minor typos, while reading codebase

* Fix typo in common.h comment

* Fix typo in src/common.h
2021-06-08 22:19:58 +05:30
Thakee Nathees
9901d4d441 REPL refactor [3/3] 2021-06-08 19:32:43 +05:30
Thakee Nathees
fdf685731d refactor for repl support [2/3] 2021-06-07 20:00:35 +05:30
Thakee Nathees
3092118008 Merge pull request #42 from ThakeeNathees/fiber-docs
fiber documentations
2021-06-07 07:20:06 +05:30
Thakee Nathees
e1711b1c9d fiber implemented. 2021-06-06 03:10:58 +05:30
Thakee Nathees
284232c8c6 minor parser refactor for repl 2021-06-05 18:50:53 +05:30
Thakee Nathees
0bebeaafdf some style guides were enforcde.
- according to https://github.com/mcinglis/c-style
2021-06-04 13:26:50 +05:30
Thakee Nathees
f9bf0c1b9c more comments written throught out the source 2021-06-03 07:40:07 +05:30
Thakee Nathees
2c1468f0e8 Merge pull request #37 from ThakeeNathees/bug-fixes
controlflow bugs fixed
2021-06-02 19:53:04 +05:30
Thakee Nathees
0e450bc7b1 path library implemented 2021-05-30 05:46:04 +05:30
Thakee Nathees
185a71914a Iterations were heavily optimized 2021-05-27 15:38:33 +05:30
Thakee Nathees
df93b2c1ec gc bugs fixed
- popping operands from the stack was too early -fixed
- some temproary string objects weren't pushed to the vm's temp root
  -fixed
- and some minor bug fixed
2021-05-23 23:25:04 +05:30
Thakee Nathees
8738ccfe64 Native function api implemented 2021-05-23 02:29:32 +05:30
Thakee Nathees
deda294326 a small test script added 2021-05-22 18:57:40 +05:30
Thakee Nathees
994baea600 function name resolve implemented 2021-05-20 19:35:57 +05:30
Thakee Nathees
53ac9a6ae8 yet another import statement refactor 2021-05-19 18:56:36 +05:30
Thakee Nathees
41667eb218 relative import initial commit
parser and compiler are combined to just parser struct
2021-05-18 22:07:05 +05:30
Thakee Nathees
3fad5fea46 build script refactored 2021-05-17 17:23:01 +05:30
Thakee Nathees
bd41435519 Merge pull request #22 from ThakeeNathees/chain-call-test
chain call implemented
2021-05-17 13:39:21 +05:30
Thakee Nathees
c2f67d0b48 chain call implemented 2021-05-16 14:46:58 +05:30
Thakee Nathees
0d6f2ce6a3 and or expression parsing implemented 2021-05-15 23:27:34 +05:30
Thakee Nathees
73fc379560 gc sweep/ stack reallocation implemented 2021-05-15 20:51:27 +05:30
Thakee Nathees
0c22a4d8e8 builtin function refactored.
- try now page won't crash anymore for core initialization.
2021-05-15 14:59:44 +05:30
Thakee Nathees
c3041c74a9 fixed: iterator (internal) variables popped twise.
printing stack trace implemented
2021-05-15 00:31:31 +05:30
Thakee Nathees
9c77ff5a6c docs buildscript updated 2021-05-14 15:14:39 +05:30
Thakee Nathees
5c1b776047 fixed: local variables wasn't poped from the scope 2021-05-13 14:40:57 +05:30
Thakee Nathees
1d2d88fa7a docs source moved to master
generated files only remain in docs/ branch
2021-05-12 13:42:54 +05:30
Thakee Nathees
3e444ad196 assertion function and tests impl.
- main moved to cli
2021-05-11 18:05:09 +05:30