feat: changed single line comment syntax from '#' to '//'
This commit is contained in:
parent
42fbda9f01
commit
5715d40eed
|
@ -1,13 +1,14 @@
|
||||||
# ----------------------------------------
|
// ----------------------------------------
|
||||||
# Bootstrap module for libgscstd-glibc
|
// Bootstrap module for libgscstd-glibc
|
||||||
# used on GNU/Linux operating systems
|
// used on GNU/Linux operating systems
|
||||||
|
|
||||||
include "os"
|
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()
|
fun main()
|
||||||
|
|
||||||
# entrypoint function
|
// entrypoint function
|
||||||
#[nomangle,noreturn,entry]
|
#[nomangle,noreturn,entry]
|
||||||
fun _start() {
|
fun _start() {
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
include "types"
|
include "types"
|
||||||
|
|
||||||
# from unistd.h
|
// from unistd.h
|
||||||
#[nomangle,preserve,noreturn]
|
#[nomangle,preserve,noreturn]
|
||||||
fun _exit(in i32: code)
|
fun _exit(in i32: code)
|
||||||
|
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
|
|
||||||
# Signed integer types
|
// Signed integer types
|
||||||
type signed half half int: i8
|
type signed half half int: i8
|
||||||
type signed half int: i16
|
type signed half int: i16
|
||||||
type signed int: i32
|
type signed int: i32
|
||||||
type signed long int: i64
|
type signed long int: i64
|
||||||
type signed long long int: i128
|
type signed long long int: i128
|
||||||
|
|
||||||
# Unsigned integer types
|
// Unsigned integer types
|
||||||
type unsigned half half int: u8
|
type unsigned half half int: u8
|
||||||
type unsigned half int: u16
|
type unsigned half int: u16
|
||||||
type unsigned int: u32
|
type unsigned int: u32
|
||||||
type unsigned long int: u64
|
type unsigned long int: u64
|
||||||
type unsigned long long int: u128
|
type unsigned long long int: u128
|
||||||
|
|
||||||
# Floating point
|
// Floating point
|
||||||
type half float: f16
|
type half float: f16
|
||||||
type float: f32
|
type float: f32
|
||||||
type double float: f64
|
type double float: f64
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
%%
|
%%
|
||||||
"\n" yyLineNumber++;
|
"\n" yyLineNumber++;
|
||||||
|
|
||||||
#.* ;
|
//.* ;
|
||||||
|
|
||||||
"::" {return(ModSep);};
|
"::" {return(ModSep);};
|
||||||
":" {DEBUG("\"%s\" tokenized with \':\'", yytext); return(':');};
|
":" {DEBUG("\"%s\" tokenized with \':\'", yytext); return(':');};
|
||||||
|
|
Loading…
Reference in New Issue