This commit is contained in:
2023-07-14 12:08:11 -03:00
parent df2c0c147a
commit 817eea895a
4 changed files with 48 additions and 12 deletions

View File

@ -1,4 +1,3 @@
CC=gcc
shortcodes.c: shortcodes.rl
ragel -G2 shortcodes.rl -o shortcodes.c
clean:

View File

@ -1,13 +1,12 @@
@[Link(ldflags: "#{__DIR__}/shortcodes.o")]
lib Shortcodes
struct Chunk
start : UInt32
len : UInt32
end
struct ScError
position: UInt32
position : UInt32
code : UInt32
end
@ -28,5 +27,5 @@ lib Shortcodes
errcount : UInt32
end
fun parse(input : Pointer(LibC::Char)) : ScResult;
end
fun parse(input : Pointer(LibC::Char)) : ScResult
end