Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding unit tests for directives

  • Loading branch information...
commit 1ac076282d8b6ac0a350822f39442f643d0c4e87 1 parent 0ebc652
@OkayX6 OkayX6 authored
View
32 test/data/lexing/fsharp/preprocessor.fs
@@ -1,15 +1,17 @@
- #light
- #if VERSION1
- #else
- #endif
- #if INTERACTIVE
- # 25
- #line 25
- #r "System.Core"
- #I @"c:\Projects\Libraries\Bin"
- #load "library.fs"
- #time "on"
- #help
- #q
- #quit
- #endif
+#light
+#if VERSION1
+#else
+#endif
+# 25
+#line 25
+#r "System.Core"
+#reference "System.Core"
+#I @"c:\Projects\Libraries\Bin"
+#Include @"c:\Projects\Libraries\Bin"
+#load "library.fs"
+#time "on"
+#nowarn
+#help
+#q
+#quit
+#endif
View
48 test/data/lexing/fsharp/preprocessor.fs.gold
@@ -1,23 +1,45 @@
PP_LIGHT
-PP_IF
-IDENTIFIER
-PP_ELSE
+NEW_LINE
+PP_IF_SECTION
+WHITE_SPACE
+PP_CONDITIONAL_SYMBOL
+NEW_LINE
+PP_ELSE_SECTION
+NEW_LINE
PP_ENDIF
-PP_IF
-IDENTIFIER
-PP_SHARP
-INT32_LITERAL
+NEW_LINE
+HASH
+WHITE_SPACE
+INT_LITERAL
+NEW_LINE
PP_LINE
-INT32_LITERAL
+WHITE_SPACE
+PP_DEC_DIGITS
+NEW_LINE
PP_R
-STRING_LITERAL
+PP_MESSAGE
+NEW_LINE
+PP_REFERENCE
+PP_MESSAGE
+NEW_LINE
PP_I
-VERBATIM_STRING_LITERAL
+PP_MESSAGE
+NEW_LINE
+PP_INCLUDE
+PP_MESSAGE
+NEW_LINE
PP_LOAD
-STRING_LITERAL
+PP_MESSAGE
+NEW_LINE
PP_TIME
-STRING_LITERAL
+PP_MESSAGE
+NEW_LINE
+PP_NO_WARN
+NEW_LINE
PP_HELP
+NEW_LINE
PP_Q
+NEW_LINE
PP_QUIT
-PP_ENDIF
+NEW_LINE
+PP_ENDIF
Please sign in to comment.
Something went wrong with that request. Please try again.