Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SeniorMars/typst-raytracer
WIP... it's something i'm building to test my treesitter parser...
https://github.com/SeniorMars/typst-raytracer
Last synced: 2 months ago
JSON representation
WIP... it's something i'm building to test my treesitter parser...
- Host: GitHub
- URL: https://github.com/SeniorMars/typst-raytracer
- Owner: SeniorMars
- Created: 2023-03-26T08:09:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-30T20:41:55.000Z (almost 2 years ago)
- Last Synced: 2024-08-02T06:16:51.325Z (5 months ago)
- Size: 34.2 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-typst - typst-raytracer - raytracer in typst (Templates & Libraries / Graphics)
- awesome-typst-cn - typst-raytracer
README
# raytracer in typst
So far, I've implemented the mandelbrot as a proof of concept.
![Mandelbrot](https://user-images.githubusercontent.com/31679231/228093331-d9e44897-11dd-4e35-aeee-0252ced9ecd4.png)
This was made to test my parser. Here is the output:
```treesitter
(source_file
(set_expression
(function_call
(identifier)
(arguments
(asssigned_argument
(identifier)
(numeric
(int_literal)
(unit))))))
(paragraph_break)
(let_declaration
(identifier)
(parameters)
(code_block
(assignment_expression
(let_declaration
(identifier))
(int_literal))
(assignment_expression
(let_declaration
(identifier))
(int_literal))
(assignment_expression
(let_declaration
(identifier))
(int_literal))
(assignment_expression
(let_declaration
(identifier))
(int_literal))
(assignment_expression
(let_declaration
(identifier))
(int_literal))
(assignment_expression
(let_declaration
(identifier))
(int_literal))
(assignment_expression
(let_declaration
(identifier))
(negation
(float_literal)))
(assignment_expression
(let_declaration
(identifier))
(float_literal))
(assignment_expression
(let_declaration
(identifier))
(negation
(float_literal)))
(assignment_expression
(let_declaration
(identifier))
(float_literal))
(assignment_expression
(let_declaration
(identifier))
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier)
(identifier)))
(identifier))))
(assignment_expression
(let_declaration
(identifier))
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier)
(identifier)))
(identifier))))
(let_declaration
(identifier))
(let_declaration
(identifier))
(let_declaration
(identifier))
(let_declaration
(identifier))
(assignment_expression
(let_declaration
(identifier))
(int_literal))
(while_expression
(comparison_expression
(identifier)
(identifier))
(code_block
(assignment_expression
(let_declaration
(identifier))
(binary_operator
(binary_operator
(identifier)
(identifier))
(identifier)))
(assignment_expression
(let_declaration
(identifier))
(int_literal))
(while_expression
(comparison_expression
(identifier)
(identifier))
(code_block
(assignment_expression
(let_declaration
(identifier))
(binary_operator
(binary_operator
(identifier)
(identifier))
(identifier)))
(assignment_expression
(identifier)
(float_literal))
(assignment_expression
(identifier)
(float_literal))
(assignment_expression
(identifier)
(binary_operator
(identifier)
(identifier)))
(assignment_expression
(identifier)
(binary_operator
(identifier)
(identifier)))
(assignment_expression
(let_declaration
(identifier))
(int_literal))
(while_expression
(comparison_expression
(boolean_expression
(comparison_expression
(identifier)
(identifier))
(parenthesized_expression
(binary_operator
(identifier)
(identifier))))
(float_literal))
(code_block
(assignment_expression
(identifier)
(binary_operator
(binary_operator
(binary_operator
(float_literal)
(identifier))
(identifier))
(identifier)))
(assignment_expression
(identifier)
(binary_operator
(binary_operator
(identifier)
(identifier))
(identifier)))
(assignment_expression
(identifier)
(binary_operator
(identifier)
(identifier)))
(assignment_expression
(identifier)
(binary_operator
(identifier)
(identifier)))
(assignment_operators
(identifier)
(int_literal))))
(assignment_expression
(identifier)
(binary_operator
(method_call
(identifier)
(identifier)
(arguments
(argument
(identifier))
(argument
(int_literal))))
(int_literal)))
(assignment_expression
(identifier)
(binary_operator
(method_call
(identifier)
(identifier)
(arguments
(argument
(identifier))
(argument
(int_literal))))
(int_literal)))
(assignment_expression
(identifier)
(binary_operator
(method_call
(identifier)
(identifier)
(arguments
(argument
(identifier))
(argument
(int_literal))))
(int_literal)))
(content_block
(function_call
(identifier)
(arguments
(asssigned_argument
(identifier)
(function_call
(identifier)
(arguments
(argument
(identifier))
(argument
(identifier))
(argument
(identifier)))))
(asssigned_argument
(identifier)
(numeric
(float_literal)
(unit)))
(asssigned_argument
(identifier)
(numeric
(float_literal)
(unit))))))
(assignment_operators
(identifier)
(int_literal))))
(content_block
(line_break))
(assignment_operators
(identifier)
(int_literal))))))
(paragraph_break)
(function_call
(identifier)
(arguments)))
```