feat: changed single line comment syntax from '#' to '//'

This commit is contained in:
Sven Vogel 2024-10-10 12:00:14 +02:00
parent 42fbda9f01
commit 5715d40eed
4 changed files with 11 additions and 10 deletions

View File

@ -1,13 +1,14 @@
# ----------------------------------------
# Bootstrap module for libgscstd-glibc
# used on GNU/Linux operating systems
// ----------------------------------------
// Bootstrap module for libgscstd-glibc
// used on GNU/Linux operating systems
include "os"
# main function is to be implemented by the application source
// main function is to be implemented by the application source
#[nomangle]
fun main()
# entrypoint function
// entrypoint function
#[nomangle,noreturn,entry]
fun _start() {
main()

View File

@ -1,7 +1,7 @@
include "types"
# from unistd.h
// from unistd.h
#[nomangle,preserve,noreturn]
fun _exit(in i32: code)

View File

@ -1,19 +1,19 @@
# Signed integer types
// Signed integer types
type signed half half int: i8
type signed half int: i16
type signed int: i32
type signed long int: i64
type signed long long int: i128
# Unsigned integer types
// Unsigned integer types
type unsigned half half int: u8
type unsigned half int: u16
type unsigned int: u32
type unsigned long int: u64
type unsigned long long int: u128
# Floating point
// Floating point
type half float: f16
type float: f32
type double float: f64

View File

@ -28,7 +28,7 @@
%%
"\n" yyLineNumber++;
#.* ;
//.* ;
"::" {return(ModSep);};
":" {DEBUG("\"%s\" tokenized with \':\'", yytext); return(':');};