mirror of
https://git.tesses.org/tesses50/crosslang.git
synced 2026-09-30 08:44:14 +00:00
Add htmlparser, conditional variables, make alloc_threshold overridable in prefs.json
This commit is contained in:
@@ -22,6 +22,16 @@
|
||||
#include <iostream>
|
||||
#include <stdexcept>
|
||||
namespace Tesses::CrossLang {
|
||||
AdvancedSyntaxNode AdvancedSyntaxNode::Create(std::string_view nodeName,
|
||||
bool isExpression,
|
||||
std::vector<SyntaxNode> nodes) {
|
||||
AdvancedSyntaxNode asn;
|
||||
asn.nodeName = std::string(nodeName);
|
||||
asn.isExpression = isExpression;
|
||||
asn.nodes = nodes;
|
||||
return asn;
|
||||
}
|
||||
|
||||
SyntaxNode TObject2SyntaxNode(TObject o) {
|
||||
if (std::holds_alternative<Undefined>(o))
|
||||
return Undefined();
|
||||
|
||||
Reference in New Issue
Block a user