Skip to content

turbobuilt/technoscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TechnoScript AST

A compact AST implementation for a new language design with JavaScript-inspired scoping.

Features

  • LexicalScopeNode: Root and function scopes with variable maps
  • Variable Resolution: Cross-scope variable references with depth tracking
  • Goroutines: go statement for concurrent execution
  • Simple Types: Only int64 for reduced complexity

Usage

make
./technoscript

Language Syntax

var x: int64 = 0;
function test() {
    var y: int64 = 10;
    print("hello world", x, y)  // x resolves from depth 1, y from depth 2
}
test()

go test()  // goroutine execution

Architecture

  • ast.h: AST node definitions with LexicalScopeNode containing variable maps
  • parser.cpp: Tokenizer and recursive descent parser
  • analyzer.cpp: Two-phase analysis for scope resolution
  • main.cpp: Test driver showing scope depth resolution

The analyzer sets up parent pointers and resolves variable references to their defining scope depth.

technoscript

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages