#Optimizations/Safety/Code Redundancy concerns about a scripting language I'm developing

2 messages · Page 1 of 1 (latest)

nova shoal
#

This is a scripting language that I'm creating for the sole purpose of learning how programming languages are made. Are there any bad things in my code/safety concerns? (Also, the Parse/Expression folder is incomplete).
The lexer has a tokenizer, simple error detection, tokens created by syntax (variable tags etc), and comment detection.

Example syntax of the language:

var <const> var_name = 1 // var <variable tag> variable_name = value
var B = 3
display(var_name) // print statement

if (B > var_name) begin
   display("B is greater than var_name")
else
   display("B isn't greater than var_name")
end

(Please import the project into Visual Studio 2022, as it was made with it)
https://github.com/RUBYR-AY-development/simple-language-proto

GitHub

Contribute to RUBYR-AY-development/simple-language-proto development by creating an account on GitHub.

round crypt
#

looks like lua