8000 GitHub - BrandonHilde/PHI: PHI is a low level programing language. Work in progress.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

BrandonHilde/PHI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHI Language

Soon operating systems will be as easy to code as desktop apps

Example Program:


phi.Hello:Bootloader
{
	str hello: 'Hello, World!\r\n';
    	str newline: '\r\n';
	str name:[40];
	
	log 'What is your name: ';
	ask name;
	log newline;
	log 'hello: ' name;
	log newline;
	log 'Press any key to continue...';
	
	call Bootloader.WaitForKeyPress;
	call Bootloader.JumpToSectorTwo;
}

phi.SectorTwo:OS
{
	str Greetings: 'Welcome to PHI language!';
	
	log '\r\n' Greetings;
}

To Build:

1. Install NASM (Netwide Assembler) (can also use FASM Flat Assembler)
2. Install QEMU (qemu-system-x86_64)
3. Run the ConvertFile program
4. Specify the file (hello.phi)
5. After it runs it will produce a phi.ASM file
6. cd into the folder
7. & [insert path]\buildSingleASM.bat phi

More Build Info

Goals:

1. Direct access to ASM
2. Optional memory safety 
3. Syntax Efficiency 
4. Compile to ASM and then to Binary
5. Compatibility with C

Timeline:

  • Write Assembly equivilents for PHI functionality
  • Write a PHI to Assembly converter in C#
  • Write a Assembly Intel x86(and AT&T eventually) to Arm converter in C#
  • Expand PHI to be a full language
  • Rewrite the converters in PHI so the language is self dependent
  • Basic set of drivers as built-in functions
  • About

    PHI is a low level programing language. Work in progress.

    Resources

    License

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published
    0