UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

2 lines 741 B
import{n as e}from"./rolldown-runtime-DkW27tQK.js";var t,n;function r(){return(r=e((()=>{t=`><+-.,[]`.split(``),n={name:`brainfuck`,startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(e,n){if(e.eatSpace())return null;e.sol()&&(n.commentLine=!1);var r=e.next().toString();if(t.indexOf(r)!==-1){if(n.commentLine===!0)return e.eol()&&(n.commentLine=!1),`comment`;if(r===`]`||r===`[`)return r===`[`?n.left++:n.right++,`bracket`;if(r===`+`||r===`-`)return`keyword`;if(r===`<`||r===`>`)return`atom`;if(r===`.`||r===`,`)return`def`}else return n.commentLine=!0,e.eol()&&(n.commentLine=!1),`comment`;e.eol()&&(n.commentLine=!1)}}})))()}r();export{n as brainfuck}; //# sourceMappingURL=brainfuck-CxsZo964.js.map