Parrot::Pmc2c 0.4.5
Sponsored Links
Parrot::Pmc2c 0.4.5 Ranking & Summary
File size:
3.1 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1205
Date added:
2006-07-06
Publisher:
The Parrot Project Team
Parrot::Pmc2c 0.4.5 description
Parrot::Pmc2c is a PMC to C Code Generation.
SYNOPSIS
use Parrot::Pmc2c;
Parrot::Pmc2c (and the subclasses defined in this file) is used by tools/build/pmc2c.pl to generate C code from PMC files.
Functions
does_write($method, $section)
Returns whether a method writes.
count_newlines($string)
Returns the number of newlines (n) in $string.
dont_edit($pmcfile)
Returns the "DO NOT EDIT THIS FILE" warning text. $pmcfile is the name of the original source *.pmc file.
gen_ret($method, $body)
Generate the C code for a return statement, if the body is empty then make a cast if needed.
This method is imported by subclasses.
class_name($self, $class)
Returns the appropriate Parrot::Pmc2c subclass for the PMC ($self->{class}). $self is the hash reference passed to new(), and $class is Parrot::Pmc2c.
dynext_load_code($library_name, %classes)
$library_name is the name of the dynamic library to be created.
%classes is a map from the PMC names for which code is to be generated, to dump info (PMC metadata).
This function is exported.
Class Methods
new($self, $opt)
Returns $self as a new instance.
$self is a hash reference eval-ed from a *.dump file generated by tools/build/pmc2c.pl from a *.pmc file. It is bless-ed either into Parrot::Pmc2c::::Standard, or into one of the other special PMCs: default, delegate, Null, Ref or SharedRef.
$opt is a hash reference.
Instance Methods
line_directive($self,$line,$file)
Generates the C pre processor string for a #line directive, or an empty string if $self-{opt}{nolines}> is true.
line_directive_here($self,$output,$file)
Generates the C pre processor string for a #line directive to reset the compilers line number to the next physical line in the output.
get_vtable_section()
Creates a hash of all the method names containing vtable section. Called from init().
make_const($class)
If the PMC had its const_too flag set then this method is called in init() to to create the read-only set methods.
init($class)
Initializes the instance. $class is its class.
decl($classname, $method, $for_header)
Returns the C code for the PMC method declaration. $for_header indicates whether the code is for a header or implementation file.
includes()
Returns the C #include for the header file of each of the PMCs superclasses.
full_arguments($args)
Prepends INTERP, SELF to $args.
proto($type,$parameters)
Determines the prototype (argument signature) for a method body (see src/call_list).
rewrite_nci_method($class, $method, $super, $super_table)
Rewrites the method body performing the various macro substitutions for nci method bodies (see tools/build/pmc2c.pl).
rewrite_vtable_method($class, $method, $super, $super_table)
Rewrites the method body performing the various macro substitutions for vtable method bodies (see tools/build/pmc2c.pl).
body($method, $line, $out_name)
Returns the C code for the method body. $line is used to accumulate the number of lines, $out_name is the name of the output file we are generating.
methods($line, $out_name)
Returns the C code for the vtable methods. $line is used to accumulate the number of lines, $out_name is the name of the output file we are generating.
lib_load_code()
Returns the C code for loading a library.
pmc_is_dynpmc
Determines if a given PMC type is dynamically loaded or not.
init_func()
Returns the C code for the PMCs initialization method, or an empty string if the PMC has a no_init flag.
gen_c($out_name)
Generates the C implementation file code for the PMC. $out_name is the name of the output file we are generating.
hdecls()
Returns the C code function declarations for all the methods for inclusion in the PMCs C header file.
TODO include MMD variants.
gen_h($out_name)
Generates the C header file code for the PMC. $out_name is the name of the output file we are generating.
implements($method)
True if this class generates code for the method $method.
implements_vtable($method)
True if this class generates code for VTABLE method $method.
SYNOPSIS
use Parrot::Pmc2c;
Parrot::Pmc2c (and the subclasses defined in this file) is used by tools/build/pmc2c.pl to generate C code from PMC files.
Functions
does_write($method, $section)
Returns whether a method writes.
count_newlines($string)
Returns the number of newlines (n) in $string.
dont_edit($pmcfile)
Returns the "DO NOT EDIT THIS FILE" warning text. $pmcfile is the name of the original source *.pmc file.
gen_ret($method, $body)
Generate the C code for a return statement, if the body is empty then make a cast if needed.
This method is imported by subclasses.
class_name($self, $class)
Returns the appropriate Parrot::Pmc2c subclass for the PMC ($self->{class}). $self is the hash reference passed to new(), and $class is Parrot::Pmc2c.
dynext_load_code($library_name, %classes)
$library_name is the name of the dynamic library to be created.
%classes is a map from the PMC names for which code is to be generated, to dump info (PMC metadata).
This function is exported.
Class Methods
new($self, $opt)
Returns $self as a new instance.
$self is a hash reference eval-ed from a *.dump file generated by tools/build/pmc2c.pl from a *.pmc file. It is bless-ed either into Parrot::Pmc2c::::Standard, or into one of the other special PMCs: default, delegate, Null, Ref or SharedRef.
$opt is a hash reference.
Instance Methods
line_directive($self,$line,$file)
Generates the C pre processor string for a #line directive, or an empty string if $self-{opt}{nolines}> is true.
line_directive_here($self,$output,$file)
Generates the C pre processor string for a #line directive to reset the compilers line number to the next physical line in the output.
get_vtable_section()
Creates a hash of all the method names containing vtable section. Called from init().
make_const($class)
If the PMC had its const_too flag set then this method is called in init() to to create the read-only set methods.
init($class)
Initializes the instance. $class is its class.
decl($classname, $method, $for_header)
Returns the C code for the PMC method declaration. $for_header indicates whether the code is for a header or implementation file.
includes()
Returns the C #include for the header file of each of the PMCs superclasses.
full_arguments($args)
Prepends INTERP, SELF to $args.
proto($type,$parameters)
Determines the prototype (argument signature) for a method body (see src/call_list).
rewrite_nci_method($class, $method, $super, $super_table)
Rewrites the method body performing the various macro substitutions for nci method bodies (see tools/build/pmc2c.pl).
rewrite_vtable_method($class, $method, $super, $super_table)
Rewrites the method body performing the various macro substitutions for vtable method bodies (see tools/build/pmc2c.pl).
body($method, $line, $out_name)
Returns the C code for the method body. $line is used to accumulate the number of lines, $out_name is the name of the output file we are generating.
methods($line, $out_name)
Returns the C code for the vtable methods. $line is used to accumulate the number of lines, $out_name is the name of the output file we are generating.
lib_load_code()
Returns the C code for loading a library.
pmc_is_dynpmc
Determines if a given PMC type is dynamically loaded or not.
init_func()
Returns the C code for the PMCs initialization method, or an empty string if the PMC has a no_init flag.
gen_c($out_name)
Generates the C implementation file code for the PMC. $out_name is the name of the output file we are generating.
hdecls()
Returns the C code function declarations for all the methods for inclusion in the PMCs C header file.
TODO include MMD variants.
gen_h($out_name)
Generates the C header file code for the PMC. $out_name is the name of the output file we are generating.
implements($method)
True if this class generates code for the method $method.
implements_vtable($method)
True if this class generates code for VTABLE method $method.
Parrot::Pmc2c 0.4.5 Screenshot
Parrot::Pmc2c 0.4.5 Keywords
Pmc2c
PMC
C Code Generation
Pmc2c 0.4.5
PMCs
Generation
C code
To C
Code generation
output file
method
code
c
name
file
class
Bookmark Parrot::Pmc2c 0.4.5
Parrot::Pmc2c 0.4.5 Copyright
WareSeeker periodically updates pricing and software information of Parrot::Pmc2c 0.4.5 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Parrot::Pmc2c 0.4.5 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
Parrot::OpTrans::C is a Perl module Ops to C Code Generation. Free Download
Parrot::OpTrans is a Perl module that can transform Ops to C Code. Free Download
Parrot::Docs::Group is a group of documentation items. Free Download
Parrot::Docs::Section::C is a C source code documentation section. Free Download
Form Spam Bot Blocker is a PHP class that can generate forms that prevent submission by spam robots. Free Download
Rose::HTML::Form is a HTML form base class. Free Download
CL-EMB is a library to embed Common Lisp and special template tags into normal text files. Free Download
Wombat is a Perl servlet container. Free Download
Latest Software
Popular Software
Favourite Software