├── .editorconfig ├── .gitattributes ├── .github └── workflows │ ├── dockerhub.yaml │ ├── pypi.yaml │ └── release.yaml ├── .gitignore ├── Dockerfile ├── LICENSE ├── MANIFEST.in ├── Makefile ├── README.md ├── example ├── demo.gif ├── demo_code.gif ├── demo_judge.gif ├── demo_plot.gif ├── example.md ├── helloalmo │ ├── in │ │ ├── 001.txt │ │ ├── 002.txt │ │ └── sample.txt │ └── out │ │ ├── 001.txt │ │ ├── 002.txt │ │ └── sample.txt ├── image │ └── sum.png ├── in │ ├── 001.txt │ ├── 002.txt │ └── sample.txt ├── input.py └── out │ ├── 001.txt │ ├── 002.txt │ └── sample.txt ├── flake.lock ├── flake.nix ├── logo.png ├── pyproject.toml ├── scripts ├── docker-entrypoint.sh ├── pybind.sh └── setup.sh ├── setup.py └── src ├── almo.cpp ├── ast.hpp ├── dark.css ├── interfaces ├── ast.hpp ├── parse.hpp └── syntax.hpp ├── light.css ├── parse.hpp ├── pyalmo.cpp ├── reader.hpp ├── render.hpp ├── runner.js ├── syntax ├── CodeBlock.hpp ├── DivBlock.hpp ├── EOF.hpp ├── EnumerateBlock.hpp ├── ExecutableCodeBlock.hpp ├── FootnoteDefinition.hpp ├── Header.hpp ├── HorizontalLine.hpp ├── InlineCodeBlock.hpp ├── InlineFootnoteReference.hpp ├── InlineImage.hpp ├── InlineItalic.hpp ├── InlineMath.hpp ├── InlineOverline.hpp ├── InlineStrong.hpp ├── InlineUrl.hpp ├── Item.hpp ├── Judge.hpp ├── ListBlock.hpp ├── LoadLib.hpp ├── Markdown.hpp ├── MathBlock.hpp ├── NewLine.hpp ├── Quote.hpp ├── RawText.hpp └── Table.hpp ├── syntax_all.hpp ├── template.html └── utils.hpp /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/dockerhub.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/.github/workflows/dockerhub.yaml -------------------------------------------------------------------------------- /.github/workflows/pypi.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/.github/workflows/pypi.yaml -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | build 3 | tmp* 4 | almo.so 5 | result 6 | 7 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/README.md -------------------------------------------------------------------------------- /example/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/example/demo.gif -------------------------------------------------------------------------------- /example/demo_code.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/example/demo_code.gif -------------------------------------------------------------------------------- /example/demo_judge.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/example/demo_judge.gif -------------------------------------------------------------------------------- /example/demo_plot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/example/demo_plot.gif -------------------------------------------------------------------------------- /example/example.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/example/example.md -------------------------------------------------------------------------------- /example/helloalmo/in/001.txt: -------------------------------------------------------------------------------- 1 | world -------------------------------------------------------------------------------- /example/helloalmo/in/002.txt: -------------------------------------------------------------------------------- 1 | wasm -------------------------------------------------------------------------------- /example/helloalmo/in/sample.txt: -------------------------------------------------------------------------------- 1 | ALMO -------------------------------------------------------------------------------- /example/helloalmo/out/001.txt: -------------------------------------------------------------------------------- 1 | Hello, world! -------------------------------------------------------------------------------- /example/helloalmo/out/002.txt: -------------------------------------------------------------------------------- 1 | Hello, wasm! -------------------------------------------------------------------------------- /example/helloalmo/out/sample.txt: -------------------------------------------------------------------------------- 1 | Hello, ALMO! -------------------------------------------------------------------------------- /example/image/sum.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/example/image/sum.png -------------------------------------------------------------------------------- /example/in/001.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/example/in/001.txt -------------------------------------------------------------------------------- /example/in/002.txt: -------------------------------------------------------------------------------- 1 | 2 3 4 2 | -------------------------------------------------------------------------------- /example/in/sample.txt: -------------------------------------------------------------------------------- 1 | 1 2 3 -------------------------------------------------------------------------------- /example/input.py: -------------------------------------------------------------------------------- 1 | s = input() 2 | 3 | print( 4 | # write your code here 5 | ) -------------------------------------------------------------------------------- /example/out/001.txt: -------------------------------------------------------------------------------- 1 | 2000 2 | -------------------------------------------------------------------------------- /example/out/002.txt: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /example/out/sample.txt: -------------------------------------------------------------------------------- 1 | 6 -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/flake.lock -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/flake.nix -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/logo.png -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/pyproject.toml -------------------------------------------------------------------------------- /scripts/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec /app/build/almo "$@" -------------------------------------------------------------------------------- /scripts/pybind.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/scripts/pybind.sh -------------------------------------------------------------------------------- /scripts/setup.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/scripts/setup.sh -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/setup.py -------------------------------------------------------------------------------- /src/almo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/almo.cpp -------------------------------------------------------------------------------- /src/ast.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/ast.hpp -------------------------------------------------------------------------------- /src/dark.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/dark.css -------------------------------------------------------------------------------- /src/interfaces/ast.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/interfaces/ast.hpp -------------------------------------------------------------------------------- /src/interfaces/parse.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/interfaces/parse.hpp -------------------------------------------------------------------------------- /src/interfaces/syntax.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/interfaces/syntax.hpp -------------------------------------------------------------------------------- /src/light.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/light.css -------------------------------------------------------------------------------- /src/parse.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/parse.hpp -------------------------------------------------------------------------------- /src/pyalmo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/pyalmo.cpp -------------------------------------------------------------------------------- /src/reader.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/reader.hpp -------------------------------------------------------------------------------- /src/render.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/render.hpp -------------------------------------------------------------------------------- /src/runner.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/runner.js -------------------------------------------------------------------------------- /src/syntax/CodeBlock.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/CodeBlock.hpp -------------------------------------------------------------------------------- /src/syntax/DivBlock.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/DivBlock.hpp -------------------------------------------------------------------------------- /src/syntax/EOF.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/EOF.hpp -------------------------------------------------------------------------------- /src/syntax/EnumerateBlock.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/EnumerateBlock.hpp -------------------------------------------------------------------------------- /src/syntax/ExecutableCodeBlock.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/ExecutableCodeBlock.hpp -------------------------------------------------------------------------------- /src/syntax/FootnoteDefinition.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/FootnoteDefinition.hpp -------------------------------------------------------------------------------- /src/syntax/Header.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/Header.hpp -------------------------------------------------------------------------------- /src/syntax/HorizontalLine.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/HorizontalLine.hpp -------------------------------------------------------------------------------- /src/syntax/InlineCodeBlock.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/InlineCodeBlock.hpp -------------------------------------------------------------------------------- /src/syntax/InlineFootnoteReference.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/InlineFootnoteReference.hpp -------------------------------------------------------------------------------- /src/syntax/InlineImage.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/InlineImage.hpp -------------------------------------------------------------------------------- /src/syntax/InlineItalic.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/InlineItalic.hpp -------------------------------------------------------------------------------- /src/syntax/InlineMath.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/InlineMath.hpp -------------------------------------------------------------------------------- /src/syntax/InlineOverline.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/InlineOverline.hpp -------------------------------------------------------------------------------- /src/syntax/InlineStrong.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/InlineStrong.hpp -------------------------------------------------------------------------------- /src/syntax/InlineUrl.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/InlineUrl.hpp -------------------------------------------------------------------------------- /src/syntax/Item.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/Item.hpp -------------------------------------------------------------------------------- /src/syntax/Judge.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/Judge.hpp -------------------------------------------------------------------------------- /src/syntax/ListBlock.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/ListBlock.hpp -------------------------------------------------------------------------------- /src/syntax/LoadLib.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/LoadLib.hpp -------------------------------------------------------------------------------- /src/syntax/Markdown.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/Markdown.hpp -------------------------------------------------------------------------------- /src/syntax/MathBlock.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/MathBlock.hpp -------------------------------------------------------------------------------- /src/syntax/NewLine.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/NewLine.hpp -------------------------------------------------------------------------------- /src/syntax/Quote.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/Quote.hpp -------------------------------------------------------------------------------- /src/syntax/RawText.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/RawText.hpp -------------------------------------------------------------------------------- /src/syntax/Table.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax/Table.hpp -------------------------------------------------------------------------------- /src/syntax_all.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/syntax_all.hpp -------------------------------------------------------------------------------- /src/template.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/template.html -------------------------------------------------------------------------------- /src/utils.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abap34/almo/HEAD/src/utils.hpp --------------------------------------------------------------------------------