<commit_before>grammar math;

prog: expr;

expr:
	 expr '?'  expr ':' expr 								# IF_fun
	| expr op = ('*' | '/' | '%' ) expr						# MulDiv_fun
	| expr op = ('+' | '-' | '&') expr						# AddSub_fun
	| expr op = (
		'>'
		| '>='
		| '<'
		| '<='
		| '='
		| '=='
		| '==='
		| '!='
		| '<>'
	) expr														# Judge_fun
	| expr op = ('&&' | '||' | AND | OR) expr					# AndOr_fun
	| expr '.' ISNUMBER '(' ')'									# ISNUMBER_fun
	| expr '.' ISTEXT '(' ')'									# ISTEXT_fun
	| expr '.' ISNONTEXT '(' ')'								# ISNONTEXT_fun<commit_msg>修改 math.g4<commit_after>grammar math;

prog: expr;

expr:
	expr op = ('*' | '/' | '%' ) expr						# MulDiv_fun
	| expr op = ('+' | '-' | '&') expr						# AddSub_fun
	| expr op = (
		'>'
		| '>='
		| '<'
		| '<='
		| '='
		| '=='
		| '==='
		| '!='
		| '<>'
	) expr														# Judge_fun
	| expr op = ('&&' | '||' | AND | OR) expr					# AndOr_fun
	| expr '?'  expr ':' expr 									# IF_fun
	| expr '.' ISNUMBER '(' ')'									# ISNUMBER_fun
	| expr '.' ISTEXT '(' ')'									# ISTEXT_fun
	| expr '.' ISNONTEXT '(' ')'								# ISNONTEXT_fun
{'fraction_non_alphanumeric': 0.2602739726027397, 'fraction_numerical': 0.0009132420091324201, 'mean_word_length': 1.80306905370844, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1584180', 'n_tokens_mistral': 601, 'n_tokens_neox': 490, 'n_words': 72}