operators
¶
Classes:
-
AndOp– -
BinaryOp– -
BoolBinaryOp– -
BoolUnaryOp– -
DataTypeOps– -
NandOp– -
NorOp– -
NotOp– -
OrOp– -
UnaryOp– -
XnorOp– -
XorOp–
AndOp
¶
AndOp(
lhs: DataType,
rhs: DataType,
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: Optional[ASTNodes] = None,
)
Bases: BoolBinaryOp
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/types/operators.py
533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/types/operators.py
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
BinaryOp
¶
BinaryOp(
op_code: str,
lhs: DataType,
rhs: DataType,
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: Optional[ASTNodes] = None,
)
Bases: DataTypeOps
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/types/operators.py
329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/types/operators.py
380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
BoolBinaryOp
¶
BoolBinaryOp(
op_code: str,
lhs: DataType,
rhs: DataType,
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: Optional[ASTNodes] = None,
)
Bases: BinaryOp
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/types/operators.py
417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/types/operators.py
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
BoolUnaryOp
¶
BoolUnaryOp(
op_code: str,
operand: DataType,
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: Optional[ASTNodes] = None,
)
Bases: UnaryOp
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/types/operators.py
474 475 476 477 478 479 480 481 482 483 484 485 486 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/types/operators.py
496 497 498 499 500 501 502 503 504 505 506 507 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
DataTypeOps
¶
DataTypeOps(
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: Optional[ASTNodes] = None,
)
Bases: DataType
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/base.py
658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/base.py
685 686 687 688 689 690 691 692 693 694 695 696 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
NandOp
¶
NandOp(
lhs: DataType,
rhs: DataType,
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: Optional[ASTNodes] = None,
)
Bases: BoolBinaryOp
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/types/operators.py
686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/types/operators.py
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
NorOp
¶
NorOp(
lhs: DataType,
rhs: DataType,
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: Optional[ASTNodes] = None,
)
Bases: BoolBinaryOp
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/types/operators.py
737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/types/operators.py
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
NotOp
¶
NotOp(
operand: DataType,
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: Optional[ASTNodes] = None,
)
Bases: BoolUnaryOp
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/types/operators.py
835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/types/operators.py
496 497 498 499 500 501 502 503 504 505 506 507 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
OrOp
¶
OrOp(
lhs: DataType,
rhs: DataType,
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: Optional[ASTNodes] = None,
)
Bases: BoolBinaryOp
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/types/operators.py
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 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/types/operators.py
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
UnaryOp
¶
UnaryOp(
op_code: str,
operand: DataType,
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: Optional[ASTNodes] = None,
)
Bases: DataTypeOps
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/types/operators.py
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/types/operators.py
290 291 292 293 294 295 296 297 298 299 300 301 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
XnorOp
¶
XnorOp(
lhs: DataType,
rhs: DataType,
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: Optional[ASTNodes] = None,
)
Bases: BoolBinaryOp
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/types/operators.py
788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/types/operators.py
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |
XorOp
¶
XorOp(
lhs: DataType,
rhs: DataType,
loc: SourceLocation = NO_SOURCE_LOCATION,
parent: Optional[ASTNodes] = None,
)
Bases: BoolBinaryOp
Methods:
-
get_struct– -
to_json– -
to_yaml–
Source code in packages/astx/src/astx/types/operators.py
635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 | |
get_struct
¶
get_struct(simplified: bool = False) -> ReprStruct
Source code in packages/astx/src/astx/types/operators.py
441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 | |
to_json
¶
Source code in packages/astx/src/astx/base.py
400 401 402 403 404 405 406 407 408 409 | |
to_yaml
¶
Source code in packages/astx/src/astx/base.py
387 388 389 390 391 392 393 394 395 396 397 398 | |