Skip to content
Snippets Groups Projects
Commit 6d042ffd authored by Erwan Jahier's avatar Erwan Jahier
Browse files

syntaxTreeCore.ml:

	turns eq_info into a pair (instead of a struct).
parent 8c0145c8
No related branches found
No related tags found
No related merge requests found
...@@ -966,7 +966,7 @@ sxEquation: TK_ASSERT sxExpression TK_SEMICOL ...@@ -966,7 +966,7 @@ sxEquation: TK_ASSERT sxExpression TK_SEMICOL
} }
| sxLeft TK_EQ sxExpression TK_SEMICOL | sxLeft TK_EQ sxExpression TK_SEMICOL
{ {
( [] , [ {src = $2; it = {eq_left = $1; eq_right = $3} } ] ) ( [] , [ {src = $2; it = ($1, $3) } ] )
} }
; ;
......
(** Time-stamp: <modified the 07/02/2008 (at 11:27) by Erwan Jahier> *) (** Time-stamp: <modified the 07/02/2008 (at 11:31) by Erwan Jahier> *)
(** (Raw) Abstract syntax tree of source programs. *) (** (Raw) Abstract syntax tree of source programs. *)
...@@ -84,10 +84,8 @@ and var_nature = ...@@ -84,10 +84,8 @@ and var_nature =
| VarOutput | VarOutput
| VarLocal | VarLocal
and eq_info = { and eq_info = (left_part list * val_exp)
eq_left : left_part list ;
eq_right: val_exp
}
and left_part = and left_part =
| LeftVar of (Ident.t srcflagged) | LeftVar of (Ident.t srcflagged)
| LeftField of (left_part * (Ident.t srcflagged)) | LeftField of (left_part * (Ident.t srcflagged))
......
(** Time-stamp: <modified the 07/02/2008 (at 11:25) by Erwan Jahier> *) (** Time-stamp: <modified the 07/02/2008 (at 11:31) by Erwan Jahier> *)
open Lxm open Lxm
...@@ -350,7 +350,7 @@ and dump_assert_list (os: Format.formatter) (af: (val_exp srcflagged) list) = ( ...@@ -350,7 +350,7 @@ and dump_assert_list (os: Format.formatter) (af: (val_exp srcflagged) list) = (
and dump_eq_list (os: Format.formatter) (eqfs: (eq_info srcflagged) list) = ( and dump_eq_list (os: Format.formatter) (eqfs: (eq_info srcflagged) list) = (
match eqfs with match eqfs with
[] -> () [] -> ()
| {it={eq_left=lflst; eq_right=exp}; src=lxm} :: reste -> ( | {it=(lflst,exp); src=lxm} :: reste -> (
Format.fprintf os "@\n%a = %a;%a" Format.fprintf os "@\n%a = %a;%a"
dump_left_part_list lflst dump_left_part_list lflst
dump_val_exp exp dump_val_exp exp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment