"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var _={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function r(i,e){var I=i.location,R;I==_.PRE_SUBJECT&&e=="<"?R=_.WRITING_SUB_URI:I==_.PRE_SUBJECT&&e=="_"?R=_.WRITING_BNODE_URI:I==_.PRE_PRED&&e=="<"?R=_.WRITING_PRED_URI:I==_.PRE_OBJ&&e=="<"?R=_.WRITING_OBJ_URI:I==_.PRE_OBJ&&e=="_"?R=_.WRITING_OBJ_BNODE:I==_.PRE_OBJ&&e=='"'?R=_.WRITING_OBJ_LITERAL:I==_.WRITING_SUB_URI&&e==">"||I==_.WRITING_BNODE_URI&&e==" "?R=_.PRE_PRED:I==_.WRITING_PRED_URI&&e==">"?R=_.PRE_OBJ:I==_.WRITING_OBJ_URI&&e==">"||I==_.WRITING_OBJ_BNODE&&e==" "||I==_.WRITING_OBJ_LITERAL&&e=='"'||I==_.WRITING_LIT_LANG&&e==" "||I==_.WRITING_LIT_TYPE&&e==">"?R=_.POST_OBJ:I==_.WRITING_OBJ_LITERAL&&e=="@"?R=_.WRITING_LIT_LANG:I==_.WRITING_OBJ_LITERAL&&e=="^"?R=_.WRITING_LIT_TYPE:e==" "&&(I==_.PRE_SUBJECT||I==_.PRE_PRED||I==_.PRE_OBJ||I==_.POST_OBJ)?R=I:I==_.POST_OBJ&&e=="."?R=_.PRE_SUBJECT:R=_.ERROR,i.location=R}const u={name:"ntriples",startState:function(){return{location:_.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(i,e){var I=i.next();if(I=="<"){r(e,I);var R="";return i.eatWhile(function(n){return n!="#"&&n!=">"?(R+=n,!0):!1}),e.uris.push(R),i.match("#",!1)||(i.next(),r(e,">")),"variable"}if(I=="#"){var T="";return i.eatWhile(function(n){return n!=">"&&n!=" "?(T+=n,!0):!1}),e.anchors.push(T),"url"}if(I==">")return r(e,">"),"variable";if(I=="_"){r(e,I);var f="";return i.eatWhile(function(n){return n!=" "?(f+=n,!0):!1}),e.bnodes.push(f),i.next(),r(e," "),"builtin"}if(I=='"')return r(e,I),i.eatWhile(function(n){return n!='"'}),i.next(),i.peek()!="@"&&i.peek()!="^"&&r(e,'"'),"string";if(I=="@"){r(e,"@");var l="";return i.eatWhile(function(n){return n!=" "?(l+=n,!0):!1}),e.langs.push(l),i.next(),r(e," "),"string.special"}if(I=="^"){i.next(),r(e,"^");var E="";return i.eatWhile(function(n){return n!=">"?(E+=n,!0):!1}),e.types.push(E),i.next(),r(e,">"),"variable"}I==" "&&r(e,I),I=="."&&r(e,I)}};exports.ntriples=u;
//# sourceMappingURL=ntriples-DgwJmozm.js.map
