1.0.0 • Published 25 days ago

@zibuthe7j11/alias-exercitationem-tempora v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
25 days ago

PIL Compiler

Polynomial Identity Language (pil) compiler

Setup

$ npm install
$ npm run build

Usage

Command line

Generate json file from pil file:

$ node src/pil.js <input.pil> -o <output.pil.json>

Generate C++ code from pil file (.hpp files will be generated in the ./pols_generated folder):

$ node src/pil.js <input.pil> -c -n namespace

Javascript

Basic usage:

const pil = await compile(Fr, "pil/main.pil");

Advanced usage:

const pilConfig =
    { defines: {N: 2 ** 21},
      namespaces: ['Global', 'Main', 'Rom', 'Byte4', 'Arith'],
      verbose: true,
      color: true,
      disableUnusedError: true});

const pil = await compile(Fr, "pil/main.pil", null,  pilConfig);
  • define: object (key, value) with constants to define, if constant is defined in pil, use value specified on config and shown a warning during compilation.
  • namespaces: list of namespace used, if namespace not present in this list, it will be ignored, and warning was shown. If any namespace of list, not was found in pils and exception was produced.
  • verbose: source code ignored inside a namespace was shown (first 3 lines).
  • color: verbose source code was shown with other color.
  • disableUnusedError: ignore error when found an unused expression.
  • compileFromString: use to indicate to compiler that parameter fileName contains directly code of pil, to avoid to use a temporal directory on dynamic pil generation.
  • includePaths: an array of paths used to find includes.
  • includePathFirst: a boolean value (true), to force to find first on include path and after on current pil directory. Default: false

Command Line

In command line compilation:

  • config with json file and using option -P or --config.
  • define include paths with option -I or --include, and paths separated by comma.
  • define includePathFirst with option -f.

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

weaksetflatsymbolassignES8mobileless.jsrfc4122windowspreserve-symlinksreadcommanderArraypnpm9trimlimitopenpackage.jsonprocessflatMappathwatchsetImmediateYAMLutilityschemeextensionget.envpopmotioniterateyupmatchAllschemastarterURLSearchParamsintrinsicPushcommand-linehooksArray.prototype.flattenupconfigloadingmonoreponegativeappcall-boundnativesymbolscryptoformawesomesauceutilsdotenvlimitedfseventsfind-uppromisetranspilermacosquoteawaitrecursiveES2021typeerrorclassesjavascriptbrowserrapidrangeerrorfilterReactiveExtensionslengthgdprhigher-ordersetterregular expressiondataviewexittoolkitReflect.getPrototypeOfimportirqcheckreadablestreammiddlewarerandomoptimizerkeyl10nio-tstestjapanesejsonzodFloat64Arraybuffersaccessorpostcsshttpses-shimspersistentwarningtesterclass-validatorhttptermes-shim APIgetPrototypeOfkarmaautoprefixerpackagejestbindeverygetoptfast-clonereact animationwordbreakworkspace:*findprettydragslotwhichimmerpackageswaitshellsiginttypescriptUint8ArrayworkerArray.prototype.filterunicodecss lesshardlinksfunctionsdeepArrayBuffer#sliceconcurrencycollectionURLregexreact-testing-libraryprotocol-buffersdomoperating-systemmapparentsastObservabledifffinduptextgradients css3urlMapapivariablesvalidasciireact-hook-formeslintsomeWebSocketsbatchIteratores-abstractcallboundless cssECMAScript 2021ielanguagefullwidthphonexssreuseeast-asian-widthargsanimationasyncinternal slotxhridlejsdomexecutablegenericswalkingspecTypeScriptqueryprogresstoStringTagtestingdefinecss-in-jscompilerformatreduxwordwrapmrubootstrap lessdroparrayscompile lesswritenodejsRegExp.prototype.flagsstructuredClonevalidatejwtECMAScript 6css nestingtslibiterationmake dirsuperstructguidelectronparenta11yES2023StyleSheettacitserializerserializecssweakmapdatashamenvironmentcolumndatastructuretypedcore[[Prototype]]authoffsetstdlibflagsi18ntouches5configurableeditorpyyamlhelperstoolswebexeFunction.prototype.name3des2017__proto__mime-dbconnectECMAScript 2023tspatchcomputed-typeswaapiuuidkoreanArray.prototype.containsrgbbyteLengthzerotranspileSetperformantdeepcopyvisualmochabreakutilfastcloneperformancelesscopyeventsvestprototypeparsetakegesturesjasminereact-hooksWebSocketfunctionalquerystringassertionsigtermReactiveXnameargvregular expressionstypeofchromiumsuperagentcharacterartharmonysignalsettingsObject.valuesES2020@@toStringTaglookjson-schema-validationvaluesdom-testing-librarylinewrapauthenticationObject.isvarmixinspackage managermergebrowserlistencryptioneslintconfigrequeststreamfplesscsspoint-freeformsbundlerES6Array.prototype.findLastcss variabletypedarraydescriptorstyped arraymatchsearchcolourairbnberrorECMAScript 7Array.prototype.includesspeedless compilersideopensstatelessjsxforEachSymbol.toStringTagcode pointsspawnbluebirdarraysanitizationwalkuninstallvalidatordefaultpolyfilltypedarraysstableform-validationInt16ArrayprotoECMAScript 2015outputkeysletECMAScript 3ECMAScript 2016dataViewstarttimespringscheme-validationes2018jsstreamsefficientmetadataES3hash256argumentwgetxdgprivate dataES2022robustECMAScript 5shrinkwrapecmascriptfullfasthasfull-widthcurriedmovecurlqueueMicrotaskcolorsfindLastconsoleequalemitdeletecensorassertsbootstrap cssfile systemfastifyESlook-upinstallerobjectcallsymlinkUint32Arraygetintrinsiccjkgradients cssminimalflaginspectfast-deep-cloneruntimecallbackchaitrimStartdescriptorbyteOffsetisConcatSpreadableslicetapObject.entriesqueuebusyJSON-SchemawatchFilereactstyleguidemimees2016lockfileextraobjindicatorbabelmimetypesavalaunchtostringtagdependency managerpreprocessorfantasy-landjQuerytrimLeftjoilastttyUint16Arrayrmes7childAsyncIteratorUnderscoretoSortedECMAScript 2020pipetypewebsiteframeworkESnextwatcherdescriptionObject.getPrototypeOftypesafedeterministicnpmshebangstreams2nodejsdiffdebugproperror-handlinginputcacheajvWeakSettraversedependenciesArrayBuffercirculares8wraponceemojicreateratethreeassertUint8ClampedArraymkdirObject.keyssetPrototypeOffunctionconsumestringECMAScript 2019escapebcryptargumentschromeHyBilibphonenumberdeepclonepropertyregexpcollection.es6json-schema-validatorcompareiteratorloggingcore-jsdefinePropertysetredactregularutil.inspectES5Array.prototype.flatJSONsortObject.assignoptimistsequenceES2017graphql-0protobufsyntaxerrornumberclonesharedmkdirsObject.definePropertyfast-deep-copycharactersyamlmatchesRFC-6455variables in cssObservablesansitypanionArray.prototype.findLastIndexsignalsstylefast-copyECMAScript 2018jsonpathmomentshimbufferreducerTypeBoxpicomatchsharedarraybufferesArray.prototype.flatMapinterruptshandlersObject.fromEntrieseslint-pluginreducePromiseredux-toolkitreal-timestylingimmutableexpresspromisesdirexit-codetrimRightrm -rfboundsameValueZeroflattentapecall-bindrmdirconcatarktypeRegExp#flagsfolderestreelintclassnamesBigUint64ArrayhasOwnuser-streamsMicrosoftcorspropertiesarraybufferdeep-cloneECMAScript 2017directoryes6includescolorurlslistenersaccessibilityformattingenderutilitiescryptfetchenumerableratelimitserializationthrottleponyfillbannerRxvaluenested cssdeep-copyES2019CSSStyleDeclarationstatusrequiresanitizeSymbolString.prototype.trimclientpositivejsonschemastringifyloggerFloat32Arrayhookformviewstyles0browserslistcodesInt8ArraygroupBygetteres2015TypedArrayArrayBuffer.prototype.slicemodulesxdg-openissyntaxtoobjectjson-schemaexecpostcss-pluginequalitydateremoveinference6to5namesstylesheetoptionnegative zeroreadablecoercibleargparsebundlingprivatemkdirptc39resolveRxJSnopeeventDispatcherlogdayjsprunefindLastIndexfromxtermES2016react posemulti-packageterminalmoduleObjectfigletfixed-widthposecolumnsString.prototype.matchAllcliclassnameECMAScript 2022tddinstall_.extendlruwidthglobsortedcommandwatchinggroupprefixchineseeslintpluginlinuxinternalfastcopythroatqsparserenvchannelextendcontainsajaxless mixinstelephonebabel-corestringifierStreamsfilepurewhatwgsymlinksStreamframer
1.0.0

25 days ago