mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 08:37:24 +01:00 
			
		
		
		
	compiler_vm: add PHP
This commit is contained in:
		
							parent
							
								
									d32a3dae0f
								
							
						
					
					
						commit
						083223b595
					
				
							
								
								
									
										18
									
								
								modules/compiler_vm/languages/php.pm
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										18
									
								
								modules/compiler_vm/languages/php.pm
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,18 @@
 | 
			
		||||
#!/usr/bin/perl
 | 
			
		||||
 | 
			
		||||
use warnings;
 | 
			
		||||
use strict;
 | 
			
		||||
 | 
			
		||||
package php;
 | 
			
		||||
use parent '_default';
 | 
			
		||||
 | 
			
		||||
sub initialize {
 | 
			
		||||
  my ($self, %conf) = @_;
 | 
			
		||||
 | 
			
		||||
  $self->{sourcefile}      = 'prog.php';
 | 
			
		||||
  $self->{execfile}        = 'prog.php';
 | 
			
		||||
  $self->{default_options} = '';
 | 
			
		||||
  $self->{cmdline}         = 'php $options $sourcefile';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
1;
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user