marqdo

Bytecode backendok

features/02-bytecode.mq.md

文档

main

说明

Milestone: bytecode prototype.

The same .mq.md runs on tree-walk or the bytecode VM:

marqdo run FILE --backend tree

marqdo run FILE --backend bytecode

Output matches on both backends:

> print text=Bytecode backend: same program, alternate engine.
Functions
Variables
  • description text
    `--backend bytecode` shares semantics with tree-walk
  • markup text
    occlusion
  • title text
    Bytecode backend
可执行知识(辅助)

文档中的步骤

结构步骤(非实际执行时序)

  1. call print

运行与结果

Bytecode backend: same program, alternate engine.
完整源码
---
markup: occlusion
title: Bytecode backend
description: `--backend bytecode` shares semantics with tree-walk
---

# main

Milestone: bytecode prototype.

The same `.mq.md` runs on tree-walk or the bytecode VM:

  marqdo run FILE --backend tree

  marqdo run FILE --backend bytecode

Output matches on both backends:

> print text=Bytecode backend: same program, alternate engine.

Variable