Commit Graph

254 Commits

Author SHA1 Message Date
Aire-One 1ac471da89 chore: remove special characters from module name 2023-09-18 14:48:32 +02:00
Aire-One 00fa4ba32e chore(just): rockspec lint
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details
2023-09-18 11:44:19 +02:00
Aire-One 64fbdf908f chore: fix justfile rockspec_file
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline failed Details
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details
2023-09-10 20:06:11 +02:00
Aire-One c67c9362da ci(lint): rockspec
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/test Pipeline failed Details
ci/woodpecker/pr/lint Pipeline failed Details
ci/woodpecker/pr/build Pipeline was successful Details
2023-09-10 19:55:03 +02:00
Aire-One ac1ba61cb2 chore: fix CI `test` pipeline
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/test Pipeline failed Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details
2023-09-10 19:44:18 +02:00
Aire-One 39d3d09cb9 chore: fix busted config 2023-09-04 00:29:18 +02:00
Aire-One 8d7ba519c4 chore: fix specs 2023-09-04 00:29:04 +02:00
Aire-One 6ee57456b9 chore(ci): disable woodpecker lint
The woodpecker-cli version used has moved, and the current woodpecker
server installed is too old to have configuration that passes the newer
lint rules.

We'll need to first update the woodpecker server, then port the config,
and finally enable back this lint step.
2023-09-04 00:28:50 +02:00
Aire-One 85702797fe chore: ci fixes 2023-09-04 00:28:35 +02:00
Aire-One 8e144e06f5 chore: rockspec, structure and entry point
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/test Pipeline failed Details
ci/woodpecker/pr/build Pipeline failed Details
ci/woodpecker/pr/lint Pipeline failed Details
2023-09-03 18:38:11 +02:00
Aire-One 4dd8d433f4 Merge pull request 'Move to an AST like data structure' (#76) from feat/refactor-ast into master
ci/woodpecker/push/docker-build Pipeline was successful Details
ci/woodpecker/push/lint Pipeline failed Details
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/test Pipeline was successful Details
Reviewed-on: #76
2023-08-03 21:03:11 +02:00
Aire-One 73f6074ef2 fix(visitor/type_mapping): update mapping
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details
2023-08-01 23:40:49 +02:00
Aire-One 2506ce9d58 run: let's make the main entry point do something 2023-08-01 23:40:49 +02:00
Aire-One dbeb536393 feat(printer): teal_type_definition should use the `require type` notation 2023-08-01 23:40:49 +02:00
Aire-One f44a028683 fix(scraper): rename constructor methods to `new` 2023-08-01 23:40:49 +02:00
Aire-One 284b49898c fix(visitor): module_dependencies shouldn't self require 2023-08-01 23:40:49 +02:00
Aire-One 6441a6a50b fix(visitor): module_dependencies renames dependency usages 2023-08-01 23:40:49 +02:00
Aire-One 4f24725351 spec(teal_type_definition): test module dependencies 2023-08-01 23:40:49 +02:00
Aire-One 8d54ab4746 fix(spec): ASTs need to have `dependencies` 2023-08-01 23:40:49 +02:00
Aire-One bea2f0fc54 spec(module_doc): fix and refactor
Fix the tests by adding the new keys from `"module"` tokens.

We now use a `test` function to make the `it` easier to write/read.
2023-08-01 23:40:49 +02:00
Aire-One 4d81aaef56 feat(printer): render `require` statements 2023-08-01 23:40:49 +02:00
Aire-One e076a08572 feat(Visitors): implement module_dependencies 2023-08-01 23:40:49 +02:00
Aire-One 37742f795d feat(Visitors): implement type_mapping 2023-08-01 23:39:27 +02:00
Aire-One 02d82f6518 chore: update the `Debug spec` command 2023-08-01 23:38:06 +02:00
Aire-One 8928e67f24 feat(printer): indent generated code 2023-08-01 23:38:06 +02:00
Aire-One c2e0da3ba6 fix(module_doc): named parameter table detection 2023-08-01 23:38:06 +02:00
Aire-One b58384e65b spec(teal_type_definition): test Record node 2023-08-01 23:38:06 +02:00
Aire-One 8737c9dd28 spec(teal_type_definition): test Function node 2023-08-01 23:38:06 +02:00
Aire-One a1b6a383bb spec(teal_type_definition): test Variable node 2023-08-01 23:38:06 +02:00
Aire-One 6410cf6a75 spec(teal_type_definition): test Enum node 2023-08-01 23:38:06 +02:00
Aire-One eca034828c chore(just): add pattern parameter to test command 2023-08-01 23:38:06 +02:00
Aire-One 1ccb6d0ce9 spec(teal_type_definition): add basic test 2023-08-01 23:38:06 +02:00
Aire-One 008985d5ea chore(spec): defined expected with type safety 2023-08-01 23:38:06 +02:00
Aire-One ba51f09e47 chore: rename Generator -> Printer 2023-08-01 23:38:06 +02:00
Aire-One 3bf9ac4ebd chore: configure coverage 2023-05-08 23:12:49 +02:00
Aire-One efb54bf92b spec(module_doc): add "Object methods" tests
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details
2023-05-08 14:25:50 +02:00
Aire-One 5e6ceb7e04 spec(module_doc): add "Static module functions" tests
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details
2023-05-05 00:41:02 +02:00
Aire-One 9165e98db3 chore: configure lua-local debugger for Teal 🧙
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details
2023-05-05 00:04:25 +02:00
Aire-One 129f15ea9d spec(module_doc): add "Object properties" tests 2023-05-04 01:01:09 +02:00
Aire-One 65320173e5 spec(module_doc): add "Signals" test 2023-05-04 00:58:35 +02:00
Aire-One 5d45637954 spec(module_doc): add basic test
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details
2023-05-04 00:45:39 +02:00
Aire-One 592e62d6fa feat(generator): base implem for `generate_teal`
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details
2023-05-01 16:46:07 +02:00
Aire-One 896c7f2f04 feat(scraper): function can populate `other_nodes`
To allow `extract_section_functions`  to populate `other_node`, we need
to use the `module_name` and migrate the function name scrap method to
use the actually displayed text instead of playing with the node `name`
attribute.

Because of this change, we also need to update
`extract_section_variables`. Not a big deal. BTW, we resolved an issue
where `string` variable can wrongly be detected as `enum`.
2023-05-01 16:46:07 +02:00
Aire-One 9156736682 feat(scraper): implement all `section_scrapers` 2023-05-01 16:46:07 +02:00
Aire-One f142f0e750 fix(types): Dag requires path 2023-05-01 16:46:07 +02:00
Aire-One 3d2d009542 chore: add cSpell wording 2023-05-01 16:46:07 +02:00
Aire-One eaf31b2f16 feat(scraper): move "Signals" to AST 2023-05-01 16:46:07 +02:00
Aire-One 09181259e1 run: some play with the entrypoint 2023-05-01 16:46:07 +02:00
Aire-One ab28bf8717 feat(scraper): move "Object properties" to AST 2023-05-01 16:46:07 +02:00
Aire-One b12721e1fd feat(types): introduce new data structures 2023-05-01 16:46:07 +02:00