Snippets tagged ast

  • Simple AST parser

    Parsers a minimal expression tree allowing for functions of the form "func(arg1,arg2,...)->{body}"

    3 people like this

    Posted: 3 years ago by devshorts

  • Small Basic Parser

    Small Basic abstract syntax tree, parser and interpreter. Supports Small Basic's keywords and arithmetic, logical and comparison operators.

    9 people like this

    Posted: 3 years ago by Phillip Trelford

  • Finite State Machine Parser

    Based on Uncle Bob's State Machine Compiler for Clean Code video series, parser implemented with FParsec, see https://github.com/unclebob/CC_SMC for the Java implementation.

    7 people like this

    Posted: 2 years ago by Phillip Trelford

  • Mini SNOBOL Interpreter

    Minimal SNOBOL abstract syntax tree (AST), interpreter and internal DSL (but no parser), just enough to run some simple samples from Wikipedia's SNOBOL page: http://en.wikipedia.org/wiki/SNOBOL and most of the pattern matching examples from the SNOBOL 4 Tutorial http://www.snobol4.org/docs/burks/tutorial/ch4.htm

    2 people like this

    Posted: 2 years ago by Phillip Trelford