Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

shuntingyarddemo/v0 package

Overview

Package shuntingyarddemo is a small gnoweb demo of the p/moul/x/daily/shuntingyard(/p/moul/x/daily/shuntingyard/v0) library: it shows the three stages of the algorithm (tokens, reverse Polish notation, value) and the refusals that make it safe to point at a caller's string.

It contains no parsing or arithmetic of its own, and it has no state. The root page is computed from the fixed tables at the top of this file, never from chain state, which is what lets an example test pin it; the `?e=` page is computed from the query alone, which is still a pure function of its input and therefore equally pinnable.

Function

Render

func Render(path string) string
Ask AI Claude ChatGPT

Render renders the demo for gnoweb.

Example
1Render("")              -> the demo page
2Render("?e=<expr>")     -> the three stages for one expression

Param

Command

gnokey query vm/qeval -remote "https://rpc.onyx.testnets.gno.land" -data "gno.land/r/g1magld5ptgzaktqcexxq0pgq5lmdf0kz6re8hlv/x/daily/shuntingyarddemo/v0.Render()"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/g1magld5ptgzaktqcexxq0pgq5lmdf0kz6re8hlv/x/daily/shuntingyarddemo/v0, for example a function call with arguments.