Skip to content

Commit

Permalink
test(parse): simplify s-expr parse grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jun 27, 2020
1 parent 056ae08 commit d229b4e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/parse/test/sexpr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import * as assert from "assert";
import { defContext, defGrammar, ParseScope } from "../src";

const grammar = `
lopen: '(' => discard ;
lclose: ')' => discard ;
list: <lopen> <expr> <lclose> ;
list: '('! <expr> ')'! ;
sym: ( <ALPHA_NUM> | [?!$+\\u002d*/.~#^=<>] )+ => join ;
expr: ( <FLOAT> | <STRING> | <sym> | <list> | <WS1> )* ;
prog: <START> <expr> <END> => hoist ;
Expand Down

0 comments on commit d229b4e

Please sign in to comment.