2322 Commits

Author SHA1 Message Date
Stone Tickle
ad2756f260
add missing copyright 2023-12-06 21:53:41 -05:00
Stone Tickle
ff3dad2ece
formatter only allow functions if ext is .meson 2023-12-06 21:53:24 -05:00
Stone Tickle
f627ba159e
add a script module test 2023-12-06 21:41:10 -05:00
Stone Tickle
0cabdd5410
add missing workspace cleanup 2023-12-06 21:40:51 -05:00
Stone Tickle
c518c6a968
fix formatting func def args 2023-12-06 21:40:33 -05:00
Stone Tickle
f758a6e173
more analyzer fixes 2023-12-06 21:40:11 -05:00
Stone Tickle
472e8a8c79
remove debug logging 2023-12-06 21:39:46 -05:00
Stone Tickle
b9b305dd17
remove local keyword 2023-12-06 21:39:23 -05:00
Stone Tickle
d2fc8afeca
make analyzer happy about 162 subir if_found 2023-12-06 16:55:03 -05:00
Stone Tickle
66e26c67f1
fix another dict del bug 2023-12-06 16:54:30 -05:00
Stone Tickle
32bf7601dc
analyzer improvements 2023-12-06 16:38:00 -05:00
Stone Tickle
d9388848eb
add analyze -d 2023-12-06 16:37:15 -05:00
Stone Tickle
8973302295
add analyze -t 2023-12-06 16:36:26 -05:00
Stone Tickle
ed4e516dc7
reimplement dict_del 2023-12-06 16:31:51 -05:00
Stone Tickle
ee715c98d3
use bucket_arr for assignments
fixes realloc bugs
2023-12-06 16:30:51 -05:00
Stone Tickle
0010f5f451
wip optimize dicts with hash map backing 2023-12-06 09:10:00 -05:00
Stone Tickle
883594c470
reuse identical strings 2023-12-04 21:17:26 -05:00
Stone Tickle
610710be65
fix scope group merging with prev scope group 2023-12-03 07:56:02 -05:00
Stone Tickle
4aab5247c1
fix scope group popping 2023-12-01 20:57:55 -05:00
Stone Tickle
ea05cc0cbb
add some tracy annotations 2023-12-01 11:16:09 -05:00
Stone Tickle
92d95663a2
analyzer fixes 2023-11-30 13:13:26 -05:00
Stone Tickle
fa942ccaef
fix unassign variable 2023-11-30 13:13:16 -05:00
Stone Tickle
2d21a26a14
fix subproject get_variable 2023-11-30 13:13:01 -05:00
Stone Tickle
acd88ddf23
add dict delete 2023-11-30 13:12:20 -05:00
Stone Tickle
0223c96b98
fix closures 2023-11-29 22:27:16 -05:00
Stone Tickle
497ccc4266
analyzer rework for new scope system 2023-11-29 22:26:41 -05:00
Stone Tickle
d7dff4b44c
obj array more functions and fix when deleting end 2023-11-29 22:26:21 -05:00
Stone Tickle
e5d769c3b2
prettify object logging 2023-11-29 22:26:00 -05:00
Stone Tickle
b6545fc75e
make logging objects easier 2023-11-29 22:25:33 -05:00
Stone Tickle
4a79d17741
more scope work 2023-11-28 11:40:15 -05:00
Stone Tickle
7e99abc43e
working on scopes 2023-11-27 21:29:17 -05:00
Stone Tickle
9cb9d858c9
lots of small changes
- wip "unencapsulated" module.  This just means that the module is
  loaded into the global scope.  You could then write functions like
  `vcs_tag` in this global module to be used by all meson files.  This
  might be removed.
- remove export() function and instead use a lua-like return to export
  from the module.
- track language mode in function definitions.  Necessary for functions
  to use internal-only functions.
- use assigned function name in error messages
- fix embedded source reopening in error messages
- reduce number of node types that get marked as dead code
- create true/false bools on workspace initialization with known ids.
  Future code should use these rather than making new boolean objects to
  save memory.
- add a new test script-module
2023-11-27 12:45:53 -05:00
Stone Tickle
2afcdbdacb
restrict modules to embedded modules
also alter function syntax
2023-11-25 20:45:55 -05:00
Stone Tickle
f26c134750
revert 2023-11-25 20:45:18 -05:00
Stone Tickle
b4f4064bed
fix required kwargs check when opt args missing 2023-11-25 20:44:53 -05:00
Stone Tickle
007229396d
fix fmt 2023-11-20 11:53:11 -05:00
Stone Tickle
a1926d3f37
fmt func def 2023-11-19 20:38:05 -05:00
Stone Tickle
04b5138efd
fix disabled module 2023-11-19 20:37:37 -05:00
Stone Tickle
0deb94b745
add extended lang mode 2023-11-19 20:37:31 -05:00
Stone Tickle
46c544692a
rename func_impl_name to func_impl 2023-11-19 13:41:32 -05:00
Stone Tickle
92296f0627
consolidate func_obj analyzing 2023-11-19 13:38:40 -05:00
Stone Tickle
5e1c455cbc
more progress 2023-11-17 22:39:51 -05:00
Stone Tickle
4a0272972e
more flexible functions 2023-11-15 21:54:30 -05:00
Stone Tickle
949c2cf44c
rename datastructures 2023-11-12 11:04:23 -05:00
Stone Tickle
8d39726302
ci: handle another secret missing case 2023-11-11 21:14:22 -05:00
Stone Tickle
946bb42bd2
small fixes and formatting 2023-11-11 21:09:08 -05:00
Seedo Paul
a9eb180220
mod/python: add some test cases
Signed-off-by: Seedo Paul <seedoeldhopaul@gmail.com>
2023-11-11 20:48:03 -05:00
Seedo Paul
c0884f66bf
obj/python_installation: print more fields
Signed-off-by: Seedo Paul <seedoeldhopaul@gmail.com>
2023-11-11 20:48:02 -05:00
Seedo Paul
ca20b8c9b6
ob_to_s: fix field name version -> language_version
Also handle `external_program` within `python_installation` object
recursively.

Signed-off-by: Seedo Paul <seedoeldhopaul@gmail.com>
2023-11-11 20:48:00 -05:00
Seedo Paul
2592f46e12
mod/python: implement has_path and has_variable
Signed-off-by: Seedo Paul <seedoeldhopaul@gmail.com>
2023-11-11 20:47:59 -05:00