-
Notifications
You must be signed in to change notification settings - Fork 284
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove notion of weird string from sexpr library (#6091)
Removes the remnants of an escaping mechanism once used in xapi. It appears that the format `<<xxx<value<xxx<` (where `xxx` acted as delimiting tags) was an early escaping format. The construction of these weird strings appears to have been dropped a long time ago (2006).
- Loading branch information
Showing
5 changed files
with
9 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
%token <string> SYMBOL STRING | ||
%token <string * string> WEIRD | ||
%token OPEN CLOSE | ||
|
||
%start expr | ||
%type <SExpr.t> expr | ||
%start<SExpr.t> expr | ||
|
||
%% | ||
|
||
expr_list: { [] } | ||
| expr expr_list { $1 :: $2 }; | ||
|
||
expr: | ||
| OPEN expr_list CLOSE { SExpr.Node $2 } | ||
| SYMBOL { SExpr.Symbol $1 } | ||
| STRING { SExpr.mkstring $1 } | ||
| WEIRD { (fun (tag, s) -> SExpr.WeirdString(tag, s)) $1 }; | ||
| OPEN es = list(expr) CLOSE { SExpr.Node es } | ||
| s = SYMBOL { SExpr.Symbol s } | ||
| s = STRING { SExpr.mkstring s } |