Removed braces from the lexer and parser.

This commit is contained in:
Christian Rinderknecht 2019-03-22 14:11:32 +01:00
parent ad6cbf32eb
commit ea4af374f9
No known key found for this signature in database
GPG Key ID: 9446816CFD267040
4 changed files with 3 additions and 16 deletions

View File

@ -459,8 +459,7 @@ let byte_seq = byte | byte (byte | '_')* byte
let bytes = "0x" (byte_seq? as seq)
let esc = "\\n" | "\\\"" | "\\\\" | "\\b"
| "\\r" | "\\t" | "\\x" byte
let symbol = ';' | ','
| '(' | ')' | '{' | '}' | '[' | ']'
let symbol = ';' | ',' | '(' | ')'| '[' | ']'
| '#' | '|' | "->" | ":=" | '=' | ':'
| '<' | "<=" | '>' | ">=" | "=/="
| '+' | '-' | '*' | '.' | '_' | '^'

View File

@ -17,8 +17,6 @@
%token <Region.t> COMMA (* "," *)
%token <Region.t> LPAR (* "(" *)
%token <Region.t> RPAR (* ")" *)
%token <Region.t> LBRACE (* "{" *)
%token <Region.t> RBRACE (* "}" *)
%token <Region.t> LBRACKET (* "[" *)
%token <Region.t> RBRACKET (* "]" *)
%token <Region.t> CONS (* "#" *)

View File

@ -61,16 +61,6 @@ par(X):
in {region; value}
}
braces(X):
LBRACE X RBRACE {
let region = cover $1 $3
and value = {
lbrace = $1;
inside = $2;
rbrace = $3}
in {region; value}
}
brackets(X):
LBRACKET X RBRACKET {
let region = cover $1 $3

View File

@ -56,7 +56,7 @@ entrypoint claim (storage store : store; const sender : address)
else
begin
operations := [Transfer (sender, amount)];
remove sender from map store.backers;
remove sender from map store.backers
end
end
end with (store, operations)