-
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
Removes the remnants of an escaping mechanism once used in xapi. It appears that the format "<<xxx<value<xxx<" was an early escaping format. Also removes the effort at line tracking from the lexer actions. Since the .mli for the generated lexer was only present to have this line variable, it is deleted. Signed-off-by: Colin James <[email protected]>
- Loading branch information
1 parent
137160e
commit 36f9993
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 } |