4ab444d1创建于 17 小时前历史提交
文件最后提交记录最后更新时间
Split the resulting abc file into several ones2 个月前
Test fix declgen2Phase1 个月前
revert 'Remove ets.stobj.name and ets.ldobj.name'5 天前
!10775 merge hightlight into master12 天前
!10874 merge fix33744 into master2 天前
Add cacheDir7 个月前
!10872 merge fix_override_async into master2 天前
Feat: interop tags7 天前
Update ets2panda documentation3 个月前
fix increment compile10 天前
[ metadata ] Implement metadata loading2 个月前
revert 'Remove ets.stobj.name and ets.ldobj.name'5 天前
return_positive1 个月前
Fix boundary scenarios17 小时前
!10775 merge hightlight into master12 天前
Fix more line break6 天前
!10699 merge tsoverload into master16 天前
Remove_TS_overload_workaround21 天前
!10874 merge fix33744 into master2 天前
Fix explicit_export in arkui_ace_engine1 天前
增强CodeFix能力29 天前
Fixes for codecheck2 年前
Update ets2panda documentation3 个月前
Update all copyrights1 年前
revert 'Remove ets.stobj.name and ets.ldobj.name'5 天前
revert 'Remove ets.stobj.name and ets.ldobj.name'5 天前
Rebase to c5324539e4546267f5263cead88f28efcae5a41b2 年前
Update ets2panda documentation3 个月前
Title: Update reviewer list23 天前
Split the resulting abc file into several ones2 个月前
Split the resulting abc file into several ones2 个月前
gn format5 个月前
Merge changes from 0328/linter into 060311 个月前
README.md

es2panda

ArkTS/ETS frontend parser, checker, lowering pipeline, and bytecode compiler.

Specification Source of Truth

CLI Usage

es2panda [OPTIONS] [input file] -- [arguments]
  • Option definitions: util/options.yaml
  • Tail argument: input (input file)

Build/Run Smoke Flow

Run from a build directory that contains ./bin:

./bin/es2panda --extension=ets --opt-level=0 --output=out.abc fault.ets
./bin/verifier --boot-panda-files=./plugins/ets/etsstdlib.abc --load-runtimes=ets out.abc
./bin/ark --boot-panda-files=./plugins/ets/etsstdlib.abc --load-runtimes=ets --panda-files=out.abc out.abc fault.ETSGLOBAL::main

Running Frontend Test Suites

Run from static_core:

static_core/tests/tests-u-runner/main.py --force-generate --ets-cts --build-dir .

Useful options: --processes 6, --verbose short.

Debugging Aids

  • AST source dump: node->DumpEtsSrc()
  • Type dump: type->ToString()
  • Signature dump: sig->ToString()
  • Dump source after a phase: --dump-ets-src-after-phases=<PhaseName>

Documentation

  • Onboarding: docs/frontend-onboarding.md
  • Docs index: docs/README.md
  • Repository/component rules: AGENTS.md, */AGENTS.md