Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Perlito backend - stub code for Perlito6::X64::Assembler, Perlito5::X…
…64::Assembler
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| use strict; | ||
| use warnings; | ||
|
|
||
| package Perlito6::X64::Assembler; | ||
|
|
||
| sub new { | ||
| my $class = shift; | ||
| bless {@_}, $class; | ||
| } | ||
|
|
||
| sub to_hex { | ||
| my $self = $_[0]; | ||
| my $text = $_[1]; | ||
| return ''; | ||
| } | ||
|
|
||
| 1; | ||
|
|
||
| __END__ | ||
|
|
||
| =pod | ||
| =head1 Perlito5::X64::Assembler | ||
| The Perlito5 x64 backend | ||
| =head1 Synopsis | ||
| use Perlito5::X64::Assembler; | ||
| my $asm = Perlito6::X64::Assembler->new(); | ||
| say $asm->to_hex(); | ||
| =cut | ||
|
|
||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # =begin Pod | ||
| # | ||
| # =head1 Perlito6::X64::Assembler | ||
| # | ||
| # The Perlito6 x64 backend | ||
| # | ||
| # =head1 Synopsis | ||
| # | ||
| # use Perlito6::X64::Assembler; | ||
| # my $asm = Perlito6::X64::Assembler.new(); | ||
| # say $asm.to_hex(); | ||
| # | ||
| # =end Pod | ||
|
|
||
| class Perlito6::X64::Assembler { | ||
|
|
||
| method to_hex($text) { | ||
| return ""; | ||
| } | ||
|
|
||
| } | ||
|
|
||
| # vim: ft=perl6 | ||
|
|