@nuraly/runtime 0.1.6 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -765
- package/components/ui/components/Event/EventValue/EventValue.ts +13 -8
- package/components/ui/components/ToastContainer/ToastContainer.ts +1 -1
- package/components/ui/components/advanced/AIChat/AIChat.ts +1 -2
- package/components/ui/components/advanced/Collapse/Collapse.ts +5 -2
- package/components/ui/components/advanced/Collections/Collections.ts +2 -2
- package/components/ui/components/advanced/MicroApp/MicroApp.ts +3 -11
- package/components/ui/components/advanced/RefComponent/RefComponent.ts +2 -2
- package/components/ui/components/advanced/RichText/RichText.ts +5 -4
- package/components/ui/components/advanced/RichText/RichTextEditor.ts +0 -167
- package/components/ui/components/base/BaseElement/base-change-detection.ts +1 -5
- package/components/ui/components/base/BaseElement.ts +229 -610
- package/components/ui/components/base/FormRegisterable.ts +83 -0
- package/components/ui/components/base/controllers/DragDropController.ts +175 -0
- package/components/ui/components/base/controllers/ErrorController.ts +180 -0
- package/components/ui/components/base/controllers/EventController.ts +112 -0
- package/components/ui/components/base/controllers/InputHandlerController.ts +298 -0
- package/components/ui/components/base/controllers/SelectionController.ts +323 -0
- package/components/ui/components/base/controllers/StyleHandlerController.ts +286 -0
- package/components/ui/components/base/controllers/index.ts +11 -0
- package/components/ui/components/base/mixins/EditorModeMixin.ts +185 -0
- package/components/ui/components/base/mixins/index.ts +6 -0
- package/components/ui/components/base/types/base-element.types.ts +138 -0
- package/components/ui/components/base/types/index.ts +21 -0
- package/components/ui/components/base/utils/event-debouncer.ts +209 -0
- package/components/ui/components/base/utils/index.ts +11 -0
- package/components/ui/components/base/utils/style-cache.ts +94 -0
- package/components/ui/components/display/BoxModel/BoxModel.ts +177 -116
- package/components/ui/components/display/Code/Code.ts +40 -26
- package/components/ui/components/display/Divider/Divider.ts +2 -2
- package/components/ui/components/display/Icon/Icon.ts +2 -3
- package/components/ui/components/display/Image/Image.ts +72 -46
- package/components/ui/components/display/Tag/Tag.ts +2 -3
- package/components/ui/components/display/Video/Video.ts +91 -31
- package/components/ui/components/inputs/Button/Button.ts +2 -2
- package/components/ui/components/inputs/Checkbox/Checkbox.ts +14 -40
- package/components/ui/components/inputs/ColorPicker/colorpicker.ts +3 -4
- package/components/ui/components/inputs/DatePicker/DatePicker.ts +47 -25
- package/components/ui/components/inputs/Dropdown/Dropdown.ts +2 -2
- package/components/ui/components/inputs/Form/Form.style.ts +26 -0
- package/components/ui/components/inputs/Form/Form.ts +352 -0
- package/components/ui/components/inputs/IconPicker/IconPicker.ts +22 -18
- package/components/ui/components/inputs/InsertDropdown/InsertDropdown.ts +0 -20
- package/components/ui/components/inputs/NumberInput/NumberInput.ts +0 -4
- package/components/ui/components/inputs/RadioButton/Radio-button.ts +11 -13
- package/components/ui/components/inputs/Select/Select.ts +38 -24
- package/components/ui/components/inputs/TextInput/TextInput.ts +15 -9
- package/components/ui/components/inputs/Textarea/Textarea.ts +30 -30
- package/components/ui/components/inputs/UsersDropdown/UsersDropdown.ts +1 -1
- package/components/ui/components/layout/Card/Card.ts +112 -10
- package/components/ui/components/layout/Containers/Container.style.ts +18 -0
- package/components/ui/components/layout/Containers/Container.ts +11 -5
- package/components/ui/components/layout/Grid/Col.style.ts +27 -0
- package/components/ui/components/layout/Grid/Col.ts +209 -0
- package/components/ui/components/layout/Grid/Row.style.ts +73 -0
- package/components/ui/components/layout/Grid/Row.ts +166 -0
- package/components/ui/components/layout/Grid/index.ts +7 -0
- package/components/ui/components/layout/Panel/Panel.ts +2 -2
- package/components/ui/components/layout/Tabs/Tabs.ts +0 -1
- package/components/ui/components/navigation/EmbedURL/EmbedURL.ts +62 -26
- package/components/ui/components/navigation/Link/Link.ts +27 -16
- package/components/ui/components/navigation/Menu/Menu.ts +26 -48
- package/components/ui/components/runtime/MicroApp/MicroApp.ts +2 -4
- package/components/ui/components/runtime/MicroApp/MicroAppDataLoader.ts +6 -2
- package/components/ui/components/studio/FunctionsPanel/FunctionsPanel.ts +472 -0
- package/components/ui/components/studio/FunctionsPanel/index.ts +1 -0
- package/components/ui/components/utility/AccessRoles/AccessRoles.style.ts +242 -0
- package/components/ui/components/utility/AccessRoles/AccessRoles.ts +476 -0
- package/components/ui/components/utility/Border/Border.ts +0 -14
- package/components/ui/components/utility/BorderManager/BorderManager.style.ts +237 -0
- package/components/ui/components/utility/BorderManager/BorderManager.ts +503 -0
- package/components/ui/components/utility/BoxShadow/BoxShadow.ts +0 -16
- package/components/ui/components/utility/Document/Document.ts +54 -25
- package/components/ui/components/utility/Export-Import/Export-Import.ts +8 -7
- package/components/ui/components/utility/Handlers/Handlers.ts +14 -17
- package/components/ui/components/utility/ValidationRules/ValidationRules.ts +440 -0
- package/components/ui/components/wrappers/GenerikWrapper/DragWrapper/DragWrapper.ts +1 -0
- package/components/ui/components/wrappers/GenerikWrapper/GenerikWrapper.ts +1 -24
- package/components/ui/nuraly-ui/src/components/badge/badge.style.ts +4 -3
- package/components/ui/nuraly-ui/src/components/datepicker/datepicker.component.ts +2 -0
- package/components/ui/nuraly-ui/src/components/radio-group/radio-group.component.ts +12 -6
- package/components/ui/nuraly-ui/src/components/radio-group/radio-group.style.ts +23 -0
- package/dist/{index-B4yIOSMd.js → BaseElement-BNBn_IJk.js} +2920 -267
- package/dist/{CodeEditor-0GwD2UDB.js → CodeEditor-Bf4L2rO_.js} +84127 -76319
- package/dist/{CodeEditor-BiNku87K.js → CodeEditor-Cpph-xRc.js} +7 -7
- package/dist/{abap-B2diVmjb.js → abap-D0Neqhq6.js} +91 -1
- package/dist/{apex-3NuJ-nsI.js → apex-B5LhxkeG.js} +18 -1
- package/dist/assets/editor.worker-DcwbJ0PV.js +12 -0
- package/dist/assets/html.worker-BTMxskjR.js +461 -0
- package/dist/assets/json.worker-D3vTGdf_.js +49 -0
- package/dist/assets/ts.worker-BsM1BXac.js +51334 -0
- package/dist/{azcli-XGXuUsMB.js → azcli-BrBH0QTU.js} +1 -1
- package/dist/{bat-B8Vhm634.js → bat-BfzAov64.js} +12 -1
- package/dist/{bicep-Cc8X5S_k.js → bicep-C3bCSWel.js} +1 -1
- package/dist/{cameligo-Bo3wBh9T.js → cameligo-sFL5plcd.js} +13 -1
- package/dist/{clojure-CPoQlpIK.js → clojure-CfeExRz0.js} +14 -1
- package/dist/{coffee-BxvTGz39.js → coffee-Xws5K0WL.js} +11 -1
- package/dist/{cpp-5RpEV7vC.js → cpp-CqOUEpxN.js} +28 -23
- package/dist/{csharp-slXXP3fo.js → csharp-DVLiBOZb.js} +13 -1
- package/dist/{csp-B98p6-gH.js → csp-DVFp9bw5.js} +3 -1
- package/dist/{css-BDsDSAin.js → css-DwARn2R6.js} +8 -1
- package/dist/cssMode-DMsdy1N0.js +1577 -0
- package/dist/{cypher-Dc4IMouD.js → cypher-uY0Mffat.js} +8 -1
- package/dist/{dart-LhvE3yD2.js → dart-D27H-mX_.js} +18 -1
- package/dist/{dockerfile-CwzplJeZ.js → dockerfile-CmV85WZK.js} +5 -1
- package/dist/{ecl-DxW3FiJi.js → ecl--fKn7yzB.js} +9 -1
- package/dist/{elixir-BI40g7TU.js → elixir-DUhH17ON.js} +87 -1
- package/dist/{flow9-tR2v0bGz.js → flow9-B3Dx2LLe.js} +8 -1
- package/dist/{freemarker2-XzXhMwTc.js → freemarker2-D51H9HYi.js} +359 -7
- package/dist/{fsharp-BLAma0OT.js → fsharp-SyqBfUAR.js} +14 -1
- package/dist/{go-nYcD3y4Z.js → go-BbMR2tdT.js} +17 -1
- package/dist/{graphql-Dp1cHWmP.js → graphql-DDJE6tIl.js} +17 -1
- package/dist/{handlebars-CmrcNfkM.js → handlebars-CF6gdAX4.js} +38 -4
- package/dist/{hcl-6NT8Kbna.js → hcl-YBvpaUqf.js} +13 -1
- package/dist/{html-BsvlsNx5.js → html-c2n_zkM3.js} +37 -4
- package/dist/htmlMode-9IJTuZUh.js +1587 -0
- package/dist/{ini-BZCOLrEc.js → ini-Ct73dBtM.js} +10 -1
- package/dist/{java-DAMcfJbX.js → java-C_jlkwoG.js} +18 -1
- package/dist/{javascript-D-M-tA-x.js → javascript-DhEEBMxD.js} +3 -2
- package/dist/jsonMode-CB6k-4rp.js +2002 -0
- package/dist/{julia-CQ46G71H.js → julia-D8WE5U1e.js} +22 -1
- package/dist/{kotlin-CEjVo_6E.js → kotlin-Zy9aq5yB.js} +15 -1
- package/dist/{less-DreV99nP.js → less-sZ0iHtE8.js} +1 -1
- package/dist/{lexon-DBVJhqLb.js → lexon-CsdNL29A.js} +13 -1
- package/dist/{liquid-_8i5JYO-.js → liquid-CwtPiwnW.js} +12 -4
- package/dist/{lua-Dcc_j6L-.js → lua-C2YJo0zw.js} +12 -1
- package/dist/{m3-B9SlZL4n.js → m3-CPLP40SG.js} +7 -1
- package/dist/{markdown-CuGw9_MP.js → markdown-B1mf5e0R.js} +34 -1
- package/dist/{mdx-CiSJOftS.js → mdx-LewPRYF8.js} +2 -2
- package/dist/{micro-app-entry-BT6Pk6bn.js → micro-app-entry-C3RDIukG.js} +7621 -9067
- package/dist/micro-app.bundle.js +3 -3
- package/dist/micro-app.js +3575 -6621
- package/dist/{mips-BUWqP-OH.js → mips-DA33BZX1.js} +11 -1
- package/dist/{msdax-DtkouYCg.js → msdax-CCYFIQsP.js} +5 -1
- package/dist/{mysql-IkAsWSmF.js → mysql-hjmIjL-D.js} +11 -3
- package/dist/{objective-c-B2-ronfg.js → objective-c-RRCpEmqC.js} +2 -1
- package/dist/{pascal-Bsnz2eJA.js → pascal-CeV8XfxB.js} +13 -1
- package/dist/{pascaligo-D_sMUn0Q.js → pascaligo-IEEGVJAJ.js} +13 -1
- package/dist/{perl-BPzHt9SS.js → perl-B5-QbHq_.js} +34 -1
- package/dist/{pgsql-DlTJB0PD.js → pgsql-s6kqEJmi.js} +14 -4
- package/dist/{php-Dmq5OjwK.js → php-CWWqzOo8.js} +36 -1
- package/dist/{pla-HJcccrBy.js → pla-FSvb_YP_.js} +13 -1
- package/dist/{postiats-OQn6DKv-.js → postiats-DQdscQXO.js} +370 -1
- package/dist/{powerquery-DKaMYC8w.js → powerquery-CtA5JA1I.js} +7 -1
- package/dist/{powershell-DWeJHik1.js → powershell-DglEq96N.js} +13 -1
- package/dist/{protobuf-CBn_IseU.js → protobuf-BSepub3e.js} +5 -1
- package/dist/{pug-BoRpCINl.js → pug-B1847F4G.js} +16 -1
- package/dist/{python-DNxbUiJS.js → python-h5Z2g-yl.js} +59 -11
- package/dist/{qsharp-4rGyVZOw.js → qsharp-D4i0Nqg9.js} +28 -3
- package/dist/{r-DsgLhBOb.js → r-cdRigKxa.js} +5 -1
- package/dist/{razor-BFH0wq9s.js → razor-D5ep1Doy.js} +48 -4
- package/dist/{redis-B2fdL4Bg.js → redis-D9MFxvE8.js} +16 -6
- package/dist/{redshift-DoaeyCkH.js → redshift-CmCnsvL-.js} +13 -4
- package/dist/{restructuredtext-D-6OFBY9.js → restructuredtext-CWy8J51t.js} +19 -1
- package/dist/{ruby-D1DD6baV.js → ruby-WP-c36m5.js} +76 -3
- package/dist/runtime.js +34 -45
- package/dist/{rust-DssUV39M.js → rust-Q9FLdYpu.js} +13 -1
- package/dist/{sb-Dmb6tAdv.js → sb-C54-JBGT.js} +12 -1
- package/dist/{scala-Co3ETaym.js → scala-CzbFImc5.js} +24 -1
- package/dist/{scheme-CMrqXTty.js → scheme-BhfDmYN3.js} +1 -1
- package/dist/{scss-DkGudv8Q.js → scss-CEmiBXpS.js} +25 -1
- package/dist/{shell-BHN2BI4L.js → shell-Bmc1VhG0.js} +4 -1
- package/dist/{solidity-b-R-raGB.js → solidity-C9Q2I8Hh.js} +23 -1
- package/dist/{sophia-Y4GjyxNB.js → sophia-jWa1UyKz.js} +16 -1
- package/dist/{sparql-CDAPZb88.js → sparql-CM7jctbc.js} +15 -1
- package/dist/{sql-DkkpPiUq.js → sql-WzihTkbg.js} +42 -1
- package/dist/{st-CSPV91Ej.js → st-6y7_3aup.js} +8 -1
- package/dist/style.css +1 -1
- package/dist/{swift-DdSC5O48.js → swift-k-0zxG_D.js} +4 -1
- package/dist/{systemverilog-CI03XpAv.js → systemverilog-Pnr5_rIP.js} +29 -3
- package/dist/{tcl-B8DayMSI.js → tcl-fNPXval8.js} +7 -1
- package/dist/tsMode-B_6LiBE1.js +976 -0
- package/dist/{twig-B1AUPVB_.js → twig-L2MkztkV.js} +76 -1
- package/dist/{typescript-DFCDgKOy.js → typescript-BBG0jH4p.js} +23 -2
- package/dist/typespec-Cqqo-3Pt.js +123 -0
- package/dist/{vb-BIC7ccdG.js → vb-B5YC2xN9.js} +15 -1
- package/dist/{wgsl-C9yjop46.js → wgsl-D9BRtftY.js} +26 -1
- package/dist/{xml-axhHDYch.js → xml-DgLB7rE6.js} +8 -2
- package/dist/{yaml-fWSpoHsZ.js → yaml-DiI4HpSv.js} +30 -2
- package/handlers/compiler.ts +196 -16
- package/handlers/context-setup.ts +10 -5
- package/handlers/handler-api-factory.ts +358 -0
- package/handlers/handler-api.ts +379 -0
- package/handlers/handler-executor.ts +25 -5
- package/handlers/handler-scope.ts +398 -0
- package/handlers/index.ts +34 -2
- package/handlers/runtime-api/component-properties.ts +0 -8
- package/handlers/runtime-api/index.ts +1 -1
- package/handlers/runtime-api/toast.ts +1 -1
- package/index.ts +14 -115
- package/micro-app/README.md +10 -10
- package/micro-app/state/MicroAppRuntimeContext.ts +1 -28
- package/micro-app-entry.ts +0 -5
- package/package.json +19 -1
- package/redux/actions/application/index.ts +0 -1
- package/redux/actions/component/addComponentAction.ts +15 -4
- package/redux/actions/component/moveDraggedComponent.ts +1 -2
- package/redux/actions/component/update-component-name.ts +1 -1
- package/redux/actions/component/updateComponentAttributes.ts +7 -2
- package/redux/handlers/functions/build-function-handler.ts +11 -3
- package/redux/handlers/functions/deploy-function-handler.ts +11 -3
- package/redux/handlers/functions/invoke-function-handler.ts +11 -3
- package/redux/handlers/functions/load-functions-handler.ts +2 -1
- package/redux/handlers/functions/update-function-handler.ts +2 -1
- package/redux/store/component/component.interface.ts +8 -2
- package/redux/store/component/store.ts +1 -4
- package/state/runtime-context.ts +1 -23
- package/utils/RuntimeContextHelpers.ts +221 -90
- package/utils/change-detection.ts +125 -1
- package/utils/clipboard-utils.ts +18 -8
- package/utils/component-registry.ts +118 -0
- package/utils/index.ts +14 -1
- package/utils/naming-generator.ts +3 -1
- package/utils/randomness.ts +3 -1
- package/utils/register-components.ts +21 -29
- package/utils/render-util.ts +27 -48
- package/utils/toast.ts +97 -0
- package/vite.config.ts +29 -12
- package/components/ui/components/Event/EventAttribute/EventAttribute.style.ts +0 -11
- package/components/ui/components/Event/EventAttribute/EventAttribute.ts +0 -28
- package/components/ui/components/base/BaseElement/calculateStyles.ts +0 -31
- package/components/ui/components/base/BaseElement/drag-events.helpers.ts +0 -71
- package/components/ui/components/base/BaseElement/execute-event.helpers.ts +0 -45
- package/components/ui/components/base/BaseElement/interactions.helpers.ts +0 -14
- package/components/ui/components/wrappers/ComponentTitle/ComponentTitle.ts +0 -95
- package/components/ui/components/wrappers/GenerikWrapper/ResizeWrapper/ResizeWrapper.style.ts +0 -102
- package/components/ui/components/wrappers/GenerikWrapper/ResizeWrapper/ResizeWrapper.ts +0 -258
- package/components/ui/components/wrappers/PreviewWrapper.ts +0 -28
- package/components/ui/components/wrappers/RectangleSelection/RectangleSelection.ts +0 -154
- package/components/ui/nuraly-ui/packages/common/dist/constants/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/constants/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/constants.d.ts +0 -17
- package/components/ui/nuraly-ui/packages/common/dist/constants.js +0 -7
- package/components/ui/nuraly-ui/packages/common/dist/controllers/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/controllers/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/controllers.d.ts +0 -21
- package/components/ui/nuraly-ui/packages/common/dist/controllers.js +0 -22
- package/components/ui/nuraly-ui/packages/common/dist/index.d.ts +0 -25
- package/components/ui/nuraly-ui/packages/common/dist/index.js +0 -27
- package/components/ui/nuraly-ui/packages/common/dist/mixins/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/mixins/index.js +0 -3
- package/components/ui/nuraly-ui/packages/common/dist/mixins.d.ts +0 -26
- package/components/ui/nuraly-ui/packages/common/dist/mixins.js +0 -29
- package/components/ui/nuraly-ui/packages/common/dist/shared/base-mixin.d.ts +0 -42
- package/components/ui/nuraly-ui/packages/common/dist/shared/base-mixin.js +0 -38
- package/components/ui/nuraly-ui/packages/common/dist/shared/constants.d.ts +0 -1
- package/components/ui/nuraly-ui/packages/common/dist/shared/constants.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.controller.d.ts +0 -77
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.controller.js +0 -341
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.interface.d.ts +0 -37
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/dropdown.interface.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/index.d.ts +0 -4
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/index.js +0 -4
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/theme.controller.d.ts +0 -48
- package/components/ui/nuraly-ui/packages/common/dist/shared/controllers/theme.controller.js +0 -133
- package/components/ui/nuraly-ui/packages/common/dist/shared/dependency-mixin.d.ts +0 -37
- package/components/ui/nuraly-ui/packages/common/dist/shared/dependency-mixin.js +0 -141
- package/components/ui/nuraly-ui/packages/common/dist/shared/event-handler-mixin.d.ts +0 -64
- package/components/ui/nuraly-ui/packages/common/dist/shared/event-handler-mixin.js +0 -95
- package/components/ui/nuraly-ui/packages/common/dist/shared/index.d.ts +0 -13
- package/components/ui/nuraly-ui/packages/common/dist/shared/index.js +0 -17
- package/components/ui/nuraly-ui/packages/common/dist/shared/theme-mixin.d.ts +0 -78
- package/components/ui/nuraly-ui/packages/common/dist/shared/theme-mixin.js +0 -194
- package/components/ui/nuraly-ui/packages/common/dist/shared/themes.d.ts +0 -44
- package/components/ui/nuraly-ui/packages/common/dist/shared/themes.js +0 -85
- package/components/ui/nuraly-ui/packages/common/dist/shared/utils.d.ts +0 -60
- package/components/ui/nuraly-ui/packages/common/dist/shared/utils.js +0 -85
- package/components/ui/nuraly-ui/packages/common/dist/shared/validation.types.d.ts +0 -108
- package/components/ui/nuraly-ui/packages/common/dist/shared/validation.types.js +0 -17
- package/components/ui/nuraly-ui/packages/common/dist/themes/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/themes/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/themes.d.ts +0 -22
- package/components/ui/nuraly-ui/packages/common/dist/themes.js +0 -23
- package/components/ui/nuraly-ui/packages/common/dist/utils/index.d.ts +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/utils/index.js +0 -2
- package/components/ui/nuraly-ui/packages/common/dist/utils.d.ts +0 -21
- package/components/ui/nuraly-ui/packages/common/dist/utils.js +0 -22
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/LICENSE +0 -15
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/README.md +0 -294
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/copy-sync.js +0 -171
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/copy.js +0 -175
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/copy/index.js +0 -7
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/empty/index.js +0 -39
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/file.js +0 -66
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/index.js +0 -23
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/link.js +0 -64
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/ensure/symlink.js +0 -67
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/fs/index.js +0 -146
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/index.js +0 -16
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/index.js +0 -16
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/json/output-json.js +0 -12
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/index.js +0 -7
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/move-sync.js +0 -55
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/move/move.js +0 -59
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/output-file/index.js +0 -31
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/path-exists/index.js +0 -12
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/remove/index.js +0 -17
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/async.js +0 -29
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/stat.js +0 -159
- package/components/ui/nuraly-ui/packages/forms/node_modules/fs-extra/lib/util/utimes.js +0 -36
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/LICENSE +0 -15
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/README.md +0 -294
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/copy-sync.js +0 -171
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/copy.js +0 -175
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/copy/index.js +0 -7
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/empty/index.js +0 -39
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/file.js +0 -66
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/index.js +0 -23
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/link.js +0 -64
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -101
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -34
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/ensure/symlink.js +0 -67
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/fs/index.js +0 -146
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/index.js +0 -16
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/index.js +0 -16
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/jsonfile.js +0 -11
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/output-json-sync.js +0 -12
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/json/output-json.js +0 -12
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/make-dir.js +0 -27
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/mkdirs/utils.js +0 -21
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/index.js +0 -7
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/move-sync.js +0 -55
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/move/move.js +0 -59
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/output-file/index.js +0 -31
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/path-exists/index.js +0 -12
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/remove/index.js +0 -17
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/async.js +0 -29
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/stat.js +0 -159
- package/components/ui/nuraly-ui/packages/layout/node_modules/fs-extra/lib/util/utimes.js +0 -36
- package/dist/SmartAttributeHandler-B1UJKlqJ.js +0 -153
- package/dist/SmartAttributeHandler-u-ZHGueR.js +0 -193
- package/dist/assets/editor.worker-C_S4Avdt.js +0 -11
- package/dist/assets/html.worker-DfuQASUV.js +0 -458
- package/dist/assets/json.worker-Cucz4wxY.js +0 -42
- package/dist/assets/ts.worker-Dme6S0YK.js +0 -37021
- package/dist/cssMode-BzqArQ52.js +0 -1443
- package/dist/htmlMode-CmNePjzn.js +0 -1453
- package/dist/jsonMode-CKj6yF-8.js +0 -1863
- package/dist/tsMode-DfXg_Y5Y.js +0 -800
- package/redux/actions/application/loadApplicationPermissionAction.ts +0 -10
- package/utils/styleUtil.ts +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/
|
|
@@ -23,166 +23,422 @@ var e = {
|
|
|
23
23
|
]
|
|
24
24
|
}, t = {
|
|
25
25
|
tokenPostfix: ".pats",
|
|
26
|
+
// TODO: staload and dynload are followed by a special kind of string literals
|
|
27
|
+
// with {$IDENTIFER} variables, and it also may make sense to highlight
|
|
28
|
+
// the punctuation (. and / and \) differently.
|
|
29
|
+
// Set defaultToken to invalid to see what you do not tokenize yet
|
|
26
30
|
defaultToken: "invalid",
|
|
31
|
+
// keyword reference: https://github.com/githwxi/ATS-Postiats/blob/master/src/pats_lexing_token.dats
|
|
27
32
|
keywords: [
|
|
33
|
+
//
|
|
28
34
|
"abstype",
|
|
35
|
+
// ABSTYPE
|
|
29
36
|
"abst0ype",
|
|
37
|
+
// ABST0YPE
|
|
30
38
|
"absprop",
|
|
39
|
+
// ABSPROP
|
|
31
40
|
"absview",
|
|
41
|
+
// ABSVIEW
|
|
32
42
|
"absvtype",
|
|
43
|
+
// ABSVIEWTYPE
|
|
33
44
|
"absviewtype",
|
|
45
|
+
// ABSVIEWTYPE
|
|
34
46
|
"absvt0ype",
|
|
47
|
+
// ABSVIEWT0YPE
|
|
35
48
|
"absviewt0ype",
|
|
49
|
+
// ABSVIEWT0YPE
|
|
50
|
+
//
|
|
36
51
|
"as",
|
|
52
|
+
// T_AS
|
|
53
|
+
//
|
|
37
54
|
"and",
|
|
55
|
+
// T_AND
|
|
56
|
+
//
|
|
38
57
|
"assume",
|
|
58
|
+
// T_ASSUME
|
|
59
|
+
//
|
|
39
60
|
"begin",
|
|
61
|
+
// T_BEGIN
|
|
62
|
+
//
|
|
63
|
+
/*
|
|
64
|
+
"case", // CASE
|
|
65
|
+
*/
|
|
66
|
+
//
|
|
40
67
|
"classdec",
|
|
68
|
+
// T_CLASSDEC
|
|
69
|
+
//
|
|
41
70
|
"datasort",
|
|
71
|
+
// T_DATASORT
|
|
72
|
+
//
|
|
42
73
|
"datatype",
|
|
74
|
+
// DATATYPE
|
|
43
75
|
"dataprop",
|
|
76
|
+
// DATAPROP
|
|
44
77
|
"dataview",
|
|
78
|
+
// DATAVIEW
|
|
45
79
|
"datavtype",
|
|
80
|
+
// DATAVIEWTYPE
|
|
46
81
|
"dataviewtype",
|
|
82
|
+
// DATAVIEWTYPE
|
|
83
|
+
//
|
|
47
84
|
"do",
|
|
85
|
+
// T_DO
|
|
86
|
+
//
|
|
48
87
|
"end",
|
|
88
|
+
// T_END
|
|
89
|
+
//
|
|
49
90
|
"extern",
|
|
91
|
+
// T_EXTERN
|
|
50
92
|
"extype",
|
|
93
|
+
// T_EXTYPE
|
|
51
94
|
"extvar",
|
|
95
|
+
// T_EXTVAR
|
|
96
|
+
//
|
|
52
97
|
"exception",
|
|
98
|
+
// T_EXCEPTION
|
|
99
|
+
//
|
|
53
100
|
"fn",
|
|
101
|
+
// FN // non-recursive
|
|
54
102
|
"fnx",
|
|
103
|
+
// FNX // mutual tail-rec.
|
|
55
104
|
"fun",
|
|
105
|
+
// FUN // general-recursive
|
|
106
|
+
//
|
|
56
107
|
"prfn",
|
|
108
|
+
// PRFN
|
|
57
109
|
"prfun",
|
|
110
|
+
// PRFUN
|
|
111
|
+
//
|
|
58
112
|
"praxi",
|
|
113
|
+
// PRAXI
|
|
59
114
|
"castfn",
|
|
115
|
+
// CASTFN
|
|
116
|
+
//
|
|
60
117
|
"if",
|
|
118
|
+
// T_IF
|
|
61
119
|
"then",
|
|
120
|
+
// T_THEN
|
|
62
121
|
"else",
|
|
122
|
+
// T_ELSE
|
|
123
|
+
//
|
|
63
124
|
"ifcase",
|
|
125
|
+
// T_IFCASE
|
|
126
|
+
//
|
|
64
127
|
"in",
|
|
128
|
+
// T_IN
|
|
129
|
+
//
|
|
65
130
|
"infix",
|
|
131
|
+
// INFIX
|
|
66
132
|
"infixl",
|
|
133
|
+
// INFIXL
|
|
67
134
|
"infixr",
|
|
135
|
+
// INFIXR
|
|
68
136
|
"prefix",
|
|
137
|
+
// PREFIX
|
|
69
138
|
"postfix",
|
|
139
|
+
// POSTFIX
|
|
140
|
+
//
|
|
70
141
|
"implmnt",
|
|
142
|
+
// IMPLMNT // 0
|
|
71
143
|
"implement",
|
|
144
|
+
// IMPLEMENT // 1
|
|
145
|
+
//
|
|
72
146
|
"primplmnt",
|
|
147
|
+
// PRIMPLMNT // ~1
|
|
73
148
|
"primplement",
|
|
149
|
+
// PRIMPLMNT // ~1
|
|
150
|
+
//
|
|
74
151
|
"import",
|
|
152
|
+
// T_IMPORT // for importing packages
|
|
153
|
+
//
|
|
154
|
+
/*
|
|
155
|
+
"lam", // LAM
|
|
156
|
+
"llam", // LLAM
|
|
157
|
+
"fix", // FIX
|
|
158
|
+
*/
|
|
159
|
+
//
|
|
75
160
|
"let",
|
|
161
|
+
// T_LET
|
|
162
|
+
//
|
|
76
163
|
"local",
|
|
164
|
+
// T_LOCAL
|
|
165
|
+
//
|
|
77
166
|
"macdef",
|
|
167
|
+
// MACDEF
|
|
78
168
|
"macrodef",
|
|
169
|
+
// MACRODEF
|
|
170
|
+
//
|
|
79
171
|
"nonfix",
|
|
172
|
+
// T_NONFIX
|
|
173
|
+
//
|
|
80
174
|
"symelim",
|
|
175
|
+
// T_SYMELIM
|
|
81
176
|
"symintr",
|
|
177
|
+
// T_SYMINTR
|
|
82
178
|
"overload",
|
|
179
|
+
// T_OVERLOAD
|
|
180
|
+
//
|
|
83
181
|
"of",
|
|
182
|
+
// T_OF
|
|
84
183
|
"op",
|
|
184
|
+
// T_OP
|
|
185
|
+
//
|
|
85
186
|
"rec",
|
|
187
|
+
// T_REC
|
|
188
|
+
//
|
|
86
189
|
"sif",
|
|
190
|
+
// T_SIF
|
|
87
191
|
"scase",
|
|
192
|
+
// T_SCASE
|
|
193
|
+
//
|
|
88
194
|
"sortdef",
|
|
195
|
+
// T_SORTDEF
|
|
196
|
+
/*
|
|
197
|
+
// HX: [sta] is now deprecated
|
|
198
|
+
*/
|
|
89
199
|
"sta",
|
|
200
|
+
// T_STACST
|
|
90
201
|
"stacst",
|
|
202
|
+
// T_STACST
|
|
91
203
|
"stadef",
|
|
204
|
+
// T_STADEF
|
|
92
205
|
"static",
|
|
206
|
+
// T_STATIC
|
|
207
|
+
/*
|
|
208
|
+
"stavar", // T_STAVAR
|
|
209
|
+
*/
|
|
210
|
+
//
|
|
93
211
|
"staload",
|
|
212
|
+
// T_STALOAD
|
|
94
213
|
"dynload",
|
|
214
|
+
// T_DYNLOAD
|
|
215
|
+
//
|
|
95
216
|
"try",
|
|
217
|
+
// T_TRY
|
|
218
|
+
//
|
|
96
219
|
"tkindef",
|
|
220
|
+
// T_TKINDEF // HX-2012-05-23
|
|
221
|
+
//
|
|
222
|
+
/*
|
|
223
|
+
"type", // TYPE
|
|
224
|
+
*/
|
|
97
225
|
"typedef",
|
|
226
|
+
// TYPEDEF
|
|
98
227
|
"propdef",
|
|
228
|
+
// PROPDEF
|
|
99
229
|
"viewdef",
|
|
230
|
+
// VIEWDEF
|
|
100
231
|
"vtypedef",
|
|
232
|
+
// VIEWTYPEDEF
|
|
101
233
|
"viewtypedef",
|
|
234
|
+
// VIEWTYPEDEF
|
|
235
|
+
//
|
|
236
|
+
/*
|
|
237
|
+
"val", // VAL
|
|
238
|
+
*/
|
|
102
239
|
"prval",
|
|
240
|
+
// PRVAL
|
|
241
|
+
//
|
|
103
242
|
"var",
|
|
243
|
+
// VAR
|
|
104
244
|
"prvar",
|
|
245
|
+
// PRVAR
|
|
246
|
+
//
|
|
105
247
|
"when",
|
|
248
|
+
// T_WHEN
|
|
106
249
|
"where",
|
|
250
|
+
// T_WHERE
|
|
251
|
+
//
|
|
252
|
+
/*
|
|
253
|
+
"for", // T_FOR
|
|
254
|
+
"while", // T_WHILE
|
|
255
|
+
*/
|
|
256
|
+
//
|
|
107
257
|
"with",
|
|
258
|
+
// T_WITH
|
|
259
|
+
//
|
|
108
260
|
"withtype",
|
|
261
|
+
// WITHTYPE
|
|
109
262
|
"withprop",
|
|
263
|
+
// WITHPROP
|
|
110
264
|
"withview",
|
|
265
|
+
// WITHVIEW
|
|
111
266
|
"withvtype",
|
|
267
|
+
// WITHVIEWTYPE
|
|
112
268
|
"withviewtype"
|
|
269
|
+
// WITHVIEWTYPE
|
|
270
|
+
//
|
|
113
271
|
],
|
|
114
272
|
keywords_dlr: [
|
|
115
273
|
"$delay",
|
|
274
|
+
// DLRDELAY
|
|
116
275
|
"$ldelay",
|
|
276
|
+
// DLRLDELAY
|
|
277
|
+
//
|
|
117
278
|
"$arrpsz",
|
|
279
|
+
// T_DLRARRPSZ
|
|
118
280
|
"$arrptrsize",
|
|
281
|
+
// T_DLRARRPSZ
|
|
282
|
+
//
|
|
119
283
|
"$d2ctype",
|
|
284
|
+
// T_DLRD2CTYPE
|
|
285
|
+
//
|
|
120
286
|
"$effmask",
|
|
287
|
+
// DLREFFMASK
|
|
121
288
|
"$effmask_ntm",
|
|
289
|
+
// DLREFFMASK_NTM
|
|
122
290
|
"$effmask_exn",
|
|
291
|
+
// DLREFFMASK_EXN
|
|
123
292
|
"$effmask_ref",
|
|
293
|
+
// DLREFFMASK_REF
|
|
124
294
|
"$effmask_wrt",
|
|
295
|
+
// DLREFFMASK_WRT
|
|
125
296
|
"$effmask_all",
|
|
297
|
+
// DLREFFMASK_ALL
|
|
298
|
+
//
|
|
126
299
|
"$extern",
|
|
300
|
+
// T_DLREXTERN
|
|
127
301
|
"$extkind",
|
|
302
|
+
// T_DLREXTKIND
|
|
128
303
|
"$extype",
|
|
304
|
+
// T_DLREXTYPE
|
|
129
305
|
"$extype_struct",
|
|
306
|
+
// T_DLREXTYPE_STRUCT
|
|
307
|
+
//
|
|
130
308
|
"$extval",
|
|
309
|
+
// T_DLREXTVAL
|
|
131
310
|
"$extfcall",
|
|
311
|
+
// T_DLREXTFCALL
|
|
132
312
|
"$extmcall",
|
|
313
|
+
// T_DLREXTMCALL
|
|
314
|
+
//
|
|
133
315
|
"$literal",
|
|
316
|
+
// T_DLRLITERAL
|
|
317
|
+
//
|
|
134
318
|
"$myfilename",
|
|
319
|
+
// T_DLRMYFILENAME
|
|
135
320
|
"$mylocation",
|
|
321
|
+
// T_DLRMYLOCATION
|
|
136
322
|
"$myfunction",
|
|
323
|
+
// T_DLRMYFUNCTION
|
|
324
|
+
//
|
|
137
325
|
"$lst",
|
|
326
|
+
// DLRLST
|
|
138
327
|
"$lst_t",
|
|
328
|
+
// DLRLST_T
|
|
139
329
|
"$lst_vt",
|
|
330
|
+
// DLRLST_VT
|
|
140
331
|
"$list",
|
|
332
|
+
// DLRLST
|
|
141
333
|
"$list_t",
|
|
334
|
+
// DLRLST_T
|
|
142
335
|
"$list_vt",
|
|
336
|
+
// DLRLST_VT
|
|
337
|
+
//
|
|
143
338
|
"$rec",
|
|
339
|
+
// DLRREC
|
|
144
340
|
"$rec_t",
|
|
341
|
+
// DLRREC_T
|
|
145
342
|
"$rec_vt",
|
|
343
|
+
// DLRREC_VT
|
|
146
344
|
"$record",
|
|
345
|
+
// DLRREC
|
|
147
346
|
"$record_t",
|
|
347
|
+
// DLRREC_T
|
|
148
348
|
"$record_vt",
|
|
349
|
+
// DLRREC_VT
|
|
350
|
+
//
|
|
149
351
|
"$tup",
|
|
352
|
+
// DLRTUP
|
|
150
353
|
"$tup_t",
|
|
354
|
+
// DLRTUP_T
|
|
151
355
|
"$tup_vt",
|
|
356
|
+
// DLRTUP_VT
|
|
152
357
|
"$tuple",
|
|
358
|
+
// DLRTUP
|
|
153
359
|
"$tuple_t",
|
|
360
|
+
// DLRTUP_T
|
|
154
361
|
"$tuple_vt",
|
|
362
|
+
// DLRTUP_VT
|
|
363
|
+
//
|
|
155
364
|
"$break",
|
|
365
|
+
// T_DLRBREAK
|
|
156
366
|
"$continue",
|
|
367
|
+
// T_DLRCONTINUE
|
|
368
|
+
//
|
|
157
369
|
"$raise",
|
|
370
|
+
// T_DLRRAISE
|
|
371
|
+
//
|
|
158
372
|
"$showtype",
|
|
373
|
+
// T_DLRSHOWTYPE
|
|
374
|
+
//
|
|
159
375
|
"$vcopyenv_v",
|
|
376
|
+
// DLRVCOPYENV_V
|
|
160
377
|
"$vcopyenv_vt",
|
|
378
|
+
// DLRVCOPYENV_VT
|
|
379
|
+
//
|
|
161
380
|
"$tempenver",
|
|
381
|
+
// T_DLRTEMPENVER
|
|
382
|
+
//
|
|
162
383
|
"$solver_assert",
|
|
384
|
+
// T_DLRSOLASSERT
|
|
163
385
|
"$solver_verify"
|
|
386
|
+
// T_DLRSOLVERIFY
|
|
164
387
|
],
|
|
165
388
|
keywords_srp: [
|
|
389
|
+
//
|
|
166
390
|
"#if",
|
|
391
|
+
// T_SRPIF
|
|
167
392
|
"#ifdef",
|
|
393
|
+
// T_SRPIFDEF
|
|
168
394
|
"#ifndef",
|
|
395
|
+
// T_SRPIFNDEF
|
|
396
|
+
//
|
|
169
397
|
"#then",
|
|
398
|
+
// T_SRPTHEN
|
|
399
|
+
//
|
|
170
400
|
"#elif",
|
|
401
|
+
// T_SRPELIF
|
|
171
402
|
"#elifdef",
|
|
403
|
+
// T_SRPELIFDEF
|
|
172
404
|
"#elifndef",
|
|
405
|
+
// T_SRPELIFNDEF
|
|
406
|
+
//
|
|
173
407
|
"#else",
|
|
408
|
+
// T_SRPELSE
|
|
174
409
|
"#endif",
|
|
410
|
+
// T_SRPENDIF
|
|
411
|
+
//
|
|
175
412
|
"#error",
|
|
413
|
+
// T_SRPERROR
|
|
414
|
+
//
|
|
176
415
|
"#prerr",
|
|
416
|
+
// T_SRPPRERR // outpui to stderr
|
|
177
417
|
"#print",
|
|
418
|
+
// T_SRPPRINT // output to stdout
|
|
419
|
+
//
|
|
178
420
|
"#assert",
|
|
421
|
+
// T_SRPASSERT
|
|
422
|
+
//
|
|
179
423
|
"#undef",
|
|
424
|
+
// T_SRPUNDEF
|
|
180
425
|
"#define",
|
|
426
|
+
// T_SRPDEFINE
|
|
427
|
+
//
|
|
181
428
|
"#include",
|
|
429
|
+
// T_SRPINCLUDE
|
|
182
430
|
"#require",
|
|
431
|
+
// T_SRPREQUIRE
|
|
432
|
+
//
|
|
183
433
|
"#pragma",
|
|
434
|
+
// T_SRPPRAGMA // HX: general pragma
|
|
184
435
|
"#codegen2",
|
|
436
|
+
// T_SRPCODEGEN2 // for level-2 codegen
|
|
185
437
|
"#codegen3"
|
|
438
|
+
// T_SRPCODEGEN3 // for level-3 codegen
|
|
439
|
+
//
|
|
440
|
+
// HX: end of special tokens
|
|
441
|
+
//
|
|
186
442
|
],
|
|
187
443
|
irregular_keyword_list: [
|
|
188
444
|
"val+",
|
|
@@ -258,8 +514,10 @@ var e = {
|
|
|
258
514
|
"string",
|
|
259
515
|
"strptr"
|
|
260
516
|
],
|
|
517
|
+
// TODO: reference for this?
|
|
261
518
|
keywords_effects: [
|
|
262
519
|
"0",
|
|
520
|
+
// no effects
|
|
263
521
|
"fun",
|
|
264
522
|
"clo",
|
|
265
523
|
"prf",
|
|
@@ -269,36 +527,76 @@ var e = {
|
|
|
269
527
|
"ref",
|
|
270
528
|
"ntm",
|
|
271
529
|
"1"
|
|
530
|
+
// all effects
|
|
272
531
|
],
|
|
273
532
|
operators: [
|
|
274
533
|
"@",
|
|
534
|
+
// T_AT
|
|
275
535
|
"!",
|
|
536
|
+
// T_BANG
|
|
276
537
|
"|",
|
|
538
|
+
// T_BAR
|
|
277
539
|
"`",
|
|
540
|
+
// T_BQUOTE
|
|
278
541
|
":",
|
|
542
|
+
// T_COLON
|
|
279
543
|
"$",
|
|
544
|
+
// T_DOLLAR
|
|
280
545
|
".",
|
|
546
|
+
// T_DOT
|
|
281
547
|
"=",
|
|
548
|
+
// T_EQ
|
|
282
549
|
"#",
|
|
550
|
+
// T_HASH
|
|
283
551
|
"~",
|
|
552
|
+
// T_TILDE
|
|
553
|
+
//
|
|
284
554
|
"..",
|
|
555
|
+
// T_DOTDOT
|
|
285
556
|
"...",
|
|
557
|
+
// T_DOTDOTDOT
|
|
558
|
+
//
|
|
286
559
|
"=>",
|
|
560
|
+
// T_EQGT
|
|
561
|
+
// "=<", // T_EQLT
|
|
287
562
|
"=<>",
|
|
563
|
+
// T_EQLTGT
|
|
288
564
|
"=/=>",
|
|
565
|
+
// T_EQSLASHEQGT
|
|
289
566
|
"=>>",
|
|
567
|
+
// T_EQGTGT
|
|
290
568
|
"=/=>>",
|
|
569
|
+
// T_EQSLASHEQGTGT
|
|
570
|
+
//
|
|
291
571
|
"<",
|
|
572
|
+
// T_LT // opening a tmparg
|
|
292
573
|
">",
|
|
574
|
+
// T_GT // closing a tmparg
|
|
575
|
+
//
|
|
293
576
|
"><",
|
|
577
|
+
// T_GTLT
|
|
578
|
+
//
|
|
294
579
|
".<",
|
|
580
|
+
// T_DOTLT
|
|
295
581
|
">.",
|
|
582
|
+
// T_GTDOT
|
|
583
|
+
//
|
|
296
584
|
".<>.",
|
|
585
|
+
// T_DOTLTGTDOT
|
|
586
|
+
//
|
|
297
587
|
"->",
|
|
588
|
+
// T_MINUSGT
|
|
589
|
+
//"-<", // T_MINUSLT
|
|
298
590
|
"-<>"
|
|
591
|
+
// T_MINUSLTGT
|
|
592
|
+
//
|
|
593
|
+
/*
|
|
594
|
+
":<", // T_COLONLT
|
|
595
|
+
*/
|
|
299
596
|
],
|
|
300
597
|
brackets: [
|
|
301
598
|
{ open: ",(", close: ")", token: "delimiter.parenthesis" },
|
|
599
|
+
// meta-programming syntax
|
|
302
600
|
{ open: "`(", close: ")", token: "delimiter.parenthesis" },
|
|
303
601
|
{ open: "%(", close: ")", token: "delimiter.parenthesis" },
|
|
304
602
|
{ open: "'(", close: ")", token: "delimiter.parenthesis" },
|
|
@@ -312,6 +610,7 @@ var e = {
|
|
|
312
610
|
{ open: "(", close: ")", token: "delimiter.parenthesis" },
|
|
313
611
|
{ open: "<", close: ">", token: "delimiter.angle" }
|
|
314
612
|
],
|
|
613
|
+
// we include these common regular expressions
|
|
315
614
|
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
316
615
|
IDENTFST: /[a-zA-Z_]/,
|
|
317
616
|
IDENTRST: /[a-zA-Z0-9_'$]/,
|
|
@@ -329,9 +628,13 @@ var e = {
|
|
|
329
628
|
irregular_keywords: /val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,
|
|
330
629
|
ESCHAR: /[ntvbrfa\\\?'"\(\[\{]/,
|
|
331
630
|
start: "root",
|
|
631
|
+
// The main tokenizer for ATS/Postiats
|
|
632
|
+
// reference: https://github.com/githwxi/ATS-Postiats/blob/master/src/pats_lexing.dats
|
|
332
633
|
tokenizer: {
|
|
333
634
|
root: [
|
|
635
|
+
// lexing_blankseq0
|
|
334
636
|
{ regex: /[ \t\r\n]+/, action: { token: "" } },
|
|
637
|
+
// NOTE: (*) is an invalid ML-like comment!
|
|
335
638
|
{ regex: /\(\*\)/, action: { token: "invalid" } },
|
|
336
639
|
{
|
|
337
640
|
regex: /\(\*/,
|
|
@@ -340,64 +643,93 @@ var e = {
|
|
|
340
643
|
{
|
|
341
644
|
regex: /\(/,
|
|
342
645
|
action: "@brackets"
|
|
646
|
+
/*{ token: 'delimiter.parenthesis' }*/
|
|
343
647
|
},
|
|
344
648
|
{
|
|
345
649
|
regex: /\)/,
|
|
346
650
|
action: "@brackets"
|
|
651
|
+
/*{ token: 'delimiter.parenthesis' }*/
|
|
347
652
|
},
|
|
348
653
|
{
|
|
349
654
|
regex: /\[/,
|
|
350
655
|
action: "@brackets"
|
|
656
|
+
/*{ token: 'delimiter.bracket' }*/
|
|
351
657
|
},
|
|
352
658
|
{
|
|
353
659
|
regex: /\]/,
|
|
354
660
|
action: "@brackets"
|
|
661
|
+
/*{ token: 'delimiter.bracket' }*/
|
|
355
662
|
},
|
|
356
663
|
{
|
|
357
664
|
regex: /\{/,
|
|
358
665
|
action: "@brackets"
|
|
666
|
+
/*{ token: 'delimiter.brace' }*/
|
|
359
667
|
},
|
|
360
668
|
{
|
|
361
669
|
regex: /\}/,
|
|
362
670
|
action: "@brackets"
|
|
671
|
+
/*{ token: 'delimiter.brace' }*/
|
|
363
672
|
},
|
|
673
|
+
// lexing_COMMA
|
|
364
674
|
{
|
|
365
675
|
regex: /,\(/,
|
|
366
676
|
action: "@brackets"
|
|
677
|
+
/*{ token: 'delimiter.parenthesis' }*/
|
|
367
678
|
},
|
|
679
|
+
// meta-programming syntax
|
|
368
680
|
{ regex: /,/, action: { token: "delimiter.comma" } },
|
|
369
681
|
{ regex: /;/, action: { token: "delimiter.semicolon" } },
|
|
682
|
+
// lexing_AT
|
|
370
683
|
{
|
|
371
684
|
regex: /@\(/,
|
|
372
685
|
action: "@brackets"
|
|
686
|
+
/* { token: 'delimiter.parenthesis' }*/
|
|
373
687
|
},
|
|
374
688
|
{
|
|
375
689
|
regex: /@\[/,
|
|
376
690
|
action: "@brackets"
|
|
691
|
+
/* { token: 'delimiter.bracket' }*/
|
|
377
692
|
},
|
|
378
693
|
{
|
|
379
694
|
regex: /@\{/,
|
|
380
695
|
action: "@brackets"
|
|
696
|
+
/*{ token: 'delimiter.brace' }*/
|
|
381
697
|
},
|
|
698
|
+
// lexing_COLON
|
|
382
699
|
{
|
|
383
700
|
regex: /:</,
|
|
384
701
|
action: { token: "keyword", next: "@lexing_EFFECT_commaseq0" }
|
|
385
702
|
},
|
|
703
|
+
// T_COLONLT
|
|
704
|
+
/*
|
|
705
|
+
lexing_DOT:
|
|
706
|
+
|
|
707
|
+
. // SYMBOLIC => lexing_IDENT_sym
|
|
708
|
+
. FLOATDOT => lexing_FLOAT_deciexp
|
|
709
|
+
. DIGIT => T_DOTINT
|
|
710
|
+
*/
|
|
386
711
|
{ regex: /\.@symbolic+/, action: { token: "identifier.sym" } },
|
|
712
|
+
// FLOATDOT case
|
|
387
713
|
{
|
|
388
714
|
regex: /\.@digit*@fexponent@FLOATSP*/,
|
|
389
715
|
action: { token: "number.float" }
|
|
390
716
|
},
|
|
391
717
|
{ regex: /\.@digit+/, action: { token: "number.float" } },
|
|
718
|
+
// T_DOTINT
|
|
719
|
+
// lexing_DOLLAR:
|
|
720
|
+
// '$' IDENTFST IDENTRST* => lexing_IDENT_dlr, _ => lexing_IDENT_sym
|
|
392
721
|
{
|
|
393
722
|
regex: /\$@IDENTFST@IDENTRST*/,
|
|
394
723
|
action: {
|
|
395
724
|
cases: {
|
|
396
725
|
"@keywords_dlr": { token: "keyword.dlr" },
|
|
397
726
|
"@default": { token: "namespace" }
|
|
727
|
+
// most likely a module qualifier
|
|
398
728
|
}
|
|
399
729
|
}
|
|
400
730
|
},
|
|
731
|
+
// lexing_SHARP:
|
|
732
|
+
// '#' IDENTFST IDENTRST* => lexing_ident_srp, _ => lexing_IDENT_sym
|
|
401
733
|
{
|
|
402
734
|
regex: /\#@IDENTFST@IDENTRST*/,
|
|
403
735
|
action: {
|
|
@@ -407,6 +739,7 @@ var e = {
|
|
|
407
739
|
}
|
|
408
740
|
}
|
|
409
741
|
},
|
|
742
|
+
// lexing_PERCENT:
|
|
410
743
|
{ regex: /%\(/, action: { token: "delimiter.parenthesis" } },
|
|
411
744
|
{
|
|
412
745
|
regex: /^%{(#|\^|\$)?/,
|
|
@@ -417,17 +750,26 @@ var e = {
|
|
|
417
750
|
}
|
|
418
751
|
},
|
|
419
752
|
{ regex: /^%}/, action: { token: "keyword" } },
|
|
753
|
+
// lexing_QUOTE
|
|
420
754
|
{ regex: /'\(/, action: { token: "delimiter.parenthesis" } },
|
|
421
755
|
{ regex: /'\[/, action: { token: "delimiter.bracket" } },
|
|
422
756
|
{ regex: /'\{/, action: { token: "delimiter.brace" } },
|
|
423
757
|
[/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/, ["string", "string.escape", "string"]],
|
|
424
758
|
[/'[^\\']'/, "string"],
|
|
759
|
+
// lexing_DQUOTE
|
|
425
760
|
[/"/, "string.quote", "@lexing_DQUOTE"],
|
|
761
|
+
// lexing_BQUOTE
|
|
426
762
|
{
|
|
427
763
|
regex: /`\(/,
|
|
428
764
|
action: "@brackets"
|
|
765
|
+
/* { token: 'delimiter.parenthesis' }*/
|
|
429
766
|
},
|
|
767
|
+
// TODO: otherwise, try lexing_IDENT_sym
|
|
430
768
|
{ regex: /\\/, action: { token: "punctuation" } },
|
|
769
|
+
// just T_BACKSLASH
|
|
770
|
+
// lexing_IDENT_alp:
|
|
771
|
+
// NOTE: (?!regex) is syntax for "not-followed-by" regex
|
|
772
|
+
// to resolve ambiguity such as foreach$fwork being incorrectly lexed as [for] [each$fwork]!
|
|
431
773
|
{
|
|
432
774
|
regex: /@irregular_keywords(?!@IDENTRST)/,
|
|
433
775
|
action: { token: "keyword" }
|
|
@@ -436,12 +778,19 @@ var e = {
|
|
|
436
778
|
regex: /@IDENTFST@IDENTRST*[<!\[]?/,
|
|
437
779
|
action: {
|
|
438
780
|
cases: {
|
|
781
|
+
// TODO: dynload and staload should be specially parsed
|
|
782
|
+
// dynload whitespace+ "special_string"
|
|
783
|
+
// this special string is really:
|
|
784
|
+
// '/' '\\' '.' => punctuation
|
|
785
|
+
// ({\$)([a-zA-Z_][a-zA-Z_0-9]*)(}) => punctuation,keyword,punctuation
|
|
786
|
+
// [^"] => identifier/literal
|
|
439
787
|
"@keywords": { token: "keyword" },
|
|
440
788
|
"@keywords_types": { token: "type" },
|
|
441
789
|
"@default": { token: "identifier" }
|
|
442
790
|
}
|
|
443
791
|
}
|
|
444
792
|
},
|
|
793
|
+
// lexing_IDENT_sym:
|
|
445
794
|
{
|
|
446
795
|
regex: /\/\/\/\//,
|
|
447
796
|
action: { token: "comment", next: "@lexing_COMMENT_rest" }
|
|
@@ -451,6 +800,7 @@ var e = {
|
|
|
451
800
|
regex: /\/\*/,
|
|
452
801
|
action: { token: "comment", next: "@lexing_COMMENT_block_c" }
|
|
453
802
|
},
|
|
803
|
+
// AS-20160627: specifically for effect annotations
|
|
454
804
|
{
|
|
455
805
|
regex: /-<|=</,
|
|
456
806
|
action: { token: "keyword", next: "@lexing_EFFECT_commaseq0" }
|
|
@@ -464,6 +814,13 @@ var e = {
|
|
|
464
814
|
}
|
|
465
815
|
}
|
|
466
816
|
},
|
|
817
|
+
// lexing_ZERO:
|
|
818
|
+
// FIXME: this one is quite messy/unfinished yet
|
|
819
|
+
// TODO: lexing_INT_hex
|
|
820
|
+
// - testing_hexiexp => lexing_FLOAT_hexiexp
|
|
821
|
+
// - testing_fexponent_bin => lexing_FLOAT_hexiexp
|
|
822
|
+
// - testing_intspseq0 => T_INT_hex
|
|
823
|
+
// lexing_INT_hex:
|
|
467
824
|
{
|
|
468
825
|
regex: /0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/,
|
|
469
826
|
action: { token: "number.float" }
|
|
@@ -473,6 +830,12 @@ var e = {
|
|
|
473
830
|
regex: /0[0-7]+(?![0-9])@INTSP*/,
|
|
474
831
|
action: { token: "number.octal" }
|
|
475
832
|
},
|
|
833
|
+
// lexing_INT_oct
|
|
834
|
+
//{regex: /0/, action: { token: 'number' } }, // INTZERO
|
|
835
|
+
// lexing_INT_dec:
|
|
836
|
+
// - testing_deciexp => lexing_FLOAT_deciexp
|
|
837
|
+
// - testing_fexponent => lexing_FLOAT_deciexp
|
|
838
|
+
// - otherwise => intspseq0 ([0-9]*[lLuU]?)
|
|
476
839
|
{
|
|
477
840
|
regex: /@digit+(@fexponent|@deciexp)@FLOATSP*/,
|
|
478
841
|
action: { token: "number.float" }
|
|
@@ -481,6 +844,7 @@ var e = {
|
|
|
481
844
|
regex: /@digit@digitseq0@INTSP*/,
|
|
482
845
|
action: { token: "number.decimal" }
|
|
483
846
|
},
|
|
847
|
+
// DIGIT, if followed by digitseq0, is lexing_INT_dec
|
|
484
848
|
{ regex: /@digit+@INTSP*/, action: { token: "number" } }
|
|
485
849
|
],
|
|
486
850
|
lexing_COMMENT_block_ml: [
|
|
@@ -492,13 +856,17 @@ var e = {
|
|
|
492
856
|
],
|
|
493
857
|
lexing_COMMENT_block_c: [
|
|
494
858
|
[/[^\/*]+/, "comment"],
|
|
859
|
+
// [/\/\*/, 'comment', '@push' ], // nested C-style block comments not allowed
|
|
860
|
+
// [/\/\*/, 'comment.invalid' ], // NOTE: this breaks block comments in the shape of /* //*/
|
|
495
861
|
[/\*\//, "comment", "@pop"],
|
|
496
862
|
[/[\/*]/, "comment"]
|
|
497
863
|
],
|
|
498
864
|
lexing_COMMENT_rest: [
|
|
499
865
|
[/$/, "comment", "@pop"],
|
|
866
|
+
// FIXME: does it match? docs say 'no'
|
|
500
867
|
[/.*/, "comment"]
|
|
501
868
|
],
|
|
869
|
+
// NOTE: added by AS, specifically for highlighting
|
|
502
870
|
lexing_EFFECT_commaseq0: [
|
|
503
871
|
{
|
|
504
872
|
regex: /@IDENTFST@IDENTRST+|@digit+/,
|
|
@@ -525,6 +893,7 @@ var e = {
|
|
|
525
893
|
],
|
|
526
894
|
lexing_DQUOTE: [
|
|
527
895
|
{ regex: /"/, action: { token: "string.quote", next: "@pop" } },
|
|
896
|
+
// AS-20160628: additional hi-lighting for variables in staload/dynload strings
|
|
528
897
|
{
|
|
529
898
|
regex: /(\{\$)(@IDENTFST@IDENTRST*)(\})/,
|
|
530
899
|
action: [{ token: "string.escape" }, { token: "identifier" }, { token: "string.escape" }]
|