summaryrefslogtreecommitdiffstats
path: root/otherlibs/labltk/compiler/parser.mly
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2010-01-22 12:48:24 +0000
committerDamien Doligez <damien.doligez-inria.fr>2010-01-22 12:48:24 +0000
commit04b1656222698bd7e92f213e9a718b7a4185643a (patch)
tree6186d1ba1e00adb1232908f95cb92c299902a943 /otherlibs/labltk/compiler/parser.mly
parentbdc0fadee2dc9669818955486b4c3497016edda5 (diff)
clean up spaces and tabs
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9547 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'otherlibs/labltk/compiler/parser.mly')
-rw-r--r--otherlibs/labltk/compiler/parser.mly20
1 files changed, 10 insertions, 10 deletions
diff --git a/otherlibs/labltk/compiler/parser.mly b/otherlibs/labltk/compiler/parser.mly
index c797f4fb5..15ced65f8 100644
--- a/otherlibs/labltk/compiler/parser.mly
+++ b/otherlibs/labltk/compiler/parser.mly
@@ -31,7 +31,7 @@ open Tables
%token RPAREN /* ")" */
%token COMMA /* "," */
%token SEMICOLON /* ";" */
-%token COLON /* ":" */
+%token COLON /* ":" */
%token QUESTION /* "?" */
%token LBRACKET /* "[" */
%token RBRACKET /* "]" */
@@ -86,11 +86,11 @@ Type0 :
/* Camltk/Labltk types */
Type0_5:
| Type0 SLASH Type0 { if !Flags.camltk then $1 else $3 }
- | Type0 { $1 }
+ | Type0 { $1 }
;
/* with subtypes */
-Type1 :
+Type1 :
Type0_5
{ $1 }
| TypeName LPAREN IDENT RPAREN
@@ -141,8 +141,8 @@ FType :
LPAREN RPAREN
{ Unit }
| LPAREN Type2 RPAREN
- { $2 }
- | LPAREN Type_record RPAREN
+ { $2 }
+ | LPAREN Type_record RPAREN
{ Record $2 }
;
@@ -168,7 +168,7 @@ Arg:
| Type
{TypeArg ("", $1) }
| IDENT COLON Type
- {TypeArg ($1, $3)}
+ {TypeArg ($1, $3)}
| QUESTION IDENT COLON LBRACKET SimpleArgList RBRACKET DefaultList
{OptionalArgs ( $2, $5, $7 )}
| QUESTION WIDGET COLON LBRACKET SimpleArgList RBRACKET DefaultList
@@ -212,14 +212,14 @@ Template :
/* Constructors for type declarations */
Constructor :
IDENT Template
- {{ component = Constructor;
+ {{ component = Constructor;
ml_name = $1;
var_name = getvarname $1 $2;
template = $2;
result = Unit;
safe = true }}
| IDENT LPAREN IDENT RPAREN Template
- {{ component = Constructor;
+ {{ component = Constructor;
ml_name = $1;
var_name = $3;
template = $5;
@@ -290,7 +290,7 @@ WidgetComponents :
{ $1 :: $2 }
;
-ModuleComponents :
+ModuleComponents :
/* */
{ [] }
| Command ModuleComponents
@@ -319,7 +319,7 @@ entry :
{ enter_subtype "options" $2 $5 $8 }
| SUBTYPE ParserArity TypeName LPAREN IDENT RPAREN LBRACE AbbrevConstructors RBRACE
{ enter_subtype $3 $2 $5 $8 }
-| Command
+| Command
{ enter_function $1 }
| WIDGET IDENT LBRACE WidgetComponents RBRACE
{ enter_widget $2 $4 }