Skip to content

Allow extended #if grammar #273

Description

@cloudRoutine

Idea 6079342: Allow extended #if grammar

Status : completed
Submitted by Don Syme on 6/20/2014 12:00:00 AM
6 votes

Allow an extended grammar for #if/#elif.

if expr

elif expr

with grammar:
expr =
| expr && expr
| expr || expr
| not expr
| (expr)
| IDENT
With usual precedences. The syntax !IDENT should also be parsed and interpreted as “not”, though a warning given that “not” should be used instead in F# code.
The implementation must also provide sufficient tests.

Response

** by fslang-admin on 1/21/2015 12:00:00 AM **

Completed for F# 4.0+ see dotnet/fsharp#55
Don Syme, F# Language Evolution
Archived Uservoice Comments

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions