main
¶
Classes:
Functions:
ArxMain
dataclass
¶
ArxMain(
input_files: list[str] = list(),
output_file: str = "",
is_lib: bool = False,
link_mode: Literal["auto", "pie", "no-pie"] = "auto",
)
Methods:
-
compile– -
run– -
run_binary– -
run_shell– -
run_tests– -
show_ast– -
show_llvm_ir– -
show_tokens–
compile
¶
Source code in src/arx/main.py
763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 | |
run
¶
run(**kwargs: Any) -> None
Source code in src/arx/main.py
540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 | |
run_binary
¶
run_binary() -> None
Source code in src/arx/main.py
752 753 754 755 756 757 758 759 760 761 | |
run_shell
¶
run_shell() -> None
Source code in src/arx/main.py
746 747 748 749 750 | |
run_tests
¶
Source code in src/arx/main.py
582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 | |
show_ast
¶
show_ast() -> None
Source code in src/arx/main.py
696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 | |
show_llvm_ir
¶
show_llvm_ir() -> None
Source code in src/arx/main.py
730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 | |
show_tokens
¶
show_tokens() -> None
Source code in src/arx/main.py
718 719 720 721 722 723 724 725 726 727 728 | |
FileImportResolver
dataclass
¶
FileImportResolver(
input_files: tuple[str, ...],
cache: dict[str, ParsedModule] = dict(),
_source_root_cache: dict[Path, Path | None] = dict(),
)
get_module_name_from_file_path
¶
Source code in src/arx/main.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |