Jump to content

Chemical calculator: Difference between revisions

m
(→‎{{header|ALGOL 68}}: added missing uote)
Line 2,562:
</pre>
=={{header|jq}}==
[[Category:PEG]]
{{works with|jq}}
'''Works with gojq, the Go implementation of jq'''
 
jq is well-suited to [[:Category:PEG|"Parsing Expression Grammars"]] (PEGs) so
this entry illustrates how to implement the chemical calculator using a PEG approach.
 
Line 2,645 ⟶ 2,646:
["DEBUG:",["Uue"]]
</pre>
 
=={{header|Julia}}==
Note that Julia's 64-bit floating point gets a slightly different result for one of the assertions, hence a small change in the last example. The function uses Julia's own language parser to evaluate the compound as an arithmetic expression.
2,465

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.