Skip to content

Commit

Permalink
Surface parse róı
Browse files Browse the repository at this point in the history
  • Loading branch information
lynn committed Aug 14, 2023
1 parent 63246f1 commit ee0153e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/grammar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ declare var event_accessor: any;
declare var interjection: any;
declare var name_verb: any;
declare var cleft_verb: any;
declare var plural_coordinator: any;
declare var illocution: any;
declare var polarity: any;
declare var word_quote: any;
Expand Down Expand Up @@ -139,6 +140,7 @@ const grammar: Grammar = {
{"name": "term", "symbols": ["CPsub"], "postprocess": id},
{"name": "DP1", "symbols": ["DP"], "postprocess": id},
{"name": "DP1", "symbols": ["DP", "Conjunction", "DP1"], "postprocess": makeConn},
{"name": "DP1", "symbols": ["DP", "Roi", "DP1"], "postprocess": makeConn},
{"name": "T1", "symbols": ["T"], "postprocess": id},
{"name": "T1", "symbols": ["T", "Conjunction", "T1"], "postprocess": makeConn},
{"name": "Asp1", "symbols": ["Asp"], "postprocess": id},
Expand Down Expand Up @@ -179,6 +181,7 @@ const grammar: Grammar = {
{"name": "Interjection", "symbols": [(lexer.has("interjection") ? {type: "interjection"} : interjection)], "postprocess": makeLeaf('Interjection')},
{"name": "Mi", "symbols": [(lexer.has("name_verb") ? {type: "name_verb"} : name_verb)], "postprocess": makeLeaf('mı')},
{"name": "Na", "symbols": [(lexer.has("cleft_verb") ? {type: "cleft_verb"} : cleft_verb)], "postprocess": makeLeaf('𝘷')},
{"name": "Roi", "symbols": [(lexer.has("plural_coordinator") ? {type: "plural_coordinator"} : plural_coordinator)], "postprocess": makeLeaf('&')},
{"name": "SA", "symbols": [(lexer.has("illocution") ? {type: "illocution"} : illocution)], "postprocess": makeLeaf('SA')},
{"name": "SAopt$ebnf$1", "symbols": ["SA"], "postprocess": id},
{"name": "SAopt$ebnf$1", "symbols": [], "postprocess": () => null},
Expand Down
2 changes: 2 additions & 0 deletions src/toaq.ne
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ term -> DP1 {% id %} | CPsub {% id %}

DP1 -> DP {% id %}
DP1 -> DP Conjunction DP1 {% makeConn %}
DP1 -> DP Roi DP1 {% makeConn %}
T1 -> T {% id %}
T1 -> T Conjunction T1 {% makeConn %}
Asp1 -> Asp {% id %}
Expand Down Expand Up @@ -157,6 +158,7 @@ EvA -> %event_accessor {% makeLeaf('EvA') %}
Interjection -> %interjection {% makeLeaf('Interjection') %}
Mi -> %name_verb {% makeLeaf('') %}
Na -> %cleft_verb {% makeLeaf('𝘷') %}
Roi -> %plural_coordinator {% makeLeaf('&') %}
SA -> %illocution {% makeLeaf('SA') %}
SAopt -> SA:? {% makeOptLeaf('SA') %}
Sigma -> %polarity {% makeLeaf('Σ') %}
Expand Down

0 comments on commit ee0153e

Please sign in to comment.