Parse single instruction in neutral text
This commit is contained in:
11
ldtext/test.fsx
Normal file
11
ldtext/test.fsx
Normal file
@@ -0,0 +1,11 @@
|
||||
#load ".paket/load/net9.0/main.group.fsx"
|
||||
#load "LDText.fs"
|
||||
#load "Parser.fs"
|
||||
#load "Lexer.fs"
|
||||
|
||||
let parse (s:string) =
|
||||
s |> System.Text.Encoding.ASCII.GetBytes |> FSharp.Text.Lexing.LexBuffer<byte>.FromBytes |> Parser.instr(Lexer.read)
|
||||
|
||||
parse "abc()"
|
||||
parse "abc(def)"
|
||||
// parse "abc(def,ghi)"
|
Reference in New Issue
Block a user