Skip to content

Low-Level-Code/jlang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code.

Folder Structure

The workspace contains two folders by default, where:

  • src: the folder to maintain sources
  • lib: the folder to maintain dependencies

Meanwhile, the compiled output files will be generated in the bin folder by default.

If you want to customize the folder structure, open .vscode/settings.json and update the related settings there.

Dependency Management

The JAVA PROJECTS view allows you to manage your dependencies. More details can be found here.

Grammar for the Scanner

expression → equality ;

equality → comparison ( ( "!=" | "==" ) comparison )* ;

comparison → term ( ( ">" | ">=" | "<" | "<=" ) term )* ;

term → factor ( ( "-" | "+" ) factor )* ;

factor → unary ( ( "/" | "" ) unary ) ;

unary → ( "!" | "-" ) unary | primary ;

primary → NUMBER | STRING | "true" | "false" | "nil" | "(" expression ")" ;

Overview

String and build-in functions

String and build-in functions

Array and String Sorting

Array and String Sorting

Defining nested functions with managed scopes

Defining nested functions with managed scopes

Benchmarking with python

Benchmarking with python

Not that Python is made completely in C, and JLang is made in Java, although Java is relatively slower than C, the speed is explaned by the lack of features from JLang that Python has.

Mixed Array Items' types

Mixed Array Items' types

Class Definition, Init fucntion , Super Keyword , This keyword and multiple-class inheritance

Class Definition, Init fucntion , Super Keyword , This keyword and multiple-class inheritance

Python-like syntax for class inheritance

Python-like syntax for class inheritance

Json Objects

Json Objects

Array Built-ins

Array Built-ins

Notes :

The project is not finished yet, although it may seem like it's perfect, there I'm still planning to add file imports, I/O, threading and more...

About

Simple Interpreter in Java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages