Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.

v0.4.1

Choose a tag to compare

@HelloAIXIAOJI HelloAIXIAOJI released this 23 Jul 22:46
· 928 commits to master since this release

CodeNothing Programming Language Interpreter v0.4.1 Changelog

[v0.4.1] - 2025-07-24

New Features

✨ Strong Type System

  • Implemented strict type checking for variables
  • Added auto type support for weakly-typed variables (e.g. variable : auto = value)
  • Type matching check during variable declaration
  • Type constraint check during variable assignment
  • Maintained strong type checking for constants
  • Supports mixed type system: strong + weak typing options

Type System Features

  • 🔒 Strongly-Typed Variables: intVar : int = 42 - Type-safe, only accepts same-type assignments
  • 🔄 Auto Type: autoVar : auto = value - Weakly-typed, accepts any type assignments
  • Type Checking: Real-time type validation during declaration and assignment
  • 📝 Clear Errors: Detailed type mismatch error messages

Technical Improvements

  • 🔧 Extended AST with Type::Auto type
  • 🔧 Enhanced parser to support auto keyword
  • 🔧 Added variable type storage mechanism in interpreter
  • 🔧 Implemented type constraint checking for variable assignments

CodeNothing 编程语言解释器 v0.4.1 更新日志

[v0.4.1] - 2025-07-24

新增功能

✨ 强类型系统

  • 实现变量强类型检查
  • 新增 auto 类型支持弱类型变量 (如 variable : auto = value)
  • 变量声明时进行类型匹配检查
  • 变量赋值时进行类型约束检查
  • 保持常量的强类型检查机制
  • 支持混合类型系统:强类型 + 弱类型选择

类型系统特性

  • 🔒 强类型变量: intVar : int = 42 - 类型安全,只能赋值相同类型
  • 🔄 Auto 类型: autoVar : auto = value - 弱类型,可以赋值任意类型
  • 类型检查: 变量声明和赋值时的实时类型验证
  • 📝 清晰错误: 详细的类型不匹配错误信息

技术改进

  • 🔧 扩展 AST 添加 Type::Auto 类型
  • 🔧 增强解析器支持 auto 关键字
  • 🔧 在解释器中添加变量类型存储机制
  • 🔧 实现变量赋值的类型约束检查

Installation Guide

Download Steps

  1. Download the following two packages for your operating system:
    • Interpreter main package (codenothing-{OS}.zip
    • Standard library package (codenothing-all-libraries-{OS}-latest.tar.gz

Installation Steps

  1. Extract both packages
  2. Create a subfolder named library in the interpreter's main directory
  3. Copy all extracted library files (.dll or .so) into the newly created library folder

Usage

After completing the above steps, you can start using the CodeNothing programming language interpreter.

System Requirements

  • Windows/Linux operating system
  • Appropriate file extraction tools

安装指南

下载步骤

  1. 下载适用于您操作系统的以下两个压缩包:
    • 解释器本体压缩包(codenothing-{OS}.zip
    • 标准库(library)压缩包(codenothing-all-libraries-{OS}-latest.tar.gz

安装步骤

  1. 解压两个压缩包
  2. 在解释器本体文件夹中创建子文件夹:library
  3. 将解压出的 library 文件(.dll 或 .so)全部复制到新建的 library 文件夹中

使用说明

完成上述步骤后,您就可以开始使用 CodeNothing 编程语言解释器了。

系统要求

  • Windows/Linux 操作系统
  • 适当的文件解压工具

Full Changelog: CodeNothingCommunity/CodeNothing@v0.4.0...v0.4.1