Please sign in to access this page

tungsten

tungsten Used AI

29 devlogs
91h 32m
Created by RickIsGone

a statically-typed multi-paradigm compiled programming language made with the LLVM framework and inspired by C++ and Java

Timeline

i just finished adding parsing for: sizeof and nameof, and got codegen functions working for: sizeof, nameof, VariableExpressionAST (fixed), VariableDeclarationAST (kinda fixed), BinaryExpressionAST (only partially)

Added staticCast and constCast parsing and lexing.
I'm still working on fixing the codegen for binops and function calls and adding the rest of the codegen functions

Update attachment

added codegen for while statements and fixed cmake for arch linux

Update attachment

i just finished making a vscode extension for tungsten, it supports syntax highlighting, compiling and running tungsten code (it still doesnt compile cause of the actual compiler not working)

Update attachment

i've started implementing the codegen functions and i got some of them working to the point i can actually generate some pretty simple programs, here's a list of all the nodes i made the codegen function work for:
NumberExpression, StringExpression, BinaryExpression(only some operators), IfStatement, ReturnStatement, ExitStatement, BuiltinFile, BuiltinFunction(only the codegen, the actual function part is still not done), BuiltinLine, BuiltinColumn, Function, FunctionPrototype, BlockStatement, CallExpression, VariableExpression, VariableDeclaration

rework of the tpkg progress bar

Update attachment

i started working on workflows to automate builds and releases but building on windows is revealing to be a living hell, im successfully building on ubuntu but i'll probably stop working on the window workflow for a bit

Update attachment

finally parsing class members correctly

Update attachment

added almost full support for classes during parsing, now i just have to add support for referencing classes members like this class.member and add inheritance and all the rest of the good stuff

Update attachment

added support for some builtin core functions

Update attachment

i restructured the project's structure and started working a bit on the package manager

Update attachment

stated adding some buggy codegen functions

Update attachment

I'm done with parsing, i just need to implement unary operators and support for extern functions and module/import/export stuff and type modifiers like pointers, references and arrays but other than that im done.
Now i can finally start working on codegen with llvm

Update attachment

finshed adding a working version of the function to parse if and else statements, still need to work on the condition parsing

Update attachment

i've added a lot of parsing functions and the parser actually kinda works.
now i only need to add parsing for binary operations and conditional statements

Update attachment

added better error messages including filename, line and column

Update attachment

added base of _parseBlock function, still need to add the line parsing part

Update attachment

added some of the necessary parsing functions, still working on the rest.
I'm still working on them and they are not the final version, I still need to add a panic mode for when i find an error so that the parser won't give me multiple errors when parsing something with a single error. I also added a symbol table for identifiers

Update attachment

I just finished adding some of the necessary AST nodes to the language, i'm now working on the recursive descent parser to make sure it can actually parse those nodes

Update attachment

I reworked the project's structure and i began working on the parsing.
I also started working on the language core and stdlib

Update attachment

modified the CMakeLists to also compile with emscripten

Update attachment

i started studying parsing algorithms to see which one would be better to implement for my parser and I'll probably go with a recursive descent parser

Update attachment

Refactoring of the token module so instead of following the snake_case convention they now follow the PascalCase convention

Update attachment

Fixed an error in the lexer during the parsing phase and added new token types

Update attachment

Updated a bit the README to make it a little better

Update attachment

Fixed the handling of fixed size tokens so instead of entering an infinite loop it will push an invalid token in the token vector, it's still a bad way to handle errors but i want to focus on the parsing

Update attachment

Started adding the first parsing functions and started refatoring the lexing function

Update attachment

Added basic AST nodes to (hopefully) begin parsing the tokens already generated by the lexer

Update attachment
RickIsGone RickIsGone about 2 months ago
clion with a modified version of gruvbox
CT5 CT5 about 2 months ago
What editor is this?

separated the Token class from the Lexer and made into a module of its own

Update attachment