Skip to content

BrainbirdLab/Walrus-Programming-language

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Walrus

Walrus is a simple and efficient programming language designed for file system operations and directory management. With its intuitive syntax and powerful features, Walrus makes it easy to work with files, directories, and file metadata.

Features

  • File System Operations: Walrus provides built-in functions for reading directories, accessing file metadata, and performing file system operations.
  • Directory Management: Walrus includes classes and methods for working with directories, making it easy to navigate directory structures and manipulate files.
  • Date and Time Handling: Walrus includes a time module for working with dates and times, allowing you to perform operations based on file creation times and other time-related data.

Example

const a = 40;

let b;

if a > 50 {
    b = "a is more than 50";
} elf a < 50 {
    b = "a is less that 50";
} elf 67 != a && a > 50{
    b = "a is 50";
} els {
    b = "none";
}

todos

Lexer

  • Complete
  • Error print

Parser

  • Var declare
  • Var assign
  • arrays
  • Infer type from value
  • funtions
  • error print
  • function call
  • conditionals (if, else if, else)
  • loops (for, foreach, while)
  • structs & traits
  • switch case

Semantic Analyzer

  • in progress

Code Generator

  • in progress