monogatari

« XPathDocument2Editable | Main | Hello, XQuery »

NemerleCodeProvider

Today was the first day I tried to touch Nemerle. Inspired by Miguel's post, I created NemerleCodeProvider. There must be many mistakes caused by my ignorant of nemerle specification, but right now it would do something.

Since our xsd.exe can load external code provider, I tried my provider with xsd.exe.

$ cat test.xml <root> <foo/> <bar/> <baz/> </root> $ xsd test.xml Written file .\test.xsd $ xsd /c /g:Nemerle.Contrib.NemerleCodeProvider,NemerleCodeProvider.dll Loaded custom generator type Nemerle.Contrib.NemerleCodeProvider,NemerleCodeProvider.dll . Written file .\test.n --> [*1] $ xsd /d /g:Nemerle.Contrib.NemerleCodeProvider,NemerleCodeProvider.dll Loaded custom generator type Nemerle.Contrib.NemerleCodeProvider,NemerleCodeProvider.dll . Written file .\test.n --> [*2]

[*1] test.n

[*2] test.n

The former test.n compiles, but curiously the latter one didn't compile. Today I have no clue (I tried to talk to nemerle community but could not get connected).

|