Deleted Added
full compact
dt_grammar.y (256281) dt_grammar.y (268578)
1%{
2/*
3 * CDDL HEADER START
4 *
5 * The contents of this file are subject to the terms of the
6 * Common Development and Distribution License, Version 1.0 only
7 * (the "License"). You may not use this file except in compliance
8 * with the License.

--- 9 unchanged lines hidden (view full) ---

18 * fields enclosed by brackets "[]" replaced with your own identifying
19 * information: Portions Copyright [yyyy] [name of copyright owner]
20 *
21 * CDDL HEADER END
22 *
23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
1%{
2/*
3 * CDDL HEADER START
4 *
5 * The contents of this file are subject to the terms of the
6 * Common Development and Distribution License, Version 1.0 only
7 * (the "License"). You may not use this file except in compliance
8 * with the License.

--- 9 unchanged lines hidden (view full) ---

18 * fields enclosed by brackets "[]" replaced with your own identifying
19 * information: Portions Copyright [yyyy] [name of copyright owner]
20 *
21 * CDDL HEADER END
22 *
23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26/*
27 * Copyright (c) 2013 by Delphix. All rights reserved.
28 * Copyright (c) 2013, Joyent, Inc. All rights reserved.
29 */
26
30
27#pragma ident "%Z%%M% %I% %E% SMI"
28
29#include <dt_impl.h>
30
31#define OP1(op, c) dt_node_op1(op, c)
32#define OP2(op, l, r) dt_node_op2(op, l, r)
33#define OP3(x, y, z) dt_node_op3(x, y, z)
34#define LINK(l, r) dt_node_link(l, r)
35#define DUP(s) strdup(s)
36

--- 60 unchanged lines hidden (view full) ---

97%token DT_KEY_STATIC
98%token DT_KEY_STRING
99%token DT_KEY_STRUCT
100%token DT_KEY_SWITCH
101%token DT_KEY_THIS
102%token DT_KEY_TYPEDEF
103%token DT_KEY_UNION
104%token DT_KEY_UNSIGNED
31#include <dt_impl.h>
32
33#define OP1(op, c) dt_node_op1(op, c)
34#define OP2(op, l, r) dt_node_op2(op, l, r)
35#define OP3(x, y, z) dt_node_op3(x, y, z)
36#define LINK(l, r) dt_node_link(l, r)
37#define DUP(s) strdup(s)
38

--- 60 unchanged lines hidden (view full) ---

99%token DT_KEY_STATIC
100%token DT_KEY_STRING
101%token DT_KEY_STRUCT
102%token DT_KEY_SWITCH
103%token DT_KEY_THIS
104%token DT_KEY_TYPEDEF
105%token DT_KEY_UNION
106%token DT_KEY_UNSIGNED
107%token DT_KEY_USERLAND
105%token DT_KEY_VOID
106%token DT_KEY_VOLATILE
107%token DT_KEY_WHILE
108%token DT_KEY_XLATOR
109
110%token DT_TOK_EPRED
111%token DT_CTX_DEXPR
112%token DT_CTX_DPROG

--- 515 unchanged lines hidden (view full) ---

628 | DT_KEY_CHAR { $$ = dt_decl_spec(CTF_K_INTEGER, DUP("char")); }
629 | DT_KEY_SHORT { $$ = dt_decl_attr(DT_DA_SHORT); }
630 | DT_KEY_INT { $$ = dt_decl_spec(CTF_K_INTEGER, DUP("int")); }
631 | DT_KEY_LONG { $$ = dt_decl_attr(DT_DA_LONG); }
632 | DT_KEY_FLOAT { $$ = dt_decl_spec(CTF_K_FLOAT, DUP("float")); }
633 | DT_KEY_DOUBLE { $$ = dt_decl_spec(CTF_K_FLOAT, DUP("double")); }
634 | DT_KEY_SIGNED { $$ = dt_decl_attr(DT_DA_SIGNED); }
635 | DT_KEY_UNSIGNED { $$ = dt_decl_attr(DT_DA_UNSIGNED); }
108%token DT_KEY_VOID
109%token DT_KEY_VOLATILE
110%token DT_KEY_WHILE
111%token DT_KEY_XLATOR
112
113%token DT_TOK_EPRED
114%token DT_CTX_DEXPR
115%token DT_CTX_DPROG

--- 515 unchanged lines hidden (view full) ---

631 | DT_KEY_CHAR { $$ = dt_decl_spec(CTF_K_INTEGER, DUP("char")); }
632 | DT_KEY_SHORT { $$ = dt_decl_attr(DT_DA_SHORT); }
633 | DT_KEY_INT { $$ = dt_decl_spec(CTF_K_INTEGER, DUP("int")); }
634 | DT_KEY_LONG { $$ = dt_decl_attr(DT_DA_LONG); }
635 | DT_KEY_FLOAT { $$ = dt_decl_spec(CTF_K_FLOAT, DUP("float")); }
636 | DT_KEY_DOUBLE { $$ = dt_decl_spec(CTF_K_FLOAT, DUP("double")); }
637 | DT_KEY_SIGNED { $$ = dt_decl_attr(DT_DA_SIGNED); }
638 | DT_KEY_UNSIGNED { $$ = dt_decl_attr(DT_DA_UNSIGNED); }
639 | DT_KEY_USERLAND { $$ = dt_decl_attr(DT_DA_USER); }
636 | DT_KEY_STRING {
637 $$ = dt_decl_spec(CTF_K_TYPEDEF, DUP("string"));
638 }
639 | DT_TOK_TNAME { $$ = dt_decl_spec(CTF_K_TYPEDEF, $1); }
640 | struct_or_union_specifier
641 | enum_specifier
642 ;
643

--- 191 unchanged lines hidden ---
640 | DT_KEY_STRING {
641 $$ = dt_decl_spec(CTF_K_TYPEDEF, DUP("string"));
642 }
643 | DT_TOK_TNAME { $$ = dt_decl_spec(CTF_K_TYPEDEF, $1); }
644 | struct_or_union_specifier
645 | enum_specifier
646 ;
647

--- 191 unchanged lines hidden ---