mirror of
https://github.com/Smaug123/WoofWare.Myriad
synced 2025-10-12 15:38:42 +00:00
Add JSON parse source gen (#9)
This commit is contained in:
19
ConsumePlugin/RecordFile.fs
Normal file
19
ConsumePlugin/RecordFile.fs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace ConsumePlugin
|
||||
|
||||
type ParseState =
|
||||
| AwaitingKey
|
||||
| AwaitingValue of string
|
||||
|
||||
/// My whatnot
|
||||
[<MyriadPlugin.RemoveOptions>]
|
||||
type RecordType =
|
||||
{
|
||||
/// A thing!
|
||||
A : int option
|
||||
/// Another thing!
|
||||
B : string
|
||||
/// Yet another thing!
|
||||
C : float list
|
||||
}
|
||||
|
||||
static member DefaultA () : int = 3
|
Reference in New Issue
Block a user