readme

来自「用YACC实现的一个小的编译工具」· 代码 · 共 15 行

TXT
15
字号
EXAMPLE 2: SUBTYPESThis example program shows how values of domain typesmay be used like objects.The "->" notation can be used to access and update their fields.Subtypes allow to manipulate the fields in type-safe wayoutside of match statements.The example uses the Tree type from Example 1 and gives functions toupdate the fields of a node.Note that the possibility to update fields introduces the fullpower of general graph structures.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?