[link:research.microsoft.com]

contains information regarding grammar.

By on 2/23/2009 7:20 AM ()

Nested modules seem to require the equals sign even in light mode, the following seems to compile okay for me:

#light

namespace a

module b = //begin

type c = string

module d = //begin

type e = c * int

//end

//end

module f = //begin

type g = string

//end

Concerning the grammar the best place to look is the spec:

[link:research.microsoft.com]

Sections 3 & 15 cover lexical stuff. If you want you can look at the lexer/parser

in "FSharp-1.9.6.2\source\fsharp\lex.mll" & "FSharp-1.9.6.2\source\fsharp\pars.mly"

Cheers,

Rob

By on 12/26/2008 12:52 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper