LogicGates/exGates

From Esolang
(Redirected from ExGates)
Jump to navigation Jump to search
Back to LogicGates
Note: exGates uses numbers as commands instead of letters, so exGates-2 is incompatible with LogicGates.

exGates is a family of LogicGates dialects. There are an infinite number of languages in exGates: exGates-2, exGates-3, etc.

exGates-n uses bits in base-n. Nonzero numbers represent base-n logic gates.

The nn2 logic gates are ordered by the results when the operands are (0,0), (0,1),...,(0,n),(1,0), ..., (n,n) lexicographically. For example, 1 is a gate that always returns 0. Positive numbers store result in the accumulator while negative ones store in the current cell. 0 is a NOP.

Any non-digit character separates numbers. For example, 1-2 should be interpreted as commands 1 and -2.

If , and . exists, they should read or print as numbers or Unicode characters.

Examples

One-digit A+B in exGates-10

,111111111122222222223333333333444444444455555555556666666666777777777788888888889999999999,123456789123456789023456789013456789012456789012356789012346789012345789012345689012345679012345678.

XKCD Random Number in exGates-5

238418579101562500.

ASCII HI! in exGates-74

796155727104555863613678909805824876742239399846574018923631479460854602349161020479093725203475724695259583806852569039940746259883000289584776331726084338274160639542347526720467967362416953950317624428290794254781642736883402652719112069992112328086488361651198299950171807591715412163938391332358149841638388426305458120262465846269640081707868658101258039854860163218663791197242795602324164998515376796785808118331807334625553806387132176015827425535703119264167111988894684426108624066867640976273636385705735301022111334355662265835284204099041598623078840266999164931632437733234939685969875892593611898275957176932278306623495299460588893461099024172671700067933307013958965017300598689837217594972853445414394847493162712865352019736670773111594900939766803371335492898491778174605119760137087586759382378063011467150060043187238409636384415454287115235900384348840943780664615133954875946352348177023047910860397890538722462585812307533085764393580063609943242226189807187193594198830678380637305499879560174797456047132979099474662273613444160742746560172823698961927299406184410865920749993323205619306673089817972759858420094632325768442118371483949730487311152987711053360764410701481157791775112506918152366532180057719990816006858592245371715831801204519809595126010724222304009603910984334391653238120216191137122257525325083606641895517556001153027791923806402591116354925414538020641234667335537521188429804139445378684139278382407755425029363561579275971511272708745722540896803945803024054723265698039662637336505364406749568230855442462743444329755274289546490201458087798655253624988036228137394337446969433781971722463581302790655095653403105850030589247122714537661437511918867726443300009272598468446501161886058741954441805888461659021356012795923096927835933184785877407913807900220499178585228585430130385208379204192962593272670686100598915041126281634924690592274054842615385810604316575572578313072141440635631983936798465607530426832127410901262026863156623797258986437673422134650548489741415796842769492742403872547519412966527262896729731120504417517175303866011938076827957683367622340403582918028346326647531285751515353790277269844685577786502086191849678641903160160677335301610928922480634160414505939244906801355029823770098596126932681153171034565099698282388092571839648773515863059715372035223646974227162325606022182735061140761324096497360678350790201198046682199481704451536746462820584006960749037114712099014387656020592343327240913795644453886473100681719047787066515617116843298179958625619966059972800515365286597176969787014257696934771637552694439699532957886595727538293114565677319691932731949904370002366671645027258621259678182922316394791959769256516498740530244753873884947722106225757180942929237249219802373197023657234012834523006959914679820350924802118168666819996860567811099467597538974342904609292254111130983996188936716992158907659447135640951501416345787058942725028763235335899912834106360740941878581743520958868456817263990089755746658783276726745945293772363007251175058895667584490707114675922655360169891116305123480800253266567252735940072194813135585524521797651889805570876977848088877864601645377298076303434311637519485422313895133344794383594130540434146374607131349918683606227606299579963490059396805474974003171723363410743657709415715973934159919477511593614269092691841774561342533792696397263745297538869177603571046677126988257173979610824997948787125177177042395992459449673133723478402525184251844798345903544952903021191275280211936454647479514592718341153748550397123348121433421620911534367402339011502740922630744612375269202843744254810905686022402716807158725026044668267749905297373620786426748594495765193746457351995885118036451385589958008262842581508925143063134622502184585108720782421946958670720459258295934672895484486320100359935181366465285659464867318662879299611941706554281154988992697884831223595742276575703981192258888063783382603370927629569232889572414418361207868924597412777869064071200769510942348662877750202493449676804782814824827012325948854729287378703756726588014277457249711830608981862352889665897627656230472892741353212933143947704363498982410336625747629227035535248166814028403250512877408482382417164020890931819524912488870620401940651133311657100915341371536388218324058424296785436954316209883554198799820026975350803308026630903971475458557430027215074071684947558754262310475261954356385121794488401971923722703919682835609342167658979486614673545225665463397786045384730107842629825095342999578559015868089061237172447921372582889666571341665133280740704799063825749803546689963783027745503117509241501993962670401546258367409951438931681031823174691103793852552311297137695781471952042118998625982723121708861179335825717391176050149990058316949885342301623106083015626930199059066382996209051803702976518274688275610003336195236258849082283695325194580912878434359540865874895369030275650168540884071460186637596728244047563879611667332949100054924316104338008624621805204582888390336610855389380974315367216865648399648454220869159670131838481460572540117207489390665649544853446753026626976935775927341574295298278222226053099215706861681816913755115307554112527978725565290159932681282885241968052518640937028547140997178471749733793028029865720658135491259869402381083290944404396437969417262935963845953793631529074417046860794363189014832066636351209428247589347812464841248761711247863739411333103622446748148480540600192738563446523720157478560433596100101241906001437724305407799961117477737668912599591060305088032658728725673202152709584641478915533912338367601026421262351664728457963273399427217915403093552718076296410757029520767303292944118860835778588810322332553892488320330847924467434508185353665190912598147415918455884158992520632654130546333628342312555999415432920077466093367563534359871053979193754931755152272634868903698475501667221749253656853990134893668057538611314872973520862136977642088366936969204378235536077449846939997610158026300550728643693221801541072768096065057790410309456950213534189900630053461036429135609992829280736333162777824710952597629864534142469054262112222486534165119392142774362911557719156901527980607324629959881739259507726965962573667782109783485338313335868337843306405939118284238217708937831322614041314833544257745475476547878793493363215516385640580589535295728350518138507810828953735744975223923519700580763033244795956423942414523038144858298387188795118478242959091482662575679624213811442239368137550662420618004280250124612722822677034825594072120238793916873656004435752388427268478065893732037069109192950028540737722342865053140200808807082359116704588818495259220572319242768807695493088753398988739400279779305283428488423522543918099034302910478462049010451830662763994644185339425389582798738410952914778671262128240192308990377545487434702540082864131085218369743303061986210398802930420716630410872599946526056839489228694562450023821992252090574567639304528715520002282549542706382496709603862103664023698907992683647913128868860701651503372145880271112356358892577395360431180347152361044285281628050731070336686234672539100172615616117919205445099929830812357877902010277692398285634868212959307733617716752287535745197059154458202332851292464171203438782179391165925539507590733601880504461637372384946931376344330128755732999474381992596921182528207457760730992391618857277018791183381597779983670504307521450076622339002998899462114218948338696306523313530422652186289919017188130818588094829057581844767638504463145937895613551374770956788654223057127737846631989810601362214305870966212720867873926633160826192201071297692467335880582148021330073216923658139825118320594550548582243767970480254927996719845237025549291017816014709965469410437186269433684682796662814071024508151542722769526503012900628199739212450558286148315076851991613976322274139108543038434811851247929888589210593526260713198730519919484167940622152990966452520147588271417037439390173222109037621671250443987520446891915930512903921450586307731240996633837960571363939147588703265327711844820117290381629181953470728165580866845606849557962560300624173910272004895826530653207046147580387565360708793198854760940616668771398227598462943167709491737137440007405036272183008692639096533319215377601000166170830140687347753146349650570018716621247029733500862773454112230146054151818854974109532419829206800084591109073678144773944969899908450868644960782061557017945082565761849909160254279457594121348735049958385174204633349006605254901079986274697413188954242526318330838880074414566080439903326741840730060058369346772241350351291329814464277994045751324998915179858425785379533951097278645388583422034369356933090751894532145250771553779303396315017508224683663493575862662576824308180148326647223547376808027687441508924488327619747664649557619023030300372435071084225971996221729620403339412700947347563410523985723806551947331697347209941766024966843248033686669206605188091713457610296923211604131510989564686794237342814810787426617110831159649771241704945532025657086859751069897339744544155453649741208046931438889202555424268455716627136772384089200465780969077532200642910294201566257326231703850215707478740527367107703977025415968283961668390769564295789517351665380470797747965758393206614367056691350567689677980889892500267122677249334162405814114702772642158830766018562587199433365157046816899227761767254093125906690310009165965003502189329145306304918951218309107058752339176976000290263117140065245818816630989038482903586857199436212161959690968772889467820685974075394517692193035395563001061565020006685207762547995748936176420712180164141056221818732420872197993880485752247386589798539398412182093833251866020946746401166599064766645192416060709088895032384779432343283423781179942247256040508363103266237881185095471042797730031161372679399776565646843087973201824613469063804816541447290171311648882962214942037118232760080593724762583554188275833782553517113316723738303921473446430289299490072776187677302460437327503867985859113316646824332210499593123042677529325673335771608285500208982221433614818372771683432977386629944551238826778301390933410520461791970787834107261372383714415327133564928.4369036375726454597235354638896930512299213735502600027393297204683498711904439908913808710840901842309076948984024738370470728577273249452030423939683397640550954527067836827891081156191609413888123102862254695994162918451965069147860932570993264260214263996528815910527434752.938489634463773724654196964639369604065906168702708563465456824298190279411599062059133389832314954960802017178804453028613687662862139392.

Computational class

All exGates dialects can do everything that LogicGates can do, so they are all Turing-complete.